How to install GPU cards on Linux

From ChengLab
Revision as of 09:42, 6 May 2021 by Kevin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

If X-server is still running you can manually kill the program.

Download and run the runfile

./NVIDIA-Linux-x86_64-465.24.02.run --ui=none --no-questions --accept-license --disable-nouveau --no-cc-version-check --install-libglvnd

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

./cuda_8.0.61_375.26_linux.run --override 

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