Skip to content

Instantly share code, notes, and snippets.

@prettymuchbryce
Created September 26, 2015 20:14
Show Gist options
  • Save prettymuchbryce/f0e13dc7ad98a90ee02c to your computer and use it in GitHub Desktop.
Save prettymuchbryce/f0e13dc7ad98a90ee02c to your computer and use it in GitHub Desktop.
Just a simple script to bootstrap an ubuntu VM for Go
#bin/bash
sudo apt-get update
sudo apt-get -y install git vim binutils bison gcc make
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
gvm install go1.4 #bootstrap version
gvm use go1.4
gvm install go1.5.1
gvm use go1.5.1
mkdir ~/projects
echo 'export GOPATH="/home/ubuntu/projects"' >> ~/.bashrc
source "$HOME/.bashrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment