Arch Linux WiFi
I am dual booting a MBPr with OSX and Arch Linux. For those new to Arch Linux, here are some WiFi related tips that I for a clean install.
- Macbook Pro Retina Mid-2012
- Bootable USB drive with Arch Linux ISO loaded
- Optional but highly recommended: Apple Thunderbolt port to ethernet adapter
Installing Arch without a good internet connection is one of the biggest annoyances I had. For first-timers I recommend getting a Thunderbold port to ethernet converter if you don’t already have one and follow the steps on Arch Linux’s beginner’s guide. Depending on the amount of Wifi driver support your version of Arch Linux have, WiFi may or may not work right out of the box. To find out what WiFi interface you have, do the following to see if an interface driver exists for the WiFi card.
$ ip link
wlp4s0c1 is the WiFi interface driver. Yours may be different but it usually begins with a “w”. If you don’t see that it means there’s no driver installed for your WiFi card. For a mid-2012 MBPr you will need to install the b43-firmware driver (More info at https://wiki.archlinux.org/index.php/broadcom_wireless#b43.2Fb43legacy).
Doing this means that you will need an internet connection and download/install the package via the Arch Linux package manager pacman by doing:
$ sudo pacman -S b43-firmware
If you decided to do it the rough way and you’re not already hooked up to the internet via the ethernet adapter, you will need to download the b43-firmware driver tarball onto another thumbdrive and run the following commands while inside the unzipped driver directory.
After installing the driver, make sure to enable it by using modprobe and reboot.
$ sudo modprobe b43
To confirm you have the b43 module installed, run lsmod to list all the modules currently active and filter ones with b43. You should see something like this:
$ lsmod | grep b43
By this point you should have the necessary WiFi interface to connect to the hardware card. Given this is Arch Linux and we’re only given the bare bones of an OS, the next step is to get some sort of user-friendly interface so we can actually see what networks are around us so we can connect to it. In Arch the manager of network connections is called netctl and a higher layer UI for looking up wifi networks is wifi-menu (Note: wifi-menu is actually a program named dialog in the arch repo). Go ahead and use pacman to install both these programs if you don’t already have it. You should then be able to run:
Pick your network and enter the wpa password. Wifi-menu will auto generate a network profile for you if it doesn’t exist already at /etc/netctl. Now you have a working WiFi connection!