Hello Pi-hole Community,
I wanted to share a project I’ve been working on to help Raspberry Pi users running Pi-hole on Debian 12 (Bookworm) get the most out of their hardware.
The Pi-hole Ultra Script is a menu-driven utility designed to "slim down" the OS while ensuring the system remains rock-solid and stable. I built this because many "lite" scripts online are too aggressive and often break D-Bus or remove critical Python dependencies that Pi-hole or raspi-config rely on.
GitHub Repository:
https://github.com/waelisa/Raspberry-Pi-Pi-hole-Debian-Ultra-Script
Key Features:
-
Snapshot & Rollback: Before any changes are made, the script creates a snapshot of your
dpkgselections and critical/etcconfigurations. If anything goes wrong, you can revert to the previous state via the menu. -
Intelligent De-bloating: Removes Desktop components and unnecessary services using exact regex matching to avoid "collateral damage."
-
WiFi Awareness: It checks your active connection before disabling
wpa_supplicantto prevent headless users from being locked out. -
System Health Repairs: Includes dedicated functions to verify and fix D-Bus issues and ensure critical RPi firmware packages are intact.
-
Maintenance: Built-in options to schedule Gravity updates and monitor system health (CPU/RAM/Temp).
How to use it:
You can run the script with a single command:
Bash
wget -qO pihole-ultra.sh https://raw.githubusercontent.com/waelisa/Raspberry-Pi-Pi-hole-Debian-Ultra-Script/main/pihole-ultra.sh && chmod +x pihole-ultra.sh && sudo ./pihole-ultra.sh
Safety First:
I’ve implemented Pre-Flight Checks that verify disk space and memory before starting, as well as a Dry Run mode so you can see exactly what the script will do before it touches your system.
I would love to get your feedback or hear about any additional "protected packages" you think should be added to the safety list!
Best regards,
Wael Isa