Hi Everyone,
I wanted to post what worked for me to get my Lenovo Thinkpad T60 working with WPA/WPA2 wireless and Hardy. This information seems to be scattered all over the place so I thought I would compile it into a howto guide. I will walk you through downloading and configuring the lastest Madwifi trunk, and WICD. I used the r3616 of the Madwifi svn. I'm not sure if a newer svn will work. I prefer the WICD interface to Network Managers. YMMV if tried with Network Manager. I also haven't tried this in KDE. If there is anyone that wants to contribute to this or has a better way of doing this please give us your 2 cents. Here are the steps:
Install prerequisites to download and build Madwifi
1) Install kernel headers, subversion and build-essential. Open you favorite terminal program and enter the following code:
Code:
sudo aptitude install linux-headers-`uname -r` subversion build-essential
Download and install latest Madwifi svn.
2) Make directory to download latest svn into and download svn.
Code:
mkdir madwifi
cd madwifi
svn checkout http://svn.madwifi.org/madwifi/trunk #This will take a while.
3)Remove Madwifi drivers installed by Hardy
Code:
sudo ifconfig ath0 down
sudo ifconfig wifi0 down
#Repeat these 2 ifconfig lines for every MadWifi device you have
cd trunk/scripts
sudo ./madwifi-unload
sudo sh ./find-madwifi-modules.sh $(uname -r)
cd ..
4) Install Madwifi
Code:
make
sudo make install
5) Load Madwifi module and set module to start at boot
Code:
sudo modprobe ath_pci
sudo gedit /etc/modules
*the modules file only supports one device per line*
Enter ath_pci on the last line of the file and save.
6) Add WICD repository to Software Sources.
Go to System -> Administration -> Software Sources
Click on "Third-party Software" tab
Click add.
Add this for the "APT line" - deb http://apt.wicd.net hardy extras
Click "Add Source"
Click "Close"
Click "Reload" #Be sure to reload or the next step will not work
7) Install WICD. #This will remove Network Manager.
Code:
sudo aptitude install wicd
8) Load WICD gui at login
Go to System -> Preferences -> Sessions
Under the "Startup Programs" tab click "Add"
Under name type "WICD" #without quotes
Under command type "/opt/wicd/tray.py" #without quotes
Click ok
Load WICD without restarting ATL-F2 put this in the box /opt/wicd/tray.py and click run.
9) Let's see if your new install is working
Code:
lspci -nn | grep Network
you should get this 03:00.0 Network controller [0280]: Atheros Communications Inc. AR5418 802.11abgn Wireless PCI Express Adapter [168c:0024] (rev 01)
sudo lshw -C network | grep driver | sed 's/ /\n/g' | grep driver=
you should get this
driver=e1000
driver=ath_pci
sudo lsmod | grep ath_pci
you should get this
ath_pci 241856 0
wlan 255008 5 wlan_tkip,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal 281216 3 ath_rate_sample,ath_pci
10) Connect to WPA/WPA2 access point
Code:
sudo gedit /opt/wicd/encryption/templates/wpa
Change this line psk=$_PSK to this line psk=$_KEY
Go into the WICD Manager click on preferences and make sure that wext is the "WPA Supplicant Driver" and that ath0 is your "Wireless Interface".
Check "Automatically Reconnect on Connection Loss"
Click OK.
Now click "Refresh" at the top and you should see your AP's name and all of the other APs close to your location. If your AP has a hidden SSID you will need to add the AP's name to WICD. Just Click on the down arrow at the top of the WICD Manager next to "Network" and choose "Hidden Network" and follow the next directions. You will need to add the PSK and any other settings necessary to connect to your particular AP. Just click on the name of your AP and then Advanced and you can put all your settings in.
You should be set to go now. ENJOY!!!!
Jerick70
Bookmarks