I played around with Ubuntu 8.04 trying to connect my computer to my TEW-432BRP wireless router using this TrendNet TEW-424UB usb adapter and finally succeeded tonight
In case this is useful for someone
else, here is how I did. (I assume that everything else works properly, that you do have an internet connection if you connect directly into the router, etc.)
- Setup the router security to WEP hex 64-bit key (10 hexadecimal digits)
- Download the rtl8187b driver from Realtek web site and unzip it somewhere.
- Install ndiswrapper as mentioned in the previous post or using Synaptic.
From the terminal, make the following incantations:
Code:
cd ~/where/driver/unziped/RTL8187B/WinXP
sudo ndiswrapper -i net8187b.inf
sudo ndiswrapper -l
sudo modprobe ndiswrapper
the "sudo ndiswrapper -l" command should output:
net8187b : driver installed
device (0BDA:8189) present
The driver is now installed, and you should see the adapter (wlan0) by typing iwconfig or ifconfig. If you don't see it, reboot, you should see it afterwards. (There is probably another way but I'm not geek enough
)
We still need to connect and get an IP adress:
Code:
sudo iwconfig wlan0 key NNNNNNNNNN
sudo dhclient wlan0
where NNNNNNNNNN is your 10 digit WEP hex key
You will need to do these two incantations everytime you boot. You may put them in a script file, make it executable, then add a link on the desktop to launch it more quickly.
BEWARE: all this time, the little network icon at the top right of your screen indicates that there is no connexion. Just don't bother with it and especially don't try to make it work using the different menu related to it, it will mess up everything and you won't be able to connect again even with the incantations. Actually, it will see the router, but it can't get an IP address from it. I tried alot, but found no solution. AND you can't even make the script work! If you still do the bad thing, this is the way out: remove all ndiswrapper related packages, reboot, make sure wlan0 is not there anymore (ifconfg & iwconfig), and restart the process.
Hope it helps!
Bookmarks