One-page interactive guide to install Lodestar client and configurate it for running on supported chain.
Disclaimer
This guide is for informational purposes only. The author nor website owner does not guarantee accuracy of the information in this guide and is not responsible for any damages or losses incurred by following the guide. See more.
Install client
Install NodeJS through the NVM
Node Version Manager (NVM) is a piece of shell code that allows you to easily install and maintain different versions of Node.js and its associated packages.
NVM will be installed with permissions of a user that processing that request (you). NVM is installed to user account, specifically to "~/.bashrc" directory.
source/reload nvm for an option to use it
source ~/.bashrc
Check available Node.js versions
nvm list-remote
Selected version: v
Install requested Node.js version
nvm install v22.16.0
Node.js is installed with permissions of a user that processing that request (you)
Each service on the server needs a custom port for communication. Through ports, consensus client communicates with
other peers in the network as well as other services running on the server, such as validator clients. There is an
IPv4 and IPv6 variant, depending on the ISP support / preference. Each protocol version needs custom port. If you
are not sure what to select, continue with default IPv4 port.
Configurate public IPv4 port for P2P communication with other peers
:
Verify availability of selected port 9000
ss -tuln | grep ':9000'
If it returns empty response, the port 9000 is free and can be used.
Enable traffic on the port through UFW
$ sudo ufw allow 9000
Disable IPv6 traffic on the port
List allowed ports
sudo ufw status numbered
Find order number for V6, see 9000 (V6) and
remove it with the following line
sudo ufw delete <Number>
QUIC IPv4 port
:
Verify availability of selected port 9001
ss -tuln | grep ':9001'
If it returns empty response, the port 9001 is free and can be used.
Beacon API port for internal communication
:
Verify availability of selected port 5052
ss -tuln | grep ':5052'
If it returns empty response, the port 5052 is free and can be used.
Configurate public IPv6 port for P2P communication with other peers
:
Verify availability of selected port 9090
ss -tuln | grep ':9090'
If it returns empty response, the port 9090 is free and can be used.
Enable traffic on the port through UFW
$ sudo ufw allow 9090
Disable IPv6 traffic on the port
List allowed ports
sudo ufw status numbered
Find order number for V6, see 9090 and
remove it with the following line
sudo ufw delete <Number>
QUIC IPv6 port
:
Verify availability of selected port 9091
ss -tuln | grep ':9091'
If it returns empty response, the port 9091 is free and can be used.
Create configuration file for the Lodestar beacon service
Note: You can uncomment checkpoint-sync-url for a quick synchronization from a checpoint. After enabling it, verify, that you are on on the expected chain, see https://checkpoint.gnosischain.com/ → Get started → Lodestar
Press CTRL + X then Y then ENTER to save and exit the config file.
Reload daemon
sudo systemctl daemon-reload
Run the service
sudo systemctl start lodestarbeacon
Monitor the running lodestar Beacon service
systemctl status lodestarbeacon
journalctl -fu lodestarbeacon
Enable auto start on server statup
sudo systemctl enable lodestarbeacon
Open Delayed Start shell
sudo nano /usr/local/bin/delayed-start.sh
Configurate service start inside it
systemctl start lodestarbeacon.service
Be sure, delayed-start.service service controlling delayed-start.sh is enabled for auto start with system startup