Eduroam Romania

The Home of Eduroam project in Romania
 Home / UNIX (wpa_supplicant)
Guide - Different UNIX flavours - wpa_supplicant

Different UNIX flavours - Step by step configuration guide using wpla_supplicant


Please visit wpa_supplicant official site.

Below are our hints: 

1) In case your network adapter name is ethX (if you have intel cards) 
and you are using udev, you can rename your card

sudo su
echo wlan0 mac >> /etc/iftab
reboot

2) Configure wpa_supplicant


First download your institution server certificate:
(this example is for TUCN)
 
mkdir -p /etc/wpa_supplicant
wget "http://www.eduroam.ro/data/files/cert/ca.utcluj.ro.crt" -O /etc/wpa_supplicant/ca.utcluj.ro.crt


Then edit wpa_supplicant configuration file:


mcedit /etc/wpa_supplicant/wpa_supplicant.conf

-- cut here --
# EduRoam
network={
ssid="eduroam"
scan_ssid=1
key_mgmt=WPA-EAP
eap=TTLS
ca_cert="/etc/wpa_supplicant/ca.utcluj.ro.crt"

identity="your.username@domain.utcluj.ro"
password="yourpassword"
}
-- end here --



After that you can start wpa_supplicant with

wpa_supplicant -Bw -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

You may also use wpa_gui or wpa_cli to configure wpa_supplicant

3.1) If you are using a Debian like GNU/Linux distribtion
here is how you can configure your ifup / ifdown scripts

mcedit /etc/network/interfaces

-- cut here --
# The wireless network interface
iface wlan0 inet dhcp
pre-up wpa_supplicant -w -B -Dwext -iwlan0 -c
/etc/wpa_supplicant/wpa_supplicant.conf
post-down wpa_cli -iwlan0 terminate
-- end here --

After that you can start or stop the wireless interface with:

ifup wlan0
ifdown wlan0



3.2) If you are using a Gentoo like GNU/Linux distribtion
add this to your /etc/conf.d.net file:

config_wlan0=( "dhcp" )
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"
wpa_timeout_wlan0=60