Skip to content

Instantly share code, notes, and snippets.



Last active Sep 19, 2015
What would you like to do?
Vagrant Bootstrapping for Ubuntu
#!/usr/bin/env bash
su - vagrant -c "/bin/bash /vagrant/"
#!/usr/bin/env bash
echo ">>> ubuntu root setup"
echo " update all packages"
sudo apt-get update -y
sudo apt-get upgrade -y
echo " install some packages too"
sudo apt-get install -y \
vim \
git \
openssh-client \
make \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
curl \
echo "<<< ubuntu root setup"
echo " install pyenv"
cd ~
rm -Rf ~/.pyenv
git clone ~/.pyenv
git clone ~/.pyenv/plugins/pyenv-virtualenvwrapper
source ~/.bashrc
$PYENVBIN install 2.7.8
$PYENVBIN global 2.7.8
$PYENVBIN versions
echo " install rvm with ruby"
gpg --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL | bash -s stable --ruby
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
echo "<<< ubuntu user setup"
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "ubuntu/trusty64" "public_network"
config.vm.synced_folder "../data", "/vagrant_data"
config.vm.provision :shell, path: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.