[arch-general] Ad hoc
The PPPoE connection works after running '# ifconfig eth0 up && netcfg pppoe' as usual. After preparing ad hoc [1] I loaded the module by '# modprobe rtl8192se'. Then I tried to run 'newlan -n', but it doesn't work [2]. 1. How can I run 'newlan'? 2. Do I need to reboot to load the firmware? 3. Do I have to change the lines modprobe -r ath_pci modprobe ath_pci autocreate=adhoc to something like modprobe -r ath_pci modprobe ath_usb autocreate=adhoc when using an USB device? [root@archlinux src]# modprobe -r ath_pci FATAL: Module ath_pci not found. [root@archlinux src]# modprobe ath_usb autocreate=adhoc FATAL: Module ath_usb not found. [root@archlinux src]# modprobe ath_pci FATAL: Module ath_pci not found. Rebooting now without a starting the adhoc script or loading the module at startup ... Regards, Ralf ********** [1] **************************************** [spinymouse@archlinux ~]$ cd /usr/src [spinymouse@archlinux src]$ wget http://launchpadlibrarian.net/33927923/rtl8192se_linux_2.6.0010.1012.2009.ta... [spinymouse@archlinux src]$ su [root@archlinux src]# tar -xzOf rtl8192se_linux_2.6.0010.1012.2009.tar.gz \
rtl8192se_linux_2.6.0010.1012.2009/firmware/RTL8192SE/rtl8192sfw.bin > \ /lib/firmware/RTL8192SU/rtl8192sfw.bin
[root@archlinux src]# ls /lib/firmware/RTL8192SU/rtl8192sfw.bin -hAl -rw-r--r-- 1 root root 75K Feb 9 10:19 /lib/firmware/RTL8192SU/rtl8192sfw.bin [root@archlinux src]# exit [spinymouse@archlinux src]$ wget https://aur.archlinux.org/packages/ne/newlan/newlan.tar.gz [spinymouse@archlinux src]$ tar xzf newlan.tar.gz [spinymouse@archlinux src]$ cd newlan [spinymouse@archlinux newlan]$ makepkg -si [spinymouse@archlinux newlan]$ cd .. [spinymouse@archlinux src]$ leafpad adhoc [spinymouse@archlinux src]$ cat adhoc #!/bin/bash ####### this part should change or simply be removed depending on the network card #recreates the ath0 interface in ad hoc mode modprobe -r ath_pci modprobe ath_pci autocreate=adhoc wlanconfig ath0 destroy wlanconfig ath create wlandev wifi0 wlanmode adhoc ####### #starts the ad hoc server ifconfig ath0 down iwconfig ath0 mode ad-hoc iwconfig ath0 channel 4 iwconfig ath0 essid 'mine' ifconfig ath0 10.0.0.1 up #forwards the ad hoc network to the router iptables -A FORWARD -i ath0 -o eth0 -s 10.0.0.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" ********** [2] **************************************** [root@archlinux src]# sudo newlan -n mynewprofile This application was designed for ArchLinux, to run anyway add --force. [root@archlinux src]# sudo newlan --force -n mynewprofile WARNING: Application execution forced, use at own risk. ArchLinux netcfg Easy Wireless LAN 1.0.0.8 Invalid argument, try 'newlan --help' for more information. [root@archlinux src]# newlan --help This application was designed for ArchLinux, to run anyway add --force. [root@archlinux src]# newlan --force --help WARNING: Application execution forced, use at own risk. ArchLinux netcfg Easy Wireless LAN 1.0.0.8 Invalid argument, try 'newlan --help' for more information. [root@archlinux src]# newlan --force -n mynewprofile WARNING: Application execution forced, use at own risk. ArchLinux netcfg Easy Wireless LAN 1.0.0.8 Invalid argument, try 'newlan --help' for more information.
Using another kernel I can run 'newlan' [1]. But already the first question is confusing me 'Connection type: ([w]ireless/[e]thernet)'. The ADSL connection is PPPoE, the Wi-Fi USB is wireless ;), hence I suspect I need to answer wlan0. Description: (ej. my network) my_network Scan for [a]ccess points or write [e]SSID now? (a/e) a Scanning wlan0... wlan0 Interface doesn't support scanning : Network is down ESSID: (ej. myaccesspoint) myaccesspoint That network has a wireless key? w[e]p, wp[a] or n[o] (e/a/n) e Write wep key: (ej. wep string 's:mykey') s:mykey Network Key: s:mykey Use [s]tatic or [d]hcp (automatic) IP configuration? (s/d) s Static IP adress: (ej. 192.168.1.99) 192.168.1.99 Gateway: (ej. 192.168.1.1) 192.168.1.1 Netmask: (ej. 255.255.255.0) 255.255.255.0 Broadcast: (ej. 192.168.1.255) 192.168.1.255 How many DNS servers ? (0~255) 1 1 1 Write IP adress for DNS1: (ej. 208.67.222.222) 208.67.222.222 [w]rite profile file or [c]orrect inputs? (w/c) w Saved OK Connect to mynewprofile now? ([y]es/[n]o) y Connecting mynewprofile...[ FAIL ] ERROR: Cannot connect to mynewprofile, netcfg output: :: mynewprofile up [BUSY]
WPA Authentication/Association Failed [FAIL]
Regards, Ralf [1] Before I rebooted: $ uname -a Linux archlinux 3.0-rt #1 SMP PREEMPT RT Mon Dec 26 13:03:51 CET 2011 x86_64 AMD Athlon(tm) X2 Dual Core Processor BE-2350 AuthenticAMD GNU/Linux $ hwinfo --usb 10: USB 00.0: 0000 Unclassified device [Created at usb.122] Unique ID: cLrx.pHbvpxhVmw2 Parent ID: k4bc.MrJLBLcWB9F SysFS ID: /devices/pci0000:00/0000:00:13.5/usb1/1-2/1-2:1.0 SysFS BusID: 1-2:1.0 Hardware Class: unknown Model: "Realtek RTL8191S WLAN Adapter" Hotplug: USB Vendor: usb 0x0bda "Realtek Semiconductor Corp." Device: usb 0x8172 "RTL8191S WLAN Adapter" Revision: "2.00" Serial ID: "00e04c000001" Driver: "r8712u" Driver Modules: "r8712u" Device File: wlan0 Speed: 480 Mbps HW Address: 00:0a:eb:22:ef:b3 Module Alias: "usb:v0BDAp8172d0200dc00dsc00dp00icFFiscFFipFF" Driver Info #0: Driver Status: r8712u is active Driver Activation Cmd: "modprobe r8712u" Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #4 (Hub) hwinfo vs information from the Internet regarding to the driver that should be used. I rebooted using a non-rt-kernel: $ uname -a Linux archlinux 3.2.5-1-ARCH #1 SMP PREEMPT Tue Feb 7 08:34:36 CET 2012 x86_64 AMD Athlon(tm) X2 Dual Core Processor BE-2350 AuthenticAMD GNU/Linux $ su # ifconfig eth0 up && netcfg pppoe # pacman -Syu # modprobe rtl8192se # modprobe ath_pci FATAL: Module ath_pci not found. # sudo newlan -n mynewprofile ArchLinux netcfg Easy Wireless LAN 1.0.0.8 Starting Profile wizard... Connection type: ([w]ireless/[e]thernet)
Hm? I build newlan running the kernel-rt, could this cause missing modules? Anyway, ASAP I'll try NetworkManager instead of netcfg :(. Any hints and links are welcome. Of cause, I know the Arch Wiki ;). Regards, Ralf
participants (1)
-
Ralf Mardorf