forked from wendykan/AWSGPU_DeepLearning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·52 lines (44 loc) · 1.3 KB
/
setup.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
# basic setup
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y install make python-dev python-setuptools libblas-dev gfortran g++ python-pip python-numpy python-scipy liblapack-dev
# sudo pip install ipython nose
sudo pip install jupyter
sudo pip install pandas
sudo pip install theano
# setup GPU and CUDA
cd ..
sudo apt-get install nvidia-cuda-toolkit
sudo wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_6.5-14_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb
sudo apt-get update
sudo apt-get install nvidia-opencl-icd-352
sudo apt-get install cuda-drivers
sudo apt-get install cuda-runtime-7-5
sudo apt-get install cuda-7-5
sudo apt-get install cuda # this takes a while
sudo apt-get install nvidia-cuda-toolkit
echo -e "\nexport PATH=/usr/locl/cuda-6.5/bin:$PATH\n\nexport LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64" >> .bashrc
# setup theano
cat <<EOF >~/.theanorc
[global]
floatX = float32
device = gpu0
[nvcc]
fastmath = True
[cuda]
root = /usr/local/cuda-7.0
EOF
# preparing folders for data
mkdir data
# setup lynx
sudo apt-get install lynx unzip
cat <<EOF >~/.lynxrc
SET_COOKIES:TRUE
ACCEPT_ALL_COOKIES:TRUE
PERSISTENT_COOKIES:TRUE
COOKIE_FILE:~/.lynx_cookies
COOKIE_SAVE_FILE:~/.lynx_cookies
EOF
sudo reboot