Skip to content

Instantly share code, notes, and snippets.

@riandyrn
Last active May 3, 2018 22:46
Show Gist options
  • Save riandyrn/72a1dfec3001b86c88c567663b42d08e to your computer and use it in GitHub Desktop.
Save riandyrn/72a1dfec3001b86c88c567663b42d08e to your computer and use it in GitHub Desktop.
Initiate Fresh Installation of AMI Linux with Golang
#!/bin/bash
cd /usr/local
wget https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
tar -xzf go1.10.linux-amd64.tar.gz
cd /etc/profile.d
echo 'export PATH=$PATH:/usr/local/go/bin' | tee -a /etc/profile.d/go.sh
echo 'export GOPATH=$HOME/go' | tee -a /etc/profile.d/go.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment