特殊:Badtitle/NS100:WifiDocs/EduPaSS:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/WifiDocs/EduPaSS}} {{Languages|UbuntuHelp:WifiDocs/EduPaSS}} == Joining the eduPaSS WiFi Network == This document is intended to help setting up ... |
小无编辑摘要 |
||
(未显示2个用户的5个中间版本) | |||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:WifiDocs/EduPaSS}} | {{Languages|UbuntuHelp:WifiDocs/EduPaSS}} | ||
== Joining the eduPaSS WiFi Network == | == Joining the eduPaSS WiFi Network == | ||
This document is intended to help setting up an eduPaSS wireless connection with Ubuntu Linux or any GNOME-based system (KDE should work with the WPA Supplicant file detailed here). | This document is intended to help setting up an eduPaSS wireless connection with Ubuntu Linux or any GNOME-based system (KDE should work with the WPA Supplicant file detailed here). | ||
eduPaSS is a large Wi-Fi network, used throughout Victorian government schools in Australia. | eduPaSS is a large Wi-Fi network, used throughout Victorian government schools in Australia. | ||
These instructions were collated from mailing lists and manpages by Laurie Savage. Thanks to Donna Benjamin and Ian Green. | These instructions were collated from mailing lists and manpages by Laurie Savage. Thanks to Donna Benjamin and Ian Green. | ||
As of October 22 2007, there seems to be a bug in Network Manager under Gutsy which prevents this working (see [http://mail.gnome.org/archives/networkmanager-list/2007-October/msg00058.html The NM mailing list archive] for info. You can get around this by using the wpa_supplicant method at the bottom. | |||
=== | -- As of January 29, 2008 - The NM method(Network manager in gnome/kde) appears to be working again. However settings are not retained upon reboot | ||
-- As of April 21, 2008 in Hardy Beta (8.04) the Network Manager method is working again. | |||
=== Creating and converting the certificates === | |||
1. Create a Mac certificate on edupass. My certificate archive was called "savubuntu.zip" - this name is important, it will be the machine name used later. The zip file contains "root.pem" and "usercert.p12" (in my case "savubuntu.p12")and I unzipped the file into /home/user/Documents/eduPaSS. | 1. Create a Mac certificate on edupass. My certificate archive was called "savubuntu.zip" - this name is important, it will be the machine name used later. The zip file contains "root.pem" and "usercert.p12" (in my case "savubuntu.p12")and I unzipped the file into /home/user/Documents/eduPaSS. | ||
2. Convert usercert.p12 to usercert.pem and userkey.pem using openssl in a terminal: | |||
<pre><nowiki> | <pre><nowiki> | ||
openssl pkcs12 -nocerts -in usercert.p12 -out userkey.pem | openssl pkcs12 -nocerts -in usercert.p12 -out userkey.pem | ||
openssl pkcs12 -clcerts -nokeys -in usercert.p12 -out usercert.pem | openssl pkcs12 -clcerts -nokeys -in usercert.p12 -out usercert.pem | ||
</nowiki></pre> | </nowiki></pre> | ||
Remember to substitute your certificate's name for usercert | Remember to substitute your certificate's name for usercert | ||
=== Installing Network Manager (Edgy or earlier) === | |||
(this is automatically installed in Feisty and later version) | |||
1. Install the wpasupplicant and network-manager-gnome packages using Synaptic or apt-get: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install wpasupplicant network-manager-gnome | sudo apt-get install wpasupplicant network-manager-gnome | ||
</nowiki></pre> | </nowiki></pre> | ||
2. Comment out all references in '''/etc/network/interfaces''' to wireless interfaces. If you don't do this you will not see any wireless networks in [[UbuntuHelp:NetworkManager|NetworkManager]]'s menu. | |||
3. Restart and run '''nm-applet''' (the GNOME front end to [[UbuntuHelp:NetworkManager|NetworkManager]]). | |||
<pre><nowiki> | <pre><nowiki> | ||
killall nm-applet | killall nm-applet | ||
nm-applet & | nm-applet & | ||
</nowiki></pre> | </nowiki></pre> | ||
The nm-applet icon appears on the panel in the notification area. | The nm-applet icon appears on the panel in the notification area. | ||
=== Setting up Network Manager === | |||
1. Click on the applet and choose '''Connect to Other Wireless Network''' | |||
<pre><nowiki> | <pre><nowiki> | ||
SSID = eduPaSS-XXXX-01 (Replace XXXX with the school number) | SSID = eduPaSS-XXXX-01 (Replace XXXX with the school number) | ||
第46行: | 第46行: | ||
Private key password = [password used to create the Macintosh certificate] | Private key password = [password used to create the Macintosh certificate] | ||
</nowiki></pre> | </nowiki></pre> | ||
2. Hit connect. | |||
3. You will be asked for a key ring password the first time it connects. If you have not created a key ring for other applications this is a local, machine based password and you will be prompted to create one the first time you connect. | |||
The GNOME [[UbuntuHelp:NetworkManager|NetworkManager]] is a lovely tool, it detects new networks and you only need to choose them from the list. I have noticed it drops the connection a bit after rebooting, possibly the change of WEP key or something else on my system that is disturbing it. It connects fine when you click the applet again but a it's a little annoying. | |||
=== WPA Supplicant Configuration === | |||
If the Network Manager configuration above works for you, then you don't need to read this section. | |||
1. Create and convert the certificates as described above. | |||
2. You may want to stop and disable Network Manager: | |||
<pre><nowiki> | |||
sudo /etc/dbus-1/event.d/26NetworkManagerDispatcher stop | |||
sudo /etc/dbus-1/event.d/25NetworkManager stop | |||
</nowiki></pre> | |||
Create two files with only the word 'exit' in them. These files are: | |||
<pre><nowiki> | |||
/etc/default/NetworkManager | |||
/etc/default/NetworkManagerDispatcher | |||
</nowiki></pre> | |||
4. Create or edit /etc/wpa_supplicant/wpa_supplicant.conf to look like: | |||
=== | <pre><nowiki> | ||
fast_reauth=1 | |||
network={ | |||
ssid="eduPaSS-XXXX-01" | |||
key_mgmt=IEEE8021X | |||
eap=TLS | |||
identity="savubuntu" #(name of the certificate/zipfile) | |||
ca_cert="/path/to/root.pem" | |||
client_cert="/path/to/usercert.pem" | |||
private_key="/path/to/userkey.pem" | |||
private_key_passwd="password used to create the Mac certificates" | |||
eapol_flags=3 | |||
} | |||
</nowiki></pre> | |||
4. Try out wpa_supplicant: | |||
<pre><nowiki> | <pre><nowiki> | ||
$ sudo wpa_supplicant -ieth1 -c /etc/wpa_supplicant/wpa_supplicant.conf -w | |||
</nowiki></pre> | |||
You may need to specify a driver with the -D flag (see wpa_supplicant docs for more info), or use a different interface than eth1. | |||
You should get something along the lines of | |||
<pre><nowiki> | |||
EAP authentication completed successfully | |||
</nowiki></pre> | </nowiki></pre> | ||
at some point in the output. | |||
5. Edit /etc/network/interfaces. You will probably need to add/uncomment eth0 (wired connection), as well as your wireless interface (could be eth1, ath0, wlan0, or something else). Mine looks like: | |||
<pre><nowiki> | |||
auto lo | |||
iface lo inet loopback | |||
auto eth0 #wired ethernet | |||
iface eth0 inet dhcp | |||
auto eth1 #wireless (could ben ath0, wlan0, or something else depending on your card) | |||
iface eth1 inet dhcp | |||
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |||
</nowiki></pre> | |||
If you needed to specify a driver for wpa_supplicant with -D, then you'll also need to add: | |||
<pre><nowiki> | |||
wpa-driver madwifi #or whatever driver you are using | |||
</nowiki></pre> | |||
afterwards. | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年5月9日 (五) 19:32的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/WifiDocs/EduPaSS }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/af | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Afrikaans| [[::WifiDocs/EduPaSS/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/ar | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|العربية| [[::WifiDocs/EduPaSS/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/az | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|azərbaycanca| [[::WifiDocs/EduPaSS/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/bcc | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|جهلسری بلوچی| [[::WifiDocs/EduPaSS/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/bg | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|български| [[::WifiDocs/EduPaSS/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/br | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|brezhoneg| [[::WifiDocs/EduPaSS/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/ca | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|català| [[::WifiDocs/EduPaSS/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/cs | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|čeština| [[::WifiDocs/EduPaSS/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/de | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Deutsch| [[::WifiDocs/EduPaSS/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/el | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Ελληνικά| [[::WifiDocs/EduPaSS/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/es | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|español| [[::WifiDocs/EduPaSS/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/fa | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|فارسی| [[::WifiDocs/EduPaSS/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/fi | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|suomi| [[::WifiDocs/EduPaSS/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/fr | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|français| [[::WifiDocs/EduPaSS/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/gu | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|ગુજરાતી| [[::WifiDocs/EduPaSS/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/he | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|עברית| [[::WifiDocs/EduPaSS/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/hu | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|magyar| [[::WifiDocs/EduPaSS/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/id | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Bahasa Indonesia| [[::WifiDocs/EduPaSS/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/it | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|italiano| [[::WifiDocs/EduPaSS/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/ja | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|日本語| [[::WifiDocs/EduPaSS/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/ko | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|한국어| [[::WifiDocs/EduPaSS/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/ksh | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Ripoarisch| [[::WifiDocs/EduPaSS/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/mr | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|मराठी| [[::WifiDocs/EduPaSS/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/ms | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Bahasa Melayu| [[::WifiDocs/EduPaSS/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/nl | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Nederlands| [[::WifiDocs/EduPaSS/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/no | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|norsk| [[::WifiDocs/EduPaSS/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/oc | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|occitan| [[::WifiDocs/EduPaSS/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/pl | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|polski| [[::WifiDocs/EduPaSS/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/pt | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|português| [[::WifiDocs/EduPaSS/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/ro | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|română| [[::WifiDocs/EduPaSS/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/ru | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|русский| [[::WifiDocs/EduPaSS/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/si | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|සිංහල| [[::WifiDocs/EduPaSS/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/sq | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|shqip| [[::WifiDocs/EduPaSS/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/sr | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|српски / srpski| [[::WifiDocs/EduPaSS/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/sv | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|svenska| [[::WifiDocs/EduPaSS/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/th | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|ไทย| [[::WifiDocs/EduPaSS/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/tr | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Türkçe| [[::WifiDocs/EduPaSS/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/vi | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|Tiếng Việt| [[::WifiDocs/EduPaSS/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/yue | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|粵語| [[::WifiDocs/EduPaSS/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/zh | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|中文| [[::WifiDocs/EduPaSS/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/zh-hans | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|中文(简体)| [[::WifiDocs/EduPaSS/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:WifiDocs/EduPaSS | UbuntuHelp:WifiDocs/EduPaSS | {{#if: | :}}WifiDocs/EduPaSS}}/zh-hant | • {{#if: UbuntuHelp:WifiDocs/EduPaSS|中文(繁體)| [[::WifiDocs/EduPaSS/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:WifiDocs/EduPaSS|:WifiDocs/EduPaSS|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :WifiDocs/EduPaSS/zh | | {{#ifexist: WifiDocs/EduPaSS/zh | | {{#ifeq: {{#titleparts:WifiDocs/EduPaSS|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:WifiDocs/EduPaSS|1|-1|}} | zh | | }}
Joining the eduPaSS WiFi Network
This document is intended to help setting up an eduPaSS wireless connection with Ubuntu Linux or any GNOME-based system (KDE should work with the WPA Supplicant file detailed here). eduPaSS is a large Wi-Fi network, used throughout Victorian government schools in Australia. These instructions were collated from mailing lists and manpages by Laurie Savage. Thanks to Donna Benjamin and Ian Green. As of October 22 2007, there seems to be a bug in Network Manager under Gutsy which prevents this working (see The NM mailing list archive for info. You can get around this by using the wpa_supplicant method at the bottom. -- As of January 29, 2008 - The NM method(Network manager in gnome/kde) appears to be working again. However settings are not retained upon reboot -- As of April 21, 2008 in Hardy Beta (8.04) the Network Manager method is working again.
Creating and converting the certificates
1. Create a Mac certificate on edupass. My certificate archive was called "savubuntu.zip" - this name is important, it will be the machine name used later. The zip file contains "root.pem" and "usercert.p12" (in my case "savubuntu.p12")and I unzipped the file into /home/user/Documents/eduPaSS. 2. Convert usercert.p12 to usercert.pem and userkey.pem using openssl in a terminal:
openssl pkcs12 -nocerts -in usercert.p12 -out userkey.pem openssl pkcs12 -clcerts -nokeys -in usercert.p12 -out usercert.pem
Remember to substitute your certificate's name for usercert
Installing Network Manager (Edgy or earlier)
(this is automatically installed in Feisty and later version) 1. Install the wpasupplicant and network-manager-gnome packages using Synaptic or apt-get:
sudo apt-get install wpasupplicant network-manager-gnome
2. Comment out all references in /etc/network/interfaces to wireless interfaces. If you don't do this you will not see any wireless networks in NetworkManager's menu. 3. Restart and run nm-applet (the GNOME front end to NetworkManager).
killall nm-applet nm-applet &
The nm-applet icon appears on the panel in the notification area.
Setting up Network Manager
1. Click on the applet and choose Connect to Other Wireless Network
SSID = eduPaSS-XXXX-01 (Replace XXXX with the school number) Wireless Security = WPA Enterprise EAP Method = TLS Key Type = Dynamic WEP (Auto will work too) ID = [machine name on certificate] (savubuntu in my case) Client cert = usercert.pem CA cert = root.pem Private key = userkey.pem Private key password = [password used to create the Macintosh certificate]
2. Hit connect. 3. You will be asked for a key ring password the first time it connects. If you have not created a key ring for other applications this is a local, machine based password and you will be prompted to create one the first time you connect.
The GNOME NetworkManager is a lovely tool, it detects new networks and you only need to choose them from the list. I have noticed it drops the connection a bit after rebooting, possibly the change of WEP key or something else on my system that is disturbing it. It connects fine when you click the applet again but a it's a little annoying.
WPA Supplicant Configuration
If the Network Manager configuration above works for you, then you don't need to read this section. 1. Create and convert the certificates as described above. 2. You may want to stop and disable Network Manager:
sudo /etc/dbus-1/event.d/26NetworkManagerDispatcher stop sudo /etc/dbus-1/event.d/25NetworkManager stop
Create two files with only the word 'exit' in them. These files are:
/etc/default/NetworkManager /etc/default/NetworkManagerDispatcher
4. Create or edit /etc/wpa_supplicant/wpa_supplicant.conf to look like:
fast_reauth=1 network={ ssid="eduPaSS-XXXX-01" key_mgmt=IEEE8021X eap=TLS identity="savubuntu" #(name of the certificate/zipfile) ca_cert="/path/to/root.pem" client_cert="/path/to/usercert.pem" private_key="/path/to/userkey.pem" private_key_passwd="password used to create the Mac certificates" eapol_flags=3 }
4. Try out wpa_supplicant:
$ sudo wpa_supplicant -ieth1 -c /etc/wpa_supplicant/wpa_supplicant.conf -w
You may need to specify a driver with the -D flag (see wpa_supplicant docs for more info), or use a different interface than eth1. You should get something along the lines of
EAP authentication completed successfully
at some point in the output. 5. Edit /etc/network/interfaces. You will probably need to add/uncomment eth0 (wired connection), as well as your wireless interface (could be eth1, ath0, wlan0, or something else). Mine looks like:
auto lo iface lo inet loopback auto eth0 #wired ethernet iface eth0 inet dhcp auto eth1 #wireless (could ben ath0, wlan0, or something else depending on your card) iface eth1 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
If you needed to specify a driver for wpa_supplicant with -D, then you'll also need to add:
wpa-driver madwifi #or whatever driver you are using
afterwards.