How to install Nvidia drivers on Fedora 29

Hi, everyone! i just wanted to publish a blog for how to install nvidia drivers on fedora. As you all know installing nvidia drivers is bit hard for newbies, and thats why i decided to write this blog. Let’s begin.

  1. First upgrade your system to latest software and then reboot:

sudo dnf upgrade

2. Then add negativo repo

dnf config-manager --add-repo=https://negativo17.org/repos/fedora-nvidia.repo

3. Update your repos:

sudo dnf update

4. Install Nvidia drivers

sudo dnf install nvidia-driver nvidia-driver-libs nvidia-libXNVCtrl nvidia-driver-cuda nvidia-driver-cuda-libs nvidia-driver-NVML nvidia-persistenced nvidia-modprobe nvidia-settings nvidia-xconfig dkms-nvidia

This will install nvidia drivers with dkms modules. What we need to do is compile dkms modules to get nvidia working.

5. We need kernel-headers and kernel-devel package to build modules.

sudo dnf install kernel-headers kernel-devel

After installation of kernel modules run

sudo dkms autoinstall

6. And wala! the nvidia drivers is installed what you need to do is disabling the nouveau, you can refer to this link for how to disable nouveau.

2.6 Disable nouveau

Append ‘blacklist nouveau’

echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf

Append ‘rd.driver.blacklist=nouveau’ to end of ‘GRUB_CMDLINE_LINUX=”…”‘.

## Example row ##
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau"
## BIOS ##
grub2-mkconfig -o /boot/grub2/grub.cfg
## UEFI ##
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Final results!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store