
Anbei die nötigen Schritte um den RaspberryPi für ein WLAN (WPA2; FRITZ!Box) einzurichten. Installation der Software „wpa_supplicant“:
1 |
apt-get install wpa_supplicant |
Konfigurationsdatei „/etc/wpa_supplicant/wpa_supplicant.conf“:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ key_mgmt=NONE } network={ ssid="WLAN-SSID" scan_ssid=1 psk="WLAN-KENNWORT" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP } |
Konfiguration innerhalb der Datei „/etc/network/interfaces“:
1 2 3 4 5 6 |
allow-hotplug wlan0 iface wlan0 inet dhcp pre-up wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B -P /var/run/wpa_supplicant.wlan0.pid post-down killall -q wpa_supplicant # Alternative Variante # wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf |
WLAN-Interface aktivieren:
1 |
ifup wlan0 |