NVIDIA Graphics Driver Installation - gkgkgk1215/else GitHub Wiki
Notes
-
Search suitable version of linux drivers on the NVIDA webpage
-
(Caution) apt installer includes CUDA, but not officially supported by PyTorch
-
Binary installer is recommended for the use of PyTorch
Pre-setup
- Uninstall any previously installed Nvidia drivers & Nouveau driver
sudo apt remove --purge `^nvidia.*` && sudo apt autoremove
sudo apt install build-essential linux-headers-$(uname -r) dkms
- Open configuration file and blacklist Nouveau
sudo gedit /etc/modprobe.d/blacklist.conf
- Add this line in the end: blacklist nouveau
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
- Disable the Kernel Nouveau and kernel rebuild.
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
- Reboot system
sudo reboot
Samsung NT900-X5N (using apt)
- Model: Geforce 940MX
Install NVIDIA graphics driver
- Stop lightdm (GUI) and login to console (Ctrl+Alt+F1)
sudo service lightdm stop
- Install the appropriate driver. To check the recommended drivers,
sudo ubuntu-drivers devices
- For the SRI desktop, nvidia-455 is compatible.
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-driver-460 (for my laptop)
- Reboot system and check the installed driver after rebooting.
sudo reboot
nvidia-smi
ASUS ROG GU603ZX (from source)
-
Date: 2024. 07. 21
-
Mode: RTX 3080 Ti
-
First, go to the Nvidia website and download the newest Nvidia driver compatible with your graphics card series.
-
For RTX 3080 Ti, "NVIDIA-Linux-x86_64-535.183.01.run"
-
Select “Recovery mode” on the grub menu and “root console”.
-
Change to init 3
init 3
- Install the Driver:
sudo apt-get install build-essential
sudo ./NVIDIA-XXXXX.run
- Reboot your computer and you’re good to go.. 🙂
Reference: https://altinukshini.wordpress.com/2011/07/28/how-to-install-nvidia-drivers-in-ubuntu-linux/
ASUS ROG G835LW
-
Date: 2025. 7. 26
-
Driver: RTX 5080 Laptop
Using apt (not working):
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
cat /proc/driver/nvidia/version
sudo apt remove --purge '^nvidia.*'
sudo apt autoremove
sudo reboot
sudo ubuntu-drivers list --gpgpu
sudo apt install build-essential linux-headers-$(uname -r) dkms
sudo ubuntu-drivers install
sudo reboot
Using binary
-
Pre-setup
-
Download: Linux x64 (AMD64/EM64T) Display Driver 570.172.08 | Linux 64-bit
-
Reboot and select “Recovery mode” on the grub menu and “root console”.
-
Change to init 3
init 3
- Install the Driver (all working in 570.133, 570.172, 575.64):
sudo apt install build-essential
cd ~/Downloads
chmod +x NVIDIA-Linux-x86_64-570.172.08.run
sudo ./NVIDIA-Linux-x86_64-570.172.08.run -m=kernel-open
- When uninstall the driver, the same process until "init 3"
sudo /usr/bin/nvidia-uninstall