How to install Linux applications in OS X - a complete walkthrough

May 9th, 2007 by Ross McKillop | Print This Post Print This Post
Linux Mac

This tutorial will take you each and every step of the way through installing Linux programs in OS X - using Fink and FinkCommander.

Something I should mention up front - during this process you’ll be asked to enter your password about a half-million times. I left those ’steps’ out to keep this shorter.


  1. Installing Fink and Fink Commander
  2. Configuring Fink
  3. Installing Linux applications
  4. Launching Linux applications with Quicksilver

Installing Fink and Fink Commander

  1. The first step in getting Linux programs running in OS X is to install X11, if it isn’t already. To check if it’s installed, open Finder, select Applications and then Utilities. If you don’t see X11 (or X11.app depending on your view settings) it’s not installed. Fortunately, I have a complete walkthrough for that as well.
  2. Once you’ve got X11 installed, visit http://www.finkproject.org/download/ and download the appropriate version of Fink for your Mac. Once the download has completed, open the .dmg file and run Fink xx-xx installer.pkg.

  3. click to enlarge

  4. The Fink installer will launch. Click Continue and I Agree a bunch of times. You’ll be prompted for your password at least once during the installation.

  5. click to enlarge

  6. Towards the end of the installation, a Setting up your Fink environment window will pop up. Make sure to click Yes.

  7. click to enlarge

  8. Assuming all went well, a confirmation window should appear.

  9. click to enlarge

  10. Click Close to finish the Fink installer.

  11. click to enlarge

  12. Now, back in that .dmg file, locate the folder titled FinkCommander and open it.

  13. click to enlarge

  14. Drag the FinkCommander file to your Applications folder. This is an important step - FinkCommander will not work properly if you run it from inside the .dmg file.

  15. click to enlarge

Configuring Fink

  1. From your Applications, locate FinkCommander and launch it.

  2. click to enlarge

  3. You’ll be presented with a rather large list of Linux packages - but before you go crazy installing them, you’ll need to run a few updates first.

  4. click to enlarge

  5. Select Source from the top menu and then Scanpackages from the drop-down list.

  6. click to enlarge

  7. Do not be surprised if you’re prompted to enter your password - twice, and then get a message (see screenshot below) saying you need to run Scanpackages again.

  8. click to enlarge

  9. Repeat the Source -> Scanpackages process and the 2nd time it’ll work.

  10. click to enlarge

  11. Now select Source from the top menu, Utilities and then Index.

  12. click to enlarge

  13. Watch as FinkCommander runs some updates, and once that has completed…

  14. click to enlarge

  15. Select Binary and then Update descriptions

  16. click to enlarge

  17. Now locate Fink in the list of packages. You can sort the packages by Name to quickly locate it, or use the Search feature. Select Fink by clicking on it once.

  18. click to enlarge

  19. With Fink highlighted, select Binary and then Install

  20. click to enlarge

  21. And once again, watch as Fink updates itself.

  22. click to enlarge

Installing Linux applications

  1. Now it’s time for some fun. Locate a Linux program/package that you want to install. I used trackballs (a silly but fun game) as an example. Once you’ve found the program you want to install, highlight it by clicking it once.

  2. click to enlarge

  3. Select Binary and then Install

  4. click to enlarge

  5. During the installation, you may get a pop-up window asking for you to respond to something (see screenshot below). Generally it’s looking for a Y/n (yes/no) answer - but check the status part of FinkCommander. In this case, the default is Y (yes), so you can select Accept default response and click Submit.

  6. click to enlarge

  7. That’s it. Fink will automatically determine any packages that are required to run whatever program you chose to install, and install them as well. To launch your recently installed program, open up a Terminal and type in the programs name. If you’re a Quicksilver user (and you should be!) - keep reading for instructions on how to launch Linux programs with it.

  8. click to enlarge

Launching Linux applications with Quicksilver

  1. Once you’ve installed a Linux app or two using Fink, you can launch them with Quicksilver if you add the folder they’re stored in to Quicksilver’s catalog. Bring up the Quicksilver preferences by invoking Quicksilver and click the Apple key + ,

    Select Catalog from the top menu


  2. click to enlarge

  3. Click the + (plus sign) and select File & Folder Scanner
  4. Navigate to Macintosh HD -> sw -> bin and click Open

  5. click to enlarge

  6. Make sure the bin folder was added to the Sources list.

  7. click to enlarge

  8. From the side drawer, change the Include Contents: entry to Folder Contents
  9. Back in the Catalog window, click the Refresh button (the swirl arrow)
  10. The bin entry in the Sources list should now have 80+ items (give or take) indexed. Exit out of the Quicksilver preferences.

  11. click to enlarge

  12. Invoke Quicksilver and test it out.

  13. click to enlarge

[Digg] [del.icio.us] [Facebook] [Google]

Related Posts:

 Simplehelp Recap: May 2007 - wow, and thank you!
 How to install Ubuntu 7.10 (Gutsy Gibbon) in Parallels Desktop for OS X
 How to install Ubuntu 7.04 (Feisty Fawn) in OS X using Parallels Desktop 3.0 - a complete walkthrough
 How to play .rmvb files in Ubuntu
 How to install PCLinuxOS 2007 using VMWare Fusion in OSX - a complete walkthrough

  1. 66 Responses to “How to install Linux applications in OS X - a complete walkthrough”

  2. By Enrique on May 9, 2007 | Reply

    Realmente útil. Really thanks for this great tutorial.

    Regards.

  3. By Susan on May 9, 2007 | Reply

    Can I install Gnome this way?

  4. By Colorado Mortgage on May 10, 2007 | Reply

    Wow, I’m honestly no a fan of OSX, since I love Linux, but if they keep making kool little apps like this I might have to make the change.

  5. By Electric Cat Herder on May 10, 2007 | Reply

    Susan:

    Yes, Gnome is available, but a bit dated, though it looks like there’s been some work to bring everything up to version 2.16.

    This article’s headline is a bit misleading. Fink does not install Linux applications– The binaries are in Mac OS X/Darwin Mach-0 format, not ELF. The Fink project provides Mac builds of popular applications designed for a variety of UNIX-type operating systems, such as Linux and Solaris. The Fink maintainers have worked out the build specifics for Mac OS X and make binaries available. The graphical programs use X11 and by extension Gnome or KDE, just as they do on other UNIX platforms.

    Personally, I’d like to see more work towards implementing GTK and QT APIs for the Aqua desktop and Core Graphics, bypassing X11, but these things take time. For those comfortable with X11, Gnome and KDE, Fink dramatically expands your choices for Mac software.

  6. By Matt Rogers on May 10, 2007 | Reply

    Susan you should be able to install Gnome I remember installing KDE using Fink a couple years ago. It’s a long running stable project. I deleted my fink installation last year, but now I am tempted to re-install it. :)

  7. By Robin Mordasiewicz on May 10, 2007 | Reply

    Being picky these are not linux applications.
    Linux is a kernel which you can run these applications on, just as you can run these applications on the FreeBSD kernel.

  8. By tech on May 10, 2007 | Reply

    it helps very much,

    thanks…

  9. By chipsajoy on May 10, 2007 | Reply

    Very cool! Thanks!

  10. By ??? on May 10, 2007 | Reply

    it helps very much,

    thanks…

  11. By Jim on May 11, 2007 | Reply

    This is a well done walk through, I like it — unfortunately the reality of using fink is often littered with undocumented errors and, as ever so often happens with anything open source, the work-around’s to things like Buildlock failures, are usually fraught with in-speek and gobbledegook only those already familiar with Linux can decipher.

    I built KDE once and it took me a week - and trust me, previous to that, I thought I knew what I was doing.

  12. By Gerry on May 22, 2007 | Reply

    Will this work for JBuilder4?

  13. By rossb on Jun 4, 2007 | Reply

    how can you add apps to be installed? what I would really love to do is get groupwise (linux platform) to run under this.

    Thanks,

    RossB

  14. By pippo on Aug 15, 2007 | Reply

    I have just one thing to say:

    “Thank you!”

    …great work keep it up

  15. By john s on Sep 5, 2007 | Reply

    hello just ran across your site and followed direction to install but need help the only application i can get to run is trackball ive tried crafty chess , doewars, danican, othello and some of the editors they wont start im using a mac powerbook g4 with a ppc processor and also when i installed fink i didnt get the Setting up your Fink environment window you spoke of at end of instalation i also want to know should i have got that screen or is that only for intel based chip macs and also once i get it working correctly how can i install linux/unix packages and or applications in fink other than the ones provided

  16. By Rashid Cisco on Sep 5, 2007 | Reply

    Can I use this to install apps that are not listed on Fink?

  17. By Daniel Fass on Sep 7, 2007 | Reply

    How do you import new packages into Fink and have Fink install them?

  18. By Ross McKillop on Sep 7, 2007 | Reply

    Rashid and Daniel,

    See: http://sourceforge.net/tracker/?atid=371315&group_id=17203

    for info on requesting new packages to be added to Fink.

    Cheers!

  19. By pixel001 on Oct 1, 2007 | Reply

    can i run normal linux programs with this?

  20. By Al on Oct 7, 2007 | Reply

    1. Does this install programs in somewhere like MacHD instead of the Apps folder (just typing the program name in terminal opens the program!)? And I see “sw” folder in the MacHD folder.

    2. How can one un-install Fink after installing it?

    3. I was interested in getting YS Flight to install on Mac. Can I use Fink?

  21. By Brandon on Oct 8, 2007 | Reply

    I am going to attempt to run a linux based environmental modeling system on my new MacBook. Does anyone know if my 2.16 GHz Intel Core 2 Duo can handle running a Linux application this complicated? It takes 99.9% of my processing power and 3 hours to run on an old Pentium 4 with Linux installed. I want to speed things up a bit, and I wouldn’t mind the portability. I estimated I could probably run it in 45 min. on this processor, but I’ve never ran a Linux app on my Mac, and I am unsure if there is any % CPU lost when you’re running the app from fink in OS X. Thanks

  22. By your mother on Nov 23, 2007 | Reply

    Very simple tutorial! Anyone that’s used linux (Even, *shudder* Ubuntu) for an amount of time, & learned it, will recognize what’s going on in your screen shots. QUick, Short Sweet N Effective I rate this tutorial 10 stars even if your technical termonology is wrong & these apps have been ported. THIS WILL SHOW IN GOOGLE when we search using what we want to say. In English. Not Machine Code.
    -ez, then

  23. By vishwajit on Nov 27, 2007 | Reply

    how to install linux os in desktop?

    what are configuration pc linux loaded

  24. By manikandan on Feb 11, 2008 | Reply

    this is my linux?

  25. By sreejith on Jun 30, 2008 | Reply

    it is very easy

  1. 42 Trackback(s)

  2. May 9, 2007: neverland » porque tux también vive en OSX
  3. May 10, 2007: How to install Linux applications in OS X - a complete walkthrough « VistaSucks.WordPress.Com
  4. May 10, 2007: Vocescuola - Applicazioni Linux su MacOSX
  5. May 10, 2007: How to install Linux applications in OS X - a complete walkthrough « trent.hunger
  6. May 10, 2007: The Edge of I-Hacked » How to install Linux applications in OS X - a complete walkthrough
  7. May 10, 2007: How to install Linux applications in... [Ectio.us Linkosphere]
  8. May 10, 2007: How to install Linux applications in OS X - a complete walkthrough « v1ruz blog
  9. May 11, 2007: Comment installer des application unix sous Mac OS X at Unity Web Blog
  10. May 11, 2007: links for 2007-05-11 « /tmp
  11. May 11, 2007: Techzi » Blog Archive » How To: Install Linux apps on your Mac
  12. May 11, 2007: Katie Dixon - Web Design - Houston, TX » Blog Archive » How to install Linux applications in OS X
  13. May 11, 2007: How To: Install Linux apps on your Mac at SoftSaurus
  14. May 11, 2007: Dongyi == ?? » links for 2007-05-12
  15. May 11, 2007: Install Linux apps on your Mac at heavenlytree
  16. May 11, 2007: Ejecuta aplicaciones Linux en tu Mac OS X en Panchosoft.com Blog!
  17. May 11, 2007: How to install Linux applications in OS X at W.cx - Web Community Xchange
  18. May 12, 2007: JLinX - Blog » Blog Archive » How to install Linux applications in OS X - a complete walkthrough
  19. May 12, 2007: » Blog Archive Come installare Linux in Os x facilmente »
  20. May 12, 2007: Linux applicaties draaien op je Mac
  21. May 12, 2007: CyberTopo » Installer des applications Linux sur votre MAC…
  22. May 12, 2007: Shall We Zen » links for 2007-05-12
  23. May 13, 2007: despuesdegoogle » Archivo del weblog » Cómo instalar y ejecutar aplicaciones Linux en Mac OS X
  24. May 13, 2007: How to install Linux applications in OS X - a complete walkthrough « News Coctail
  25. May 13, 2007: Life as I see it.. » Blog Archive » Linux Apps on Mac os x
  26. May 13, 2007: renaissance chambara | Ged Carroll » Blog Archive » Links for 2007-05-12 [My Web 2.0]
  27. May 14, 2007: Monday Morning Links Serving: The May 14th Edition | [Geeks Are Sexy] Technology News
  28. May 14, 2007: My del.icio.us bookmarks for May 12th through May 14th at Discovering my World…
  29. May 15, 2007: How To: Install Linux apps on your Mac » D-L Technology BLOG
  30. May 15, 2007: Come installare applicazioni Linux su OSX - Fink « gp
  31. May 17, 2007: Cool Websites and Tips (makeuseof extra #56) » MakeUseOf.com
  32. May 17, 2007: links for 2007-05-17 at Kenny Hyder - Media Analyst
  33. May 21, 2007: How To: Install Linux apps on your Mac at SoftSaurus
  34. May 28, 2007: Hostgator » Blog Archive » How to install Linux applications in OS X - a complete walkthrough
  35. May 29, 2007: Run Linux/UNIX programs in OSX » It’s Not the Network!
  36. Jun 1, 2007: Simplehelp Recap: May 2007 - wow, and thank you! - Simplehelp
  37. Aug 9, 2007: How to install Linux applications in OS X - a complete walkthrough - Simplehelp
  38. Oct 22, 2007: hubab » How to install Linux applications in OS X - a complete walkthrough
  39. Oct 22, 2007: luzee » How to install Linux applications in OS X - a complete walkthrough
  40. Nov 29, 2007: Linux » Blog Archive » How to install Linux applications in OS X - a complete walkthrough
  41. Dec 11, 2007: iTunes with linux? - Overclock.net - Overclocking.net
  42. Apr 19, 2008: fink commander
  43. Jun 14, 2008: Czy istnieje tryb zgodnosci MAC z Linux dla binarek na x86 - Strona 2 - MyApple.pl

Post a Comment

If your comment includes a question, you may want to copy and paste it to the appropriate section of The How-To Geek Forums, as you may receive a faster answer there.