https://github.com/codeesura/linea-node
A simple bash script to deploy a Linea Besu (Basic) node.
https://github.com/codeesura/linea-node
bash-script linea node
Last synced: 7 months ago
JSON representation
A simple bash script to deploy a Linea Besu (Basic) node.
- Host: GitHub
- URL: https://github.com/codeesura/linea-node
- Owner: codeesura
- License: mit
- Created: 2025-08-31T08:54:25.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-08-31T09:06:34.000Z (7 months ago)
- Last Synced: 2025-08-31T11:13:04.354Z (7 months ago)
- Topics: bash-script, linea, node
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Linea Besu (Basic Node) - Quick Install Script
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).
---
## Prerequisites
- A server running a **Debian-based OS** (e.g., Ubuntu 20.04 / 22.04 or later).
- Root or `sudo` privileges.
---
## Installation
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.
```bash
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.
---
## Post-Installation Management
Your Linea node runs in the background inside a Docker container. All management commands should be run from the `~/linea-node` directory.
### Managing the Node
- **Check Logs**:
```bash
cd ~/linea-node && sudo docker compose logs -f
```
- **Stop the Node**:
```bash
cd ~/linea-node && sudo docker compose down
```
- **Start the Node (after stopping)**:
```bash
cd ~/linea-node && sudo docker compose up -d
```
### Docker Permissions
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.
---
## Uninstallation
To completely remove the node and all its data:
1. Stop the container and remove its data volume:
```bash
cd ~/linea-node && sudo docker compose down -v
```
3. Remove the installation directory:
```bash
cd ~ && rm -rf ~/linea-node
```