Howto: Setup the 2WIRE 802.11g Wireless USB Adapter for Ubuntu Feisty, Gutsy, and Heron!


The 2WIRE USB Adapter comes with 2Wire home portals, it has long plagued Ubuntu and Linux users alike, I have had one for quite a while(got it with my 2WIRE Home Portal) and it has been collecting dust, to get this running on Ubuntu I had tried everything, I searched the web and didnt find a thing, just complaints that it doesnt work and people having problems. If you have the same card as me and use TKIP encryption, this will definately work for you, enjoy!

Ok first lets see if you have the same card as me:
open up a terminal and type:

lsusb

If you see 1630:0005 you have the same exact card, and if yours looks like the picture above like mine does this should help you :)

Now what we must do is grab The drivers that are located in the root directory of the 2WIRE installation cdrom or wget them from my hosting:
wget http://www.users.qwest.net/~choice240662796/WlanUIG.inf
wget http://www.users.qwest.net/~choice240662796/WlanUIG.sys


Then what we must do is load the driver:
sudo ndiswrapper -i WlanUIG.inf


Lets see if it loaded properly shall we?
type:
$ ndiswrapper -l
wlanuig : driver installed
device (1630:0005) present

Sweet! Its loaded now we are half way finished!

Then lets write module alias configuration for all devices:
sudo ndiswrapper -ma

Now lets write module install configuration for all devices so its starts on boot!
sudo ndiswraper -mi

Ok then finally lets load up ndiswrapper kernel module to see if it works!
sudo modprobe ndiswrapper
Now lets type:
sudo iwconfig

Now you should see a new wireless adaptor listed "wlan0, if not your fuqd and you need to ask for help!

Now that the driver is loaded we can move to the next step, installing wpa_supplicant:
sudo apt-get install wpasupplicant


Now lets configure Wpa Supplicant!

Now that wpa supplicant is installed we need to grab some basic information:
Wireless SSID
Wireless psk passphrase

Once you have these we need to issue this command:
wpa_passphrase
usage: wpa_passphrase [passphrase]


Ok you see whats above? Great now Lets follow the usage instructions above

wpa_passphrase 2WIRE31337 mysecurepassword


Here is the output:
network={
ssid="2WIRE31337"
#psk="mysecurepassword"
psk=1a2043835852349c1c8288323f8899324259ce3845c1ee44fab7f3ee4ee8eb20
}

Ok now lets open up wpa supplicants config file
sudo gedit /etc/wpa_supplicant.conf

Now you need to edit your config file like so

ctrl_interface=/var/run/wpa_supplicant
ap_scan=2

network={
ssid="2WIRE31337" <-- your ssid of course
psk=1a2043835852349c1c8288323f8899324259ce3845c1ee44fab7f3ee4ee8eb20 <-- generated psk above
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
}

Ok Save the file with ctrl-s and exit gedit.

Now we have to make wpa_supplicant load when system boots, so go back to the terminal window and type:

sudo gedit /etc/network/interfaces


Here is the static network configuration, make sure it is setup properly according to your router/network settings:
auto wlan0
iface wlan0 inet static
address 192.168.1.66
netmask 255.255.255.0
wireless-essid 2WIRE31337
gateway 192.168.1.254
pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

Alternately Here is the Dynamic Configuration, uncomment to use:
#auto wlan0
#iface wlan0 inet dhcp
#pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
#post-down killall -q wpa_supplicant


Now once /etc/network/interfaces is properly configured lets ctrl-s to save then exit.

Now if all goes well you should be connected, lets find out!
sudo /etc/network/interfaces restart
ping www.yahoo.com :)


Lost your 2wire USB Install CD? I got you covered, here is the full CD that came with my 2WIRE USB Dongle, drivers, docs and all!

Clicky Web Analytics