Recently, I’ve been testing out numerous different operating systems on my late-2009 MacBook. One of the operating systems that I’ve been playing with is OpenSUSE (version 11.4). One of the things that didn’t automatically work on the Live CD is wireless/WiFi. This tutorial will show you how to fix it and make wireless work for OpenSUSE on your MacBook.
To begin with, you need to know what kind of Linux kernel you are currently running. The kernel type should be either default, ec2, pae, ppc64, trace, vanilla, or xen. To find out, execute the following command:
In my example, the output is 220.127.116.11-1.2-default. This means the type of kernel I have is ‘default’. You will need to know this for a step later on.
Now, you will have to add OpenSUSE’s wireless drivers repository to your computer. The simplest way to do this is via command line, otherwise known as Terminal. Execute the following command:
sudo zypper -v ar http://download.opensuse.org/repositories/driver:/wireless/openSUSE_11.4/ opensuse-wifi
Now, you will install the madwifi driver, which provides support for the wireless card within the MacBook. You will have to run the following command:
sudo zypper install madwifi madwifi-kmp-<KERNEL TYPE>
You will have to replace <KERNEL TYPE> with the kernel type you figured out previously. For example, I will have madwifi-kmp-default in my command. After executing the command, you will be asked whether to reject or trust the signing key for the package. After the command has been executed, give it some time. You may be asked a question with regards to the package’s key. You will also be asked to install the package. This part should be self explanatory for the most part.
After the command finishes executing, madwifi will have been successfully installed. To activate madwifi, use the following command:
sudo /sbin/modprobe ath_pci
To test if it’s working, execute use the following command:
sudo /sbin/modprobe -l | grep ath
If you get something like the following, most likely madwifi is working. All you have to do now is connect to a wireless network!
linux@linux:~> sudo /sbin/modprobe -l | grep ath
To use Wifi, click on the Network Management icon in the taskbar (the right-most one in the screenshot below). To connect to a wireless network, click on “WLAN Interface”. The steps from there should be quite self explanatory.