Running Linux software on Mac OS X

We've previously looked at using Virtual PC (www.connectix.com) to run software from another operating system such as Windows or Linux on your Mac. Now we'll use another method to run software used on Linux - alongside native OS X applications.

At the core of Mac OS X lies Darwin, a version of the BSD UNIX operating system that open source developers have used to port (transfer) code originally designed to run on UNIX and UNIX-like operating systems, such as Linux, to Mac OS X.

The first thing you'll need to do in order to run graphical Linux software on your Mac is to install an X server. XFree86 (www.xfree86.org), an open source dis­tribution of the X window system, gives Linux its graphical display. By installing XDarwin (www.xdarwin.org), the Xfree86 port to OS X, Mac users can run additional Linux software that has been ported to Mac OS X.

One great source for a list of Linux software available for Mac OS X is the Fink project (http://fink.sourceforge.net). As a package management tool, Fink also helps automate the sometimes-involved process of installing Linux software from the Internet by downloading dependent packages as well as installing them once they've been received.

Step 1: XDarwin

Using Fink is the best way to install XDarwin. For Linux newbies, however, there's now an even easier way to install XDarwin on OS X 10.1: at www.xdarwin.org you can download a 55MB graphical installer or purchase it on CD from www.xdarwin.com for $US24.95.

When the download completes, the .sit file should automatically uncompress and you should see an XInstall icon on your desktop, or wherever you saved it. Double-click this to start installation.

You may be asked for the administrator login name and password. If you don't have these, you probably shouldn't be trying this - and, even if you do, remember to always back up your files before experimenting with software. Next, select English and click OK. The installation is pretty straightforward - just agree to defaults such as Full Installation and make sure you install XDarwin to your main OS X volume. Keep clicking Next until you see an X icon pop up in your OS X dock. Select Done to finish the installation.

Step 2: Fink

Download the 8.4MB Fink installer image from http://fink.sourceforge.net/download to your Mac. Once downloaded, double-click this .dmg file to mount the Fink installer on your desktop. Double-click the installer and, inside, double-click the Fink Installer package file. You'll once again need the administrator details to install Fink. Click on the lock on the lower-left of the Install window to enter this information, and click OK. Read the "ReadMe" and click Continue. Next, read the licence agreement and select Continue then OK. Select your OS X volume and hit Continue, then go through the last of the basic installation steps.

With the installation done, double-click your volume/hard disk icon on your desktop, navigate to the Applications-Utilities directory and double-click Terminal. At the prompt, type in pico .cshrc and in the simple text editor that appears, enter this line: source /sw/bin/init.cshPress -O on the keyboard to bring up a name to save the file as, press to accept what's there and then press -X to exit. Close this Terminal window and open a new one. At the new prompt, type fink scanpackages. You may need that administrator password again.

Step 3: Installing Gimp

The Gimp, strange as it sounds, is the name of an image manipulation program for Linux. Make sure you're connected to the Internet so you can use Fink's package management abilities to download it.

From the Terminal, type in fink list to bring up a list of available ported software for download. Begin downloading Gimp by using the following command: sudo apt-get install gimpFor the most part, the installation will be automatic; just select y for yes if you are prompted.

When you return to the prompt, close the Terminal window, double-click the red X icon located in your dock and select Rootless. Depending on the speed of your Mac, it may take a few moments for you to see the login window. Start Gimp by typing gimp into this window. The pro­gram may start minimised. If it does, just double-click it from the upper left of your screen. You're now running your first Linux application!

If you want to give your open source software windows a bit of the look and some functionality of OS X, I recommend installing OroborOSX from http://julia.et.ic.ac.uk/adrian/software/oroborosx.

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Danny Allen

PC World
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Tom Pope

Dynabook Portégé X30L-G

Ultimately this laptop has achieved everything I would hope for in a laptop for work, while fitting that into a form factor and weight that is remarkable.

Tom Sellers

MSI P65

This smart laptop was enjoyable to use and great to work on – creating content was super simple.

Lolita Wang

MSI GT76

It really doesn’t get more “gaming laptop” than this.

Jack Jeffries

MSI GS75

As the Maserati or BMW of laptops, it would fit perfectly in the hands of a professional needing firepower under the hood, sophistication and class on the surface, and gaming prowess (sports mode if you will) in between.

Taylor Carr

MSI PS63

The MSI PS63 is an amazing laptop and I would definitely consider buying one in the future.

Christopher Low

Brother RJ-4230B

This small mobile printer is exactly what I need for invoicing and other jobs such as sending fellow tradesman details or step-by-step instructions that I can easily print off from my phone or the Web.

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?