Before running, make both scripts executable:
chmod +x boostLinuxMint.sh safe_cleaner.shThis repository contains two Bash scripts designed to optimize and clean Linux Mint systems:
Purpose:
- Automates system optimization tasks for Linux Mint.
Features:
- Updates and upgrades the system packages.
- Installs essential optimization tools: preload, zram-config, stacer, htop.
- Optimizes system swappiness for better memory management.
- Cleans up unnecessary packages and cache.
- Sets up a weekly automatic cleanup via cron.
- Enables zRAM and periodic SSD TRIM for improved performance.
- Disables unnecessary services (Bluetooth, Apache, MySQL, MariaDB).
- Provides a reminder to manually review startup applications.
Usage:
sudo bash boostLinuxMint.shRun as root for full effect. Reboot after running to apply all changes.
Purpose:
- Safely cleans system and user caches, temporary files, and logs for Linux Mint and similar systems.
Features:
- Cleans APT cache and autoclean.
- Removes files older than 3 days from
/tmpand/var/tmp. - Cleans user-level thumbnail and browser caches.
- Removes systemd journal logs older than 7 days (if journalctl is available).
- Deletes broken symlinks in the home directory.
- Deletes empty files from the Downloads folder.
- Removes unused Flatpak versions (if Flatpak is installed).
- Provides OS and hostname info in output.
Usage:
sudo bash safe_cleaner.shRun as root for full effect. Review output for details on actions performed.
- These scripts are intended for Linux Mint systems.
- Always review scripts before running, especially on production systems.
- Run both with administrative privileges (sudo).
MIT
Framex