Wpa supplicant
wpa_supplicant
Ist eine Variante wie die WLAN-Netzwerke konfiguriert werden können. Im Vergleich zum Networkmanager u.a. unter Gnome (Paket gnome-network-manager) ist dies weniger Fehleranfällig und leichter direkt aus dem Terminal konfigurierbar.
Installation
Debian
1. Paket installieren
sudo apt-get update
sudo apt-get install wpasupplicant
2. Rechte auf Interfaces beschränken
sudo chmod 0600 /etc/network/interfaces
3. Interfaces prüfen
cat /etc/network/interfaces
oder setzen:
sudo cat >/etc/network/interfaces<<EOF
# The loopback network interface
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
EOF
4. Offenes WLAN konfigurieren
erstmal ansehen:
cat /etc/wpa_supplicant/wpa_supplicant.conf
die Datei kann so zum freien WLAN im HQ führen:
cat >/etc/wpa_supplicant/wpa_supplicant.conf<<EOF
### ### ### C3D2 ### ### ###
network={
ssid="C3D2"
key_mgmt=NONE
priority=0
}
### ### ### C3D2 ### ### ###
EOF
5. Passwortgecshütztes WLAN konfigurieren
mit wpa_passphrase am Bsp. C3D2-fallback als Einzeiler:
wpa_passphrase C3D2-fallback >> /etc/wpa_supplicant/wpa_supplicant.conf
mit wpa_cli
(nähere Erläuterung s. Quelle)
scan scan_results add_network set_network 0 ssid "WLAN-Network" set_network 0 psk "SupahSecretPassphrase"
Quellen
- wpa_supplicant im Debian-Wiki
- wpa_cli erläutert