Skip to content

Instantly share code, notes, and snippets.

@lotusk
Forked from frengky/nvidia-centos-update.md
Created June 21, 2019 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lotusk/3bea18b06839fc1051ff275599f85ffd to your computer and use it in GitHub Desktop.
Save lotusk/3bea18b06839fc1051ff275599f85ffd to your computer and use it in GitHub Desktop.
Update Nvidia driver on CentOS 7.x after kernel update

Update Nvidia driver on CentOS 7.x

Download the latest Nvidia driver on http://www.nvidia.com/drivers

Update the kernel to the latest version

$ yum update

Change to runlevel 3 - multi user mode for the next reboot

$ systemctl set-default multi-user.target
$ systemctl get-default

Reboot your computer

$ reboot

Install the Nvidia driver from the console after rebooting

$ chmod +x NVIDIA-Linux-x86_64-xxx.xx.run
$ ./NVIDIA-Linux-x86_64-xxx.xx.run

Change back to runlevel 5 - graphical mode for the next reboot

$ systemctl set-default graphical.target
$ systemctl get-default

Reboot back to the graphical mode, and enjoy.

$ reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment