Last active
September 26, 2016 01:44
-
-
Save taineleau-zz/d33ccd300b70866868cd818ef4cffc54 to your computer and use it in GitHub Desktop.
Setup deep learning environment on aws
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y install zsh git | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
sudo chsh ubuntu -s /bin/zsh | |
sudo apt-get update | |
sudo apt-get -y install build-essential linux-image-extra-virtual axel | |
sudo vim /etc/modprobe.d/blacklist-nouveau.conf | |
# add following line: | |
blacklist nouveau | |
blacklist lbm-nouveau | |
options nouveau modeset=0 | |
alias nouveau off | |
alias lbm-nouveau off | |
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf | |
sudo update-initramfs -u | |
sudo shutdown -r now | |
axel -avn 30 http://us.download.nvidia.com/XFree86/Linux-x86_64/367.44/NVIDIA-Linux-x86_64-367.44.run | |
sudo bash ./NVIDIA-Linux-x86_64-367.44.run | |
axel -avn 30 http://developer.download.nvidia.com/compute/cuda/8.0/secure/rc1/local_installers/cuda-repo-ubuntu1404-8-0-rc_8.0.27-1_amd64.deb\?autho\=1474697053_d5ddbd1643d47cbcd65a8f2a51ac72d4\&file\=cuda-repo-ubuntu1404-8-0-rc_8.0.27-1_amd64.deb | |
`sudo dpkg -i cuda-repo-ubuntu1404-8-0-rc_8.0.27-1_amd64.deb` | |
`sudo apt-get update` | |
`sudo apt-get install cuda` | |
git clone https://github.com/torch/distro.git ~/torch --recursive | |
cd ~/torch; bash install-deps; | |
./install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment