Slow Wifi, Problem Solved- Ubuntu 10.04, 10.10

1. The Debian Avahi (nss-mdns) Bug
There is a known bug doing the rounds in Debian based distros, this includes Ubuntu.
The problem is in the nsswitch.conf file where wins mdns causes a slowdown of DNS resolution on some machines.…ahi/+bug/94940
A simple workaround for this problem is to remove mdns4_minimal entry from the nsswitch.conf file, or change mdns4_minimal to just mdns4 (whichever works best for you):
Edit this file- /etc/nsswitch.conf
Scroll down to the entry which says:
hosts: files dns wins mdns4_minimal
and delete the mdns4_minimal entry. (I removed wins as well), s it looks like this:
hosts: files dns
2. Check your DNS in resolv.conf
You should only have two entries (usually) which are your Internet Service Provider’s DNS servers.
Check and/or edit your dns servers:
gksudo scite /etc/resolv.conf
It should look something like this:
You may have an extra IP address there, possibly your router (, and if you haven’t got dns servers configured in your router config, this may cause a problem/slowdown as well. EG:
Just remove the first one and leave the two ISP DNS server IP’s.

original link

How change WiFi Rates – Linux

sudo iwconfig wlan0 rate 54M

Available rates: 1, 2, 6, 9, 12, 18, 24, 36, 48 and 54