Skip to content

Instantly share code, notes, and snippets.

@stralex7
Forked from hkaraoguz/Installation Guide
Last active December 23, 2021 09:56
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 stralex7/4d70fe6ca93df1483c87d65ec95ceb28 to your computer and use it in GitHub Desktop.
Save stralex7/4d70fe6ca93df1483c87d65ec95ceb28 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

apt update
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.

apt purge nvidia*
apt remove unattended-upgrades
apt autoremove

apt install linux-headers-5.8.0-63-generic linux-image-5.8.0-63-generic linux-modules-5.8.0-63-generic linux-modules-extra-5.8.0-63-generic linux-hwe-5.8-headers-5.8.0-63

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