User Tools

Site Tools


ubuntu:gpu:nvidia_gpu:setup:setup_manually

This is an old revision of the document!


Ubuntu - GPU - NVIDIA GPU - Setup - Setup manually

WARNING: Manual installation of NVIDIA drivers on Ubuntu, particularly from the official NVIDIA.com source, is not recommended for all users due to potential compatibility issues with future kernel updates.

  • This approach requires manual recompilation or re-installation of the driver each time the kernel is updated, as the NVIDIA kernel module may not automatically adapt to the new kernel version.
  • Such updates can lead to system instability, the inability to boot into the graphical interface, or the driver ceasing to function entirely.
  • Opting for drivers provided through the Ubuntu repositories or via a PPA is generally safer, ensuring smoother updates and system stability.

Check the driver needed by the devices

sudo ubuntu-drivers devices

Download the driver setup script

Visit the Official Nvidia website.

sudo wget https://us.download.nvidia.com/XFree86/Linux-x86_64/510.60.02/NVIDIA-Linux-x86_64-510.60.02.run

install the prerequisites which will be required by the driver for successful installation

sudo apt install build-essential libglvnd-dev pkg-config

Stop the current display server

Before installing the driver, it is mandatory to stop your current display server by changing the run level to 3.

sudo telinit 3

Install the driver

sudo bash NVIDIA-Linux-x86_64-510.60.02.run

Restart

Restart run level 6.

sudo init 6

NOTE: This will reboot your system and start it with display server on.


References

ubuntu/gpu/nvidia_gpu/setup/setup_manually.1747841744.txt.gz · Last modified: 2025/05/21 15:35 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki