MacFUSE

March 7, 2007 by
Filed under: Work 

So, yesterday, I overheard someone mentioning MacFUSE in a conversation and my reaction was pretty much “hey, someone ported that to the Mac?!??”  Indeed, and I’m apparently a little out of touch because it’s been out for a while.  This is one really handy tool for a sysadmin.

Anyone who’s admined an RPM-based system knows that when you install a newer version of something, it will often drop in new configuration files, either along side the existing one with an .rpmnew extension on the end, or move your existing one to filename.rpmsave before writing it out to the original location.  Of course, if you’re behaving like a proper sysadmin, you have to go look and see what they changed and try to merge your existing config with the new one.  This is best accomplished using a visual diff/merge utility.  The best one of these I’ve seen for Linux is called meld.  Unfortunately it has a ton of dependencies (mostly related to GNOME and X11) which are a bit much to install on every server in your farm, especially if there’s no other reason you need X11 on them.

Now back to MacFUSE.  Apple distributes an awesome visual diff/merge utility with the Mac OS X developer tools called FileMerge, which works a lot like meld (but of course, it’s a bit more polished).  MacFUSE is a kernel extension that allows plugins to define interfaces to arbitrary filesystems.  One of the plugins available for it is called “sshfs.”  sshfs uses the sftp server available via most ssh servers to access the filesystem of almost any machine you can ssh into.  This means if I can open an ssh connection to one of my servers, I can now mount its filesystem in the Finder in Mac OS X (and also via the shell).  This makes it easy to navigate to the server’s /etc directory and type “opendiff config1.conf config1.conf.rpmnew” which invokes Apple’s FileMerge to compare/merge those two files.  It’s a huge effort saver for a sysadmin using OS X on their workstation.  :)

Mad props to Amit Singh and all the people helping him make MacFUSE a reality!

Comments

4 Responses to “MacFUSE”

  1. Piotr Komoda on March 8th, 2007 10:03 am

    When I first saw the title of this in Firefox I thought “What? Chip Fuse designed case for Macintosh?”. Damn, too much Discovery Channel :D

  2. Kula bácsi on March 9th, 2007 9:36 am

    WTF is Chip Fuse?

  3. Fred Wenzel on March 9th, 2007 2:52 pm

    Yeah, MacFUSE and sshfs is great. Since a few weeks, I use it for my everyday development, in order to mount my working directory. It works like a charm.

  4. Piotr Komoda on March 11th, 2007 9:31 am

    ->Kula Bácsi
    Chip Fuse is a guy who designs new look for existing cars. There are made car body parts for sale in tuning shops from his projects.

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!





  • Find me on Twitter

    Me: @justdavemiller
    The Bugzilla Project: @bugzilla
  • Recent Tweets by @justdavemiller

    justdavemiller RT @nceglarek: Drifts on south roads are impassible. Hudsonville public schools are closed today. November 20, 2014. http://t.co/WTh1foIXZf
    justdavemiller RT @sheppy: Yahoo as new default search engine for US Firefox users is a win for search diversity. Ability to select Google or Bing or ___ …
    justdavemiller RT @bfrancis: Mozilla declares their independence from Google, signs search deals with Yahoo, Yandex and Baidu https://t.co/1lLMlUvGT7
    justdavemiller Mozilla has decided not to renew Google's search placement contract. Here's what it means: https://t.co/cmi5atx2SX
    justdavemiller @CharterCom Why do I have to call to be told there's a known outage in my area? If it were on your website I wouldn't have to call.
  • Archives