Skip to content

Instantly share code, notes, and snippets.

@aniongithub
Last active December 21, 2022 21:33
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 aniongithub/f67070ebfa4b8fe74a42bb989ed94f9d to your computer and use it in GitHub Desktop.
Save aniongithub/f67070ebfa4b8fe74a42bb989ed94f9d to your computer and use it in GitHub Desktop.
Install nvidia GPU drivers on Ubuntu server

Installing Nvidia GPU drivers on Ubuntu server

Since the default distro installation didn't work for me, here's an alternative method.

  • Ensure that the nvidia drivers are removed from the kernel mod blacklist by running grep nvidia /etc/modprobe.d/* /lib/modprobe.d/* and moving/deleting/commenting any files/lines that contain this reference. For me, this file was: /etc/modprobe.d/blacklist-framebuffer.conf
  • We need to disable the default Nouveau driver by creating /etc/modprobe.d/disable-nouveau.conf that contains
blacklist nouveau
options nouveau modeset=0
  • After this, ensure that you run sudo update-initramfs -u and reboot
  • wget or scp the run file from the nvidia site/your local machine. Here's a link to version 525.60.11
  • chmod +x the run file and run it, following the on-screen instructions
  • Reboot once again and run nvidia-smi to check that your GPU was detected correctly
  • Enjoy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment