Installation
Besu client installation guide.
Create Aliases
These aliases make interacting with Besu on the command line easier.
echo "alias besu-log='journalctl -f -u besu.service -o cat | ccze -A'" >> ~/.bashrc
echo "alias besu-start='sudo systemctl start besu.service'" >> ~/.bashrc
echo "alias besu-stop='sudo systemctl stop besu.service'" >> ~/.bashrc
echo "alias besu-restart='sudo systemctl restart besu.service'" >> ~/.bashrc
echo "alias besu-status='sudo systemctl status besu.service'" >> ~/.bashrc
echo "alias besu-version='sudo /usr/local/bin/besu/bin/besu --version'" >> ~/.bashrc
echo "alias besu-config='sudo vim /etc/systemd/system/besu.service'" >> ~/.bashrc
echo "alias besu-enable='sudo systemctl enable besu.service'" >> ~/.bashrc
echo "alias besu-disable='sudo systemctl disable besu.service'" >> ~/.bashrc
echo "alias besu-delete-data='sudo rm -rf /var/lib/besu; sudo mkdir -p /var/lib/besu; sudo chown -R besu:besu /var/lib/besu'" >> ~/.bashrc
echo "alias besu-update='~/besu-update.sh'" >> ~/.bashrc
source ~/.bashrcFirewall Configuration
Configure the firewall using generic Execution client UFW settings:Execution Clients
Dependency - Install Java
Besu requires version 17+ of Java: https://besu.hyperledger.org/public-networks/get-started/install/binary-distribution#prerequisites-1
Besu - Install
Build the latest version of Besu.
Move the compiled Besu build to a new directory.
Check version.
Create Besu user and directory.
JWT Secret is now shared between all clients on the same machine: Create JWT Secret
Besu - Configure Service
Set permissions.
Configure Execution Service Environment Variables.
Configure Besu service using the command line flags.
Start the service and check it's working as expected.
Besu - Command Aliases
Besu - Update Scripts
Create Besu update script.
Make the script executable.
Last updated