Skip to content

Instantly share code, notes, and snippets.

@ejcx
Created June 19, 2015 20:36
Show Gist options
  • Save ejcx/81b687a41560f76c3bb0 to your computer and use it in GitHub Desktop.
Save ejcx/81b687a41560f76c3bb0 to your computer and use it in GitHub Desktop.
newbox.sh
#!/bin/bash
cd
echo "export PATH=\"/usr/local/go/bin/\":\$PATH
export GOPATH=\"/root/go\"" >> ~/.bashrc
curl https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz > go.1.4.2.tar.gz
tar -zxvf go.1.4.2.tar.gz
mv go /usr/local/
mkdir go
cd go
mkdir src bin pkg
cd src
bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment