Ask Your Question

BRPocock's profile - activity

2016-08-27 06:11:37 -0500 received badge  Nice Answer (source)
2016-01-19 14:52:41 -0500 commented question cronjob in fedora23

also maybe check for any SE violations … eg, wrong context on spool files or similar.

2016-01-18 12:45:53 -0500 answered a question Why do I get this message - tainted kernel

Why you're getting the message: You've loaded a kernel module that is not under the GNU General Public License. The running copy of your kernel is no longer the “stock” kernel. Think of it a bit like “voiding your warranty.” The most common culprits are vendor-supplied 3D graphics kernel modules.

2015-09-26 01:30:09 -0500 received badge  Guru (source)
2015-09-26 01:30:09 -0500 received badge  Great Answer (source)
2015-09-01 10:19:19 -0500 commented question Software application in Fedora Workstation not showing update

I'm fairly certain that “Software” shows only those updates which have already been downloaded and can be installed off-line. “dnf update” will cheerfully go off and fetch them.

2015-08-27 00:56:54 -0500 received badge  Good Answer (source)
2015-08-26 15:54:25 -0500 received badge  Nice Answer (source)
2015-08-25 20:23:35 -0500 answered a question Mounting issue switching from Win8 to Fedora

Without access to Windows, your best bet is to mount with -o ro (read-only); eg,

 mkdir /mnt/win
 mount /dev/sda6 -o ro /mnt/win8
2015-08-14 13:24:13 -0500 commented question Newest Google Chrome (44.0.2403.155) won't start unless run as root on Fedora 22

Unfortunately, I can confirm that exact version of Chrome does work for me on ƒ22 with glibc-2.21-7.fc22.x86_64 and kernel 4.1.3-200.fc22.x86_64. It doesn't appear to be an SELinux restriction, though, but you might try generating a backtrace to see where it's crashing.

2015-08-14 12:54:05 -0500 answered a question Increase Fedora 22 partition size

In general, you'd probably want to boot from a LiveCD/LiveUSB and run (sudo dnf install gparted on the Live system) GPartEd.

However, the breakdown you show doesn't seem to leave you any room into which to grow, unless you want to remove some partitions that your dually-booted OS might want …

I suppose that one way you could probably do so is to reduce the size of sda5 substantially, then great a new LVM PV (physical volume) partition out of the recovered space, and add it to the VG (volume group) which is currently only sda9; then, you could expand those logical volumes (fedora-root or fedora-home) to take advantage of the added space in the VG.

Or, just remove (sda2 sda3 sda4 sda5 sda6 sda10) and you'd have tonnes of room free.

2015-08-13 15:20:51 -0500 commented question "Automatic" sudo in console if root required

On a stock Workstation or Server install, that doesn't happen … did you install some kind of special Spin or alternative release?

2015-08-13 13:05:04 -0500 answered a question gnome gui freeze before login on F22/4.1.3

What error(s) are found in the journal when it “freezes?”

If you boot to single-user or terminal mode, you can review the journal from the prior boot with journalctl -b -1 (-boot 0 is current, so -1 is the prior boot)

If it's actually a problem with the display drivers, you may find something was logged by X, itself. There's a possibility you could start using nomodeset, or xforcevesa ; you might also consider using ATI's own drivers, as ( updated with better info)

Several ATI users with issues also simply switched from gdm to lightdm and found that things started working, it seems.

2015-08-12 12:36:42 -0500 commented answer I am new to Fedora. I have installed fedora22 in my laptop. I want to download utorrent or bittorrent. How should I proced for this??

yum is not available on Fedora 22; it has been completely replaced by dnf now.

2015-08-12 11:32:44 -0500 answered a question How to install RPM Package from ?

Note that, normally, you would not want to download from the web like this. Use the program “Software” to browse the distribution and select packages you'd like, or combine dnf searchname and sudo dnf installname to search from the terminal.

Also, are web apps used by the Fedora team to build the distribution … there typically isn't any RPM package there to be downloaded … ?

2015-08-12 11:26:58 -0500 answered a question DNF vs. GNOME-Software - different updates?

Gnome Software identifies updates that have already been downloaded and are now ready to install, which it checks periodically.

dnf checks at the moment that you ask, and will then download and install the updates on-demand.

The equivalent to apt-get upgrade is (sudo) dnf update

2015-08-12 10:07:50 -0500 answered a question I am new to Fedora. I have installed fedora22 in my laptop. I want to download utorrent or bittorrent. How should I proced for this??

Open “Software” and go to the category button (you may have to scroll down) “Internet,” then (on the left) “P2P” for “Peer-to-peer sharing.” There, you'll find the popular Transmission, Deluge, and other options. Click the label for one, and you'll see a description and an “Install” button.

If you see a “Remove” button, then it's already installed. Click “Activities” on the top bar and then click the “nine box” icon at the bottom of the Dash to show programs. Make sure “All Programs” is selected at the bottom of the screen, and scroll through the pages until you find the icon for the app you wanted.

2015-08-11 10:34:44 -0500 commented question Dual boot fedora between and windows

It looks like your partition number is missing form the set root line? eg set root=(hd1,gpt4) or some such…

2015-08-10 14:30:54 -0500 answered a question Where are the open source parental controls?

Since you said you're looking for something comparable to Windows: says their Parental Controls covers:

Set specific time limits on your children's computer use.

Seems like pam_time covers that case quite well?

Prevent your children from playing games you don't want them to play.

Since these are “their” computers, simply don't give them privileges to install software … although there is very little in Fedora that I expect would raise too much concern?

Keep your children from running specific programs.

That seems like a more general case of the above?

As far as content filtering for the WWW, yes, you can install and run DansGuardian locally on the same machine. There are also a few Firefox add-ons you might consider installing; once an extension is installed, if you're concerned that they might try to intentionally disable it, you could follow these instructions to lock their settings down. (Change ownership of the lockdown mozilla.cfg file to prevent “hacking” around it, if you like.)

2015-08-10 14:17:01 -0500 commented answer How do you log in as root in Fedora?

To open an entire shell via sudo, there exists sudo -s as well, albeit with the same caveats.

2015-08-07 00:20:03 -0500 received badge  Good Answer (source)
2015-08-06 13:59:34 -0500 received badge  Nice Answer (source)
2015-08-06 13:27:47 -0500 commented answer [Fedora 22] Username prompt during login - hide users list - GDM

Fantastic that this option still exists, even though it's really hard to access. I wonder, how did you find this, is there a secret advanced GDM manual somewhere?

2015-08-06 13:25:50 -0500 edited answer What happened to the graphical network manager in F22?

In default Workstation install, it's in Settings → Network. (Settings is the wrench-and-screwdriver icon under the menu at the top-right corner; or, hit the Super key / Activities button and search for “Network;” or “Settings,” then click Network.

Update — if you're running an alternative desktop, you can still launch the panel by running gnome-control-center network from a terminal, or adding it to whatever launcher/menu system you use. If you removed the basic workstation packages, you can restore that one with dnf install control-center.

2015-08-06 13:17:29 -0500 commented answer How to assign ctrl + up to home, ctrl + down to end, ctrl + left to page up and ctrl + right to page down?

+1 on all those points. Personally, I never edit anything as root, and chowning these files helps remind me that they're “my fault,” but whatever works for you. Sorry about the misc cut-and-paste errors there :-( I'll try to edit the post.

2015-08-06 13:15:06 -0500 commented question Fedup lands at grub prompt...

Closing this, due to ancient age.

2015-08-06 13:13:37 -0500 received badge  Nice Answer (source)
2015-08-06 13:13:16 -0500 commented answer Resize boot partition on /dev/sda?

I have heard that this is also true, but couldn't find detailed instructions. +1

2015-08-06 13:11:19 -0500 answered a question How can I change default system font of Fedora 22 (GNOME 3.16.2)?

Download the “Tweak Tool” and set the default fonts in the “Fonts” tab.

Tweak Tool, Fonts

2015-08-06 13:06:19 -0500 answered a question Resize boot partition on /dev/sda?

I'm assuming that you mean, that the Fedora LVM partition is using all the free space on the device, but that the filesystem on that volume is not full.

So, the filesystem containing your files has free space; as per df -h report; but the filesystem (FS), let's assume /, is on a logical volume (LV), let's say /dev/mapper/fedora-root, is on a volume group (VG) which we'll say is fedora, which in turn is using only the one device partition as a physical volume (PV), /dev/sda3, which in turn is filling the balance of space on the physical device /dev/sda. I'm further assuming that your root filesystem is ext4 (or ext2 or ext3) and not one of the more exotic options like btrfs or xfs. mount | grep 'on / ' will show you for sure, as will Gnome Disks. (“Contents: Ext4 (version 1.0)” or similar.)

You can adjust these things, but you'll have to boot from the LiveCD to do so — you can't reduce the size of a volume that is mounted, and you can't unmount /.

The “trick” here is, you have to reduce the size of each of the parts of that stack in order: FS and LV, then VG and PV (partition). If you do them out-of-order, you'll have “random” parts of your filesystem that get cut off. The tools are pretty good about warning you about that, and even trying to stop you from hurting yourself, but caveat, beware.

First, boot from a LiveCD/LiveUSB and get to a Terminal, then type sudo -s for superuser privileges.

Make sure your LVM volumes are recognized: type lvm lvs and you should see your logical volume. The mapper name will be the volume group - the logical volume name. ls /dev/mapper to check for its precise name; if it has punctuation or something, it may be “encoded” a bit, there,

Then, make sure the filesystem isn't borked in some way to begin with. fsck -f /dev/mapper/your-vg-your-lv (and go get a coffee).

Luckily, you can resize the FS and LV together. lvm lvresize --verbose --resizefs -L 10G /dev/mapper/vgname-lvname for example. (To specify instead to reduce it by a certain amount, use -L -5G or similar, ie, a negative number.)

This will take a while; and if you (eg) pull the plug, Very Bad Things will happen. Replace 10G with your target size. (Note, it means 10 GiB, not 10 GB. 1 GiB = 1,073,741,824 bytes, 1GB = 1,000,000,000 bytes. Hard disks are sold in GB, not GiB; sadly, a lot of tools still use the two units interchangeably.)

This next part is only needed if your new OS doesn't understand LVM. If you're installing, say, Red Hat or Ubuntu, you can add a new LV to the same VG, and all is well. If you're installing, say, Haiku OS, continue:

Once the LV is resized, your ... (more)

2015-08-05 14:55:03 -0500 received badge  Enlightened (source)
2015-08-05 14:12:22 -0500 answered a question Rename HDD drive name displayed in files

In Disks, find the volume: click the device on the left, then the partition of the volume on the right. Then, click the “gears” icon in the toolbar beneath the “bar chart” of volumes, and choose “Mount Options.” Turn off “Automatic Mount Options” and edit the “Display Name.”

2015-08-05 13:14:30 -0500 commented question cinellera?

As far “afraid of wrecking the install;” you might consider testing building it in a Container (via virt-manager). I had used it ages ago, but I'm afraid I haven't in years, so I can't offer any current advice.

2015-08-04 15:45:18 -0500 commented answer How to install Google Chrome in Fedora?

Once you've installed the repo from their web site, you'll also find Chrome in the Software catalog under Internet / Web Browser … or if you search for it by name.

2015-08-04 15:33:41 -0500 answered a question GitLab on Fedora22

It looks like it failed to actually install the Repo file, probably. (It would be in /etc/yum.repos.d even with DNF.)

You could try downloading that file and manually move it into place:

 wget ''
 sudo mv config_file.repo /etc/yum.repos.d/gitlab.repo
 sudo restorecon /etc/yum.repos.d/gitlab.repo
 sudo dnf makecache
 sudo dnf install gitlab

I don't have a chance to test whether that repo actually would be compatible with Fedora, as yet, though. You might find you need to edit the .repo file to pretend to be an RHEL-7 machine in order to get it to work.

2015-08-04 11:50:54 -0500 answered a question Changing the LUKS Passphrase for Entire System
  • How is a single passphrase implemented even though there are several partitions?

It kinda isn't. But the boot process will re-try what you gave, for each subsequent partition.

  • How can I change that passphrase?

Change it for each partition.

  • What happens if I change the passphrase of one partition but leave the others as they were?

You'll get multiple prompts at boot, which will be confusing, but usually non-fatal.

2015-08-04 11:00:11 -0500 answered a question How do I scan fedora for viruses?

In addition to / alternative to a reactive method like “anti-virus” scans, there are also proactive methods built into the RPM system.

Corrupted / Infected Files

Realistically, an “actual” Virus™ (as opposed to other forms of malware) is carried by altering a host executable file or library. You can quite easily tell if any of the usual executables or libraries were altered with

 sudo rpm -q --verify --all | egrep -e '/(bin|lib)'

As seen in the resp. manpage, the first columns of this report show the following changes from when the file was installed:

   S file Size differs
   M Mode differs (includes permissions and file type)
   5 digest (formerly MD5 sum) differs
   D Device major/minor number mismatch
   L readLink(2) path mismatch
   U User ownership differs
   G Group ownership differs
   T mTime differs
   P caPabilities differ

The changed digest (5 flag) indicates a change of the contents of the file.

Preserve, and Re-install

I'd suggest backing up the files from the affected package, and re-installing, if you're suspicious of the change: (replacing /usr/bin/foo with the resp. file)

 sudo bsdtar Jcf foo-backup-$(date +%Y-%m-%d).tar.xz $(rpm -ql $(rpm -qf /usr/bin/foo)) 
 sudo dnf reinstall $(rpm -qf /usr/bin/foo --queryformat=%{Name})

Note that bsdtar preserves ACL's, while GNU tar does not.

This will allow you to investigate the changed file(s) in isolation to determine if there was an actual infection, without allowing further damage. You may need/want more “severe” mitigation, depending on your security concerns.

Kernel package

If you're concerned about the kernel as well,

sudo rpm -q --verify kernel-core | grep vmlinu

Strange Programs (eg, Trojans)

What this won't tell you, is if you've downloaded and installed a Trojan Horse program from a repository that you've added. If you only add repositories to DNF from trustworthy sources, that shouldn't be an issue …

Non-repository-installed programs in system directories are also suspicious, or executables in “strange” directories; performing a check for any executable that wasn't installed by the package tools (RPM and its higher-level front-ends)

To scan the entire system for any executable file that was installed by circumventing RPM in some way is nominally:

 LANG=C find / -type f -and -perm /0100 -exec rpm -qf {} \; | grep 'not owned'

… however, there are a few common cases where you might have many “hits” because of (for example) a mock root or a large package like the Google Android SDK that you'd like to filter out, in the hopes that they are trustworthy.

 LANG=C sudo find / -type f -and -perm /0100 -exec rpm -qf {} \; | grep 'not owned' |\
      grep -ve '/var/lib/mock' |\
      grep -ve '/opt/google/android-ndk-r10e/' |\
      tee strange-executables.log

Most of the time (in my experience), the malware to be concerned about are going to be of this form: some user downloaded a binary from some random source and “installed” it into their home directory, not realising that the program had some ulterior purpose. It's ... (more)

2015-07-31 11:25:43 -0500 received badge  Good Answer (source)
2015-07-31 06:06:28 -0500 received badge  Nice Answer (source)
2015-07-30 10:57:31 -0500 answered a question Expand my /home dierctory from unallocated disk space

For safety's sake, you probably want to back up /home and everything before trying this, but … caveat emptor

