Asus Eee PC netbook tip / howto: Getting WPA (PSK) to work

(Nederlandse versie)
back to Eee PC netbook notes and tips index

The wireless connection wizard seems to have trouble making a WPA (PSK) connection. A way to make it work is given below. All commands are given from a terminal (start one by pressing Ctrl + Alt + T) and as the root user. In the original Eee operating system you can become root by typing sudo su (+ enter), if you've switched to Eeedora like me, type su (+ enter) and then the root password.

  • assuming your access point is called "myAP" and your passphrase is "hello world", type:

    /usr/sbin/wpa_passphrase myAP hello\ world > /etc/my_wpa.conf

    (prefix every space in the passphrase with a backslash)
  • cd /usr/bin
  • create a file wpa using a simple editor, for example:
    joe wpa
    (in this editor, press Ctrl+k, h for help)
  • copy and paste this text into the editor, or type it in:

    /usr/sbin/wpa_supplicant -iath0 -c /etc/my_wpa.conf
    sleep 3
    /sbin/dhclient &

  • save the file, then exit the editor
  • chmod 755 wpa
From now on, you should be able to start the wireless connection by typing (as root) wpa in a terminal. After a few seconds, you should see stuff like:

DHCPREQUEST on ath0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.4 -- renewal in 36989 seconds

(don't worry if your numbers are a bit different, as long as you get the DHCPACK and the "bound to" message you're good to go)


back to notes and tips index