Operations 5 min read

Simplify Multi‑Server Linux Management with a Ready‑Made Batch Script

This article introduces a ready‑to‑use Linux batch‑operation script that enables non‑expert administrators to update, configure, and manage multiple Ubuntu 22.04 servers simultaneously—covering functions such as updating the script, creating SSL certificates, generating SSH keys, bulk password changes, and deploying or removing ALEO services—while also offering a free, comprehensive Linux command and shell‑script tutorial.

Linux Cloud Computing Practice
Linux Cloud Computing Practice
Linux Cloud Computing Practice
Simplify Multi‑Server Linux Management with a Ready‑Made Batch Script

This simple operations script allows non‑professional administrators to batch‑operate multiple Linux devices on Ubuntu 22.04 standard server edition.

Current Supported Functions

Update the script

Create self‑signed SSL certificates (cert.key and cert.pem)

Generate SSH RSA keys

Batch update server public keys

Batch modify server passwords

Batch execute custom commands

Batch install ALEO service

Batch uninstall ALEO service

Batch restart ALEO service

Batch stop ALEO service

Batch configure timed ALEO restart tasks (every 8 hours)

Batch delete timed ALEO restart tasks

Usage Notes

The script must be run with a root account.

When batch‑operating devices via SSH, rename the key file to id_rsa.server and place it in the same directory as tools.sh.

When using CSV files, remove the .tpl suffix.

server_list_ip.csv Configuration Rules

Format: ip,ssh_port (e.g., 192.168.1.2,22)

server_list_pwd.csv Configuration Rules

Format: ip,ssh_port,new_password (e.g., 192.168.1.2,22,new_password)

server_list_aleo.csv Configuration Rules

Format:

ip,ssh_port,download_root_url,pool_name,pool_account,worker_name

(e.g.,

192.168.1.2,22,http://172.16.1.2,apool,apool_account_name,apool_worker_name

)

The download root URL points to the HTTP server location of the program, and the server program name must follow the pattern aleo-miner-<em>pool_name</em> (e.g., aleo-miner-apool).

Script Usage Instructions

# Start script
./tools

Updating the script refers to updating the tools.sh file. By default the script is hosted on GitHub; URLs and updates use the GitHub address. To host it yourself, modify the SHELL_BASE_URL value in the .env file.

Project repository: https://github.com/bitxx/shell-batch-tools

A free, comprehensive Linux command and Shell script tutorial is also available for learners and operations professionals.

operationsserver managementbatch operations
Linux Cloud Computing Practice
Written by

Linux Cloud Computing Practice

Welcome to Linux Cloud Computing Practice. We offer high-quality articles on Linux, cloud computing, DevOps, networking and related topics. Dive in and start your Linux cloud computing journey!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.