Skip to content

Instantly share code, notes, and snippets.

@wpsmith wpsmith/installgo-aws.sh
Last active Sep 28, 2019

Embed
What would you like to do?
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
sudo yum update -y
sudo yum install git curl make bison gcc glibc-devel -y
# Install GVM
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source /home/ec2-user/.gvm/scripts/gvm
# Add to ~/.bash_profile
echo 'source /home/ec2-user/.gvm/scripts/gvm' >>~/.bash_profile
# Install GO & set to 1.12.9
gvm install go1.13 -B
gvm install go1.12.9 -B
gvm use go1.12.9 --default
# Fix git
git config --global url."git@github.com:".insteadOf "https://github.com/"
# Add some basics
echo 'source /home/ec2-user/go/src/github.com/wpsmith' >>~/.bash_profile
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.