Install Geth(Go ethereum) === [TOC] ###### tags: `Master's degree` `blockchain` ## Raspberry pi 4 ### Requirment * Rpi 4 GB * 32G SD Card ### Steps * Step 1 : install Golang * Step 1.1 Get Go and install from sources: ```shell= $ cd /tmp $ wget https://storage.googleapis.com/golang/go1.10.1.linux-armv6l.tar.gz $ sudo tar -C /usr/local -xzf go1.10.1.linux-armv6l.tar.gz ``` * Step 1.2 Add /usr/local/go/bin to the PATH environment variable: ```shell= $ sudo vi /etc/profile ``` Add at the end of the file: ```shell= # Golang export GOROOT=/usr/local/go export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin ``` * Step 1.3 reboot and test ```shell= $ sudo reboot $ go version go version go1.10.1 linux/arm ``` * Step 2: install Geth * Step 2.1 Get Geth and install from sources: ```shell= $ cd /tmp $ wget https://gethstore.blob.core.windows.net/builds/geth-linux-arm7-1.9.1-b7b2f60f.tar.gz $ tar -zxvf geth-linux-arm7-1.9.1-b7b2f60f.tar.gz ``` * Step 2.2 Add the program into /usr/local/bin: ```shell= $ cd geth-linux-arm7-1.9.1-b7b2f60f/ $ sudo mv geth /usr/local/bin/ ``` * Step 2.3 reboot and test ```shell= $ sudo reboot $ geth version Geth Version: 1.9.1-stable […] ``` ### [Install Geth on Rpi 4 Reference](https://raphaelpralat.medium.com/start-an-ethereum-node-on-a-raspberry-pi-4-with-geth-ba13d9f57ef8) ## Linux ### Steps ```shell= $ sudo apt-get install software-properties-common $ sudo add-apt-repository -y ppa:ethereum/ethereum $ sudo apt-get update $ sudo apt-get install ethereum $ geth version Geth Version: 1.10.20-stable Git Commit: 8f2416a89a3def6ec2c749d5afafbf2c9a18e3c8 Architecture: amd64 Go Version: go1.18.1 Operating System: linux GOPATH= GOROOT=go ``` ### [Install geth on linux reference](https://docs.nethereum.com/en/latest/ethereum-and-clients/geth/)