Nvidia Intel Graphics Driver

  1. go to Nvidia to download the latest driver in .run format
  2. go to single-user mode and uninstall existing nvidia drivers sudo apt-get purge nvidia-* You may need to perform apt autoremove to remove stray nvidia related packages.
$ init 1
$ sudo apt-get purge nvidia-*
  1. Verify That Nouveau Driver is Disabled: remove nvidia related config files under /etc/modprobe.d/ and /lib/modprobe.d/
  2. excute the downloaded run file
$ ./NVIDIA-Linux-x86_64-440.44.run
  1. update the following lines in grub file

$ nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="modprobe.blacklist=nouveau"
GRUB_CMDLINE_LINUX=""

$ sudo update-grub

  1. verify the running kernel module$ prime-select query . Switch to nvidia if the current version is intel: $ prime-select nvidia

  2. Verify That Nouveau Driver is Disabled

grep nouveau /var/log/Xorg.0.log

Install CUDA if necessary

install CUDA 10 from official website (.deb), and follow the instructions to add apt-key. Lastly:

sudo apt install cuda

In .bashrc add:

# CUDA
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}$
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

Install CUDA DNN

sudo apt install libcudnn7

Official Installation Guide (CUDA)

Last updated on