Skip to content

Instantly share code, notes, and snippets.

@soulslicer
Created August 22, 2017 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulslicer/8f21bb2bfaabe8cdcd283c54f06205a0 to your computer and use it in GitHub Desktop.
Save soulslicer/8f21bb2bfaabe8cdcd283c54f06205a0 to your computer and use it in GitHub Desktop.
ubuntu-nvidia-instructions
# Disbale Nouveau driver and reboot (In safe mode if needed)
sudo sh -c "echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf"
sudo update-initramfs -u
sudo reboot
# Download drivers
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.20/NVIDIA-Linux-x86_64-375.20.run
wget https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_8.0.44_linux-run
# Remove the xorg file
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.BACKUP
# Go to CMD and Stop lightdm
Ctrl + Alt + F1
sudo service lightdm stop
# Install First Driver
sudo sh NVIDIA-Linux-x86_64-375.20.run
reboot
# Go to CMD and Stop lightdm
Ctrl + Alt + F1
sudo service lightdm stop
# Install CUDA driver (Select No for driver)
sudo sh cuda_8.0.44_linux.run
reboot
# Add to bashrc
export CUDA_HOME=/usr/local/cuda-8.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
PATH=${CUDA_HOME}/bin:${PATH}
export PATH
# Install OpenCL
sudo apt-get install opencl-headers
sudo apt-get install ocl-icd-opencl-dev ocl-icd-libopencl1
sudo apt-get install clinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment