nouveaudriver. In case the
nouveaudriver is not a sufficient solution, users can install the official Nvidia driver as a proprietary alternative. This step by steps tutorial will guide you through the entire process on Nvidia driver installation.
To install Nvidia driver on other Linux distributions, follow our Nvidia Linux Driver guide.
Software Requirements and Conventions Used
|Operating System||CentOS 7.5 or higher|
|Software||Existing Desktop installation such as GNOME, KDE etc.|
|Other||Privileged access to your Linux system as root or via the |
|Conventions|| # - requires given linux commands to be executed with root privileges either directly as a root user or by use of |
How to install the official NVIDIA drivers on CentOS 7 Linux step by step instructionsThe installation of Nvidia drivers consits of multile steps. First, we identify the model number of the Nvidia VGA card available, prepare the system by installation of all package prerequisites and download the official Nvidia driver.
The next step will be to disable the default
nouveaudriver and install the proprietary Nvidia driver. Let's get started:
- Open up terminal and identify your Nvidia graphic card model by executing:
# lshw -numeric -C display *-display description: VGA compatible controller product: GP106 [GeForce GTX 1060 6GB] [10DE:1C03] vendor: NVIDIA Corporation [10DE] physical id: 0 bus info: pci@0000:01:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list rom configuration: driver=nouveau latency=0 resources: irq:126 memory:d2000000-d2ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:4000(size=128) memory:d3000000-d307ffffThe above command provides information about the Nvidia card's model number. Also note that the open source
nouveaunvidia driver is currently in use.
- Download the Nvidia driver package from nvidia.com 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-* NVIDIA-Linux-x86_64-410.73.run
- Install all prerequisites for a successful Nvidia driver compilation and installation.
# yum groupinstall "Development Tools" # yum install kernel-devel epel-release # yum install dkmsThe
dkmspackage is optional. However, this package will ensure continuous Nvidia kernel module compilation and installation in the event of new kernel update.
nouveaudriver by changing the configuration
/etc/default/grubfile. Add the
nouveau.modeset=0into line starting with
GRUB_CMDLINE_LINUX. Below you can find example of grub configuration file reflecting the previously suggested change:
The above line 6 ensures that the
GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet nouveau.modeset=0" GRUB_DISABLE_RECOVERY="true"
nouveaudriver is disabled the next time you boot your CentOS 7 Linux system. Once ready execute the following command to apply the new GRUB configuration change:
BIOS: $ sudo grub2-mkconfig -o /boot/grub2/grub.cfg EFI: $ sudo grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
- Reboot your CentOS 7 Linux System. Once the boot is finished confirm that the
nouveauopen source Nvidia driver is no longer in use:
# lshw -numeric -C displayCompare the output of the
lshwcommand with the above
- The Nvidia drivers must be installed while Xorg server is stopped. Switch to text mode by:
# systemctl isolate multi-user.target
- Install the Nvidia driver by executing the following command:
# bash NVIDIA-Linux-x86_64-*When prompted answer
YESto installation of NVIDIA's 32-bit compatibility libraries and automatic update of your X configuration file.
- All done. The Nvidia driver should now be installed on your CentOS 7 Linux system. Reboot your system now, login and run
nvidia-settingsto further configure your Nvidia graphic card settings.