Install cuda 7 on Debian 8 Jesse
Posted on Fri 12 February 2016 in posts
From fresh install
install vim, sudo, htop
$ su root
$ apt-get update
$ apt-get install vim sudo htop
export EDITOR=vim
add recorder as sudo $ visudo recorder ALL=(ALL) NOPASSWD: ALL
install needed libraries for cuda install
apt-get install gcc-4.8 make linux-headers-amd64 gcc build-essential
download cuda runfile Version 7.0 (Important: Version 7.5 and later will not work)
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.28_linux.run
Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents:
blacklist nouveau
options nouveau modeset=0
Regenerate the kernel initramfs:
$ sudo update-initramfs -u
restart the computer
make the cuda runfile executable
$ chmod +x cuda-*.run
go into run level 3
sudo init 3
open login prompt with alt+ctrl+F1 log in as root
export CC=gcc-4.8
./cuda*.run
Might be able to run this command instead of exporting CC, especially if using ubuntu:
sudo ./cuda_7.5.18_linux.run --silent --toolkit --override
go through the install process and install only the nvidia drivers
Do you accept the previously read EULA?: Accept You are attempting to install on an unsupported configuration. Do you wish to continue?: yes Install NVIDIA Accelerated Graphics Driver?: Y Install OpenGL libraries?: N Install Cuda 7.0 Toolkit?: N Install Cuda 7.0 Samples: N
restart computer
sudo init 3 log in as root- alt+ctr+F1 to get to login promt
install everything from runfile except the nvidia driver
cd /home/recorder/Downloads Do you accept the previously read EULA?: Accept You are attempting to install on an unsupported configuration. Do you wish to continue?: yes Install NVIDIA Accelerated Graphics Driver?: N Install Cuda 7.0 Toolkit?: Y Enter Toolkit Location: Do you want to install a symbolic link at /usr/local/cuda?: y Install Cuda 7.0 Samples: Y Enter CUDA samples location:
Disregard the message about the installation not being complete
make sure libraries are found
echo "/usr/local/cuda/lib64" > /etc/ld.so.conf.d/cuda.conf ldconfig