fit-PC2 & Ubuntu 9.10: Configure Wi-Fi access for WPA2 protected WLAN


Here is a step-by-step tutorial how to configure a fit-PC2 running Ubuntu 9.10 to connect to a WPA2 protected WLAN.

First, follow the instructions on http://www.fit-pc2.com/forum/viewtopic.php?f=43&t=1150 to install some fit-PC2 packages that ensure the hardware support. After rebooting, the system should use the fit-PC2 kernel:

# sudo uname -r
2.6.31-34-fitpc2

Next, create the file /etc/wpa_supplicant/wpa_supplicant.conf with the following content:

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
network={
        ssid="[YOUR-SSID]"
        scan_ssid=1
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=CCMP
        psk="[YOUR-WPA2-KEY]"
}

You may have to change the values for pairwise and group to “TKIP” depending on your WPA2 settings. You can read the settings from the output of

# sudo iwlist scanning 

which look in my case like:

[...]
Cell 01 - Address: ...
          Protocol:802.11b/g/n
          ESSID:"..."
          [...]
          IE: IEEE 802.11i/WPA2 Version 1
            Group Cipher : CCMP
            Pairwise Ciphers (1) : CCMP
            Authentication Suites (1) : PSK
[...]

In a last step, add the following lines in /etc/network/interfaces to configure the WLAN device (we use dhcp in this example):

auto wlan0
iface wlan0 inet dhcp
       wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

After restarting the network services your fit-PC2 should be connected to the WLAN:

# sudo /etc/init.d/networking restart

You can use iwconfig to check the status of your WLAN device:

,

2 responses to “fit-PC2 & Ubuntu 9.10: Configure Wi-Fi access for WPA2 protected WLAN”

Leave a Reply

Your email address will not be published. Required fields are marked *