Difference between revisions of "Linux Wireless"

From The University of Akron Support Wiki
Jump to: navigation, search
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Linux}}
+
{{Bluebox|Needs Updated|The command line information found on this page, while accurate, may not be the most current information on this subject. }}<br><br>
<big>'''If you are new to Linux, this article is ''not'' for you (except the Ubuntu section)'''</big>
+
  
==LEAP==
+
==Introduction==
=== Wireless Utilities ===
+
The Linux operating system comes in many different distributions, with many different user interfaces, and ways to configure its software. Therefore, it is not possible for the University of Akron to list setups for all of them. We have decided to take the most popular distribution, Ubuntu, and provide GUI instructions for the 3 most common user interfaces (Gnome, KDE,and Xfce). The installation instructions were made using the Network Manager and default installations of Ubuntu. Please note that Ubuntu comes default with Gnome. Ubuntu with KDE is known as Kubuntu and with Xfce is Xubuntu. Different distributions should either be the same or very similiar.
==== Cisco ====
+
===== Gentoo =====
+
First you'll need to download linux-acu-driver-v21.tar.gz from [http://www.cisco.com/pcgi-bin/tablebuild.pl/aironet-utils-linux the Cisco website] and put it in /usr/portage/distfiles/
+
Now you can get the client-utils
+
#emerge cisco-aironet-client-utils
+
Launch the aironet-client-utiltiy with:
+
#/opt/cisco/bin/acu
+
Now this user interface has to be taken with a grain of salt. It is in fact, so salty that you should not even use it.
+
  
===== Kernel Configuration =====
+
===GUI Setup===
You may or may not need to recompile your kernel since some distributions tend to include everything as a module.
+
  
First step is to figure out what kind of Wireless Card you have.
 
#lspci | grep Wireless
 
  
The output of the previous command should look similar to this:
+
==== Ubuntu and Xubuntu (Gnome and Xfce)====
02:02.0 Network controller: AIRONET Wireless Communications Cisco Aironet Wireless...
+
These two user interfaces have nearly identical setups. The instructions listed are for Ubuntu but should apply to Xubuntu<br><br>
Compile in the Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards under Device Drivers > Network device support > Wireless LAN (non-hamradio)
+
<table border="1" cellspacing="0" cellpadding="2" width="600">
Select whichever you have (PCMCIA or ISA/PCI)
+
<tr>
After you have  compiled in or as a module you should now see another ethernet device (eth1 in my case)
+
<td valign="top" width="39">1.</td>
 +
<td valign="top" width="408">
 +
<p>Right click the Network icon, go to Edit Connections. From here, select the Wireless tab and click the Add button.</p></td>
 +
<td valign="top" width="151">[[Image:ubuntuwifi1.png|thumb]]</td></tr>
 +
<tr>
 +
<td valign="top" width="39">2.</td>
 +
<td valign="top" width="408">Name the connection '''rootown''' or '''Roo-Secure''', and enter '''rootown''' or '''Roo-Secure''' as the SSID. Select the Wireless Security tab.</td>
 +
<td valign="top" width="151">[[Image:ubuntuwifi2.png|thumb]]</td></tr>
 +
<tr>
 +
<td valign="top" width="39">3.</td>
 +
<td valign="top" width="408">Fill out the following for wireless security.<br>
 +
<br>
 +
Security: WPA & WPA2 Enterprise<br>
 +
Authentication: Protected EAP (PEAP)<br>
 +
Anonymous Identity: Leave Blank<br>
 +
CA Certificate: None<br>
 +
PEAP Version: Version 1<br>
 +
Inner Authentication: MSCHAPv2<br>
 +
User Name: Your UAnetID<br>
 +
Password: Password for your UAnetID<br><br>
  
===== Cisco / LEAP Authenication by Command Line Interface=====
+
Click Apply. Use the image to help you if required.
If the computer recognizes the Cisco card, you can just try using the leapset command line program which will ask for a username and password. Then you can use dhcpcd on the interface to obtain an IP address.  
+
  
To reduce typing make a script
+
</td>
#!/bin/sh
+
<td valign="top" width="151">[[Image:ubuntuwifi3.png|thumb]]</td></tr>
/opt/cisco/bin/leapscript UANETID PASSWORD
+
<tr>
dhcpcd eth1
+
<td valign="top" width="39">4.</td>
 +
<td valign="top" width="408">You may get a warning in regards to the CA Certificate. Check the box that says "Don't Warn Me Again" and click Ignore. The Network Manager should auto connect nown and in the future. Follow the same steps to change your password if needed.</td>
 +
<td valign="top" width="151">[[Image:ubuntuwifi4.png|thumb]]</td></tr></table>
 +
