After it took me a whole day trying, I thought this might be useful to anybody else with an orange livebox using WPA2-PSK (AES)...
1. Extensions required: openssl-0.9.8h, wpa_supplicant, wireless-2.6.29.1-tinycore, wireless_tools and the wireless driver for your hardware - in my case "wl". It is probably a good idea to check if wpa_supplicant supports your driver, see here
http://hostap.epitest.fi/wpa_supplicant/2. Load various wireless modules:
sudo modprobe lib80211_crypt_tkip
sudo modprobe lib80211_crypt_wep
sudo modprobe lib80211_crypt_ccmp
sudo modprobe wl [insert your wireless hardware driver here]
3. Obtain the very long pass key, using the code printed on the back of the manual that came with the livebox. Note that case matters, i.e. "a" is not the same as "A":
$ wpa_passphrase Livebox-XXXX 54E0DB75B1540CA5D189C36BED
network={
ssid="Livebox-XXXX"
#psk="54E0DB75B1540CA5D189C36BED"
psk=1a2bf5a8566b863bb50d71d9e3fc609995755ddd3eb40b33aeb3b02cd7d584d2
}
4. Create /etc/wpa_configure.conf as follows:
ap_scan=1
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Livebox-XXXX"
scan_ssid=0
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=1a2bf5a8566b863bb50d71d9e3fc609995755ddd3eb40b33aeb3b02cd7d584d2
}
5. If /var/run/wpa_supplicant does not exist, then create it:
$ sudo mkdir -p /var/run/wpa_supplicant
6. Start wpa_supplicant as a daemon:
$ sudo wpa_supplicant -Bdd -Dwext -i eth1 -c/etc/wpa_configure.conf
note that "dd" gives a lot of debug output, which can be dropped once things work.
7. ..and finally, bring up the network interface:
$ sudo udhcpc -b -i eth1
The following wpa_configure.conf also works, but the one above was suggested by wicd, whom I assume know more than me on the subject (see file of the form /usr/local/var/lib/wicd/configurations/0018e72e8e35):
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Livebox-XXXX"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
psk=1a2bf5a8566b863bb50d71d9e3fc609995755ddd3eb40b33aeb3b02cd7d584d2
}