====== wpa-supplicant and WPA Enterprise ======
This has been a challenge to get working, but I finally found the way. Hopefully this will make sense and work for most Linux distros (I set it up on Eeebuntu).
- Verify wireless drivers are working and the interface is up -- this should show an interface such as wlan0 and some configuration information
sudo iwconfig
sudo ifconfig wlan0 up
- Make sure wpa-supplicant and wpa-gui are installed
sudo apt-get update
sudo apt-get install wpasupplicant wpagui
- Remove !NetworkManager
sudo apt-get remove network-manager
- Create/edit your /etc/wpa_supplicant.conf file (Sample):
ctrl_interface''/var/run/wpa_supplicant
network''{
ssid''"your_ssid"
scan_ssid''1
proto''WPA
key_mgmt''WPA-EAP
pairwise''TKIP
eap''PEAP
phase2''"auth''MSCHAPV2"
}
- Edit /etc/network/interfaces:
sudo nano /etc/network/interfaces
sudo nano /etc/network/interfaces
- Run wpa-supplicant and wpa-gui
sudo wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
sudo wpa_gui
The GUI should open and prompt you for an Identity (username) and then a password. It should automatically get an IP address and you should be authenticated. You may need to run the following command to get an IP address.
sudo dhclient wlan0
===== Making it run on login =====
- Go back to the terminal window and type:
sudo nano /etc/network/interfaces
- Add the following lines in the part regarding your wireless card, as in the example below:
pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
- Go to**System->Preferences->Sessions**
- Click the**Add** button and add this command
gksudo wpa_gui
It will prompt for your Linux login password again to run wpagui as root. Then wpagui will prompt for an identity and password for the wireless network.
-- Main.FredPettis - 26 Aug 2009