<br><br>
  
====Intel PROSet====
 
Intel did not write a Linux driver, however, there is an open source solution. A utility called "ipw2200"
 
====Kernel Configuration====
 
Networking --->
 
    [*] Generic IEEE 802.11 Networking Stack
 
 
Device Drivers --->
 
    Generic Driver Options --->
 
      [*] Hotplug firmware loading support
 
    Network Device support --->
 
      Wireless LAN (non-hamradio) --->
 
        [*] Wireless LAN drivers (non-hamradio) & Wireless Extensions
 
 
Cryptographic options --->
 
    [*] Cryptographic API
 
      <*> AES cipher algorithms (i586)
 
      <*> ARC4 cipher algorithm
 
      <*> Michael MIC keyed digest algorithm
 
      <*> CRC32c CRC algorithm (this wasn't prompted in the emerge of ipw2200)
 
====Getting and installing the Intel utilities====
 
*Intel 3945: [http://downloadfinder.intel.com/scripts-df-external/confirm.aspx?httpDown=http://downloadmirror.intel.com/df-support/11200/eng/ipw3945-linux-1.1.0.tgz&agr=&ProductID=2259&DwnldId=11200&strOSs=&OSFullName=&lang=eng Click Here]
 
*Intel 2100: [http://downloadfinder.intel.com/scripts-df-external/confirm.aspx?httpDown=http://downloadmirror.intel.com/df-support/10139/eng/ipw2100_linux_1_2_0.tgz&agr=&ProductID=944&DwnldId=10139&strOSs=&OSFullName=&lang=eng Click Here]
 
*Intel 2200/2915: [http://downloadfinder.intel.com/scripts-df-external/confirm.aspx?httpDown=http://downloadmirror.intel.com/df-support/11780/eng/ipw2200_linux_1_2_0.tgz&agr=&ProductID=1847&DwnldId=11780&strOSs=&OSFullName=&lang=eng Click Here]
 
  
Once you have the proper driver installed. Load the appropriate modules ex:
+
==== Kubuntu (KDE)====
#modprobe ipw2200
+
You should now have a wireless interface (most likely eth1), so bring it up:
+
#ifconfig eth1 up
+
  
==== WPA Supplicant ====
+
<table border="1" cellspacing="0" cellpadding="2" width="600">
Most distributions have the wireless-tools package. It will need to be installed. Gentoo users can '''emerge wireless-tools'''.
+
<tr>
Wpa_supplicant is required to connect. If there are no packages this in the distribution used, compiling by the source may be an option.   [http://hostap.epitest.fi/wpa_supplicant/ Source Code]. Gentoo users can '''emerge wpa_supplicant'''.
+
<td valign="top" width="39">1.</td>
Assistance with compiling software can be found in room [[52c]] in Bierce Library. After having wpa_supplicant installed, the wpa_supplicant.conf file should contain the following:
+
<td valign="top" width="408">
{{Box File|/etc/wpa_supplicant.conf|
+
<p>Click the KDE logo in the bottom left corner. Go to System Settings. Click Networking Settings.</p></td>
<pre>
+
<td valign="top" width="151">[[Image:kubuntu1.png|thumb]]</td></tr>
ctrl_interface=/var/run/wpa_supplicant
+
<tr>
ctrl_interface_group=0
+
<td valign="top" width="39">2.</td>
update_config=1
+
<td valign="top" width="408">Click Network Management and then the Wireless tab. click the Add button.</td>
ap_scan=1
+
<td valign="top" width="151">[[Image:kubuntu2.png|thumb]]</td></tr>
+
<tr>
network={
+
<td valign="top" width="39">3.</td>
        ssid="tsunami"
+
<td valign="top" width="408">Enter <b>rootown</b> as the SSID. Click the Wireless Security tab. Fill out the settings as follows:<br>
        key_mgmt=IEEE8021X
+
<br>
        eap=LEAP
+
Security: WPA-EAP<br>
        identity="UANET ID"
+
EAP Method: PEAP<br>
        password="PASSWORD"
+
Anonymous Identity: Blank<br>
}
+
CA Certificate: Blank<br>
</pre>
+
PEAP & Version: Version 1<br>
}}
+
Inner Authentication: MSCHAPv2<br>
 +
Username: Your UAnetID<br>
 +
Password: Your UAnetID Password<br>
 +
<br>
 +
Click Ok out of everything and your profile should be set.
 +
</table>
  
Now that the wpa_supplicant is installed, launch it with:
 
#wpa_supplicant -i eth1 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf
 
{{Box Note | The location of the configuration file may be different than above. }}
 
  
 
+
=== See Also ===
{{Box Note | if the ipw driver is used and the above does not work, try "-D ipw" }}
+
 
+
Get an IP with the following command:
+
#dhcpcd eth1
+
{{Box Note | The 'dhcpcd' command may not be availible, the distribution may use another client. }}
+
 
+
==== Ubuntu 7.10 (Gutsy) ====
+
As of 7.10, Ubuntu/Xubuntu/Kubuntu includes the latest Knetworkmanager package, which allows for LEAP connectivity without manually configuring wpa_supplicant.  Under Applications->Add/Remove, search for and install knetworkmanager by clicking it and then clicking Apply Changes (it will pull in about 13 prerequisites in normal ubuntu or xubuntu, but will likely already be installed in kubuntu).  Now, run knetworkmanager from Applications->Internet, which will load it into the tray.  This will take some time to complete.  Right click on the new tray icon, click tsunami, change the wireless security from WEP to LEAP, type in the UANET ID and password, and click Login to Network.  However, it does not seem to save user login information, so loading up knetworkmanager and logging in will be necessary with each boot.
+
 
+
==PEAP==
+
The University of Akron now supports PEAP wireless authentication. Linux is compatible with the University's implementation of PEAP through use of the WPA supplicant. For best results please use the following configuration template.
+
{{Box File|/etc/wpa_supplicant.conf|
+
<pre>
+
eapol_version=1
+
ap_scan=2
+
fast_reauth=1
+
network={
+
    ssid="tsunami"
+
    key_mgmt=IEEE8021X
+
    scan_ssid=1
+
    eap=PEAP
+
    identity="uanetid"
+
    password="passwordhere"
+
    phase1="peaplabel=0"
+
    phase2="auth=MSCHAPV2"
+
}
+
</pre>
+
}}
+
 
+
== Profile Utilities ==
+
There are not too many programs available for wireless profile management. But here is a small list to try
+
*gtkwifi
+
*gwifiapplet
+
*kwifimanager (Does not have LEAP support.)
+
*NetworkManager (Currently does not support phase2 which is required.)
+
*KNetworkManager (Same issue as NetworkManager)
+
*wifi-radar
+
 
+
== See Also ==
+
 
[[Wireless Setup]]<br>
 
[[Wireless Setup]]<br>
  

Latest revision as of 17:31, 23 June 2016

Notice.png Needs Updated
The command line information found on this page, while accurate, may not be the most current information on this subject.


Introduction

The Linux operating system comes in many different distributions, with many different user interfaces, and ways to configure its software. Therefore, it is not possible for the University of Akron to list setups for all of them. We have decided to take the most popular distribution, Ubuntu, and provide GUI instructions for the 3 most common user interfaces (Gnome, KDE,and Xfce). The installation instructions were made using the Network Manager and default installations of Ubuntu. Please note that Ubuntu comes default with Gnome. Ubuntu with KDE is known as Kubuntu and with Xfce is Xubuntu. Different distributions should either be the same or very similiar.

GUI Setup

Ubuntu and Xubuntu (Gnome and Xfce)

These two user interfaces have nearly identical setups. The instructions listed are for Ubuntu but should apply to Xubuntu

1.

Right click the Network icon, go to Edit Connections. From here, select the Wireless tab and click the Add button.

Ubuntuwifi1.png
2. Name the connection rootown or Roo-Secure, and enter rootown or Roo-Secure as the SSID. Select the Wireless Security tab.
Ubuntuwifi2.png
3. Fill out the following for wireless security.


Security: WPA & WPA2 Enterprise
Authentication: Protected EAP (PEAP)
Anonymous Identity: Leave Blank
CA Certificate: None
PEAP Version: Version 1
Inner Authentication: MSCHAPv2
User Name: Your UAnetID
Password: Password for your UAnetID

Click Apply. Use the image to help you if required.

Ubuntuwifi3.png
4. You may get a warning in regards to the CA Certificate. Check the box that says "Don't Warn Me Again" and click Ignore. The Network Manager should auto connect nown and in the future. Follow the same steps to change your password if needed.
Ubuntuwifi4.png




Kubuntu (KDE)

1.

Click the KDE logo in the bottom left corner. Go to System Settings. Click Networking Settings.

Kubuntu1.png
2. Click Network Management and then the Wireless tab. click the Add button.
Kubuntu2.png
3. Enter rootown as the SSID. Click the Wireless Security tab. Fill out the settings as follows:


Security: WPA-EAP
EAP Method: PEAP
Anonymous Identity: Blank
CA Certificate: Blank
PEAP & Version: Version 1
Inner Authentication: MSCHAPv2
Username: Your UAnetID
Password: Your UAnetID Password

Click Ok out of everything and your profile should be set.


See Also

Wireless Setup