I worked out how to use wpa_supplicant on Ubuntu to do 802.1X authentication at University on my x40 ThinkPad.
It's just a case of getting it all in the right order and getting the CA certificate from somewhere (I exported mine from my Mac under OS X which of course - justs works)
The crucial bits that took me a while where putting ap_scan=0 outside of the network brackets. Now I think about it its obvious thats its a global option but I didn't notice it in the manual. This allows the driver to do the scanning of SSIDs as apposed to wpa_supplicant - the secure uni network is hidden and without this debug output indicated that it was not finding the network. Also for my network I think I have to ensure that I use phase1="peapver=0" I worked that out when I was getting my Nokia E61 running Symbian to working on the same network.
my wpa_supplicant file now looks like this:
burt@bobby:/etc/wpa_supplicant$ cat wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ap_scan=0
network={
ssid="SHU-USS"
key_mgmt=WPA-EAP
eap=PEAP
identity="myusername"
password="password"
ca_cert="/home/burt/certificates/myunicertifcate"
phase1="peapver=0"
phase2="auth=MSCHAPV2"
}
and after that I just start up wpa_supplicant
burt@bobby:/ sudo wpa_supplicant -Bw -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf
and then getting a dhcp address:
burt@bobby:/etc/wpa_supplicant$ sudo dhclient eth1
Now I have this working I might think about trying to work out what keep causing nm-applet (the default way of managing to wifi in ubuntu 7.10) to fall over after connecting to the network if I can find the time. For the moment it works and thats what I care about. I get to stay in Linux for longer - which on this laptop is much faster and much as I hate to sound like a fanboi works better than Windows (for my uses) a large amount of the time (wpa Enterprise networks apart).
Update:
Interesting gotcha - wpa_supplicant seems to only work after I run it up with ap_scan=2 in the wpa_supplicant.conf file (which fails) then change it back to ap_scan=0 and run up wpa_supplicant again. - this is after the x40 has been in hibernation.
Showing posts with label x40. Show all posts
Showing posts with label x40. Show all posts
Wednesday, November 7, 2007
Friday, November 2, 2007
Thinkpad x40 Ubuntu Linux

Some notes on how I setup Linux on IBM/Levano ThinkPad X40
Backing Up System Restore Partition
The system came with no disks (I don't think they do even if new) but does come with a system restore partition.
I decided I would like to be able to restore the system to a 'blank' windows state at a later time if I wanted to sell the laptop.
The system allows for the making of backups using a utility under All Programs -> ThinkVantage -> Create Recovery Media.
As I didn't buy a docking station for the system I have no cd rom drive but I decided against using a usb hard disk to back the partition as I didn't really want to dedicate yet another disk to permanent storage, its bound to fail or get wiped by accident. So I used a LaCie USB 3.5 disk caddy connected to an old cd burner. It's only USB 1 ports but seems to do the trick.
This is just a recovery option, so I also used the build in rescue and recovery software to make a backup of the system as it was then copied that back to my macbook pro to burn to dvd.
Testing the backups: boot from the recovery cdrom to check it works correctly (hit f12 at boot)
I was going to install across the network, but since I have a cobbled together cdrom drive I didn't bother.
Ubuntu 7.04 text install boots ok from the cd drive, but then fails to work out what cdrom drive module to use
selecting cdrom from the modules list and entering /dev/scd0 worked for me
Resizing partitions - I used guide resize and selected 20gb to resize to and hoped that it wouldn't blat windows or the system restore partition
(not the end of the world if it did - but would be annoying to have to restore.)
After it was installed I updated it to 7.10 using update manager and all is good.
One minor fix to the behavior of the Fn + F5 button was found in bug 152217
I'm still investigating some odd behavior with the wireless nm-applet and some scary stories about aggressive power management parking the disk to often.
But apart from that the system is great under ubuntu even with 768MB Ram and a 1.5 Pentium Mobile. I carry it most places as it weighs almost nothing even with the larger 8Cell battery sticking out the back.
Subscribe to:
Posts (Atom)