How to install GPU cards on Linux

From ChengLab
Revision as of 09:39, 6 May 2021 by Kevin (talk | contribs)
Jump to: navigation, search

GTX 1080, Ubuntu 16.04

Reference: [1]

# Kill your current X server session
service lightdm stop
# Blacklist the "nouveau" driver
echo -e "blacklist nouveau\nblacklist lbm-nouveau\noptions nouveau modeset=0\nalias nouveau off\nalias lbm-nouveau off\n" | tee /etc/modprobe.d/blacklist-nouveau.conf
echo options nouveau modeset=0 | tee -a /etc/modprobe.d/nouveau-kms.conf
# update-initramfs -u # Optional
shutdown -r now

Download and run the runfile

./NVIDIA-Linux-x86_64-390.48.run

Install the CUDA toolkit (sample is optional, driver should NOT be installed)

./cuda_8.0.61_375.26_linux.run --override --no-opengl-lib

If anything goes wrong, go to here and follow ALL steps.