Last active
February 25, 2018 10:38
-
-
Save kavehmz/3d7c61d7e5faeb9c6d1f5097e9e79a75 to your computer and use it in GitHub Desktop.
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
sudo mount /dev/xvdf /mnt | |
sudo chown admin /mnt -R | |
if [ ! -d /mnt/go ] | |
then | |
cd /mnt | |
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz | |
tar --gzip -xf go1.10.linux-amd64.tar.gz | |
mkdir -p gopath | |
echo 'export GOPATH=/mnt/gopath' >> ~/.bashrc | |
echo 'export PATH=$PATH:/mnt/go/bin/:$GOPATH/bin' >> ~/.bashrc | |
source ~/.bashrc | |
sudo apt-get update | |
sudo apt-get install git | |
go get -u github.com/golang/dep/cmd/dep | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment