GNU/Linux {docs}

Fedora

You can download Fedora here:

  • https://dl.fedoraproject.org/pub/fedora/linux/releases/

Create root password

$ sudo passwd root

Add user to sudo

# usermod -aG wheel $USER

USER must log out and log in again for the changes to take effect

Update repository

$ sudo dnf clean all
$ sudo dnf update

Install RPM Fusion

$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
$ sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Install media codecs

First install RPM Fusion as explained above. Then issue this command:

$ sudo dnf install vlc mplayer ffmpeg

Use Xorg instead of Wayland

Edit /etc/gdm/custom.conf:

  1. Uncomment WaylandEnable=false
  2. Add this line under [daemon]: DefaultSession=gnome-xorg.desktop
  3. Reboot

Install NVIDIA drivers for GeForce GTX 900 series

$ sudo dnf update -y
$ sudo dnf install xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx
$ sudo dnf install xorg-x11-drv-nvidia-340xx-cuda #optional for cuda up to 6.5 support

Install CUDA drivers (not toolkit) and nVidia drivers

🔔️ Important
These instructions assumes that Fedora 29 has been installed without an nVidia graphic card plugged in, in order to avoid the OS installation to setup nouveau drivers automatically. Nouveau drivers will prevent nvidia drivers from installing, so we don't want nouveau in our system.
🔥 Warning
There is a known issue with the default Fedora 29 display manager GDM when installing the nvidia drivers: after login, the screen remains black.

To solve this issue, follow any of these two solutions:

Solution 1
  • Edit /etc/default/grub and remove rhgb from line GRUB_CMDLINE_LINUX="rhgb quiet"
  • Rebuild grub config file:
## BIOS ##
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
## UEFI ##
$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Solution 2

Install a different a display manager. I choose the LightDM :

$ sudo dnf install lightdm

Disable GDM during the startup and enable LightDM:

$ sudo systemctl disable gdm
$ sudo systemctl enable lightdm

Reboot:

$ sudo reboot

CUDA driver installation

You can download Fedora 29 in case you want to perform a fresh install.

  • Once Fedora 29 is installed without any nVidia card plugged in, download the CUDA Toolkit for Linux Fedora 29 x86_6.
  • Install de following packages:

$ sudo dnf install make elfutils-libelf-devel

  • Install the kernel headers and development packages for the currently running kernel:

$ sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)

  • Regenerate the kernel initramfs:

$ sudo dracut --force

  • Change default run-level to "3":

$ sudo systemctl set-default multi-user.target

  • Turn off the computer

$ poweroff

  • Unplug power cable
  • push power buttons in PC and monitor to release all condensed electricity
  • Plug in the graphic card
  • Turn on the computer
  • Login from prompt
  • cd to the directory where you downloaded Linux Fedora 29 x86_6 runfile(local)
  • Install Linux Fedora 29 x86_6 runfile(local):

$ sudo sh cuda_10.1.243_418.87.00_linux.run --silent --driver

  • Change default run-level back to "5":

$ sudo systemctl set-default graphical.target

  • Start up X:

$ sudo telinit 5

  • Reboot
  • Check graphic drivers in use:

$ lspci -nnk | grep -i vga -A3 | grep 'in use'

  • Check CUDA and nvidia version installed:

$ nvidia-smi

Installing Davinci Resolve 16

  • Install a necessary package first:

$ sudo dnf install mesa-libGLU.x86_64

  • Now download the Linux version of Davinci Resolve from https://www.blackmagicdesign.com/products/davinciresolve/
  • Go to the directory where you downloaded Davinci Resolve
  • Unzip: $ unzip DaVinci_Resolve_16.0b7_Linux.zip
  • Install: $ sudo ./DaVinci_Resolve_16.0b7_Linux.run -i
  • Launch: Activities -> Search box -> Type "Davinci"

Note: The first time that Davinci Resolve 16 is launched, the welcome screen will get stuck (it will remain white). Launch "System Monitor" and end the process "DaVinci_Resolve_Welcome". Davinci Resolve 16 will get "unstuck" and open up normally.

Graphics

Disable Wayland and enable Xorg as the default GNOME session

  • Edit /etc/gdm/custom.conf and uncomment WaylandEnable=false.
  • Optional: add the following line to the [daemon] section:

DefaultSession=gnome-xorg.desktop

  • Save the custom.conf file

H.264

$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
$ sudo dnf install gstreamer1-libav

Disk Management

How to auto mount a disk on start up

Option 1. Command Line
  • Find UUID partition:
$ sudo blkid
...
/dev/sdc2: LABEL="Datos" UUID="368A7A9A8A7A5679" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="670e8067-f3d4-44db-a493-d69e4c9e2e9e"
...
  • Create a new entry in /etc/fstab:

$ sudo echo "UUID=368A7A9A8A7A5679 /run/media/cheo/Datos auto defaults 0 0" >> /etc/fstab

Option 2. Gnome Disk
  • Launch Gnome Disks
  • Look for the partition and follow these steps: