Install and configure an Ethereum Validator (mainnet/testnet) in 1 click, as opposed to hours normally spent on manual configuration.
Now updated to include multiple clients (geth, besu, nethermind, teku, nimbus, lighthouse, prysm)
Python script that simplifies and automates the installation and configuration of the Ethereum validator node.
It's based on Somer Esat's - Lighthouse/Geth guide and has been expanded to include multple execution and consensus engines with a single Python script to automate the setup process.
Important Note: This script does not generate any security-related items such as validator keystore, deposit data, or mnemonic. It simply prepares the node for staking by installing the binaries, creating users, writing service files, etc.
After running the script, Geth and Ligthouse (or whichever clients you choose) will be installed and fully configured to begin syncing.
If you want to run a full validator, you'll also need to import an existing keystore or generate new keystores to run the validator.
You can follow Somer's guide to safely generate keys offline and import the keystores.
Key Generation Resources: Waygu Key Generator, Ethereum Deposit CLI, and Ubuntu - Key Generation Guide
The validator_install.py
script performs the following tasks:
- Choose Ethereum network (mainnet, goerli, sepolia).
- Choose Execution Client (Nethermind, Besu, Geth)
- Choose Consensus Client (Nimbus, Teku, Lighthouse, Prysm)
- Lets you set an Ethereum address for validator tips (optional).
- Lets you set Checkpoint Sync URL (optional).
- Installs and configures Universal Firewall (ufw).
- Creates necessary users, directories, and files.
- Downloads and installs the latest client binaries.
- Writes and saves service files for Execution, Beacon, and Validator.
- Displays a summary of the installation.
To run the script, use these commands:
sudo apt-get update
sudo apt-get install git
pip install requests
git clone https://github.com/accidental-green/validator-install.git
python3 validator-install/validator_install_multi.py
After successful installation, you can start the services:
Note: Change name of client (geth, besu, nethermind, teku, nimbus, lighthousebeacon, lighthousevalidator, prysmbeacon, prysmvalidator)
sudo systemctl start geth
sudo systemctl start lighthousebeacon
sudo systemctl start lighthousevalidator
Open 3 new terminals (ctrl+alt+t
) and view the journals:
sudo journalctl -fu geth.service
sudo journalctl -fu lighthousebeacon.service
sudo journalctl -fu lighthousevalidator.service
The services should start, find peers, and eventually begin syncing. If you notice any errors (red/yellow), visit EthStaker Discord for help.
You can stop the services by changing the "start" commands to "stop".
That's it, happpy staking! Feel free to contribute to the project if you'd like to add other clients!
Disclaimer: This script is for testing purposes only. Do not use on mainnet Validators.