#-Road-Map--------------------------------- # # Pi-Hole # # Datum: Aug. 2026 (Geprüft) # # Eine "Strassenkarte" ist eine simple Text-Datei, # welche die Befehle zum kopieren und einfügen # im CLI oder auf dem Desktop bereitstellt und # zusätzlich einem einen Grobablauf einer Installation aufzeigt. #------------------------------------------ #------------------------------------------ # SSH-Verbindung #------------------------------------------ ssh DEINUSER@192.168.1.X #------------------------------------------ # System-Update / -Upgrade #------------------------------------------ sudo apt update sudo apt upgrade -y sudo apt autoclean sudo apt autoremove #------------------------------------------ # Statische IP Adresse #------------------------------------------ ip addr sudo su cd /etc/netplan ls for i in $( ls ); do mv $i $i.bak; done touch /etc/netplan/01_static_ip.yaml nano /etc/netplan/01_static_ip.yaml # Adapter-Einstellungen (Ctrl + O und Ctrl + X zum speichern) network: version: 2 renderer: networkd ethernets: ens18: #Edit this line according to your network interface name. dhcp4: no addresses: - 192.168.1.150/24 gateway4: 192.168.1.1 nameservers: addresses: - 8.8.8.8 - 8.8.4.4 netplan generate && netplan apply # Verbindung wird unterbrochen, Fenster schliessen # und erneut mit der neuen IP einloggen #------------------------------------------ # Hostnamen festlegen #------------------------------------------ ssh DEINUSER@192.168.1.X sudo hostnamectl set-hostname DEINHOSTNAME sudo nano /etc/hosts # Host-Datei (Ctrl + O und Ctrl + X zum speichern) 127.0.0.1 localhost 127.0.1.1 DEINHOSTNAME ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters sudo reboot #------------------------------------------ # Installation und Einstellungen #------------------------------------------ ssh DEINUSER@192.168.1.X sudo apt install curl -y sudo curl -sSL https://install.pi-hole.net | bash sudo pihole -a -p sudo pihole restartdns #------------------------------------------ # Systembedienung & Wissenswertes #------------------------------------------ sudo pihole -a -p sudo pihole updateGravity sudo pihole updatePihole sudo pihole flush sudo pihole restartdns pihole status sudo apt install nmap -y nnmap localhost -p 1-10000 man pihole man pihole-FTL http://192.168.1.1/admin/index.php