How to install the NVIDIA drivers on Fedora 29 Linux

The NVIDIA Driver is a program needed for your NVIDIA Graphics GPU to function with better performance. It communicates between your Linux operating system, in this case Fedora 29 Linux, and your hardware, the NVIDIA Graphics GPU.

In this article you will learn how to install NVIDIA Drivers on Fedora 29 Linux. We will start by disabling the default nouveau opensource NVIDIA Drivers and then provide step by step instructions on how to successfully install the official NVIDIA Driver on Fedora 29.

To install Nvidia driver on other Linux distributions, follow our Nvidia Linux Driver guide.

In this NVIDIA Drivers installation guide you will learn:

  • How to identify your NVIDIA graphic card model on your operating system.
  • Where to download the NVIDIA driver package for Fedora 29.
  • How to install prerequisites for a successful Nvidia Driver compilation and installation on Fedora 29.
  • How to disable the nouveau driver.
  • How to successfully install NVIDIA Drivers on your Fedora 29 Linux operating system.
Installed Nvidia drivers on Fedora 28 Linux GNOME desktop

Installed Nvidia drivers on Fedora 29 Linux GNOME desktop running graphic card benchmark.

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Criteria Requirements
Operating System Fedora 29 Linux or higher
Software Existing Desktop installation such as GNOME, KDE etc.
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to install the official NVIDIA drivers on Fedora 29 Linux step by step instructions

  1. Open up terminal and identify your Nvidia graphic card model by executing:
    $ lspci -vnn | grep VGA
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] [10de:1c03] (rev a1) (prog-if 00 [VGA controller])
  2. Download the Nvidia driver package from using search criteria based on your Nvidia card model and Linux operating system.Alternatively, if you know what you are doing you can download the driver directly from the Nvidia Linux driver list. Once ready you should end up with a file similar to the one shown below:
    $ ls NVIDIA-Linux-x86_64-*
  3. Install all prerequisites for a successful Nvidia driver compilation and installation.
    $ sudo dnf groupinstall "Development Tools"
    $ sudo dnf install dkms "kernel-devel-uname-r == $(uname -r)"

    The dkms package is optional. However, this package will ensure continuous Nvidia kernel module compilation and installation in the event of new kernel update.

  4. Disable nouveau driver by changing the configuration /etc/default/grub file. Add the nouveau.modeset=0 into line starting with GRUB_CMDLINE_LINUX. Below you can find an example of the grub configuration file reflecting the previously suggested change:
    GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
    GRUB_CMDLINE_LINUX="resume=UUID=df614470-884d-4992-a13c-1665fb0a230e rhgb quiet nouveau.modeset=0"

    The above line 6 ensures that the nouveau driver is disabled the next time you boot your Fedora 29 Linux system. Once ready execute the following command to apply the new GRUB configuration change.

    Based on your boot method select one of the following:

    $ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    $ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

  5. Reboot your Fedora 29 Linux System.
    $ sudo reboot
  6. The Nvidia drivers must be installed while Xorg server is stopped. Switch to text mode by:
    $ sudo  systemctl isolate
  7. Install the Nvidia driver by executing the following command:
    $ sudo bash NVIDIA-Linux-x86_64-*

    When prompted answer YES to installation of NVIDIA’s 32-bit compatibility libraries, overwrite existing libglvnd files and automatic update of your X configuration file.

  8. Reboot your system one more time.
    $ sudo reboot
    When using GDM display manager after login you may be greeted with a black screen. Please note that at the time of writing this issue sits with GDM and you are recommended to temporarily switch to some other display manager like for example sddm:

    $ sudo dnf install sddm 
    $ sudo systemctl disable gdm
    $ sudo systemctl enable sddm
    $ sudo reboot

    All done. The Nvidia driver should now be installed on your Fedora 29 Linux system. Reboot your system now, login and run nvidia-settings to further configure your Nvidia graphic card settings.