Todo list
Automated System Update and Cleanup Script
Updates the system, removes unused packages, and cleans up temporary files. Features: Logging, email notifications, and conditional execution. Commands: apt, dpkg, journalctl, mail.Log File Monitoring and Alerting
Monitors log files (e.g., /var/log/syslog) for specific patterns (e.g., “error”). Sends alerts (email or desktop notifications) if patterns are detected. Features: Uses tail -f, grep, and mail for real-time monitoring.Automated User Management Script
Creates, deletes, or modifies users and groups. Supports bulk operations via a CSV file. Features: Integration with useradd, groupadd, and passwd.Network Diagnostics and Troubleshooting Tool
Checks internet connectivity, DNS resolution, and measures latency to common servers. Generates a detailed report in a log file. Commands: ping, traceroute, dig, netstat.Automated Backup and Restore Script
Backs up directories to a remote server or external drive. Features: Compression with tar or rsync, incremental backups, and scheduling with cron. Commands: tar, rsync, scp, and cron.Firewall Configuration Script
Configures ufw (Uncomplicated Firewall) or iptables rules. Provides options to block IP ranges, allow services, and view current rules. Features: Validation of rules before application.System Performance Analyzer
Gathers data on CPU, memory, disk I/O, and network throughput over a defined period. Generates a performance report with visual charts using gnuplot. Commands: top, iostat, sar, vnstat.Service Uptime Monitor
Monitors critical services (e.g., nginx, mysql) and restarts them if they fail. Sends notifications about service status. Commands: systemctl, ps, mail.Disk Usage Analyzer
Analyzes disk usage and identifies large files or directories consuming space. Features: Recursive search with sorting, email notifications, and threshold alerts. Commands: du, sort, awk, find.Custom Package Installation Script
Installs and configures a set of packages and services for a specific purpose (e.g., web server, database server). Includes custom configurations for packages like nginx, mysql, or docker. Features: Idempotency (runs without re-applying unchanged configurations).Set up log aggregator service
Server setup
- Create swap file
- Change hostname
- Create user
- Add to sudoers
- Set password
- Set umask
- Create bashrc
- Prompt
- alias
- Set VIM as default editor
- Setup SSH
- Keys
- Add to whichever servers
- No root login
- Harden SSH
- Configure backup script