Nvidia Intel Graphics Driver
- go to Nvidia to download the latest driver in .run format
- go to
single-user mode
and uninstall existing nvidia driverssudo apt-get purge nvidia-*
You may need to performapt autoremove
to remove stray nvidia related packages.
$ init 1
$ sudo apt-get purge nvidia-*
- Verify That Nouveau Driver is Disabled: remove nvidia related config files under
/etc/modprobe.d/
and/lib/modprobe.d/
- excute the downloaded run file
$ ./NVIDIA-Linux-x86_64-440.44.run
- update the following lines in grub file
$ nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="modprobe.blacklist=nouveau"
GRUB_CMDLINE_LINUX=""
$ sudo update-grub
verify the running kernel module
$ prime-select query
. Switch to nvidia if the current version is intel:$ prime-select nvidia
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