Linux.com

Feature

Making wireless work in Ubuntu

By Benjamin Mako Hill, Jono Bacon, Ivan Krstic. David J. Murphy, Jonathan Jesse, Peter Savage, Corey Burger on September 13, 2006 (8:00:00 AM)

Share    Print    Comments   

One of the greatest new features for laptop users in Ubuntu is network-manager. With this shiny new application it is finally easy to connect your Ubuntu system to any wireless network. Where previously you had to jump through hoops to do WPA or 802.1x authentication, network manager makes this completely transparent.

This article is excerpted from the newly published book The Official Ubuntu Book . © Copyright Pearson Education. All rights reserved.

Simply click on the Network-Manager icon to see all available wireless networks, and click on the network to connect to it. If wireless authentication is needed, be it WEP, WPA, or 802.1x, a network-manager dialog will pop up asking for your authentication details.

If network manager does not solve the problem, the first step should be to see which driver your wireless card needs. Do a search for your card on Google and in the Ubuntu Forums to find out which driver you need. Many of the drivers are already included in Ubuntu, but some newer drivers may not be present.

Next, you need to find out if the driver is loaded. As an example, if you have an Intel Centrino and it uses the ipw2200 driver, run this command:

sudo lsmod | grep ipw2200

Replace ipw2200 with the relevant driver for your card. If you get some lines returned, the driver is loaded and working. If nothing is returned, your card is either not supported or the driver is not included in Ubuntu. You should refer to the Ubuntu Forums for further support.

With the card identified, you now need to get connected. The easiest way to do this is to select System -> Administration -> Networking. Inside this tool you should see an icon for your wireless card. Select it and click the Properties button. Add the name of the wireless network and a password if applicable. If you are using a normal password such as s3cr3tpass, select Plain (ASCII) from the Key type box. If you are entering the long numeric password, use the Hexedecimal option. If you don't have a password on your wireless network, leave the Key type and WEP key boxes empty.

If you are automatically assigned an IP address, use the Configuration box to select DHCP. Otherwise, select Static IP Address, and enter the details of your network in the boxes.

For more information, see the Ubuntu wiki.

Using WPA

To use WPA, you need a supported card. Such cards are listed on the WPA Supplicant Web site. Common drivers that support WPA include ipw2200, ipw2100, and madwifi.

To use WPA (Wi-Fi Protected Access) with wireless cards in Ubuntu, the wpasupplicant package must be installed. After installing it, edit /etc/wpa_supplicant.conf. Networks are configured by adding network blocks to the configuration file. Each network block can also be assigned a priority so if both networks are seen, the higher priority network is chosen. Examples for common network configurations can be found in /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.gz.

Some configurations require certificates that should be available from the network administrator. WPA Supplicant can also configure your wireless card to use unencrypted networks, as noted in the example file. After writing the file, edit /etc/default/wpasupplicant and change the ENABLED, DRIVER, and INTERFACE options. The DRIVER option should match the type of wireless device being used. Available drivers can be viewed by typing:

wpa_supplicant -help

To start the Supplicant run:

/etc/init.d/wpasupplicant start

Lastly, wpasupplicant should be added to STOP_SERVICES in /etc/default/ acpi-support to ensure it functions properly after a system suspend or hibernation.

To check if the connection is working, run:

sudo wpa_cli

This command gives information on the current connection along with scrolling logs to indicate the current status. By default wpa_cli must be run as root. Status will show what network the wireless card is currently connected to and parameters about the link. Scan causes the supplicant to look for a new access point while scan_results will display what access points are locally accessible to the machine. As soon as the supplicant authenticates, ifplugd should start the interface with ifup, and networking will be available shortly. If it seems that the supplicant is not working it may be that a different driver must be selected in the /etc/defaults/wpasupplicant configuration file. Also, some cards cannot operate in a mixed TKIP/CCMP (types of encryption) mode. If it appears the PTK listed in the log from wpa_cli is CCMP but that the GTK is TKIP, setting the pairwise and group entries of a network configuration block to TKIP may fix the issue.

Share    Print    Comments   

Comments

on Making wireless work in Ubuntu

Note: Comments are owned by the poster. We are not responsible for their content.

Network Manager sucks!

Posted by: Anonymous Coward on September 15, 2006 12:56 AM
I prefer to write multiple scripts and run the one that matches where I am at the time. Network Manager kept disconnecting me and giving me a bogus IP.

#

Re: Network Manager sucks!

Posted by: Anonymous [ip: 142.59.174.89] on October 02, 2007 04:14 AM
ya i agree, i got a ipw3945 and for many moons i fought with this driver in other distros. then ubuntu started to include it (although restricted). im stoked. then im left to deal with network manager. wtf. as my equally coward es comrade stated "disconnecting me and giving me a bogus IP"

im going to look into installing a different manager, im no blackhat or terminal guru so ill be researcring a little to get me pointed in the right direction

#

Re: Network Manager sucks!

Posted by: Anonymous [ip: 60.234.153.54] on February 20, 2008 02:52 AM
Awesome. Thanks very much for the info. It made this install of ubuntu relatively effortless.

It is the first distro i have had up and running in less than an hour. 't boot until gspca was blacklisted. The only other problem was the wireless connection which this tutorial solved. Tanks again.

Acer TM4220
Intel wireless ipw3945
Acer Orbicam


My acer orbicam gave me trouble and the OS wouldn

#

Also in Debian

Posted by: Anonymous Coward on September 13, 2006 08:44 PM
NetworkManager is a great application. It's also available in Debian (testing & unstable).

#

There is no managing in that network manager.

Posted by: Anonymous Coward on September 13, 2006 10:52 PM
You have to install drivers by hand. You have to install wpa_supplicant by hand, then configure that by hand, among others things inputting SSID and passphrases into a text file.

Which, seeing that WPA is on every WLAN that has been in any way administered in the past 2.5 years or so, means you have to do it every time you use a new network.

What exactly does this network manager do, apart from launching DHCP on a handconfigured network device?

#

Re:There is no managing in that network manager.

Posted by: Anonymous Coward on September 13, 2006 11:28 PM
I have a broadcom adapter and nm-applet (network manager) did definitely not work for me. Would not connect to WPA network, but seemed ok with unencrypted (and apparently WEP) nets. To get WPA working I had to manually configure networking. Seems like there are other issues too with network manager that are not resolved, such as connection hanging.

#

Re:There is no managing in that network manager.

Posted by: Anonymous Coward on September 14, 2006 12:43 AM
I also never saw nm-applet work at all. It just never recognized the card. Uninstalling it and running Network Selector (Applications/Internet) without changing any configuration settings works fine. I don't connect to any secured networks so I don't know all the ins and outs of what this app supports: it does allow you to enter an "encryption key".

(To get started in the first place I did have to manually install my driver, wrapped with ndiswrapper, and blacklist the default broadcom driver. And the<nobr> <wbr></nobr>/etc/network file now contains a line "auto eth1" where eth1 is my wireless interface; and<nobr> <wbr></nobr>/etc/modprobe.d/ndiswrapper now contains "alias eth1 ndiswrapper" instead of wlan0.)

#

Ndiswrapper no longer needed for Broadcom wireless

Posted by: Anonymous Coward on September 15, 2006 12:19 PM
Try the 2.6.17 kernel. I have done it on both Kubuntu Dapper and Slackware 10.2, both with the Broadcom wireless (BCM4306), and it does work. The driver is called "bcm43xx". My two test mules were the Dell Latitude D600 and D610 laptops, both with an official Linus 2.6.17.11 kernel. You do need their firmware image, but that's easily Googleable, and it goes in<nobr> <wbr></nobr>/lib/firmware once you download and extract it.

#

Re:There is no managing in that network manager.

Posted by: Anonymous Coward on February 17, 2007 01:34 AM
Network Manager does not manage network interfaces configured manually, hence the confusion arises. The network interfaces you want to manage through Network Manager should not be configured manually.
Hope this helps.
regards
Vigyani

#

this is not about Ubuntu

Posted by: Anonymous Coward on September 14, 2006 02:57 AM
I mean using Network Manager has nothing to do with Ubuntu. And the article is not about Ubuntu either, but about Network Manager. So why not just call it that way, making wireless work with Network Manager ?

#

Maybe they're trying to sell the book

Posted by: Anonymous Coward on September 14, 2006 05:10 AM
The authors of this article appear to be the authors of the book mentioned in it, too.

So, what better way to get publicity about a book they're trying to sell than write an article mentioning both a popular Linux distro and their book?<nobr> <wbr></nobr>;-)

#

this is completely out of date

Posted by: Anonymous Coward on September 14, 2006 06:27 AM
This article is completely out of date and has nothing to do with the version of network manager that is in dapper, let alone edgy

I suggest the ubuntu book needs to be updated

#

Wifi is still Wrong in Linux

Posted by: Anonymous Coward on September 14, 2006 09:25 PM
Why.. WEP come on. WPA come on again.. we all now that those are easily cracked. Linux is supposed to be all about Security. WPA2.. this should be DEFAULT and SIMPLE.. Wifi is still To damn hard on Linux. These are all road blocks to Linux.. Now don't get me wrong.. I LOVE LINUX.. for the most part.. I have been using it for 7 years.. But lets get it right from the beginning.. Install the Drivers, Install wpa_supplicant by default.. Get off the High horse of GPL, CDDL, etc.... Just make it work.. The Average Joe user will not know and will not care. If it doesn't work out of the gate than why use it.. They instantly see it as less of an OS.. windows just works, Mac's just work.. Why does Linux not!! It's had plenty of years to get these issues worked out.. But we keep fighting over which License to use, and free vs commercial, vs non-free.. If it doesn't work.. It's NO GOOD...

#

Re:Wifi is still Wrong in Linux

Posted by: Anonymous Coward on September 15, 2006 12:02 AM
<a href="http://members.tripod.com/acls2001" title="tripod.com">http://members.tripod.com/acls2001</a tripod.com>

#

Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous Coward on September 15, 2006 11:13 AM
You're talking about stuff that isn't "Linux's" fault. It's the fault of the hardware manufacturers for not releasing their chip programming specs, thus the ongoing issue with drivers. If you want to have your machine reporting back to Microsoft or Apple HQ on whatever you do, hey, good on ya, go for it. It's also easier to manage your life in a totalitarian dictatorship, too; just ask any former Soviet citizen. But would you want that? If so, have fun; it's your computer and your right. I, on the other hand, choose freedom.

You say you "LOVE LINUX", then great! Choose to buy only hardware that is known to work with it, just as I have. If you've been using it for "7 years", then you obviously know what you're doing, and thus this shouldn't be too difficult for you. How do I know? I, too, have been using it since 1999 (that's 7 years).

#

Re:Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous Coward on September 15, 2006 04:18 PM
You are right, for the people who have been doing this for 7 years, it is easy. For those of us trying to switch from a Windows world, it is not so easy. I use a wireless lan at home, I have no problem configuring the network and using it. At least under windows. I have been trying to switch to linux and have a laptop running linux. The problem is I can never get the wireless working except sometimes under Mandriva. I like Ubuntu but still end up using a terminal half the time. I still don't understand bash, chroot and all the other command line garbage. I would love to but don't have the time and it doesn't make common sense to have to do things in a command line environment in a graphical world. I just want an alternative to Microsoft that works. Let me learn all the other junk on the way but at least let me have my wireless link to the internet so I can look up the answers.

#

Re:Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous Coward on September 15, 2006 09:53 PM
"would love to but don't have the time and it doesn't make common sense to have to do things in a command line environment in a graphical world."

Then Mac it is. Get off your high horse. Linux isn't for you.

#

Re:Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous Coward on December 10, 2006 05:30 AM
i love how you linux nerds like to argue about how great linux is until someone points out to you that half of it doesn't work. opensuse killed my monitor's dvi port and i still can't get wifi to work on it so it's just plain opensource garbage. and yeah i'll go back to windows but next time i hear someone brag about how linux is going to compete with windows, i'll smack them in their head.

#

Re(1):Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous [ip: 189.5.203.111] on December 21, 2007 05:12 PM
Sorry, but I have to say that you are stupid. It is because of people who act like you (if you are not a hacker linux is not for u) that people still use Windows, Mac OS and all other proprietary shit. Many linux developers are too proud of their skills to notice that not all users are computer experts. So freedom has a price? To be a hacker/expert/computer worm??? If I don't meet these requirements then I am not entitled for using Linux?

#

Re:Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous Coward on May 25, 2007 07:52 PM
Everything you see in the graphical world is run from command line. The only difference is that it's not visible.
For an example, if you type "eclipse" in the terminal window in ubuntu (assuming you have eclipse installed) it will run the program. You can also look in the applications menu under programming and click on the icon. Do you suppose that the computer sees clicking on an icon the same as running a line of code in command line? I do. Admittedly it does take time to learn, but you have more flexability and knowledge if you do take the time. Which is why I can't stand windows. You can't customize anything really, plus it runs at a fraction of the speed linux does.

#

Re: Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous [ip: 66.18.219.27] on August 13, 2007 05:51 AM
He isn't talking about anything that's Linux's fault - it's Ubuntu's!! How they could claim to have a "user-friendly" desktop distro and then release it even though it requires this sort of hacking to get a secure wireless connection going?!? Are you joking me ?!? Are they on crack?!?

On top of this I go from dealing with this whole mess onto getting a broken distro upgrade to work - 2 hours of downloading to THEN tell me that it won't work!! Want to try again? Well "Downloading 1 of 1567 packages" ... here we go again! (I know you can set apt or synaptic to keep downloaded files, but most of the time you don't want this - but to delete them after an error?!? On crack again?!?)

I must like pain...I've installed PCLinuxOS for a plethora of "average users" and had to do 1/1000th the babysitting I have to do for Ubuntu. It works right out of the box, playing MP3's, DVD's, all of it...

#

Re: Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous [ip: 66.18.219.27] on August 13, 2007 05:54 AM
Yeah, I've sometimes wondered what sort of shanagans they used to get the #1 spot on distrowatch to begin with...they are not the best distro, not by a long shot.

#

Re: Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous [ip: 68.194.208.173] on November 28, 2007 06:56 PM
It the bigger question that the shitty and complex ways of setting up the peripherals, the network, and so on is the fact that LInux Apps suck too. The word processing, the photo editor, and the music players are unprofessional, third rate garbage. There's no specialty software, and the emulators are worthless.

Linux fans keep humping the fact that the stuff is free -- but it is mostly a waste of time to use. You get what you pay for, there is no free lunch, and there is penny wise pound foolish.

If you have to make money with a computer, then avoid the penguin. At all costs.

#

Re:Wifi is still Wrong in Linux

Posted by: Anonymous Coward on September 15, 2006 10:19 PM
Amen to that. I've always sort of entertained the idea making my laptop linux only, so I dual booted and everything worked like a charm. It even recognized my built in card reader...except the wifi didn't work. That's the reason i'm still using XP. Cause I can't get the damn wifi to work on it, so you're right. Everyone keeps making these arguments for linux being ready to be mainstream and for the most part it is. Except that, it's a huge hurdle.

#

Re:Wifi is still Wrong in Linux

Posted by: Anonymous Coward on September 16, 2006 01:00 AM
My PDA doesn't support WPA. So I use WEP. If I'd care I'd use IPsec as well. Its no big deal though. I just disable WLAN unless I use my PDA on WLAN.

I don't want clueless morons to use Linux though. If someone can't figure out how to get sth working then stick with something else.

#

Re:Wifi is still Wrong in Linux

Posted by: Anonymous Coward on March 23, 2007 03:22 PM
I don't understand why so many forum posters have so much antipathy. Why not help people who are still learning to use Linux instead of calling us "clueless morons?" This is just an operating system, after all. Outside of linux forums, I'm sure there are many things you are "clueless" about.

Anyway, I just tried xubuntu (old machine) and can get it to see "driver present, hardware present" and the network manager even sees my router. After entering the ESSID and WEP/Hex Key, I cannot access the internet. Any ideas?

