Nvidia GPU driver installation

Nvidia GPU driver installation 

1.download the latest GPU driver in the nvidia website,here my OS is linux redhat7.

https://www.nvidia.cn/Download/index.aspx?lang=com

https://us.download.nvidia.cn/XFree86/Linux-x86_64/440.36/NVIDIA-Linux-x86_64-440.36.run

2.check if the nouveau dirver is installed in the OS. The nouveau driver is the third party driver ,we need to disable itself before the installation of nvidia gpu driver .add the parameter ‘blacklist nouveau’ into blacklist.conf

#lsmod | grep nouveau

# vi /etc/modprobe.d/blacklist.conf

blacklist nouveau

3.backup the initramfs file

#mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak

4.rebuild the initramfs file

#dracut -v /boot/initramfs-$(uname -r).img $(uname -r) –force

5.reboot the machine

6.key the command ‘init 3‘ to change the runlevel, this driver installation is under the multiuser mode.

7.start the installation, and follow the tips.

#./NVIDIA-Linux-x86_64-440.36.run

8.When the installtion completed, use the command ‘nvidia-smi‘ to check the driver status.