sudo iw dev wlan0 set power_save offsudo nano /boot/config.txt### Internen WLAN-Chip abschalten (z.B. Pi Zero W / Zero 2 W / 3 / 4 / 5) dtoverlay=disable-wifi ### Bluetooth abschalten dtoverlay=disable-bt
sudo apt -y install dnsmasq hostapd dhcpcd5sudo nano /etc/dhcpcd.confinterface wlan0 static ip_address=10.0.0.1/8 nohook wpa_supplicant
sudo systemctl restart dhcpcdip l stellen wir fest, dass eth0 und wlan0 als Interface vorhanden sind.sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf_alt && sudo nano /etc/dnsmasq.confinterface=wlan0 no-dhcp-interface=eth0 dhcp-range=10.0.1.1,10.254.254.254,255.0.0.0,24h dhcp-option=option:dns-server,10.0.0.1 # ### Nachfolgende Zeile auskommentieren wenn "Captive Portal" gewünscht ### und KEIN Betrieb an einem anderen Netz gewünscht ### Bitte während der Installation nicht auskommentieren #address=/#/10.0.0.1
sudo systemctl restart dnsmasq && sudo systemctl enable dnsmasqsystemctl is-active dnsmasqactivesudo nano /etc/hostapd/hostapd.confssid=NotfallboxTEST interface=wlan0 channel=10 hw_mode=g ieee80211n=1 ieee80211d=1 country_code=DE
sudo hostapd -dd /etc/hostapd/hostapd.confsudo nano /etc/default/hostapdRUN_DAEMON=yes DAEMON_CONF="/etc/hostapd/hostapd.conf"
sudo systemctl unmask hostapdsudo systemctl start hostapd && sudo systemctl enable hostapdsystemctl is-active hostapd.serviceactivesudo rebootZum Testen der Konfiguration einfach noch einmal mit dem Netzwerk „NotfallboxTEST“ verbinden. Natürlich kann man dann nichts tuen, aber die Verbindung sollte dann schon klappen.
Weiter geht es ab hier nun mit der Installation des Web-Servers.