Created
June 19, 2015 20:36
-
-
Save ejcx/81b687a41560f76c3bb0 to your computer and use it in GitHub Desktop.
newbox.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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