-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathnvidia.sh
executable file
·71 lines (54 loc) · 1.78 KB
/
nvidia.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
# /bin/bash
set -e
set -u
set -x
echo "################################"
echo "# NVIDIA DRIVERS: Manual Setup #"
echo "################################"
echo ""
echo "# also see: cuda.sh and cudnn.sh if you will be doing deep learning!"
echo ""
echo "# caffe install instructions"
echo "# https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-Installation-Guide"
echo ""
echo "# deep learning setup with GTX 1080"
echo "# http://yangcha.github.io/GTX-1080/"
echo ""
echo "# explanation"
echo "# https://linuxconfig.org/how-to-install-the-latest-nvidia-drivers-on-ubuntu-16-04-xenial-xerus"
echo ""
echo "# find your driver"
echo "# http://www.nvidia.com/Download/index.aspx"
echo ""
echo "# latest nvidia driver versions"
echo "# http://www.nvidia.com/object/unix.html"
echo ""
echo "# ubuntu's instructions"
echo "# https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia"
################
# NVIDIA DRIVERS
################
# explanation
# https://linuxconfig.org/how-to-install-the-latest-nvidia-drivers-on-ubuntu-16-04-xenial-xerus
# find your driver
# http://www.nvidia.com/Download/index.aspx
sudo add-apt-repository -y ppa:graphics-drivers/ppa
sudo apt-get -y update
sudo apt-get install -y nvidia-384 mesa-common-dev freeglut3-dev
sudo apt-get -y update
sudo apt-get -y upgrade
sh cuda.sh
# stop the window manager
# you probably want to run this in ctrl + alt + f1 mode
# sudo service lightdm stop
# install nvidia drivers with dkms manager enabled
# sudo sh ./NVIDIA-Linux-x86_64-367.35.run --dkms
# alternative older instructions
#sudo add-apt-repository -y ppa:graphics-drivers/ppa
#sudo apt-get -y update
#sudo apt-get install -y nvidia-367 mesa-common-dev freeglut3-dev
cd $DIR