I have updated this HOW-TO. Everything should work smoothly. Confirmed to work with Dapper and Edgy
Howto: Wireless with Rt2500 cards using WPA and latest driver
This howto is for wireless pci cards that use the rt2500 driver which is included in the stock ubuntu installation. For whatever reason, the rt2500 driver that ships with ubuntu can be a bit buggy and annoying. This Howto will show you how to update your driver and connect to a WPA protected wireless network (you should use WPA over WEP, anyways).
I use a linksys wmp54g card and this howto is based on my experiences. Not sure if it'll work for other cards, but for the wmp54g you should be good.
1. First, check to see if your card uses the rt500 driver
check the output for Network, particularly under driver. If it says something else, then reconsider following this guide - this is probably not for you.lshw
2. Be sure to set up WPA with your router. I find that you should use "wpa personal" and "TKIP" algorithm. A shared key of 52 alphanumerial characters is what I use. For some reason, whenever I try to use a higher number or non-alphanumerial characters, WPA does not work with ubuntu. I have also noticed that setting ESSID to be hidden makes wireless act slightly buggy, so make sure ESSID is visible (hiding the ESSID is a weak security method, so dont worry about it). Wireless MAC filtering is also buggy. These are just suggestions and your mileage may vary. I also recommend checking out these tips for tweaking your signal particularly if your router is a linksys: http://www.linksysinfo.org/portal/fo...ad.php?t=47284
I also recommend disabling onboard LAN functions if you have an onboard ethernet card. You can do this by editing your BIOS.
3. In order to use WPA, you must modify your /etc/network/interfaces file.
substitute kate for gedit if you use kubuntu. or use nano if you prefer commandline.sudo gedit /etc/network/interfaces
copy and paste the following into that text file and save. Be sure to replace the *** with your own information.
For DHCP, use the following:
For static IP addresses, use the following instead (be sure to modify the address, netmask and gateway for your own personal settings):# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
auto ra0
iface ra0 inet dhcp
pre-up ifconfig ra0 up
pre-up ifconfig ra0 down
pre-up ifconfig ra0 up
pre-up ifconfig ra0 down
pre-up iwconfig ra0 essid "******"
pre-up iwconfig ra0 mode Managed
pre-up iwpriv ra0 set AuthMode=WPAPSK
pre-up iwpriv ra0 set EncrypType=TKIP
pre-up iwpriv ra0 set WPAPSK="*********"
pre-up ifconfig ra0 up
Of course, essid is the name of your network; channel is the frequency that you use and have specified in your router; wpapsk is your wpa shared key (be sure to use quotation marks).# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
auto ra0
iface ra0 inet static
address 192.168.x.xx
netmask 255.255.255.0
gateway 192.168.1.1
pre-up ifconfig ra0 up
pre-up ifconfig ra0 down
pre-up ifconfig ra0 up
pre-up ifconfig ra0 down
pre-up iwconfig ra0 essid "******"
pre-up iwconfig ra0 mode Managed
pre-up iwpriv ra0 set AuthMode=WPAPSK
pre-up iwpriv ra0 set EncrypType=TKIP
pre-up iwpriv ra0 set WPAPSK="*******"
pre-up ifconfig ra0 up
Save and close the file.
You also need enter the DNS server information. This is essential:
and enter your DNS info and search info. My resolv.conf looks like so:sudo nano /etc/resolv.conf
Your DNS will be different according to your ISP. I recommend using those nameservers as they are from opendns.com which is very fast. Your search will be different. You can aquire this info from your ISP if you do not know it.nameserver 208.67.222.222
nameserver 208.67.220.220
search hsd1.xx.xxxx.net.
4. Now, to update your driver to the latest rt2500.
I highly recommend updating the driver - it is quite easy to do if you simply follow the instructions line by line
This will install necessary packages for the compilation, after typing your password.sudo apt-get install build-essential linux-headers-$(uname -r)
and then:
Reboot your computer once installation is complete. If you get an error complaining about "***/kernel/drivers/net/wireless/rt2x00-legacy/rt2500" or so not being found, dont worry about it.wget http://rt2x00.serialmonkey.com/rt2500-cvs-daily.tar.gz
tar -xzf rt2500-cvs-daily.tar.gz
cd ./rt2500*/Module
make
sudo ifdown ra0
sudo cp ~/rt2500*/Module/rt2500.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
sudo cp ~/rt2500*/Module/rt2500.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2x00-legacy/rt2500/
sudo cp ~/rt2500*/Module/rt2500.ko /lib/modules/`uname -r`/kernel/ubuntu/wireless/rt2x00-legacy/rt2500
echo "alias ra0 rt2500" | sudo tee /etc/modprobe.d/rt2500
sudo depmod
If your wireless is not "up" or enabled, you can enable it via commandline with:
Your internet connection should work now. I will keep this howto up-to-date with suggestions. Let me know if it works or not. Credit to drag, jdong, AndyCooll, and the authors of this wiki for your posts that helped form this howto.sudo ifup ra0



Adv Reply




Bookmarks