Ubuntu Live CD 7.10 can't find the wireless antennas in my new MacBook with 802.11b/g/n (Intel Core 2 Duo processor).

Asked by macbook

Ubuntu Live CD 7.10 can't find the wireless antennas in my new MacBook with 802.11b/g/n (Intel Core 2 Duo processor). It doesn't even list "Wireless Connection" in the Network Settings dialog box.

It will work if I plug in a USB network adapter such as the Linksys WUSBF54G Wireless-G Network Adapter.

The Live CD works just fine with my year-old MacBook Pro, which has 802.11b/g.

Is there a way to fix this problem? Or a patch? Or a workaround? or...?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier (olivier-lacroix) said :
#1

Hi !

enter these commands one by one in a terminal, as seen here http://doc.ubuntu-fr.org/macbookgutsy#sur_un_macbook_santa_rosa

sudo apt-get install ndiswrapper-utils-1.9
wget http://theflew.free.fr/truks/macwifi.zip
unzip macwifi.zip
cd macwifi/drivers/
sudo ndiswrapper -i bcmwl5.inf
ndiswrapper -l
sudo depmod -a
sudo modprobe ndiswrapper
sudo cp /etc/network/interfaces /etc/network/interfaces.orig
echo -e 'auto lo\niface lo inet loopback\n' | sudo tee /etc/network/interfaces
sudo ndiswrapper -m
echo 'ndiswrapper' | sudo tee -a /etc/modules
echo 'ENABLED=0' | sudo tee -a /etc/default/wpasupplicant

yeah... that's a lot, but copy&paste :-)

Tell me if it helps

Revision history for this message
macbook (harvestster) said :
#2

Hi, Oliver,

Thank you so much for your kind help.

I wasn't able to get it to work, perhaps because I'm a novice at this point.

Here is what happened when I pasted each line into the Terminal. All
seemed to go well at first, till it reached the line that begins with
"bash."

I pray that you can look at this and tell me what to do differently.

Thank you so much for your time and help.

Sincerely, Macbook

ubuntu@ubuntu:~$ sudo apt-get install ndiswrapper-utils-1.9
Reading package lists... Done
Building dependency tree
Reading state information... Done
ndiswrapper-utils-1.9 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@ubuntu:~$ wget http://theflew.free.fr/truks/macwifi.zip
--03:08:08-- http://theflew.free.fr/truks/macwifi.zip
           => `macwifi.zip'
Resolving theflew.free.fr... 212.27.63.145
Connecting to theflew.free.fr|212.27.63.145|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 745,329 (728K) [application/zip]

100%[====================================>] 745,329 252.50K/s

03:08:12 (251.82 KB/s) - `macwifi.zip' saved [745329/745329]

ubuntu@ubuntu:~$ unzip macwifi.zip
Archive: macwifi.zip
   creating: drivers/
  inflating: drivers/.DS_Store
   creating: __MACOSX/
   creating: __MACOSX/drivers/
  inflating: __MACOSX/drivers/._.DS_Store
  inflating: drivers/bcmwl5.inf
  inflating: drivers/bcmwl5.sys
  inflating: drivers/bcmwl564.sys
ubuntu@ubuntu:~$ cd macwifi/drivers/
bash: cd: macwifi/drivers/: No such file or directory
ubuntu@ubuntu:~$ ndiswrapper -l
bcmwl5 : invalid driver!
ubuntu@ubuntu:~$ sudo depmod -a
ubuntu@ubuntu:~$ sudo modprobe ndiswrapper
ubuntu@ubuntu:~$ sudo
usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
            { -e file [...] | -i | -s | <command> }
ubuntu@ubuntu:~$ cp /etc/network/interfaces /etc/network/interfaces.orig
cp: cannot create regular file `/etc/network/interfaces.orig':
Permission denied
ubuntu@ubuntu:~$ echo -e 'auto lo\niface lo inet loopback\n' | sudo
usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
            { -e file [...] | -i | -s | <command> }
ubuntu@ubuntu:~$ tee /etc/network/interfaces
tee: /etc/network/interfaces: Permission denied
sudo ndiswrapper -m
sudo ndiswrapper -m

Revision history for this message
Olivier (olivier-lacroix) said :
#3

OK. Let's explain a bit

first you installed the program ndiswrapper which allow to use windows wifi drivers on linux:
     sudo apt-get install ndiswrapper-utils-1.9

then you downloaded the appropriate windows driver...
     wget http://theflew.free.fr/truks/macwifi.zip

you unpacked the archive
    unzip macwifi.zip

you entered the unpacked archive...
    cd macwifi/drivers/

...but that failed, because the directory created is "drivers". So, enter those commands :
   cd drivers

now you are in the right directory. Let's installed the driver :
     sudo ndiswrapper -i bcmwl5.inf

verify that the driver is installed
     ndiswrapper -l

updating kernel modules
     sudo depmod -a

loading the module
     sudo modprobe ndiswrapper

doing some stuff to make it automatic at next boot
      sudo ndiswrapper -m
      echo 'ndiswrapper' | sudo tee -a /etc/modules

That should do. to copy and paste in linux, you can select something, and then paste using middle-click (ie the scroll wheel or both right left click) : you'll see, it is really useful ! hit enter only after entering a whole line of instruction. For instance, entering "sudo" only does not make any sense : sudo means SuperUser DO, this is to acquire administrative priviledge to enter an other command. usually, you will be warned if you do something meaningless like :

ubuntu@ubuntu:~$ sudo
 usage: sudo -K | -L | -V | -h | -k | -l | -v
 usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
             { -e file [...] | -i | -s | <command> }

by the way, I see that you are doing it from the liveCD, aren't you ?? these changes won't be applied outside this very live seesion : if you install ubuntu on your system, you will have to go throught it again. So, I advise you to proceed to the installation, and then follow the above instructions

Can you help with this problem?

Provide an answer of your own, or ask macbook for more information if necessary.

To post a message you must log in.