Wireless connection by using command screen
- by Amadeus
I installed Ubuntu 12.04 armhf to my beagleboard-xm and now trying to connect to a wireless network. First, I checked if I can search for available networks:
ubuntu@arm:~$ iwlist scan
lo Interface doesn't support scanning.
usb0 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: EA:7D:EF:60:C9:0B
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=70/70 Signal level=-23 dBm
Encryption key:on
ESSID:"ghostrider"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Ad-Hoc
Extra:tsf=000000005a1ab50e
Extra: Last beacon: 6242ms ago
IE: Unknown: 000A67686F73747269646572
IE: Unknown: 010882848B962430486C
IE: Unknown: 030101
IE: Unknown: 06020000
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: Unknown: 32040C121860
IE: Unknown: 2D1A2C181BFF00000000000000000000000000000000000000000000
IE: Unknown: 3D16010800000000FF000000000000000000000000000000
IE: Unknown: DD09001018020000000000
Then I edited /etc/network/interfaces file to the following:
root@arm:/etc/wpa_supplicant# cat /etc/network/interfaces
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
# WiFi Example
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "ghostrider"
wpa-psk "b34d373eb2fb836a43b0afffe783c7d0af694724506c9e77b06d1021302905bf"
But I cannot still connect to the wireless network:
root@arm:/etc/wpa_supplicant# iwconfig
lo no wireless extensions.
usb0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Asociated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
eth0 no wireless extensions.
root@arm:/etc/network# ifup wlan0
Failed to bring up wlan0.
What is wrong? Should I change any other files also? But I think it was enough. By the way if you are curious about where that wpa-psk came from:
zero@ghostrider:~$ wpa_passphrase ghostrider 34bddf67c2
network={
ssid="ghostrider"
#psk="34bddf67c2"
psk=b34d373eb2fb836a43b0afffe783c7d0af694724506c9e77b06d1021302905bf
}
I will appreciate any effort to help.
Regards,
Amadeus
ps: Also I tried to connect manually:
root@arm:/etc/network# iwconfig wlan0 essid ghostrider key s:34bddf67c2
But this did not solve my problem also.