Category Archives: Fedora

docker as normal user under Fedora 23

See https://docs.docker.com/v1.6/installation/fedora/

“The docker command line tool contacts the docker daemon process via a socket file /var/run/docker.sock owned by root:root. Though it’s recommended to use sudo for docker commands, if users wish to avoid it, an administrator can create a docker group, have it own /var/run/docker.sock, and add users to this group.”

sudo groupadd docker
sudo chown root:docker /var/run/docker.sock
sudo usermod -a -G docker $USERNAME

Don’t forget to relogin to make this change take effect.

Install nvidia GTX980 driver in Fedora 23/22/21

I found a good and working tutorial unter http://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/.

Here my notes for Fedora 23 and my GTX980:

# all commands have to be run as root

# remove nouceau driver
dnf clean all
dnf update
dnf install kernel-devel kernel-headers gcc dkms acpid
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
# append rd.driver.blacklist=nouveau to GRUB_CMDLINE_LINUX in /etc/sysconfig/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
dnf remove xorg-x11-drv-nouveau
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)

# reboot to command line
systemctl set-default multi-user.target
reboot

# install driver
bash NVIDIA-Linux-x86_64-358.16.run
# follow instructions and choose yes if aksed questions

# reboot to gui
systemctl set-default graphical.target
reboot

# install some extra packages
dnf install vdpauinfo libva-vdpau-driver libva-utils

 

Mount NFS under Fedora 17

To mount an nfs filesystem under fedora 17 I had to take the following steps:

  • sudo yum install nfs-utils
  • sudo service rpcbind start
  • sudo mount -o hard,intr,noatime 192.168.1.123:/nfs /mnt/nas

The first step installs the needed libraries to be able to mount nfs. This is like nfs-common under debian based distris. The second step eliminates the following error:

mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use ‘-o nolock’ to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified