easyVDR Kopie des easyVDR-Forums zum Nachschlagen
WLAN einrichten (unter Kubuntu - nicht VDR)

easyVDR - >VARforumsname - >WLAN einrichten (unter Kubuntu - nicht VDR)

sinai  29.Jan.2009 00:41:20
Hallo zusammen

Ich habe mich jetzt entschlossen auf dem Laptop Kubuntu zu verwenden (K, weil ich gerne mit KDE arbeite - aber darum geht es nicht), weil ich endlich Bluetooth-Zugang zu meinem Handy per Wammu bekomme.

Nun bekomme ich aber wlan nicht ans Laufen. IP vergebe ich manuell. Hier, was ich bisher geschafft habe:

Erstmal die Hardware

andreas@andreas-laptop:~$ lspci
02:02.0 Ethernet controller: Atheros Communications Inc. AR5212 802.11abg NIC (rev 01)


Treiber sollte geladen sein

andreas@andreas-laptop:~$ lsmod
Module                  Size  Used by
wlan_tkip              13696  2
wlan_scan_sta          14720  1
ath_rate_sample        14336  1
ath_pci              101024  0
wlan                  207728  6 wlan_tkip,wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal              192592  3 ath_rate_sample,ath_pci


Danach einen PSK erstellen lassen.

andreas@andreas-laptop:/etc/wpa_supplicant$ wpa_passphrase tuxnet2 XXXXXXXX
network={
        ssid="tuxnet2"
        #psk="XXXXXXXX"
        psk=f9ccf0941d074fe1ca61ef8c70add7c5f3c49a574b0006c155a63d0b8020fc6a
}


andreas@andreas-laptop:/etc/wpa_supplicant$ less wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
# 0: Der Treiber des Interfaces kümmert sich um das Scannen von Netzen und die AP-Auswahl.
#    Dieser Modus sollte benutzt werden, wenn man eine Verschlüsselung auf ein Kabelnetzwerk legt.
# 1: wpa_supplicant kümmert sich um das Scannen von Netzen und die AP-Auswahl.
# 2: Fast wie 0, es wird aber mit Hilfe von Sicherheitsrichtlinien und der SSID zu APs verbunden (BSSID wird nicht unterstützt)
#
# Normalerweise funktioniert entweder Modus 1 oder Modus 2.
ap_scan=1

network={
ssid="tuxnet2"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
#psk="XXXXXXXX"
psk="f9ccf0941d074fe1ca61ef8c70add7c5f3c49a574b0006c155a63d0b8020fc6a"
}


Danach kam schon das erste Problem beim Testen - PSK-Key zu lang: ??? ??? ???

andreas@andreas-laptop:/etc/wpa_supplicant$ sudo wpa_supplicant -i ath0 -D madwifi -c /etc/wpa_supplicant/wpa_supplicant.conf -d
Initializing interface 'ath0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
Line 19: Invalid passphrase length 64 (expected: 8..63) 'f9ccf0941d074fe1ca61ef8c70add7c5f3c49a574b0006c155a63d0b8020fc6a"'.
Line 19: failed to parse psk '"f9ccf0941d074fe1ca61ef8c70add7c5f3c49a574b0006c155a63d0b8020fc6a"'.
Line 20: WPA-PSK accepted for key management, but no PSK configured.
Line 20: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
Failed to add interface ath0
Cancelling scan request
Cancelling authentication timeout


Okay also Passwort direkt rein und Verbindung zum Router kommt zustande, ping zum Router und anderen PCs gehen.

andreas@andreas-laptop:/etc/wpa_supplicant$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0    no wireless extensions.

ath0      IEEE 802.11g  ESSID:"tuxnet2"  Nickname:"tuxnet2"
          Mode:Managed  Frequency:2.457 GHz  Access Point: 00:03:C9:BA:91:3D
          Bit Rate:24 Mb/s  Tx-Power:14 dBm  Sensitivity=1/1
          Retry:off  RTS thr:off  Fragment thr:off
          Power Management:off
          Link Quality=53/70  Signal level=-41 dBm  Noise level=-94 dBm
          Rx invalid nwid:29810  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0


andreas@andreas-laptop:~$ ifconfig
ath0      Link encap:Ethernet  Hardware Adresse 00:05:4e:47:aa:8f
          inet Adresse:192.168.2.4  Bcast:192.168.2.255  Maske:255.255.255.0
          inet6-Adresse: fe80::205:4eff:fe47:aa8f/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:117 errors:1 dropped:0 overruns:0 frame:0
          TX packets:119 errors:4 dropped:4 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:14103 (13.7 KB)  TX bytes:14084 (13.7 KB)


Also ich kann im lokalen Netz pingen, komme aber weder per Domainname, noch per IP ins Internet. Da der Rest klappt, dachte ich, die resolv.conf ist falsch

andreas@andreas-laptop:~$ cat /etc/resolv.conf
domain domain.com
nameserver 192.168.2.50  <-- Das ist der Router, der auch
nameserver 0.0.0.0


Also blieb für mich das Routing


andreas@andreas-laptop:~$ route
Kernel-IP-Routentabelle
Ziel            Router          Genmask        Flags Metric Ref    Use Iface
192.168.2.0    *              255.255.255.0  U    0      0        0 eth0
192.168.2.0    *              255.255.255.0  U    0      0        0 ath0
link-local      *              255.255.0.0    U    1000  0        0 eth0


Okay - kein default-Gateway. Aber ein

andreas@andreas-laptop:~$ sudo route add default gw 192.168.2.50 dev ath0
andreas@andreas-laptop:~$ route
Kernel-IP-Routentabelle
Ziel            Router          Genmask        Flags Metric Ref    Use Iface
192.168.2.0    *              255.255.255.0  U    0      0        0 eth0
192.168.2.0    *              255.255.255.0  U    0      0        0 ath0
link-local      *              255.255.0.0    U    1000  0        0 eth0
default        .              0.0.0.0        UG    0      0        0 ath0


??? ??? ??? ???

Jemand einen Tipp? Und bitte nicht lachen - der Weg von Yast (ja das klappte bei mir immer prima) zur Konsole ist steinig und schwer....

Danke

Andy
VDR 1: ASRock mit Atom J1200, NVIDIA GT610, Lüfterlos, TBS 6982 SE mit easyVDR 3.0
j6scjo  01.Feb.2009 10:32:29
Also die Unterschiede zu meiner (funktionierenden) Konfiguration, soweit ich sehe:


easyVDR:~# cat /etc/resolv.conf
search local
nameserver 192.168.178.1


Bei mir steht also nur ein Nameserver drin.
Deshalb sieht das Routing bei mir dann so aus:


easyVDR:~# route
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
192.168.178.0   *               255.255.255.0   U     0      0        0 wlan0
default         fritz.fonwlan.b 0.0.0.0         UG    0      0        0 wlan0


Viel Glück!

Jörg

P.S.: Das obige bezieht sich nicht auf Kubuntu, sondern EasyVDR, aber auf der Konsole ist ja Linux Linux  ;D
Hardware: Gehäuse Streacom FC9B (Fanless), MB Gigabyte GA-G41M-Combo mit P4 E5300, SDD Samsung 840 EVO 250 GB, Digital Devices Cine2 (Dual DVB-S2 Budget) low profile, Zotac GT630 ZONE Edition 1GB low profile passiv mit easyVDR 1.0, testweise mit easyVDR 2.0 Alpha
ItsMee  01.Feb.2009 13:17:47
Hi,

ich würde auch sagen das dein Routing nicht gut aussieht. ifconfig zeigt keine IP auf eth0 - aber route zeigt das dein Rechner per ath0 oder eth0 die gleiche Route hat - also Glücksache ob er die richtige Karte nimmt.

Probier doch mal manuell die eth0 route zu löschen - und schau mal was unter /etc/sysconfig/network-scripts/interfaces (oder wie auch immer das unter kubuntu heisst) konfiguriert ist. Das default gateway könntest Du z.B. unter /etc/sysconfig/network setzten - unter RHEL :)

Grüße,

ItsMee
[url=http://vdr.itsmee.de/vdr2/]VDR2: EasyVDR 0.6.08 - HD-ready :)VDR3: EasyVDR 0.7.22 HD :)
P5N7A-VM / Pentium E5200 / GeForce 9300M3N78-VM / Sempron 140
vga2scart an Röhre / rsync gespiegeltes Foto ShareHDMI @ LG W2361V
Linux4Media Display mit HW patch gegen Geistertasten
[url=http://wiki.easy-vdr.de/index.php/Hilfe]Du brauchst Hilfe? Wir brauchen Daten!!
sinai  10.Feb.2009 21:29:19
Nach langen versuchen durch editieren von Textdateien ohne irgendein positives Ergebnis half letztlich Wicd - damit lief WLan und LAN out of the Box - geiles Teil.

http://wiki.ubuntuusers.de/WLAN/Wicd

Andy
VDR 1: ASRock mit Atom J1200, NVIDIA GT610, Lüfterlos, TBS 6982 SE mit easyVDR 3.0