Last active
November 14, 2024 07:23
-
-
Save 8enmann/931ec2a9dc45fde871d2139a7d1f2d78 to your computer and use it in GitHub Desktop.
Reinstall NVIDIA drivers without opengl Ubuntu 16.04 GTX 1080ti
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download installers | |
mkdir ~/Downloads/nvidia | |
cd ~/Downloads/nvidia | |
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run | |
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/384.59/NVIDIA-Linux-x86_64-384.59.run | |
sudo chmod +x NVIDIA-Linux-x86_64-384.59.run | |
sudo chmod +x cuda_8.0.61_375.26_linux-run | |
./cuda_8.0.61_375.26_linux-run -extract=~/Downloads/nvidia/ | |
# Uninstall old stuff | |
sudo apt-get --purge remove nvidia-* | |
sudo nvidia-uninstall | |
# Reboot | |
sudo shutdown -r now | |
# In grub boot menu hit `e` and add `nouveau.modeset=0` to the end of the line beginning with `linux` | |
# F10 to boot | |
# CTRL+ALT+F1 and log in | |
sudo service lightdm stop | |
sudo ./NVIDIA-Linux-x86_64-384.59.run --no-opengl-files | |
sudo ./cuda-linux64-rel-8.0.61-21551265.run --no-opengl-libs | |
# Verify installation | |
nvidia-smi | |
cat /proc/driver/nvidia/version | |
# Start jupyter | |
xvfb-run -s "-screen 0 1400x900x24" jupyter notebook |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, if you could add another step about installing cuDNN libraries too, it would be useful for other people
https://stackoverflow.com/questions/31326015/how-to-verify-cudnn-installation This helps!