The filesystem you mount on /home exists on the LVM Logical Volume home, which is in the Volume Group fedora which is on a Physical Volume sda6. You could have multiple LV's in a VG, and a VG can span multiple PV's. A FS doesn't necessarily have to fill its LV (although to not do so is just wasteful, to no gain). In this case, it seems like you want all four to line up.

Boot from a LiveCD (or USB) and open Gnome Disks to confirm the free space, et al. You could probably also do this by safely shutting down to single-user maintenance mode, el al, but running from Live is easier. From the Live boot, install (to the live image) the program gparted. (At least as of Fedora 22, it seems that the normal Disks program doesn't have support for resizing an LVM PV.) From Terminal: sudo dnf -y install gparted && sudo gparted

  • Note, the password for sudo on Fedora Live is empty — just tap Return.

In gparted, you should be able to resize the PV into the unallocated space. Right-click the partition, choose Resize/Move, and reduce “Free space following (MiB):” as much as you'd like.

In the past, when co-existing with Windows, it was wise to “align to Cylinders,” but I have heard that this is no longer necessary with GPT partition tables. You might wish to do so, to be on the safe side. (It just limits the increments by which you can adjust the size.)

Note that the action will be queued up, and you'll have to click the “go” button in the toolbar to apply the changes. Just expanding the PV/VG/LV/FS shouldn't take too terribly long, but naturally, make sure you have mains power and a charged battery/UPS, to be safe, because losing power then would hurt, badly. (Personally, I also turn off power saving in “Settings” and don't run anything else while that's happening, to avoid some random system hang/crash from ruining things, but that's somewhat paranoid.)

If you find that the unallocated space on your disc is not adjacent to the existing partition, you'll instead need to

  • create a new partition in the unallocated space as a PV
  • extend the VG onto that PV (vgextend)
  • resize the LV, and the filesystem on the LV, to take advantage of the newly-created space (lvresize -r)

If that's the case, the instructions are the same as for having a separate disc; the PV's in your case might be sda6 and sda7 rather than, say, sdb1 and sdc1, but the process is the same.

2015-07-29 16:30:01 -0500 answered a question Review Applied Updates in GNOME's Software App

Gnome Software uses PackageKit, which writes to the system journal.

You can review this log with journalctl -t PackageKit; for only the changes in the current boot, add -b 0; previous boot, -b -1, and so forth.

2015-07-29 12:34:46 -0500 answered a question CRONTAB(1), CRON(8), ANACRONTAB(5), ANACRON(8): numbers and andanacron USE flag?

The numbers are the sections of the manual. To explore the different sections, you can read each one's intro page.

From a terminal, you can pass the section number to man like so: to read the manual page cron(8), you type: man 8 cron

In Gnome Help, to read a manual page, you hit Control+L and enter the optional section number after a dot, like: man:cron.8

So, cron(8) is in section 8 of the manual; man:intro.8 shows me:

Section 8 of the manual describes commands which either can be or are used only by the superuser, like system-administration commands, dae- mons, and hardware-related commands. As with the commands in described Section 1, the commands described in this section terminate with an exit status that indicates whether the command succeeded or failed. See intro(1) for more information.

This is important because sometimes things have the same name; eg apropos crontab shows me:

anacrontab (5)       - configuration file for Anacron
crontab (1)          - maintains crontab files for individual users
crontab (1p)         - schedule periodic background work
crontab (5)          - files used to schedule the execution of programs
crontabs (4)         - configuration and scripts for running periodical jobs
incrontab (1)        - table manipulator for inotify cron (incron)
incrontab (5)        - tables for driving inotify cron (incron)

If I want to read about the crontab files, I have to supply the manual section.

Note the distinction between sections 1 and 1p on their intro pages, also. crontab (1p) tells me what POSIX requires; crontab (1) tells what GNU+Linux actually provides, which is often a lot more interesting for day-to-day use (but the POSIX minimum is needed if you're trying to be portable to, say, MacOS as well.)

2015-07-29 11:54:21 -0500 answered a question Software Update Network Usage

To disable automatic updates, you can run this in a Terminal:

 gsettings set download-updates false

You can still manually apply updates using the “refresh” icon in the “Updates” tab of Software, or from a terminal with pkcon update or sudo dnf update.

Gnome Software, via PackageKit, does, in fact, use libhawkeye (the core of dnf) and librpm to access the package data, but it's possible than DNF's cache maybe hasn't updated — possibly, running dnf makecache might update your dnf view if it's out-of-date.

2015-07-29 11:16:06 -0500 commented question Not able to build a fedora kernel

Everything you've posted looks all right, so far … what is the error?

2015-07-29 10:29:15 -0500 answered a question How to assign ctrl + up to home, ctrl + down to end, ctrl + left to page up and ctrl + right to page down?

xmodmap is deprecated; it would work, but it'll interact badly with other programs. (For example, you'll lose changes every time you switch consoles, or lock the screen, or your notebook goes to sleep, or …)

The “modern” tool for this purpose is the xkb extension, which is really powerful, and unfortunately, really complex.

For your purposes, you could create a small “patch” to the xkb files for your keyboard layout. You didn't specify, but I'm going to guess that you have the us layout (QWERTY, with an Alt but no AltGr key, and the number keys shifted give you ! @ # $ % ^ & ( )).

The X11 names for the “Page Up/Down” keys are actually Prior and Next, and Home and End have the same names.

What you'll want to do is add a Variant layout to the xkb definitions, which will make a few alterations.

First, make a file you can write to.

sudo touch /usr/share/X11/xkb/symbols/jfu
sudo chown $USER /usr/share/X11/xkb/symbols/jfu

Looking at the base layout in /usr/share/X11/xkb/symbols/pc, the keyboard keys that you want to remap seem to have the keycodes of: <UP> <DOWN> <LEFT> <RGHT> (no “i” in “right”)

Open the file in your favorite editor (/usr/share/X11/xkb/symbols/jfu) and add:

default partial modifier_keys 
xkb_symbols "jfu" {
   key <UP> { 
    type= "PC_CONTROL_LEVEL2",
    symbols[Group1]= [ Up, Prior ] };
   key <DOWN> { 
    type= "PC_CONTROL_LEVEL2",
    symbols[Group1]= [ Down, Next ] };
   key <LEFT> {
    type= "PC_CONTROL_LEVEL2",
    symbols[Group1]=  [ Left, Home ] };
   key <RGHT> { 
    type= "PC_CONTROL_LEVEL2",
    symbols[Group1]= [ Right, End ] };

This will override those specific keys. PC_CONTROL_LEVEL2 means that the second key symbol (e.g. Prior) is reached by Control, rather than Shift. (aA changes by Shift, for example.)

Now that you have such a definition, you can test engaging it from a Terminal. Make sure you have the tools:

 rpm -q xorg-x11-xkb-utils || sudo dnf -y install xorg-x11-xkb-utils

Then check you current settings:

 setxkbmap -v

Yours will probably be something quite different than mine, as I use a custom keyboard called a “Spacey Cadet” layout, but mine says:

Trying to build keymap using the following components: 
keycodes:  evdev+aliases(qwerty) 
types:     complete+spacey 
compat:    complete+spacey 
symbols:   pc+spacey+inet(evdev) 
geometry:  pc(pc105)

I expect your ’symbols’ to be more like pc+us+inet(evdev) or something.

For safety: Open a second terminal, and type in (but do not yet press Return) ’setxkbmap us’. If you mess up your layout horribly, you can press ’Return’ in that window to recover to at least a somewhat usable state.

We want to load the symbols variant you just created, so carefully copy the existing symbols into a command like this. (The ’-v’ is so you can watch it work.)

 setxkbmap -v -symbols 'pc+us+inet(evdev)+jfu'

Hopefully, that works and you can try out your new key mappings. But it'll be reset whenever the system rechecks your keyboard (eg, after logging out or sleep). So, let's add it ... (more)