Skip to content

Alkimik9000/linux-mint-maintenance-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

🍃 minty-maintenance

Bash Linux Mint Ubuntu Base Contribute Made with ❤️

A Bash script that keeps my Linux Mint 22 setup updated, tidy, and healthy - and writes a friendly, plain‑English report every time it runs. It’s practical, transparent, and a little fun.

Why I built this

  • Peace of mind: I wanted updates that explain themselves.
  • Trustworthy automation: Each chapter checks first, narrates actions, and errs on the side of safety.
  • Time-saver: One command, a full system pass, and a clean summary at the end.

What it solves for me

  • Predictability: I can dry‑run to preview actions and impact.
  • Safety: The most recent Timeshift snapshot is annotated as the last one before maintenance begins.
  • Clarity: A single TXT report tells me what changed and how much space moved.
  • Space savings: Reclaims significant disk space, like the 27GB freed in one run, keeping my system lean and efficient.

What I learned (and care about)

  • Build automation that I personally need.
  • Safety nets (snapshots, checks, gates) build confidence.
  • Small tools, big leverage: clear UX makes infra feel effortless.

Key features

  • Safety-first flow where every chapter checks state and handles errors gracefully.
  • Timeshift annotation: marks the latest snapshot as the pre‑maintenance checkpoint.
  • Dry‑run mode to preview changes and space impact before committing.
  • Space tracking per step and overall, with a final summary.

Table of Contents (Chapters)

  1. Create a Safety Checkpoint (Timeshift)
  2. Updating Command‑Line Tools (Homebrew)
  3. Updating Your Core System Software (APT)
  4. Checking for Package Issues
  5. Updating Desktop Applications (Flatpak)
  6. Updating Snap Applications
  7. Updating Python Tools
  8. Checking Standalone Applications (AppImage)
  9. Checking Device Firmware Updates
  10. Cleaning Up System Log Files
  11. Removing Old System Kernels
  12. Checking Hard Drive Health
  13. Updating Desktop Extensions (GNOME)
  14. Cleaning Up Docker Containers
  15. Refreshing File Search Database
  16. Deep Cleaning Temporary Files (BleachBit)
  17. Optimizing SSD Performance (fstrim)
  18. Checking Overall System Health
  19. Checking Graphics Card (NVIDIA)
  20. Verifying Automatic Security Updates
  21. Final Summary

Every chapter runs with safety in mind and logs clearly to the TXT report.


Usage

# Full maintenance run
bash minty_maintanance.sh

# Dry‑run (no changes) — preview what would happen and current state
bash minty_maintanance.sh dry-run

Example: Chapter 10 looks like this in the report

Short context, action, result — with space impact where relevant:

------------------------------------------------------------------------
Chapter 10: Cleaning Up System Log Files
------------------------------------------------------------------------
📚 Your system keeps detailed logs of everything it does. Over time,
these can take up quite a bit of space.

🔧 Now I'm going to: clean up old system logs (keep 2 weeks)
Current log storage: 470.6M
   ✅ Done! Everything completed successfully.
Log storage after cleanup: 362.4M

Final Summary at the end

------------------------------------------------------------
Chapter 21 — Maintenance Complete!
------------------------------------------------------------


🎉 All done! Here's what happened today:


Task                           | Status               | Notes                         
------------------------------ | -------------------- | ------------------------------
Safety Checkpoint              | ⚠️ Needs Attention   | No data                       
Homebrew Tools                 | ✅ Success           | Not installed (optional)      
System Updates                 | ⚠️ Needs Attention   | Updated successfully          
Package Cleanup                | ✅ Success           | Cleaned 22 orphans            
Flatpak Apps                   | ✅ Success           | 9 apps updated                
Snap Apps                      | ✅ Success           | Updated & cleaned old versions
Python Tools                   | ✅ Success           | Pipx apps checked             
AppImage Check                 | ✅ Success           | Found 6 AppImages, 8 /opt apps
Firmware Updates               | ⚠️ Needs Attention   | Updates installed - restart needed
Log Cleanup                    | ✅ Success           | Cleaned to 362.4M             
Kernel Cleanup                 | ⚠️ Needs Attention   | Cleaned old kernels           
Disk Health                    | ✅ Success           | All drives healthy            
GNOME Extensions               | ⚠️ Needs Attention   | 8 extensions updated          
Docker Cleanup                 | ✅ Success           | No data                       
Search Database                | ⚠️ Needs Attention   | Installed and initialized     
Deep Clean                     | ✅ Success           | Deep cleaned                  
SSD Optimization               | ⚠️ Needs Attention   | SSDs optimized                
System Health                  | ⚠️ Needs Attention   | Some service issues           
Graphics Card                  | ✅ Success           | GPU healthy, driver 550.163.01
Auto Updates                   | ⚠️ Needs Attention   | Not installed                 

📊 Space Summary:
   🎉 Freed up approximately 27648MB!
   Available space: 529G
Script encountered an error but continuing to summary...

📋 Overall Assessment:
   ⚠️ Several items need your attention.
   Review the orange items above for details.

💾 This report has been saved

About

Maintenance tool for Linux Mint (Bash + Python): updates, cleanup, health checks, and narrated reports

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages