Skip to content

Instantly share code, notes, and snippets.

@sshyran
Forked from kevingo/shell.sh
Created January 17, 2021 14:28
Show Gist options
  • Save sshyran/822f8ebaaeaa143bb632d92cc3370270 to your computer and use it in GitHub Desktop.
Save sshyran/822f8ebaaeaa143bb632d92cc3370270 to your computer and use it in GitHub Desktop.
Install Go 1.6.2 in Ubuntu 14.04
#!/bin/sh
apt-get -qq update
apt-get install wget
#setup Go lang
cd ~
wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.6.2.linux-amd64.tar.gz
#set envvars
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/goworkspace
export PATH=$PATH:$GOPATH/bin
export PORT=80
#create go workspace
mkdir -p $GOPATH/src/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment