WLAN einrichten

Aus Roebke Wiki
Zur Navigation springen Zur Suche springen

Anleitung habe ich von hier : http://rasspberrypi.wordpress.com/2012/09/02/wifi-on-rasspberry-pi-with-asus-usb-n10/ kopiert.

Entered lsusb You should get following on one line.

Bus 001 Device 004: ID 0b05:1786 ASUSTek Computer, Inc. USB-N10 802.11n Network Adapter [Realtek RTL8188SU]

Entered lsmod You should get following on one line.

r8712u 180848 0

Now time to Edit the interfaces file. Traverse to the following path /etc/network and open “interfaces” file in an editor 5.1 Create a Backup of the interfaces file

sudo cp interface interfaces.backup
ls -l

On ls- l you should see the interfaces.backup file will be created. Open in file in editor

sudo nano interfaces

Append the code to the interfaces file without the quotes for ssid and wpa-psk key

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "your network ssid"
wpa-psk "network passwd"

Save it using Ctrl+X

weitere Feinheiten: http://www.datenreise.de/raspberry-pi-wlan-einrichten-edimax/

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:

Power Saving (“Schlafmodus”) abschalten

Bevor wir eine WLAN-Verbindung herstellen, sollte die Stromsparfunktion des Edimax-Treibers deaktiviert werden. Andernfalls wird eine Verbindung bei Inaktivität unterbrochen. Um dies zu verhindern, muss eine Konfigurationsdatei für den Treiber angelegt werden:

sudo nano /etc/modprobe.d/8192cu.conf

Diese Datei bekommt folgenden Inhalt: (ggfs anpassen)

  options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

SSID eingeben

Interfaces einrichten

sudo nano /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

wpa conf einrichten

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE

network={
       ssid="DIESSID"
       psk="MEINPASSWORT"
       key_mgmt=WPA-PSK
}