NodeSetup / BatchSetup

NodeSetup / Batchsetup

With this script you can easily set up 1 or more nodes at the same time. The script installs docker if necessary.

Tested on two machines under Ubuntu 22 and 24.

Instructions:

  1. Download the Script:

Open a terminal and use wget or curl to download the script. If you don’t have wget installed, you might need to install it or use curl instead.

  • Using wget:

bash

wget https://klever-radar.de/software/nodes/create_nodes.sh
  • Using curl:

bash

curl -O https://klever-radar.de/software/nodes/create_nodes.sh

This will save the script in your current directory.

2. Make the Script Executable:

After downloading, you need to change the script’s permissions to allow it to be executed:

bash

chmod +x create_nodes.sh

3. Run the Script:

Since the script might require sudo for certain operations like Docker management, you should run it with elevated privileges:

bash

sudo ./create_nodes.sh

If you’re not in the directory where you downloaded the script, you’ll need to navigate there first or provide the full path:

bash

sudo /path/to/downloaded/script/create_nodes.sh

Additional Notes:

  • Backup: Before running scripts that modify system settings or files, make sure you have backups of critical data.

  • Review: It’s always a good practice to review or at least skim through the content of any script before running it, especially with sudo. You can view the script contents with:

bash

cat create_nodes.sh
  • Environment: Ensure Docker is installed or the script will install it for you. Also, check if you have necessary tools like curl, tar, and sudo available.

  • Security: Be cautious with scripts from the internet. This script requires sudo privileges for operations like Docker container management, so only proceed if you trust the source.

6 Likes