16
Jul 15

Configure AirPort from Linux Fedora 22

I recently switched from Windows to Linux on my laptop, but I still want to be able to configure my Apple router. The best solution seems to be to run Apple’s Windows utility using wine. It works flawlessly, but setup is a little picky.

First, go to Apple’s downloads page and grab the Windows Airport Utility. You can find it here:

https://support.apple.com/en_US/downloads/airport

Next, make sure you have Wine and it’s dependencies installed. For Fedora 22, just do this:

sudo dnf install wine wine-core wine-openal mingw32-wine-gecko mingw64-wine-gecko

Next, because Airport Utility is so fussy, let’s give it it’s own wine container. Run the following commands in a terminal window

export WINEPREFIX=/home/(username)/.wine-airport
export WINEARCH=win32
winecfg

In the dialog, set Wine to “Windows 7”.

Now we are ready to install the Airport Utility. Run the installer from the same terminal window so we get the WINEPREFIX and WINEARCH values as set before.

wine AirPortSetup.exe

Just take the defaults. If it finds a shared disk and offers to connect it, cancel out of that step. We don’t need to map the Airport shared drive(s) into wine we just want to install the AirPort Utility.

Once that is done, you can check if the AirPort Utility works.  Again, run this from the same terminal as before so we still have those settings.

wine /home/(username)/.wine-airport/drive_c/Program\ Files/AirPort/APUtil.exe

It should come up normally. If it does, I find it helps to wrap the settings up in a shell script for future use. Paste these lines into a file called APUtil.sh.

#! /bin/bash
export WINEPREFIX=/home/(username)/.wine-airport
export WINEARCH=win32
wine /home/oly/.wine-airport/drive_c/Program\ Files/AirPort/APUtil.exe

Now make it executable and keep it somewhere for whenever you want to run the utility.

chmod +x APUtil.sh


16
Jul 15

Installing VirtualBox 5.0 on Fedora 22

Getting VirtualBox up and running was a little tricky, mainly because Fedora 22 didn’t properly install the kernel headers.  Using the explicit header version fixed this, but here is the full set of steps.

To install Virtualbox, I used Fedy – super easy and has lots of great software you can’t get from the official repo.  However, you can also install from the command line.

Fedy:

http://satya164.github.io/fedy/

Command Line:

cd /etc/yum.repos.d/
sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

First, make sure you have the necessary packages to build the virtualbox modules:

sudo dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Next, install the specific kernel headers for your kernel version – something like this:

sudo dnf install kernel-devel-4.0.4-301.fc22.x86_64

Now you should be able to build the virtualbox module like so

sudo /etc/init.d/vboxdrv setup

That’s it