Page 1 of 1

Wireless USB without using WiCD

Posted: Fri Sep 28, 2012 7:29 pm
by red6
Can anyone point me in the right direction here? I get spurious results with the "Wicd daemon and gtk" approach to configuring my "0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter". Is there a simpler way to get it running consistently. Besides, I like to run headless.

I am using what has proved to be a very decent powered USB hub. The recharger port on the Hub is my best power supply for my Pi(s) in my lab so far.

I am running Raspbian 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l GNU/Linux

red6

Re: Wireless USB without using WiCD

Posted: Fri Sep 28, 2012 9:48 pm
by d_older
This should work any wi-fi device with a wpa2 access point/router if the kernel drivers are loaded OK
you will need wpa_supplicant installed

Adapt as necessary for dhcp

(this works for Bus 001 Device 004:
ID 7392:7811 Edimax Technology Co., Ltd
EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] )

edit /etc/network/interfaces to :-
( change adresses to suit your network)
------------------------

auto lo

iface lo inet loopback
iface eth0 inet static
address 192.168.1.222
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1



allow-hotplug wlan0

#auto wlan0

# for wpa/wpa2
#
# *** all qoute marks needed *****
#
# check online for extra line for hidden access points
#
iface wlan0 inet static
wpa-ssid "your_ssid"
wpa-psk "your_password"
address 192.168.1.223
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1


and then edit /etc/resolv.conf to:-
namesever 8.8.8.8

this is google's nameserver, substitute your ISPs or your router.

Regards.

Re: Wireless USB without using WiCD

Posted: Fri Sep 28, 2012 10:54 pm
by red6
Thanks. Just tried your suggestion. No luck.
I don't even have a wlan0 when I run ifconfig.

I DO have a usb device plugged in as you can see from 'lsusb' but no sign of a Realtek device from 'lsmod' below ...

Code: Select all

lsusb
Bus 001 Device 006: ID 0bda:8192 Realtek Semiconductor Corp. RTL8192U 802.11n Wireless Adapter

[email protected]:~# lsmod
Module                  Size  Used by
snd_bcm2835            19889  0
snd_pcm                74834  1 snd_bcm2835
snd_seq                52536  0
snd_timer              19698  2 snd_seq,snd_pcm
snd_seq_device          6300  1 snd_seq
snd                    52489  5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm



Wireless USB without using WiCD - Solved !

Posted: Sat Sep 29, 2012 2:08 am
by red6
Found this site from another posting. Make sure you follow the comments below the posting...

Works!!!
http://www.t3node.com/blog/sempre-wirel ... pberry-pi/

Re: Wireless USB without using WiCD

Posted: Sat Sep 29, 2012 10:01 pm
by inder
The comments on the blog post are very interesting; especially the last one by the blogger. It has a scheme for encoding the wpa password. I wonder if anyone has tried it. Perhaps some kind Linux guru will explain how it works.

Re: Wireless USB without using WiCD

Posted: Sun Sep 30, 2012 3:13 pm
by red6
Just run:

/usr/bin/wpa_passphrase Your_Access_Point_ SSID Your_Key

And then copy and paste the output "psk=abcdefabcdefabcdefabcdefabcdef...." into the /etc/network/interaces file.

Worked for me.

Re: Wireless USB without using WiCD

Posted: Sun Sep 30, 2012 6:08 pm
by inder
Thanks; my confusion arises from the fact that normally /etc/network/interface file works fine with the unencrypted wpa-psk. If it also works with the encrypted version, what's the distinguishing factor? Perhaps it's the double quotes used with the unencrypted version.

Re: Wireless USB without using WiCD

Posted: Sun Sep 30, 2012 6:53 pm
by red6
I should try the config with my clear key. Not sure why it was recommended to use the hashed version other than that from a security standpoint, it is nice to not store you key in a file in the clear and I am guessing this is a one way hash that WPA is implementing.