This script provides a one-line command to fully automate the installation of a basic Linea Besu follower node.
It handles all necessary steps, including installing dependencies (like Docker), configuring permissions, automatically setting the public IP, and starting the node as a background service. This script is designed for Debian-based Linux systems (e.g., Ubuntu).
- A server running a Debian-based OS (e.g., Ubuntu 20.04 / 22.04 or later).
- Root or
sudo
privileges.
Run the single command below in your terminal to start the installation.
Important: Replace the URL with the raw link to your own install-basic.sh
script hosted on GitHub.
curl -sSL https://raw.githubusercontent.com/codeesura/linea-node/main/install-basic.sh | bash
The script will handle the entire setup process, and your node will be running upon completion.
Your Linea node runs in the background inside a Docker container. All management commands should be run from the ~/linea-node
directory.
-
Check Logs:
cd ~/linea-node && sudo docker compose logs -f
-
Stop the Node:
cd ~/linea-node && sudo docker compose down
-
Start the Node (after stopping):
cd ~/linea-node && sudo docker compose up -d
The script adds your user to the docker
group to allow running Docker commands without sudo
.
Important: For this change to take effect, you must log out of the server and log back in. After re-logging in, you can omit sudo
from the commands above.
To completely remove the node and all its data:
-
Stop the container and remove its data volume:
cd ~/linea-node && sudo docker compose down -v
-
Remove the installation directory:
cd ~ && rm -rf ~/linea-node