×
Node Setup Guide
Follow these steps to set up your Berachain node:
1. Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
2. Install Beacond
wget https://github.com/berachain/beacon-kit/releases/download/v0.2.0-alpha.8/beacond-v0.2.0-alpha.8-linux-amd64.tar.gz
tar -xvf beacond-v0.2.0-alpha.8-linux-amd64.tar.gz
sudo mv beacond-v0.2.0-alpha.8-linux-amd64 /usr/local/bin/beacond
beacond version
3. Initialize Beacond
export MONIKER=YourMonikerName
beacond init $MONIKER --chain-id bartio-80086 --consensus-key-algo bls12_381
4. Configure Beacond
cd $HOME/.beacond/config/
wget https://raw.githubusercontent.com/berachain/beacon-kit/refs/heads/main/testing/networks/80084/genesis.json
wget https://raw.githubusercontent.com/berachain/beacon-kit/refs/heads/main/testing/networks/80084/kzg-trusted-setup.json
wget https://raw.githubusercontent.com/berachain/beacon-kit/refs/heads/main/testing/networks/80084/eth-genesis.json
5. Install Geth
cd /usr/local/bin/
wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.14.5-0dd173a7.tar.gz
tar -xvf geth-linux-amd64-1.14.5-0dd173a7.tar.gz
sudo mv geth-linux-amd64-1.14.5-0dd173a7/geth /usr/local/bin/
cd $HOME
6. Initialize Geth
geth init --state.scheme=hash $HOME/.beacond/config/eth-genesis.json
7. Create Service Files
Create a service file for Beacond:
sudo nano /etc/systemd/system/beacond.service
# Add the following content:
[Unit]
Description=Beacond Service
After=network.target
[Service]
User=root
ExecStart=/usr/local/bin/beacond start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
Create a service file for Geth:
sudo nano /etc/systemd/system/geth.service
# Add the following content:
[Unit]
Description=Geth Service
After=network.target
[Service]
User=root
ExecStart=/usr/local/bin/geth --datadir /root/.ethereum/data --authrpc.jwtsecret /root/.beacond/config/jwt.hex --http --http.api eth,net,engine,admin --ws --ws.api eth,net,engine,admin --syncmode=full --gcmode=archive --miner.gasprice=0 --http.addr 0.0.0.0 --http.port 8545
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
8. Enable and Start Services
sudo systemctl daemon-reload
sudo systemctl enable beacond.service
sudo systemctl enable geth.service
sudo systemctl start beacond.service
sudo systemctl start geth.service
9. Monitor Logs
To monitor Beacond logs:
sudo journalctl -u beacond.service -f
To monitor Geth logs:
sudo journalctl -u geth.service -f
Congratulations! You have now set up your Berachain node with Beacond (CL) and Geth (EL).