Skip to content

Instantly share code, notes, and snippets.

@tgerring
Created February 8, 2017 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgerring/50d9a5f01db32c252e4aa2dfd42a539d to your computer and use it in GitHub Desktop.
Save tgerring/50d9a5f01db32c252e4aa2dfd42a539d to your computer and use it in GitHub Desktop.
golang setup & geth installation ubuntu/debian
For YouTube video located at https://youtu.be/1VjcrPGXY2E
# SETUP GOLANG
GOVERSION="1.7.5"
[[ `uname -m` = "x86_64" ]] && GOARCH="amd64" || GOARCH="386"
wget https://storage.googleapis.com/golang/go$GOVERSION.linux-$GOARCH.tar.gz
sudo rm -rf /usr/local/go/ && sudo tar -C /usr/local -xzf go$GOVERSION*.tar.gz
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.bashrc
source ~/.bashrc && go version
# SETUP GETH
mkdir -p $GOPATH/bin
git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum && make
cp build/bin/geth $GOPATH/bin/geth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment