Installation
Create User (optional)
sudo adduser erbie
sudo adduser erbie sudo
su - erbie
Create Directory
mkdir -p .erbie/erbie
Update Package
sudo apt update && sudo apt list --upgradable && sudo apt upgrade -y
Install Library
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git make ncdu net-tools -y
Install Go (ver.1.20.5)
sudo rm -rf /usr/local/go && \
curl -Ls https://go.dev/dl/go1.20.5.src.tar.gz | sudo tar -xzf - -C /usr/local && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version
Clone Binary
cd $HOME
git clone https://github.com/erbieio/erbie
cd erbie
git checkout v0.14.4
Build Binary
go build -o erbie cmd/erbie/main.go
sudo mv erbie /usr/local/bin
Import key
bash ./addkey.sh
Check Your Private Key(optional)
NODE_KEY=$(cat $HOME/.erbie/erbie/nodekey)
echo -e "Your privatekey: \e[32m$NODE_KEY\e[39m"
Create Service
Replace --identity dnsarz with your name or moniker
sudo tee /etc/systemd/system/erbied.service > /dev/null <<EOF
[Unit]
Description=erbie
After=online.target
[Service]
Type=simple
User=$USER
WorkingDirectory=$HOME
ExecStart= $(which erbie) --datadir /home/erbie/.erbie --devnet --identity dnsarz --mine --miner.threads 1 --rpc --rpccorsdomain "*" --rpcvhosts "*" --http --rpcaddr 127.0.0.1 --rpcport 8545 --port 30303 --maxpeers 50 --syncmode=full
Restart=on-failure
RestartSec=5
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
Register And Start Service
sudo systemctl daemon-reload
sudo systemctl enable erbied
sudo systemctl start erbied && sudo journalctl -fu erbied -o cat