apt-get update
apt-get dist-upgrade
reboot
apt-get install build-essential
When asked about grub changes select choose package maintainers version
.
apt-get install linux-image-extra-virtual
apt-get install linux-source
apt-get source linux-image-$(uname -r)
apt-get install linux-headers-$(uname -r)
apt-get install dkms
cat > /etc/modprobe.d/blacklist-nouveau.conf <<'endmsg'
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
endmsg
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
update-initramfs -u
Do not ignore certificate errors! You don't want to install crazy stuff on your system.
This has been tested with the 6.5 version.
wget https://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run
This should be the same setup for the 7.0 line.
wget https://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.28_linux.run
As well as the 7.5 line.
wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run
chmod +x cuda_{VERSION}.run
mkdir nvidia_installers
./cuda_{VERSION}.run -extract=`pwd`/nvidia_installers
cd nvidia_installers
./NVIDIA-Linux-{VERSION}.run --dkms
modprobe nvidia
./cuda-linux64-rel-{VERSION}.run
./cuda-samples-linux-{VERSION}.run
echo '/usr/local/cuda-7.5/lib64' > /etc/ld.so.conf.d/nvidia.conf
ldconfig
echo '/usr/local/cuda-7.5/bin' >> /etc/profile
cd /usr/local/cuda/samples/1_Utilities/deviceQuery
make
./deviceQuery
This should output something like:
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 6.5, CUDA Runtime Version = 6.5, NumDevs = 1, Device0 = GRID K520
Result = PASS