Skip to content

Commit 080f534

Browse files
committed
docs(readme): Befehle in EN/DE auf sudo vereinheitlicht; Docker-Hinweis ergänzt
1 parent f85a7d3 commit 080f534

File tree

3 files changed

+45
-41
lines changed

3 files changed

+45
-41
lines changed

README.de.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ curl -sSL https://install.pi-hole.net | bash
4949
**Nach der Installation (v6.1+ spezifisch):**
5050

5151
- Admin-UI: `http://<IP>/admin/` (eingebauter Webserver; kein lighttpd nötig; prüfe Port 80/8080 bei 403-Fehlern).
52-
- Passwort ändern: `pihole -a -p`.
52+
- Passwort ändern: `sudo pihole -a -p`.
5353
- Test: `dig pi.hole @<PIHOLE-IP>`.
5454
- **Neu: v6 DB-Migration & toml prüfen**:
5555

5656
```bash
57-
pihole -r # Reparatur, falls FTL fehlschlägt oder pihole.toml fehlt
57+
sudo pihole -r # Reparatur, falls FTL fehlschlägt oder pihole.toml fehlt
5858
sudo systemctl status pihole-FTL # Sicherstellen, dass CPU/DNS ok sind
5959
```
6060

@@ -64,9 +64,9 @@ sudo systemctl status pihole-FTL # Sicherstellen, dass CPU/DNS ok sind
6464

6565
```bash
6666
sudo apt update && sudo apt upgrade -y
67-
pihole -up # Handhabt v6.1+ Upgrades; auf DNS-Ausfälle achten
68-
pihole -g
69-
pihole restartdns
67+
sudo pihole -up # Handhabt v6.1+ Upgrades; auf DNS-Ausfälle achten
68+
sudo pihole -g
69+
sudo pihole restartdns
7070
```
7171

7272
**v6-Tipp**: Vor Updates Auto-Backups aktivieren, um DB/toml-Korruption zu vermeiden:
@@ -87,19 +87,19 @@ sudo systemctl restart pihole-FTL
8787

8888
| Problem | Ursache (v6.1+ spezifisch) | Lösung |
8989
|---------|-----------------------------|--------|
90-
| **Listen laden nicht** | Upstream-DNS-Ausfall oder IPv6-Fehlkonfig | `pihole -g`; `/etc/resolv.conf` prüfen; IPv6 testen: `ping6 google.com`. |
90+
| **Listen laden nicht** | Upstream-DNS-Ausfall oder IPv6-Fehlkonfig | `sudo pihole -g`; `/etc/resolv.conf` prüfen; IPv6 testen: `ping6 google.com`. |
9191
| **Nur Router als Client sichtbar** | Router leitet sämtlichen DNS weiter | Pi-hole DHCP aktivieren; Router „DNS-Rebinding“ deaktivieren. Skript: `scripts/enable-dhcp.sh`. |
9292
| **YouTube-Werbung nicht blockbar** | Ads von Videodomains | Per DNS nicht zuverlässig möglich; uBlock Origin verwenden. |
9393
| **Seiten laden nicht (Overblocking)** | Z. B. neue CDNs | Im Query Log whitelisten; 2025-Whitelist aus `lists/` nutzen. |
9494
| **Port 53 Konflikt** | systemd-resolved oder Unbound | `sudo systemctl disable --now systemd-resolved`. |
95-
| **FTL-DB korrupt nach Update** | v6.1 Migrationsfehler | DB umbenennen: `sudo mv /etc/pihole/pihole-FTL.db /etc/pihole/pihole-FTL.db.bak`; `pihole restartdns`. Skript: `scripts/fix-ftl-db.sh`. |
95+
| **FTL-DB korrupt nach Update** | v6.1 Migrationsfehler | DB umbenennen: `sudo mv /etc/pihole/pihole-FTL.db /etc/pihole/pihole-FTL.db.bak`; `sudo pihole restartdns`. Skript: `scripts/fix-ftl-db.sh`. |
9696
| **Langsame GUI / hohe CPU (30–70%)** | Eingebauter Server überlastet (Pi Zero/3) | `MAXDBDAYS=14` in `pihole-FTL.conf`; Blocklisten reduzieren. Skript: `scripts/optimize-gui.sh`. |
97-
| **Mehrfach täglich Freezes** | Memory-Leak in FTL v6.0.x | Neuinstallation + Restore: `pihole uninstall; curl install; Teleporter restore`. |
97+
| **Mehrfach täglich Freezes** | Memory-Leak in FTL v6.0.x | Neuinstallation + Restore: `sudo pihole uninstall; curl install; Teleporter restore`. |
9898
| **Verbindungs-/UDP-/NTP-Fehler** | v6 Sync-Probleme | `timedatectl set-ntp true`; Upstream-DNS prüfen (z. B. 1.1.1.1). |
99-
| **Kein Internet nach v6-Upgrade** | DHCP/DNS-Schleife | Pi-hole-IP als einzigen DNS im Router setzen; `pihole flush`. |
100-
| **Web-UI (403 Forbidden)** | v6.1 eingebauter Webserver: Rechte/Port | `http://<IP>:8080/admin/` probieren; `pihole -r`; `/etc/pihole/pihole.toml` prüfen. Skript: `scripts/fix-ui-403.sh`. |
99+
| **Kein Internet nach v6-Upgrade** | DHCP/DNS-Schleife | Pi-hole-IP als einzigen DNS im Router setzen; `sudo pihole flush`. |
100+
| **Web-UI (403 Forbidden)** | v6.1 eingebauter Webserver: Rechte/Port | `http://<IP>:8080/admin/` probieren; `sudo pihole -r`; `/etc/pihole/pihole.toml` prüfen. Skript: `scripts/fix-ui-403.sh`. |
101101
| **DNS Server Failure** | Unbound/Upstream-Konflikte nach v6.1 | Upstream in UI prüfen; `dig @127.0.0.1 -p 5335 example.com`. Siehe [Pi-hole-Unbound-PiAlert-Setup](https://github.com/TimInTech/Pi-hole-Unbound-PiAlert-Setup). |
102-
| **pihole.toml fehlt nach Upgrade** | v6.1 Konfig-Migration fehlgeschlagen | `pihole -r --reconfigure`; aus Backup wiederherstellen. |
102+
| **pihole.toml fehlt nach Upgrade** | v6.1 Konfig-Migration fehlgeschlagen | `sudo pihole -r --reconfigure`; aus Backup wiederherstellen. |
103103
| **Docker v5→v6 Migration** | Env-Variablen (WEBPASSWORD) oder dnsmasq-Änderungen | Compose aktualisieren: `-e WEBPASSWORD`; Volumes neu abbilden; DHCP-Statics prüfen. Siehe `docs/docker-v6.md`. |
104104

105105
**Debug ausführen**: `pihole -d` (Token teilen im Discourse).
@@ -122,10 +122,10 @@ Hinweis zu Rechten: Viele Pi-hole CLI-Befehle benötigen Root-Rechte. Beispiel:
122122
| Geräte vom Blocken ausnehmen? | Gruppenverwaltung nutzen (v6 verbessert). | [#3372](https://discourse.pi-hole.net/t/how-can-i-use-pi-hole-for-all-my-devices-except-one-or-more/3372) |
123123
| Andere Software mit Pi-hole betreiben? | Ja, aber Ressourcen im Blick behalten. | [#8684](https://discourse.pi-hole.net/t/can-i-run-other-software-along-side-pi-hole/8684) |
124124
| Blocklisten hinzufügen? | GUI: Gruppenverwaltung → Adlists (2025: Firebog nutzen). | [#259](https://discourse.pi-hole.net/t/how-do-i-add-additional-block-lists-to-pi-hole/259); siehe `lists/2025-firebog.txt` |
125-
| Standard-Adlists wiederherstellen? | `pihole -g --reset`; oder manuell via Gravity. | [#32323](https://discourse.pi-hole.net/t/restoring-default-pi-hole-adlists/32323) |
125+
| Standard-Adlists wiederherstellen? | `sudo pihole -g --reset`; oder manuell via Gravity. | [#32323](https://discourse.pi-hole.net/t/restoring-default-pi-hole-adlists/32323) |
126126
| Remote-Zugriff (Port 53 öffnen)? | Nein – VPN nutzen (Tailscale/WireGuard). | [#13705](https://discourse.pi-hole.net/t/accessing-pi-hole-outside-of-my-lan/13705) |
127127
| **Neu: DoH/DoT-Umgehung in v6?** | Geräte nutzen verschlüsseltes DNS. | Domains wie `dns.google` blocken; Port 853 via iptables/nftables sperren. Siehe `docs/ipv6-doh.md`. |
128-
| **Neu: Hoher Speicherverbrauch in v6?** | Große FTL-DB. | `MAXDBDAYS=30` setzen; `pihole vacuum`. |
128+
| **Neu: Hoher Speicherverbrauch in v6?** | Große FTL-DB. | `MAXDBDAYS=30` setzen; `sudo pihole vacuum`. |
129129
| **Neu: DNS-Fehler nach v6.1-Upgrade?** | Upstream/Unbound-Fehlkonfig. | Upstream neu setzen; mit `dig` testen. Siehe [Pi-hole-Unbound-PiAlert-Setup](https://github.com/TimInTech/Pi-hole-Unbound-PiAlert-Setup). |
130130
| **Neu: Admin-Panel Login/Update-Probleme?** | v6.1 Berechtigungen oder NGINX-Konflikte. | `pihole -r`; eigenes NGINX deaktivieren. |
131131

@@ -137,28 +137,30 @@ Vollständige Sticky-Liste: Siehe [r/pihole Wiki](https://www.reddit.com/r/pihol
137137

138138
```bash
139139
# Gravity-Refresh
140-
pihole -g
140+
sudo pihole -g
141141

142142
# Live-Log
143-
pihole -t
143+
sudo pihole -t
144144

145145
# Domain abfragen
146-
pihole -q example.com
146+
sudo pihole -q example.com
147147

148148
# Neustart (v6: leichterer Reload)
149-
pihole restartdns
149+
sudo pihole restartdns
150150

151151
# v6 DB/toml prüfen/reparieren
152-
sqlite3 /etc/pihole/pihole-FTL.db "PRAGMA integrity_check;"
153-
ls -la /etc/pihole/pihole.toml # Existenz prüfen
152+
sudo sqlite3 /etc/pihole/pihole-FTL.db "PRAGMA integrity_check;"
153+
sudo ls -la /etc/pihole/pihole.toml # Existenz prüfen
154154

155155
# Cache leeren
156-
pihole flush
156+
sudo pihole flush
157157

158158
# Upstream (Unbound) testen
159159
dig @127.0.0.1 -p 5335 example.com
160160
```
161161

162+
Hinweis (Docker): In Containern läuft Pi-hole standardmäßig als root; dort Befehle ohne sudo ausführen. Vom Host aus per `docker exec -it <pihole-container> pihole -g` u. a. Befehle ausführen.
163+
162164
**Skript-Nutzung**:
163165

164166
- `./scripts/fix-high-cpu.sh`: Optimierungen für Pi 3/Zero.
@@ -172,7 +174,7 @@ dig @127.0.0.1 -p 5335 example.com
172174
## 🔐 Sicherheit & Wartung (v6.1 Best Practices)
173175

174176
- **Kein WAN-Expose**: Für Remote-Zugriff VPN nutzen.
175-
- **Auto-Updates**: `unattended-upgrades` + cron für `pihole -up`.
177+
- **Auto-Updates**: `unattended-upgrades` + cron für `sudo pihole -up`.
176178
- **Backups**: Täglich via Teleporter; Offsite speichern. `--backup`-Flags in Skripten nutzen.
177179
- **Neu in v6.1**: Audit-Log aktivieren: `AUDITLOG=true` in `pihole-FTL.conf`; pihole.toml-Rechte prüfen.
178180
- **Blocklisten 2025**: Mit Defaults starten + `lists/home-2025.txt` (vermeidet Overblocking).

README.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ curl -sSL https://install.pi-hole.net | bash
4949
**Post-Install (v6.1+ Specific)**:
5050

5151
- Access Admin UI: `http://<IP>/admin/` (built-in server; no lighttpd needed; check port 80/8080 if 403 error).
52-
- Change password: `pihole -a -p`.
52+
- Change password: `sudo pihole -a -p`.
5353
- Verify: `dig pi.hole @<PIHOLE-IP>`.
5454
- **New: Check for v6 DB migration & toml issues**:
5555

5656
```bash
57-
pihole -r # Repair if FTL fails or no pihole.toml
57+
sudo pihole -r # Repair if FTL fails or no pihole.toml
5858
sudo systemctl status pihole-FTL # Ensure no high CPU or DNS failure
5959
```
6060

@@ -64,9 +64,9 @@ curl -sSL https://install.pi-hole.net | bash
6464

6565
```bash
6666
sudo apt update && sudo apt upgrade -y
67-
pihole -up # Auto-handles v6.1+ upgrades; watch for DNS failures
68-
pihole -g
69-
pihole restartdns
67+
sudo pihole -up # Auto-handles v6.1+ upgrades; watch for DNS failures
68+
sudo pihole -g
69+
sudo pihole restartdns
7070
```
7171

7272
**v6 Tip**: Enable auto-backups before updates to avoid DB/toml corruption:
@@ -87,17 +87,17 @@ sudo systemctl restart pihole-FTL
8787

8888
| Problem | Cause (v6.1+ Specific) | Fix |
8989
|---------|-------------------------|-----|
90-
| **Lists not downloading** | Upstream DNS outage or IPv6 misconfig | Run `pihole -g`; check `/etc/resolv.conf`; test IPv6: `ping6 google.com`. |
90+
| **Lists not downloading** | Upstream DNS outage or IPv6 misconfig | Run `sudo pihole -g`; check `/etc/resolv.conf`; test IPv6: `ping6 google.com`. |
9191
| **Only router as client** | Router forwards all DNS | Enable Pi-hole DHCP; disable router DNS rebinding. Script: `scripts/enable-dhcp.sh`. |
9292
| **YouTube ads not blocked** | Ads from video domains | Not feasible via DNS; use uBlock Origin. |
9393
| **Blocked sites fail to load** | Overblocking (e.g., new CDNs) | Query Log whitelist; add 2025 whitelists from `lists/`. |
9494
| **Port 53 conflict** | systemd-resolved or unbound | `sudo systemctl disable --now systemd-resolved`. |
95-
| **FTL DB corruption post-update** | v6.1 migration bug | Rename DB: `sudo mv /etc/pihole/pihole-FTL.db /etc/pihole/pihole-FTL.db.bak`; `pihole restartdns`. Script: `scripts/fix-ftl-db.sh`. |
95+
| **FTL DB corruption post-update** | v6.1 migration bug | Rename DB: `sudo mv /etc/pihole/pihole-FTL.db /etc/pihole/pihole-FTL.db.bak`; `sudo pihole restartdns`. Script: `scripts/fix-ftl-db.sh`. |
9696
| **Slow GUI / High CPU (30-70%)** | Built-in server overload on Pi Zero/3 | Limit DB: `MAXDBDAYS=14` in `pihole-FTL.conf`; reduce blocklists. Script: `scripts/optimize-gui.sh`. |
97-
| **Freezes multiple times/day** | Memory leak in FTL v6.0.x | Reinstall + restore config: `pihole uninstall; curl install; Teleporter restore`. |
97+
| **Freezes multiple times/day** | Memory leak in FTL v6.0.x | Reinstall + restore config: `sudo pihole uninstall; curl install; Teleporter restore`. |
9898
| **Connection/UDP/NTP errors** | v6 sync issues | `timedatectl set-ntp true`; check upstream DNS (e.g., 1.1.1.1). |
99-
| **No internet after v6 upgrade** | DHCP/DNS loop | Set Pi-hole IP as sole DNS in router; `pihole flush`. |
100-
| **Web UI inaccessible (403 Forbidden)** | v6.1 built-in server perms or port issues | Try `http://<IP>:8080/admin/`; `pihole -r`; check `/etc/pihole/pihole.toml`. Script: `scripts/fix-ui-403.sh`. |
99+
| **No internet after v6 upgrade** | DHCP/DNS loop | Set Pi-hole IP as sole DNS in router; `sudo pihole flush`. |
100+
| **Web UI inaccessible (403 Forbidden)** | v6.1 built-in server perms or port issues | Try `http://<IP>:8080/admin/`; `sudo pihole -r`; check `/etc/pihole/pihole.toml`. Script: `scripts/fix-ui-403.sh`. |
101101
| **DNS Server Failure** | Unbound/upstream conflicts post-v6.1 | Verify upstream in UI; `dig @127.0.0.1 -p 5335 example.com` if using Unbound. See [Pi-hole-Unbound-PiAlert-Setup](https://github.com/TimInTech/Pi-hole-Unbound-PiAlert-Setup). |
102102
| **Missing pihole.toml after upgrade** | v6.1 config migration fail | `pihole -r --reconfigure`; restore from backup. |
103103
| **Docker v5 to v6 migration issues** | Env vars like WEBPASSWORD or dnsmasq changes | Update compose: Use `-e WEBPASSWORD`; remap volumes; test DHCP statics in new conf. See `docs/docker-v6.md`. |
@@ -122,10 +122,10 @@ Note on permissions: Most Pi-hole CLI commands require root privileges. Example:
122122
| Exclude clients from blocking? | Use Group Management (v6 enhanced). | [Discourse #3372](https://discourse.pi-hole.net/t/how-can-i-use-pi-hole-for-all-my-devices-except-one-or-more/3372) |
123123
| Run other software with Pi-hole? | Yes, but monitor resources (e.g., no heavy VMs on Pi Zero). | [Discourse #8684](https://discourse.pi-hole.net/t/can-i-run-other-software-along-side-pi-hole/8684) |
124124
| Add blocklists? | GUI: Group Management → Adlists (2025: Use Firebog for curated). | [Discourse #259](https://discourse.pi-hole.net/t/how-do-i-add-additional-block-lists-to-pi-hole/259); See `lists/2025-firebog.txt` |
125-
| Restore default adlists? | `pihole -g --reset`; or manual via gravity. | [Discourse #32323](https://discourse.pi-hole.net/t/restoring-default-pi-hole-adlists/32323) |
125+
| Restore default adlists? | `sudo pihole -g --reset`; or manual via gravity. | [Discourse #32323](https://discourse.pi-hole.net/t/restoring-default-pi-hole-adlists/32323) |
126126
| Remote access (open Port 53?)? | No—use VPN (Tailscale/WireGuard). | [Discourse #13705](https://discourse.pi-hole.net/t/accessing-pi-hole-outside-of-my-lan/13705) |
127127
| **New: DoH/DoT bypass in v6?** | Devices use encrypted DNS. | Block domains like `dns.google`; redirect Port 853 via iptables. See `docs/ipv6-doh.md`. |
128-
| **New: High memory on v6?** | Large FTL DB. | Set `MAXDBDAYS=30`; prune: `pihole vacuum`. |
128+
| **New: High memory on v6?** | Large FTL DB. | Set `MAXDBDAYS=30`; prune: `sudo pihole vacuum`. |
129129
| **New: DNS failure after v6.1 upgrade?** | Upstream/Unbound misconfig. | Reconfigure upstream; test with `dig`. Use [Pi-hole-Unbound-PiAlert-Setup](https://github.com/TimInTech/Pi-hole-Unbound-PiAlert-Setup) for robust Unbound. |
130130
| **New: Admin panel login/update issues?** | v6.1 perms or NGINX conflicts. | `pihole -r`; disable custom NGINX. |
131131

@@ -137,28 +137,30 @@ Note on permissions: Most Pi-hole CLI commands require root privileges. Example:
137137

138138
```bash
139139
# Gravity refresh
140-
pihole -g
140+
sudo pihole -g
141141

142142
# Live log
143-
pihole -t
143+
sudo pihole -t
144144

145145
# Query domain
146-
pihole -q example.com
146+
sudo pihole -q example.com
147147

148148
# Restart (v6: Use restartdns for lighter reload)
149-
pihole restartdns
149+
sudo pihole restartdns
150150

151151
# v6 DB/toml check/fix
152-
sqlite3 /etc/pihole/pihole-FTL.db "PRAGMA integrity_check;"
153-
ls -la /etc/pihole/pihole.toml # Verify existence
152+
sudo sqlite3 /etc/pihole/pihole-FTL.db "PRAGMA integrity_check;"
153+
sudo ls -la /etc/pihole/pihole.toml # Verify existence
154154

155155
# Flush cache
156-
pihole flush
156+
sudo pihole flush
157157

158158
# Test upstream (Unbound)
159159
dig @127.0.0.1 -p 5335 example.com
160160
```
161161

162+
Docker hint: Inside containers Pi-hole runs as root, so run commands without sudo. From the host you can exec into the container, e.g. `docker exec -it <pihole-container> pihole -g`.
163+
162164
**Scripts Usage**:
163165

164166
- `./scripts/fix-high-cpu.sh`: Optimizes for Pi 3/Zero.
@@ -172,7 +174,7 @@ dig @127.0.0.1 -p 5335 example.com
172174
## 🔐 Security & Maintenance (v6.1 Best Practices)
173175

174176
- **Never expose WAN**: Use VPN for remote.
175-
- **Auto-Updates**: `unattended-upgrades` + cron for `pihole -up`.
177+
- **Auto-Updates**: `unattended-upgrades` + cron for `sudo pihole -up`.
176178
- **Backups**: Daily via Teleporter; store offsite. Use `--backup` flag in maintenance scripts.
177179
- **v6.1 New**: Enable audit logging: `AUDITLOG=true` in `pihole-FTL.conf`; verify pihole.toml perms.
178180
- **Blocklists 2025**: Start with defaults + `lists/home-2025.txt` (avoids overblocking).

scripts/docker-verify.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)