Skip to content

Instantly share code, notes, and snippets.

@koji
Last active July 21, 2018 23:44
Show Gist options
  • Save koji/c0d47a48bc54bf8cd81b306f0b76c012 to your computer and use it in GitHub Desktop.
Save koji/c0d47a48bc54bf8cd81b306f0b76c012 to your computer and use it in GitHub Desktop.
setup ubuntu for machine learning with vagrant

In this case, I'm using cmder.
Windows machine has Virtual box and vagrant.

setup vagrant

$ vagrant box add ubuntu/trusty64
$ vagrant init ubuntu/trusty64
$ vagrant up

access vagrant via ssh

$ vagrant ssh

for trubleshooting
$ vagrant ssh-config

install oh-my-zsh

sudo apt-get install zsh
sudo apt-get install git-core


Getting zsh to work in ubuntu is weird, since `sh` does not understand the `source` command.  So, you do this to install zsh

$ wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

and then you change your shell to zsh

$ chsh -s `which zsh`

and then restart

$ sudo shutdown -r 0

install python via pyenv

$ udo apt-get install -y build-essential libbz2-dev libssl-dev libreadline-dev \
                        libsqlite3-dev tk-dev
$ sudo apt-get install -y libpng-dev libfreetype6-dev
$ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

$ pyenv install 3.6.5
$ pyenv

install cuda

follow this https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=deblocal

vagrant basic commands

$ vagrant up
$ vagrant reload
$ vagrant halt
$ vagrant status
$ vagrant destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment