Welcome to the Linux Server Arsenal Collection repository! This repository contains a variety of scripts designed to simplify the management and configuration of Linux servers (Ubuntu, CentOS/RHEL, and Arch). Each script addresses specific tasks, ranging from network configuration to system backups, providing automated solutions for common administrative activities.
These scripts are created and maintained by KeepItTechie. They are designed to be user-friendly and are thoroughly documented to help both beginners and advanced users manage their Linux servers more efficiently.
The linservarsenal.sh
script provides an interactive terminal menu for managing the various scripts in this repository. Instead of running each script manually, you can launch the main script, which will display a menu allowing you to select and run the desired configuration or management script.
- Static IP Configuration: Easily configure a static IP address using Netplan.
- Firewall Setup: Configure UFW (Uncomplicated Firewall) with predefined rules.
- User Management: Scripts for adding, deleting, and managing users and groups.
- System Monitoring: Tools for setting up system monitoring and alerts.
- Package Management: Automate the installation and update of essential packages.
- Service Management: Start, stop, and manage system services with ease.
- Log Management: Organize and clean system logs to maintain optimal performance.
- Auto Database: Install MySQL, MariaDB, or PostgreSQL based on user selection.
- Auto Media: Install and configure Plex or Jellyfin media server.
- Auto Container: Install Docker, Docker Compose, Podman, and LXC/LXD based on user selection.
- Auto DNS: Set up a DNS caching server using
dnsmasq
or a full DNS server usingbind9
. - Auto DHCP: Install and configure a DHCP server using
isc-dhcp-server
.
- Prometheus and Grafana: Install and configure Prometheus and Grafana for system and service monitoring.
- BorgGuard Backup Script: Automate backups with BorgBackup for secure and efficient data management.
- Auto Redis: Install and configure Redis.
- Auto Elasticsearch: Install and configure Elasticsearch.
- Auto RabbitMQ: Install and configure RabbitMQ.
- Nginx Reverse Proxy: Install and configure Nginx as a reverse proxy.
To get started, clone this repository to your local machine:
git clone https://github.com/keepittechie/Linux-Server-Arsenal
cd Linux-Server-Arsenal
The linservarsenal.sh
script provides a menu for easy script selection and execution. Make the script executable and run it as follows:
chmod +x linservarsenal.sh
sudo ./linservarsenal.sh
Once you run the script, you'll be presented with an interactive menu that lets you select the script you want to execute.
You can also run individual scripts manually. Make all the scripts executable first:
chmod +x assets/*.sh
Run a specific script with the following command:
sudo ./assets/script-name.sh
For example, to install Apache Kafka, you can run:
sudo ./assets/apache-kafka.sh
We welcome contributions from the community! If you have a script that you believe would be a valuable addition to this collection, please submit a pull request. Ensure that your script is well-documented and follows the existing structure and conventions.
If you encounter any issues or have questions about the scripts, feel free to open an issue in this repository. You can also reach out to KeepItTechie through the YouTube channel or the blog KeepItTechie Docs.
This repository is licensed under the MIT License. See the LICENSE file for more details.
Special thanks to the open-source community and all contributors who have helped in developing and improving these scripts.
Keep learning and happy server management!