Skip to content

Instantly share code, notes, and snippets.

@spdrman
Forked from hkaraoguz/Installation Guide
Created May 31, 2022 16:01
Show Gist options
  • Save spdrman/ef72581d01f7eab5ab3742f84b8822cd to your computer and use it in GitHub Desktop.
Save spdrman/ef72581d01f7eab5ab3742f84b8822cd to your computer and use it in GitHub Desktop.
How to install Nvidia 470.57.02 Drivers for Ubuntu 20.04 using a run file
## Install necessary libraries
sudo apt update &&
sudo apt install build-essential libglvnd-dev pkg-config
## Download the drivers
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/470.57.02/NVIDIA-Linux-x86_64-470.57.02.run
## Remove the existing Nvidia drivers, utils, libs etc.
sudo apt purge nvidia*
sudo apt purge nvidia-driver*
sudo apt autoremove
## Blacklist nouveau drivers
sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf" &&
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
## Check that the blacklist file is correct
cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf
## Reboot
sudo reboot
## Boot in recovery mode (select `Advanced options for Ubuntu in GRUB menu`)
## When recovery menu appears select `root` and drop to root shell
## Allow downloaded .run file to be executed
chmod +x /path/to/Nvidia_driver_run_file.run
## Execute the run file
./path/to/Nvidia_driver_run_file
## When prompted Select No for building 32-bit compatibility libraries
## When prompted Select No for changing X11 configuration
## Reboot when installation is completed and allow computer to boot normally
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment