WLAN-Konfiguration auf dem Raspberry

Sobald der Stick eingesteckt wurde, wird er von Raspbian auch schon erkannt. Dies kann einfach mit folgendem Befehl überprüft werden:

$ dmesg
Anschließend sehen wir in der Ausgabe, dass ein WLAN Adapter von Realtek erkannt wurde und der passende Treiber (rtl8192cu) geladen wurde:

pi_dmesgNachdem der Stick also erfolgreich erkannt wurde, müßte nun ein neues Netzwerk-Device wlan0 auftauchen, was einfach mit

$ ifconfig
abgefragt werden kann.

pi_ifconfig

Verbindung herstellen (DHCP)

Um nun eine Verbindung mit unserem WLAN herzustellen, müssen wir die Datei /etc/network/interfaces editieren:

$ sudo nano /etc/network/interfaces
und deren Inhalt anpassen:

auto lo
iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ap-scan 1
wpa-scan-ssid 1
wpa-ssid „DEIN-WLAN-NAME“
wpa-psk „DEIN-WLAN-SCHLÜSSEL“
Abschließend die Änderungen an der Datei speichern und den Netzwerkdienst neu starten:

sudo service networking restart

Statische IP Adressen (optional)

Soll der WLAN Schnittstelle eine statische IP im Netzwerk zugewiesen werden, muß der Inhalt der /etc/network/interfaces wie folgt aussehen:

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.0.24
netmask 255.255.255.0
gateway 192.168.0.1

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.23
netmask 255.255.255.0
gateway 192.168.0.1
wpa-ap-scan 1
wpa-scan-ssid 1
wpa-ssid „DEIN-WLAN-NAME“
wpa-psk „DEIN-WLAN-SCHLÜSSEL“

WLAN Access Point unter Linux Mint

1. Go to Main Menu -> Preferences -> Network Connections click on Add and choose Wi-Fi. Choose a network name (SSID), Infrastructure mode. Go to to Wi-Fi Security and choose a WPA/WPA2 Personal and create a password. Go to IPv4 settings and check that it is shared with other computers.

2. Do sudo vi /etc/NetworkManager/system-connections/YOUR_CONNECTION_NAME and change mode=infrastructure to mode=ap and save it.

3. Click on Network Manager near clocks and choose connect to hidden wireless network –> choose your connection –> enjoy.

P.S. If it does not work, run iw list and check in Supported interface modes: * AP, if you do not have AP there, probably your Wi-Fi card does not support this mode.

(Quelle: http://community.linuxmint.com/tutorial/view/1832)