#

Re:Wifi is still Wrong in Linux

Posted by: Administrator on September 14, 2006 11:47 PM
> lets get it right from the beginning.. Install the Drivers, Install wpa_supplicant by default.. Get off the High horse of GPL, CDDL, etc.... Just make it work.. The Average Joe user will not know and will not care.

It seems that it is pretty much the way that Mandriva is doing, isn't it ?

#

Re:wtf?

Posted by: Anonymous Coward on September 14, 2006 09:27 PM
Your Right...

#

Your Right...

Posted by: Anonymous Coward on September 14, 2006 09:29 PM
You are right.. It is Still a Pain in the a$$

#

Another How-to worth looking at

Posted by: Anonymous Coward on November 02, 2006 01:17 PM
Following this how-ti I had my wifi up and running in mere minutes:

<a href="http://www.debianadmin.com/enable-wpa-wireless-access-point-in-ubuntu-linux.html" title="debianadmin.com">http://www.debianadmin.com/enable-wpa-wireless-ac<nobr>c<wbr></nobr> ess-point-in-ubuntu-linux.html</a debianadmin.com>

#

wtf?

Posted by: Administrator on September 14, 2006 09:24 PM
Bullsh**!!!

I ran Ubuntu (both the live CD and the installed version) and the only way I could get my wireless to work is by switching my network to open (no WEP or WPA)

There was no way of changing it in that beautiful little Network Manager

#

Making wireless work in Ubuntu

Posted by: Anonymous [ip: 59.92.36.168] on August 04, 2007 05:53 AM
I am not able to leave the password type box empty in Administration-Networking-wireless-properties in Ubuntu 7.04.

#

Making wireless work in Ubuntu

Posted by: Anonymous [ip: 70.110.184.58] on August 12, 2007 04:55 AM
"Simply click on the Network-Manager icon to see all available wireless networks, and click on the network to connect to it. If wireless authentication is needed, be it WEP, WPA, or 802.1x, a network-manager dialog will pop up asking for your authentication details."

hmmm sounds like a mac too me?

#

no WPA with AirPort on Ubuntu

Posted by: Anonymous [ip: 71.201.125.110] on August 14, 2007 10:53 PM
Not quite, unfortunately.
On my iBook, I use WPA in OS X, but I can't with Ubuntu (feisty).

http://ubuntuforums.org/showthread.php?t=403585
(same problem I'm having)

#

The missing step

Posted by: Anonymous [ip: 67.93.26.126] on August 17, 2007 05:31 PM


I thought that Network Manager really sucked until I saw some screen-shots that were completely different than what I had seen and read articles like this one praising Network Manager. I figured out that my wireless device was set to Manual Configuration by default (I'm using Fussy Fawn). I simply needed to select "Enable roaming mode" in the manual configuration, and reboot. At least, I think that's what started Network Manager to work without needing to edit any files by hand.


Left click on the icon -> Manual Configuration... -> Wireless connection -> Properties -> Enable roaming mode
Then reboot (although, I'm not sure if that's really necessary)


oddly, /etc/network/interfaces does not even mention my wireless interface, eth1.

#

Re: The missing step

Posted by: Anonymous [ip: 75.84.205.179] on August 28, 2007 06:47 AM
Thank for that important bit of info - I just did the same, and got connected :) - didn't even have to reboot

#

i hate microsoft

Posted by: Anonymous [ip: 91.95.244.7] on October 23, 2007 05:40 AM
hi i am 13 years old and using both windows xp and kubunto rigth now i wonder to start with kubunto and delete xp out of my life:) but i have been using kubunto int just 3 weeks and still dont have my wirless ethernet like are conneted at an usb and i dont really know if i need to searh for drives or if i need to make anything in then internet manager untill i get my internet to work on kubunto i guess i will need to .. be on my xp installation / sorry for my bad english i am from sweden and hey im just 13

#

linux sucks as bad as vista

Posted by: Anonymous [ip: 76.22.135.241] on November 17, 2007 08:59 PM
i just made the jump from vista to linux...it's JUST as bad. NOTHING works, and you have to have a 4 year degree in computers or similar experience to run or do half the shite...my friend praised it over all, he still cant believe that i got a virus after 1 week...no OS is fullproof. wireless works sporatically, and konsole takes training. LINUX is NOT FOR NOVICES used to simply pointing and clicking and actually having something WORK.

#

Re: linux sucks as bad as vista

Posted by: Anonymous [ip: 65.78.24.211] on February 27, 2008 04:53 AM
thanks for this. watching microsoft continue down its evil road with Vista, which I've been watching with growing horror on my girlfriend's computer, I was very close to buying a linux machine from Dell. this thread has turned me off from it forever. not only are all the technical issues beyond my ken (I am only half a geek, though there was some question about that in middle school), but the attitude of pro-linux users on this site is just awful. It is impossible for me to understand the flaming warfare from Linux loyalists against those who just want smooth, user friendly access to the internet, which after all is a necessary condition to accessing support and getting help if there is a problem. Forget it -- I'll give another look at apple or stick with windows xp, which after all usually works pretty smoothly and does what I want it to, though I know from experience it is very slow and inefficient...................

And, ah, hats off to you Linux underdogs who can't get the right information about the chips and whatnot. That's a tough break. There's a steep uphill climb to create a viable 3rd party. But it's a good test and a good quest. I'll come back 5 years from now and see how you're doing.

#

Making wireless work in Ubuntu -- NOT

Posted by: Anonymous [ip: 68.194.208.173] on November 28, 2007 06:47 PM
I never had a problem with my Wifi. I use Windows. And I have a life.

#

Making wireless work in Ubuntu

Posted by: Anonymous [ip: 67.175.238.213] on December 29, 2007 04:02 PM
I have a recent new machine DELL INSPIRON 1501 which came with Vista Basic. We've installed Ubuntu GNOME ver 2.20.1 and I am still struggling getting Wiresless to work on my network? How can I obtain the latest .INF files for enabling Wireless?

Thanks Tony

#

Making wireless work in Ubuntu

Posted by: Anonymous [ip: 68.40.40.156] on January 05, 2008 10:26 PM
My university requires a login for wireless network. Supposedly your supposed to open your browser and a login page will appear. I have no wireless networks found in Ubuntu and am afraid that I will not be able to connect. Does anyone have any suggestions?

#

Re: Then stay with Windows or Mac OS if you prefer

Posted by: Anonymous [ip: 80.6.146.78] on January 19, 2008 03:24 PM
Thanks, but I'll start using Network Manager when version 1.0 is released which, given that it seems to have been stuck at version 0.6.5. for an eternity, isn't going to be anytime soon. There's a massive list of bugs for this software, yet I don't see any evidence that it's currently being worked on.

My two least favourite bugs are the way it removes my nameservers from /etc/resolv.conf when I connect to a VPN (classy - I think I'll use vpnc from now on) and the way it immediately connects to the first unsecured/unprotected wireless network it finds instead of my own. That's particularly great here in the UK where connecting to someone else's network without prior permission is a criminal offence... so I've written a couple of scripts to take care of that an disabled nm-applet for good.

And I'm not some Unix/Linux n00b either... I worked as a Unix Systems Administrator for 8 years (principally working on Solaris & Linux) and have been a Java Developer for the last 3 years. To be honest, I'm not even impressed with Ubuntu. It looks suspiciously like the Ximian desktop I used back in 2001 (on RH7) and doesn't seem to do anything new. Now it just looks old and tired compared to its rivals and you still end up having to do everything at the command line. That's fine for geeks like me, but I would never expect any normal people to use it. Actually, even geeks like me can get sick of Linux.... which is why, at home, I been using Apple Macs for the last 2 years... just so I can leave this kind of pissing about at work. And I only use Ubuntu at work because my employer's too tight to buy me a Mac.

#

Just another app but seems to work quite well WICD

Posted by: Anonymous [ip: 82.73.21.222] on February 10, 2008 12:37 PM
Hey boyz and girlz,

try WICD (aka Wicked).

http://wicd.sourceforge.net/

ciao

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya