Re: How To: Manual Network Configuration without the need for Network Manager
dmesg | grep RT2 doesn't give me any results. Any idea why?
Re: How To: Manual Network Configuration without the need for Network Manager
GREP, Global Regular Expression Parser, did not find the r.e. (regular expression) RT2 (which evaluates literally to an RT2 character sequence) in the kernel ring buffer as piped, |, from dmesg, display or driver message, which exposes the buffer.
Presumably, dmesg by itself, does not fail, resulting in the revelation of the contents of the buffer where all the messages are without the character...s "RT2".
(sorry about the missing D and the malapropism of your mal-appropriated character's name R2... R2D2 ~ RTD2 sorry - a little inside cybernetic humour from one cybernaut, to another)
The RT2860 software suite of drivers and interface code is not required for the wireless hardware of all systems but when it is required, the posting 971 shows that the Lucid UNR 10.04 LTS Live CD often succumbs to the wireless failure as noted.
The Belkin N Wireless USB Adapter F5D8053 presents a moving target for driver identificaton unless the exact version is known - caveat 1 below.
Do
Code:
lsusb | grep Belkin
If this does not show a version use Belkin's method.
============================== Caveat ================================
A cursory survey of anecdotal documentation for the Belkin N Wireless USB Adapter F5D8053 implies that as in 967
Code:
sudo lsmod | grep rt28*
rt2860sta 481561 0
rt2870sta 461811 0
does list modules correctly as required.
================================================== =================
The above may be incorrect.
Closer scrutiny now reveals the following observations:
- Belkin's website µsoft (aka mu ~ micro ...) support software is F5D8053 hardware version dependent (ref: Belkin driver link origin page) - implicating the possible Ubuntu complicity with these version complications as well.
This is confirmed in this link:
http://ubuntuforums.org/showthread.p...0486074&page=2
(which confirms a suspicion that in fact the rt2800usb is in fact the correct driver at least for V3) and
http://ubuntuforums.org/showthread.p...8055&t=1673151 where V6 of the F5D8053 uses a driver for Realtek and NOT Ralink hardware:
Code:
lsusb | grep Belkin
Bus 001 Device 010: ID 050d:815f Belkin Components F5D8053 N Wireless USB Adapter v6000 [Realtek RTL8192SU]
modinfo r8192s_usb
filename: /lib/modules/2.6.32-21-generic/kernel/drivers/staging/rtl8192su/r8192s_usb.ko
description: Linux driver for Realtek RTL8192 USB WiFi cards
...
- The rt2870 identifies with USB wireless devices but unless there is also another PCI wireless device, the rt2860 is NOT relevant
. - Ralink Linux drivers exist with this specific one: RT2870USB(RT2870/RT2770 as the only RT28xx qualified w/ USB thus presumably distinct from any other RT2870 or RT28xx listed
. - The Ralink site has no matching RT2800 (or even RT280x) listing but UNR 10.04 does! Note that it identifies with the rt2870 firmware!
Code:
modinfo rt2800usb
filename: /lib/modules/2.6.32-21-generic/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
license: GPL
firmware: rt2870.bin
description: Ralink RT2800 USB Wireless LAN driver.
version: 2.3.0
author: http://rt2x00.serialmonkey.com
...
- The Ralink site has distinct RT3070 and RT2870 listings but UNR 10.04 identifies them similarly:
Code:
modinfo rt2870sta
filename: /lib/modules/2.6.32-21-generic/kernel/drivers/staging/rt2870/rt2870sta.ko
alias: rt3070sta
version: 2.0.1.0
license: GPL
description: RTxx70 Wireless LAN Linux Driver
...
Possible remedial actions:
- For Ubuntu 9.10 (karmic), this link http://ubuntuforums.org/showthread.php?t=1382798 details the manually labour intensive installation process which is explained in this link http://ubuntuforums.org/showthread.p...5837&p=9503272 .
================================================== =================
- Specific to your case 965, check
(note that RT is now rt) for any other driver messages.
. - Assuming there is nothing extraordinary ...
Check ifconfig (interface configuration) to see if wlan0 is resident, it is on and confirm it is available
Code:
ifconfig -a
sudo ifconfig wlan0 up
ifconfig
- Assuming that wlan0 is now on and has a HWaddr: 94:44:52:44:0f:cf from the previous step ...
Check the interface of the wireless configuration
which, particularly this, should look similar to:
Code:
wlan0 RT2860 Wireless ESSID:"" Nickname:"RT2860STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-49 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
See ref: Re: Wireless disabled for other samples of output from this command with explanations.
. - If so, the wireless adapter is functioning and can be tested by using it to list the available proximal wireless services with:
For convenience of execution and brevity these commands are coalesced here, with a final dmesg check:
Code:
dmesg | grep rt2
ifconfig -a
sudo ifconfig wlan0 up
ifconfig
iwconfig
sudo iwlist scan
dmesg | grep RT2
Note: except for sudo ifconfig wlan0 up, which enables the hardware, these commands, as used here, are all passive and simply report the status of the operating environment.
Re: How To: Manual Network Configuration without the need for Network Manager
Code:
~$ dmesg | grep rt2
[ 18.328456] rt2870sta: module is from the staging directory, the quality is unknown, you have been warned.
[ 18.371455] usbcore: registered new interface driver rt2870
[ 18.561256] rt2860sta: module is from the staging directory, the quality is unknown, you have been warned.
from dmesg |grep rt2
is there anything unusual?
Re: How To: Manual Network Configuration without the need for Network Manager
Code:
~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:11:43:ca:94:40
inet addr:193.178.2.74 Bcast:193.178.2.255 Mask:255.255.255.0
inet6 addr: fe80::211:43ff:feca:9440/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1541 errors:0 dropped:0 overruns:0 frame:0
TX packets:1451 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1331859 (1.3 MB) TX bytes:283192 (283.1 KB)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:960 (960.0 B) TX bytes:960 (960.0 B)
Re: How To: Manual Network Configuration without the need for Network Manager
Everything looks ok so far, what does lshw -C network list (this won't help if this is a usb device however).
I don't have a rt device that uses this driver so hence I can't be of much help -- sorry!
Re: How To: Manual Network Configuration without the need for Network Manager
An excellent official refernce is the Debian Wifi USB Devices documentation.
Check
Code:
lsusb | grep Belkin
for V#
If this does not show a version (& more importantly "Ralink RT2870"," Realtek RTL8192SU" etc.) use Belkin's method.
ie. (there seems to be no V2 - drivers colours: no modinfo in 10.04 : driver exists in 10.04 but may need manual persuasion to correct functionality)
V5 works w/ Realtek driver r8192u_usb details: debian.org page r8192u_usb
V6 works w/ Realtek driver r8192s_usb ( debian.org's r8192s_usb ) or r8712u ( debian.org's r8712u )
V1/3/4 works w/ Ralink drivers rt2800usb (endorsed in debian.org's rt2800usb ) or rt2870sta ( debian.org's rt2870sta )
refs:
http://ubuntuforums.org/showpost.php...22&postcount=8
http://ubuntuforums.org/showpost.php...4&postcount=15
================================================== ======
ifconfig -a shows wlan0 is not bound (because it's missing) to a driver - the drivers rt28xx are loaded but not bound to the Belkin USB either because a different driver is needed or the drivers need repairing.
PS. the rt2860sta is for a PCI card and is totally irrelevant, unless there is another wireless interface that is a PCI card
(some) mutually exclusive possibilities are:
rt2870sta if needed the supplied one is probably incorrect - it can be rebuilt ... painfully
** r8192s_usb **
(ref:
http://wiki.debian.org/rtl819x#r8192s_usb
https://bugs.launchpad.net/ubuntu/.../+bug/492034/.../35)
requires
(for more info see http://alexsleat.co.uk/2011/02/15/re...-ubuntu-10-10/ )
rt2800usb no fixes needed
================================================== ========
Best ** bet ** if Belkin USB wireless is a recent acquisition, V6 is the latest version.
If it is V6 install and test via:
Code:
lsusb | grep Belkin
sudo mkdir /lib/firmware/RTL8192SU/
# cd /lib/firmware/RTL8192SU/
# sudo wget http://svn.debian.org/wsvn/kernel/dists/trunk/firmware-nonfree/realtek/RTL8192SU/rtl8192sfw.bin
# replaced the above, it may not be adequate, it is only 6K while below is ~66K
wget http://launchpadlibrarian.net/373876...8192sfw.bin.gz
gunzip rtl8192sfw.bin.gz
sudo mv rtl8192sfw.bin /lib/firmware/RTL8192SU/
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
modprobe -r rt2860sta rt2870sta
modprobe r8192s_usb
ifconfig -a
sudo ifconfig wlan0 up
ifconfig
iwconfig
sudo iwlist scan
Re: How To: Manual Network Configuration without the need for Network Manager
I tried this but ran into issues, according to my router admin page I'm using `WPA-PSK[TKIP] + WPA2-PSK[AES]`
Code:
*-network
description: Wireless interface
product: BCM4312 802.11b/g LP-PHY
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth1
version: 01
serial: c4:17:fe:65:51:f8
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=wl0 driverversion=5.100.82.38 latency=0 multicast=yes wireless=IEEE 802.11bg
resources: irq:17 memory:f0400000-f0403fff
*-network
description: Ethernet interface
product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:04:00.0
logical name: eth0
version: 02
serial: 00:26:b9:23:ce:df
size: 10Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=N/A latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:41 ioport:2000(size=256) memory:f0810000-f0810fff memory:f0800000-f080ffff memory:f0820000-f083ffff
so edited
Code:
gksu gedit /etc/wpa_supplicant.conf
to look like
Code:
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="MYWIFI"
psk="MYKEY"
key_mgmt=WPA-PSK
proto=RSN WPA
pairwise=CCMP TKIP
group=CCMP TKIP
}
then
then I did
Code:
sudo ifconfig eth1 down
Code:
sudo dhclient -r eth1
Finally
Code:
wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant.conf -dd
The result wasn't successful:
Code:
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Line: 3 - start of a new network block
ssid - hexdump_ascii(len=15):
44 61 42 6c 75 65 43 68 65 65 7a 7a 7a 7a 65 DaBlueCheezzzze
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
key_mgmt: 0x2
proto: 0x3
pairwise: 0x18
group: 0x18
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='MYWIFI'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=19 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: c4:17:fe:65:51:f8
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): 2f ee 0c d3 87 fc 56 b1 aa 78 95 f3 28 f1 ff de
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
Using existing control interface directory.
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/eth1' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Failed to add interface eth1
No keys have been configured - skip key clearing
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
netlink: Operstate: linkmode=0, operstate=6
What am I doing wrong here? thanks
Re: How To: Manual Network Configuration without the need for Network Manager
Just posting to say thank you for putting together this documentation...I never would've figured it out on my own!
Hardware: HP Mini 1120NR
Software: Open1to1.org September 2012 image (based on Ubuntu 12)
Contents of my wpa_supplicant.conf:
-------
ap_scan=1
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="School Wifi"
scan_ssid=0
proto=WPA
key_mgmt=WPA-PSK
psk=longstringoflettersandnumbersgeneratedbywpa_pa ssphrasetool
pairwise=TKIP
group=TKIP
}
-------
Contents of my /etc/rc.local:
/sbin/ifconfig wlan0 down
/sbin/dhclient -r wlan0
/sbin/wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
/bin/sleep 5
/sbin/ifconfig wlan0 up
/sbin/dhclient wlan0
This gets the wireless connection up and running before the student logs in, and I did apt-get remove network-manager so that they canNOT reveal the PSK that we use to connect them to the trusted network. Whether they can discern it from that hash is another matter, but at least now they have to work for it!
Thanks again.
-- MB