Install NVIDIA Driver and CUDA on Ubuntu 16.04

By June 13, 2017Crypto Mining, NVIDIA

These instructions are to Install NVIDIA Driver and CUDA on Ubuntu 16.04.

Part 1: Install NVIDIA Driver

echo "NVIDIA Driver Install Starting to Deploy"
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
apt-get update -y
apt-get dist-upgrade -y
sudo apt-get install -y build-essential ufw fail2ban htop nano unzip git libcurl4-openssl-dev git automake pkg-config software-properties-common libssl-dev
chmod +x
sh -q -a -n -X -s


Part 2 : Install CUDA

wget -4
dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
apt-get update
apt-get install -y cuda

install cuda ubuntu 16
cuda installation
cuda installer ubuntu
apt install cuda
ubuntu 16 cuda installation
ubuntu 16.04 cuda 8
cuda 8

0 0 votes
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Frederick Haegele
Frederick Haegele
4 years ago

As an added aside, I highly recommend adding some info about doing this from a virtual terminal.

service lightdm needs to be disabled first on my machine. This is done by hitting shift-cntrl+f1 and

after logging in

sudo service lightdm stop

then proceeding with the above.

When finished,

sudo service lightdm start

Then hit shift +cntrl+f7 or alt > a few times to return to the GUI