User Tools

Site Tools


wpa-supplicantandwpaenterprise
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


wpa-supplicantandwpaenterprise [2013/01/28 04:29] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== wpa-supplicant and WPA Enterprise ======
 +<p>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).</p>
 +  - Verify wireless drivers are working and the interface is up -- this should show an interface such as wlan0 and some configuration information
 +<file>
 +sudo iwconfig
 +sudo ifconfig wlan0 up
 +</file>
 +  - Make sure wpa-supplicant and wpa-gui are installed
 +<file>
 +sudo apt-get update
 +sudo apt-get install wpasupplicant wpagui
 +</file>
 +  - Remove !NetworkManager
 +<file>
 +sudo apt-get remove network-manager
 +</file>
 +  - Create/edit your /etc/wpa_supplicant.conf file (Sample):
 +<file>
 +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"
 +}
 +</file>
 +  - Edit /etc/network/interfaces:
 +<file>
 +sudo nano /etc/network/interfaces
 +</file>
 +<file>
 +sudo nano /etc/network/interfaces
 +</file>
 +  - Run wpa-supplicant and wpa-gui
 +<file>
 +sudo wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
 +sudo wpa_gui
 +</file>
 +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.
 +<file>
 +sudo dhclient wlan0
 +</file>
 +===== Making it run on login =====
 +  - Go back to the terminal window and type:
 +<file>
 +sudo nano /etc/network/interfaces
 +</file>
 +  - Add the following lines in the part regarding your wireless card, as in the example below:
 +<file>
 +pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
 +post-down killall -q wpa_supplicant
 +</file>
 +  - Go to**System->Preferences->Sessions**
 +  - Click the**Add** button and add this command
 +<file>
 +gksudo wpa_gui
 +</file>
 +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
wpa-supplicantandwpaenterprise.txt · Last modified: 2013/01/28 04:29 by 127.0.0.1