The Network GUI on the default Xandros installation does not correctly parse spaces in a WPA/WPA2 SSID and passkey, which hampers connectivity if the access point requires one or more spaces.
This page is intended to show you how to configure your Eee PC to use WPA and WPA2, with spaces in the SSID and passkey, without downloading any additional tools. The steps in this document have been tested on a PC701 4G (BIOS version 0801), freshly factory-restored from the supplied DVD, connecting to a Linksys WRT54GL running dd-wrt with WPA2/AES enabled. The information presented here has been collated from snippets posted in numerous places on the wiki and forum.
I have learned two methods of performing this: the quick method, and the slightly longer method.
sudo nano /etc/network/interfaces
wireless-key s: and replace the bogus passphrase with your chosen one, including any spaces. Do not put quotation marks around it.sudo kwrite /etc/network/if-pre-up.d/0001xandros-wireless-tools
if [ -n `echo $IF_WIRELESS_KEY | grep ^s:` ]; then … ending with a fi line (fi ends if, get it?), and replace them with IF_WIRELESS_KEY=“${IF_WIRELESS_KEY#s:}” . That's bash's built in way to say cut anything matching “s:” from the head. The “s:” prefix must be used in another script as a sigil about this being a string, not hex, key./usr/sbin/xandros-wpa-config $WPA $IF_WIRELESS_KEY “$IF_WIRELESS_ESSID” (it's line 312 on my machine; yours may differ) and put quotation marks around $IF_WIRELESS_KEY. The line should now read /usr/sbin/xandros-wpa-config $WPA “$IF_WIRELESS_KEY” “$IF_WIRELESS_ESSID”.sudo kwrite /usr/sbin/xandros-wpa-config
PSKOUT=`/usr/sbin/wpa_passphrase “$ESSID” $WPA_KEY` (it's line 50 on my machine; yours may differ) and put quotation marks around $WPA_KEY. The line should now read PSKOUT=`/usr/sbin/wpa_passphrase “$ESSID” “$WPA_KEY”`./home/user for most people). If not, type the following command to change to your home directory: cd
cp /etc/wpa_supplicant.conf.ath0 wpa_supplicant.conf_MINE
nano wpa_supplicant.conf_MINE
ctrl_interface=/var/tmp/wpa_supplicant
network={
ssid="My SSID"
key_mgmt=WPA-PSK
psk=1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
}
“My SSID” with the SSID of your router. Make sure it's enclosed in quotation marks.psk=. They're the encrypted form of the bogus passkey you typed earlier. You're going to replace them with the encrypted form of your real passkey. There's a little program on your Eee which can calculate the proper PSK, or there's a handy online tool you can use to create the encrypted passkey: http://www.wireshark.org/tools/wpa-psk.htmlsudo wpa_passphrase "My SSID" "My passphrase including spaces"
psk= with the real PSK you just obtained either from the Wireshark page or from wpa_passphrase. Type very carefully. One single wrong character will cause the connection to fail.sudo cp wpa_supplicant.conf_MINE /etc
cd /etc/network
sudo nano interfaces
wireless-essid and is followed by your router's SSID in quotation marks? Remove the quotation marks. If the line reads wireless-essid “My SSID” it should become wireless-essid My SSID. Ignore the following line, the one which contains the bogus passkey you entered earlier.up ifconfig $IFACE up. You need to insert the following two lines immediately before that line: up cp /etc/wpa_supplicant.conf_MINE /etc/wpa_supplicant.conf.ath0 up wpa_cli -p /var/tmp/wpa_supplicant reconfigure
If this doesn't work for you, go through each step carefully. Make sure your typing is completely accurate, especially where the encrypted passkey is concerned. I'm not a Linux expert; I just pieced together various bits of information to get this working for me. I hope it's useful for you, too.