To add the drivers repository to Ubuntu, run the commands below:
sudo add-apt-repository ppa:graphics-drivers/ppa
When you run the commands above, you should get a prompt to accept the repository signing key as well.. accept and continue installing the PPA…
Now that the PPA is installed, run the commands below to install the current latest drivers for your system.
sudo apt update
sudo apt install nvidia-387
nvidia-smi
$ cd Downloads
$ chmod +x ./[file].run
$ sudo ./[file].run
export PATH="/home/User/anaconda3/bin:/usr/local/cuda/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
source ~/.bashrc
sudo dpkg -i [x].deb (runtime)
sudo dpkg -i [x].deb (developer)
sudo dpkg -i [x].deb (sample code)
curl -o [filename].sh
https://websiteforstudents.com/install-proprietary-nvidia-gpu-drivers-on-ubuntu-16-04-17-10-18-04/ https://medium.com/hackernoon/deep-learning-software-setup-cuda-10-ubuntu-18-04-15548cefa30 https://medium.com/repro-repo/install-cuda-and-cudnn-for-tensorflow-gpu-on-ubuntu-79306e4ac04e