Skip to content

Instantly share code, notes, and snippets.

@dangkhoasdc
Last active June 4, 2018 07:40
Show Gist options
  • Save dangkhoasdc/181abc2509d0e64e74588491f5a9ee05 to your computer and use it in GitHub Desktop.
Save dangkhoasdc/181abc2509d0e64e74588491f5a9ee05 to your computer and use it in GitHub Desktop.
Ubuntu Setup for Machine Learning

Ubuntu

  1. Install Dropbox

LogMeIn

  1. Create an account on LogMeIn.
  2. Install the client Hamachi
  3. Log in and join the network
sudo hamachi login 
sudo hamachi join <network_id>
  1. Login to LogMeIn, approve the new client.

Python

pip3 install -U numpy scikit-learn

Cuda 9.0

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libnccl2_2.1.4-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libnccl-dev_2.1.4-1+cuda9.0_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
sudo dpkg -i libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb
sudo dpkg -i libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb
sudo dpkg -i libnccl2_2.1.4-1+cuda9.0_amd64.deb
sudo dpkg -i libnccl-dev_2.1.4-1+cuda9.0_amd64.deb
sudo apt-get update
sudo apt-get install cuda=9.0.176-1
sudo apt-get install libcudnn7-dev
sudo apt-get install libnccl-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment