Last active
September 28, 2019 15:55
-
-
Save wpsmith/86d3a384badf30def722d45c25d9e913 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
| 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."[email protected]:".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