Production-tested automation scripts for server administration, security hardening, and maintenance.
- SSH Login Notifications (
ssh-notify.sh) - Instant Discord alerts on every SSH access - Security Monitor (
security-monitor.sh) - Automated security checks and threat detection - ModSecurity Updates (
update-modsec-crs.sh) - Keep OWASP CRS rules up to date - OWASP Update Checker (
check-owasp-updates.sh) - Monitor for new security rule releases - CrowdSec Setup (
crowdsec-setup.sh) - Install CrowdSec + firewall bouncer, enable services, and run post-install checks
- MySQL Monthly Optimizer (
mysql-maint-monthly.sh) - Automated OPTIMIZE TABLE on all databases for better performance
- System Update Checker (
check-updates.sh) - Monitor available system updates
- LAMP Stack Administrators - Tools specifically designed for Linux/Apache/MySQL/PHP-laravel environments
- Small-to-Medium Server Management - Lightweight scripts that don't require complex orchestration
- Security-Conscious Sysadmins - Stay on top of security updates and access monitoring
- Automated Maintenance - Set it and forget it with cron jobs
- Clone the repository
git clone https://github.com/eugeniogiusti/linux-server-toolkit
cd linux-server-toolkit- Choose your scripts
# Example: Install SSH notifications
sudo cp ssh-notify.sh /usr/local/bin/
sudo chmod +x /usr/local/bin/ssh-notify.sh-
Configure
- Edit scripts to add your Discord webhook URLs
- Set up cron jobs for automated execution
-
Test
# Most scripts can be run manually for testing
sudo /usr/local/bin/ssh-notify.sh- Ubuntu/Debian-based systems (tested on Ubuntu 20.04+)
- Bash 4.0+
- MySQL/MariaDB (for database scripts)
- curl (for Discord notifications)
- Discord webhook (optional, for notifications)
⭐ If these scripts save you time, consider giving the repo a star!



