Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old April 10th, 2005   #1
jonny
Way Too Much Ubuntu
 
Join Date: Dec 2004
Beans: 244
HOW TO: Configure wireless cards with Broadcom chipsets

6 July 2006 Update
I haven't had a Broadcom card for many months, but I've been told this how-to doesn't work properly under Dapper. Here are a couple of links that have been passed to me - but I can't vouch for their quality.

http://www.beginningubuntu.com/dappe...t_wifi_working
http://ubuntuforums.org/showthread.php?t=201902

Good luck. I'm very happy that this how-to has helped so many people in the past year or so.


Broadcom wireless cards are tricky to set up in ubuntu, and the forums are full of frustrated users seeking advice. Broadcom provide no Linux support (feel free to complain to your hardware vendor or choose a different card if you haven't yet shelled out your cash), but they can be made to work - and you're in the right place if you want to know how.

First, you need to find out if this How To is for you. Broadcom wireless cards come under many brand names and, in particular, are used in many Dell and Acer laptops. Look for the drivers supplied with your card (Dell usually store a copy in C:/DRIVERS/NETWORK/ADDON); if you have a file called bcmwl5.inf or bcmwl5a.inf then keep on reading. You won't succeed without following these instructions!

0. Before you start, clear out any mess from existing failed attempts to use ndiswrapper. Note that you shouldn't use a root terminal to execute the code in this how-to; use a normal terminal session instead.
Code:
sudo modprobe -r bcmwl5
sudo rmmod ndiswrapper
sudo apt-get remove ndiswrapper-utils
sudo rm -r /etc/ndiswrapper/
sudo rm -r /etc/modprobe.d/ndiswrapper
Some of these steps may report errors; just ignore them.

1. Copy the bcmwl5.inf and bcmwl5.sys files to your desktop

2. Follow the advice given here under How to add extra repositories

3. Open a terminal session and enter this code. Note that you need an active network connection for this to work; I've assumed that if you have access to a wireless LAN, you also have access to a wired network as a fallback.
Code:
sudo apt-get install ndiswrapper-utils
sudo ndiswrapper -i ~/Desktop/bcmwl5.inf
sudo ndiswrapper -m
for conffile in /etc/ndiswrapper/bcmwl5/*.conf; do
sudo cat $conffile | sed -e 's/RadioState|1/RadioState|0/' > $conffile
done
4. Reboot your PC. On restarting, the light on your wireless card should come on. If not, try entering
Code:
sudo modprobe ndiswrapper
5. Your card is now working. Open the networking configuration tool System --> Administration --> Networking

6. Select your wireless network card (probably wlan0) and hit the properties button.

7. Tick the 'This device is configured' box, and enter your network name and connection settings. Ask your office network administrator for support if you don't know what this question means, or copy your settings from Windows.

8. BE CAREFUL entering your WEP key, if you're using one. You're expected to enter this in hexadecimal form; if you don't speak hex, prefix your key with s:

9. Click OK. The screen should close fairly quickly; if it hangs, you probably aren't connected properly.

10. Back in the Network Settings screen, select your wireless device as the default gateway device.

11. Click OK. Again, the screen should close fairly quickly.

12. Enjoy wireless nirvana. If everything works, you can delete the file from your desktop.

13. You might notice that the signal strength applet doesn't work properly. This is a known bug with these cards.

If you have trouble, try booting into Windows - if you dual boot - and checking that the card is enabled. Some laptops allow the wireless card to be switched off, usually with a special key combination, and I've not found a reliable way to make this work in Linux.

(Note: This how-to has been updated to reflect all comments from the thread up to 19 April)

Last edited by jonny; July 5th, 2006 at 07:59 PM.. Reason: Add warning about using a root terminal
jonny is offline   Reply With Quote
Old April 10th, 2005   #2
poofyhairguy
SADFL's Commando
 
poofyhairguy's Avatar
 
Join Date: Nov 2004
Location: Texas
Beans: 2,351
Send a message via AIM to poofyhairguy
Re: HOW TO: Configure wireless cards with Broadcom chipsets

great Howto. I need this next weekend. What a lifesaver...
__________________
Quote:
Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
- Mark Shuttleworth
poofyhairguy is offline   Reply With Quote
Old April 11th, 2005   #3
Chromance
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 7
Re: HOW TO: Configure wireless cards with Broadcom chipsets

what version of Ndiswrapper is included in the ubuntu 5.04? should be 1.1?
Chromance is offline   Reply With Quote
Old April 12th, 2005   #4
Remix_88
5 Cups of Ubuntu
 
Remix_88's Avatar
 
Join Date: Apr 2005
Location: Hampshire, UK
Beans: 19
Ubuntu 9.10 Karmic Koala
Send a message via AIM to Remix_88 Send a message via MSN to Remix_88 Send a message via Yahoo to Remix_88 Send a message via Skype™ to Remix_88
Re: HOW TO: Configure wireless cards with Broadcom chipsets

You don't have to edit all the .conf files by hand. Replace steps 'sudo gedit' and Step 4 with the following...

Code:
$ sed -e 's/RadioState|1/RadioState|0/' /etc/ndiswrapper/bcmwl5/*.conf
Remix_88 is offline   Reply With Quote
Old April 12th, 2005   #5
kuleali
A Carafe of Ubuntu
 
kuleali's Avatar
 
Join Date: Mar 2005
Beans: 120
Re: HOW TO: Configure wireless cards with Broadcom chipsets

it worked, thank you
__________________
See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky ******* too.
kuleali is offline   Reply With Quote
Old April 12th, 2005   #6
jonny
Way Too Much Ubuntu
 
Join Date: Dec 2004
Beans: 244
Re: HOW TO: Configure wireless cards with Broadcom chipsets

Quote:
Originally Posted by Remix_88
You don't have to edit all the .conf files by hand. Replace steps 'sudo gedit' and Step 4 with the following...

Code:
$ sed -e 's/RadioState|1/RadioState|0/' /etc/ndiswrapper/bcmwl5/*.conf
Thanks; I've updated the how-to. I knew you could use sed instead of gedit, but couldn't get the syntax quite right. You're obviously smarter then me!

By the way, if you get here from a search engine, I imagine this would work for any other Debian based distros. Steps 5 onward need Gnome, but KDE has equivalent tools.
jonny is offline   Reply With Quote
Old April 13th, 2005   #7
Musiknonstop
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 1
Re: HOW TO: Configure wireless cards with Broadcom chipsets

Hi,

When I use the sed command the output just oes to the terminal window. The files do not get changed. Does anyone know what I'm doing wrong here?

Thanks
Musiknonstop is offline   Reply With Quote
Old April 13th, 2005   #8
jonny
Way Too Much Ubuntu
 
Join Date: Dec 2004
Beans: 244
Re: HOW TO: Configure wireless cards with Broadcom chipsets

I'll have to test this tomorrow. In the meantime, you need to replace the sed command with these steps:

- sudo gedit
- This will open a text editor. Open every file in the directory /etc/ndiswrapper/bcmwl5/ and replace every instance of RadioState|1 with RadioState|0
- continue with step 4

Sorry for the confusion.
jonny is offline   Reply With Quote
Old April 13th, 2005   #9
Antman
Grande Half-n-Half Cinnamon Ubuntu
 
Antman's Avatar
 
Join Date: Apr 2005
Location: The Realm of Choice
Beans: 937
Re: HOW TO: Configure wireless cards with Broadcom chipsets

Thank you, thank you, thank you. I knew all the steps but the "sed" step.

I'm going to boot into Ubuntu now and try it.

Ant
Antman is offline   Reply With Quote
Old April 14th, 2005   #10
Antman
Grande Half-n-Half Cinnamon Ubuntu
 
Antman's Avatar
 
Join Date: Apr 2005
Location: The Realm of Choice
Beans: 937
It works!!

Quote:
Originally Posted by jonny
I'll have to test this tomorrow. In the meantime, you need to replace the sed command with these steps:

- sudo gedit
- This will open a text editor. Open every file in the directory /etc/ndiswrapper/bcmwl5/ and replace every instance of RadioState|1 with RadioState|0
- continue with step 4

Sorry for the confusion.
Johnny,

Thanks for posting this. After I edited the .conf files my card started working after doing modprobe. Writing post via my new wireless Ubuntu laptop....

Ant
Antman is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:59 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry