I started installing geth on a Raspberry Pi 3, and it sucked, So I figured I'd document it. Afterwards, I will be creating a private ethereum network for testing.
apt-get install git screen build-essential
sudo apt remove golang
sudo apt-get autoremove
wget https://dl.google.com/go/go1.9.7.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.9.7.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
original source for SHA256 sum: https://golang.org/dl/
go version
adduser geth
screen -S geth-user
sudo su geth
For Go to work properly, you need to set the following two environment variables:
echo "export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin" >> ~/.bashrc
Read the environment variables into current session:
source ~/.bashrc
go get -d github.com/ethereum/go-ethereum
The above command will checkout the default version of Go Ethereum into your local GOPATH work space, but it will not build any executables for you. To do that you can either build one specifically:
go install github.com/ethereum/go-ethereum/cmd/geth
I chose ~/genesis.json, you can choose whatever you want.
https://github.com/ethereum/go-ethereum/wiki/Private-network