<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lost Entropy &#187; Mac OS X</title>
	<atom:link href="http://lostentropy.com/tag/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostentropy.com</link>
	<description>Aaron B. Russell&#039;s personal blog</description>
	<lastBuildDate>Mon, 17 May 2010 21:54:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<script type="text/javascript">
if (typeof Meebo == "undefined") {
Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
(function(q){

	var args = arguments;
	if (!document.body) { return setTimeout(function(){ args.callee.apply(this, args) }, 100); }
	var d=document, b=d.body, m=b.insertBefore(d.createElement('div'), b.firstChild); s=d.createElement('script');
	m.id='meebo'; m.style.display='none'; m.innerHTML='<iframe id="meebo-iframe"></iframe>';
	s.src='http'+(q.https?'s':'')+'://'+(q.stage?'stage-':'')+'cim.meebo.com/cim/cim.php?network='+q.network;
	b.insertBefore(s, b.firstChild);

})({network:'lostentropy_pi27li'});	}</script>	<item>
		<title>Make a perfect Ubuntu AFP file server with Time Machine support</title>
		<link>http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/</link>
		<comments>http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/#comments</comments>
		<pubDate>Tue, 11 May 2010 10:17:44 +0000</pubDate>
		<dc:creator>Aaron B. Russell</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[Apple Filing Protocol]]></category>
		<category><![CDATA[Computer networking]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Cryptographic software]]></category>
		<category><![CDATA[file server]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Netatalk]]></category>
		<category><![CDATA[Network architecture]]></category>
		<category><![CDATA[Network file systems]]></category>
		<category><![CDATA[Network protocols]]></category>
		<category><![CDATA[Secure Shell]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lostentropy.com/?p=2423</guid>
		<description><![CDATA[Just found an awesome guide from Mattias Kretschmann on how to create a perfect AFP file server for Mac clients that supports Time Machine backups over the network out of the box. It worked for me with a Mac OS X 10.6.3 client and an Ubuntu 10.04 server, with just one small change to the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://www.kremalicious.com/media/ubuntu_mac_feature.jpg" alt="" width="420" height="278" /></p>
<p>Just found an awesome guide from <a href="http://www.kremalicious.com/">Mattias Kretschmann</a> on <a href="http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/">how to create a perfect AFP file server</a> for Mac clients that supports Time Machine backups over the network out of the box. It worked for me with a Mac OS X 10.6.3 client and an Ubuntu 10.04 server, with just one small change to the <code>/etc/netatalk/afpd.conf</code> file. The final line simply needed to read:</p>
<blockquote><p><code>- -transall -advertise_ssh</code></p></blockquote>
<p>Beautiful, thanks Mattias. :)</p>
<img style='display:none' id="post-2423-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/',title:'Make a perfect Ubuntu AFP file server with Time Machine support',tweet:' Just found an awesome guide from Mattias Kretschmann on how to create a perfect AFP file server for',description:' Just found an awesome guide from Mattias Kretschmann on how to create a perfect AFP file server for'})"><script type='text/javascript'>document.getElementById("post-2423-blankimage").onload();</script><!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Del.icio.us" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Del.icio.us" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Del.icio.us" /></a><a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to digg" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to digg" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to digg" /></a><a class="social_img" href="http://furl.net/storeIt.jsp?t=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support&amp;u=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to FURL" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/furl.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to FURL" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to FURL" /></a><a class="social_img" href="http://reddit.com/submit?url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to reddit" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to reddit" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to reddit" /></a><a class="social_img" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support&amp;url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;version=0.7" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Feed Me Links" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/feedmelinks.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Feed Me Links" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Feed Me Links" /></a><a class="social_img" href="http://www.technorati.com/faves?add=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Technorati" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Technorati" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Technorati" /></a><a class="social_img" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;t=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Yahoo My Web" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/yahoo_myweb.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Yahoo My Web" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Yahoo My Web" /></a><a class="social_img" href="http://ekstreme.com/socializer/?url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Socializer" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/socializer.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Socializer" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Socializer" /></a><a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support&amp;description=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Ma.gnolia" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/magnolia.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Ma.gnolia" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Ma.gnolia" /></a><a class="social_img" href="http://www.stumbleupon.com/submit?url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Stumble Upon" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Stumble Upon" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Stumble Upon" /></a><a class="social_img" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Google Bookmarks" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Google Bookmarks" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Google Bookmarks" /></a><a class="social_img" href="http://www.bloglines.com/sub/http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Bloglines" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/bloglines.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Bloglines" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Bloglines" /></a><a class="social_img" href="http://www.netscape.com/submit/?U=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;T=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Propeller" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/propeller.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Propeller" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Propeller" /></a><a class="social_img" href="http://mystuff.ask.com/mysearch/QuickWebSave?v=1.2&amp;t=webpages&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support&amp;url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Ask" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/ask.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Ask" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Ask" /></a><a class="social_img" href="https://favorites.live.com/quickadd.aspx?url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Live-MSN" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Live-MSN" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Live-MSN" /></a><a class="social_img" href="http://slashdot.org/bookmark.pl?title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support&amp;url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to SlashDot" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to SlashDot" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to SlashDot" /></a><a class="social_img" href="http://www.facebook.com/share.php?u=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;t=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to FaceBook" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to FaceBook" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to FaceBook" /></a><a class="social_img" href="http://www.mixx.com/submit?page_url=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/&amp;title=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Mixx" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/mixx.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Mixx" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Mixx" /></a><a class="social_img" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Make+a+perfect+Ubuntu+AFP+file+server+with+Time+Machine+support&amp;c=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to MySpace" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to MySpace" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to MySpace" /></a><a class="social_img" href="http://twitter.com/home?status=http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Twitter" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Twitter" alt="Add 'Make a perfect Ubuntu AFP file server with Time Machine support' to Twitter" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://lostentropy.com/2010/05/11/make-a-perfect-ubuntu-afp-file-server-with-time-machine-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Certificate Assistant says certificate already exists</title>
		<link>http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/</link>
		<comments>http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 01:08:57 +0000</pubDate>
		<dc:creator>Aaron B. Russell</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Certificate]]></category>
		<category><![CDATA[Certificate Authority]]></category>
		<category><![CDATA[Computer Security]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Documents]]></category>
		<category><![CDATA[Electronic commerce]]></category>
		<category><![CDATA[Free software]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[Key management]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Macs]]></category>
		<category><![CDATA[Mozilla Firefox]]></category>
		<category><![CDATA[Public key certificate]]></category>
		<category><![CDATA[Public-key cryptography]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://lostentropy.com/?p=2396</guid>
		<description><![CDATA[Just over a year ago, I created a bunch of SSL certs following the instructions here: http://www.devklog.net/2008/05/25/generating-ssl-certificates-that-will-make-firefox-3-happy/ I&#8217;m having some interesting problems creating a new certificate to replace an expired one. When I created a new certificate (as a leaf of a self-signed CA cert), to replace the expired leaf, I got a message saying that [...]]]></description>
			<content:encoded><![CDATA[<p><a title="GPG" href="http://flickr.com/photos/67909013@N00/72441466"><img src="http://farm1.static.flickr.com/20/72441466_862b166924.jpg" alt="" width="420" height="315" /></a><br />
Just over a year ago, I created a bunch of SSL certs following the instructions here: <a href="http://www.devklog.net/2008/05/25/generating-ssl-certificates-that-will-make-firefox-3-happy/">http://www.devklog.net/2008/05/25/generating-ssl-certificates-that-will-make-firefox-3-happy/</a></p>
<p>I&#8217;m having some interesting problems creating a new certificate to replace an expired one.</p>
<p>When I created a new certificate (as a leaf of a self-signed CA cert), to replace the expired leaf, I got a message saying that the certificate already existed.</p>
<p>I backed up and then deleted the expired cert and tried again, to no avail.</p>
<p>I saw <a href="http://discussions.apple.com/thread.jspa?messageID=7434613#7434613">this old thread</a> which seems related to the problems I&#8217;m having, but the solutions there didn&#8217;t help me (I&#8217;m already manually picking serial numbers in the format yyyymmddnn, where nn is the number of certificates I&#8217;ve created that day, and deleting the Certificate Authority folder from Application Support in my home library didn&#8217;t make a difference either).</p>
<p>Anyone else had similar trouble? How did you resolve it?</p>
<img style='display:none' id="post-2396-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/',title:'Certificate Assistant says certificate already exists',tweet:' Just over a year ago, I created a bunch of SSL certs following the instructions here: http://www.d',description:' Just over a year ago, I created a bunch of SSL certs following the instructions here: http://www.d'})"><script type='text/javascript'>document.getElementById("post-2396-blankimage").onload();</script><!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Del.icio.us" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Certificate Assistant says certificate already exists' to Del.icio.us" alt="Add 'Certificate Assistant says certificate already exists' to Del.icio.us" /></a><a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to digg" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Certificate Assistant says certificate already exists' to digg" alt="Add 'Certificate Assistant says certificate already exists' to digg" /></a><a class="social_img" href="http://furl.net/storeIt.jsp?t=Certificate+Assistant+says+certificate+already+exists&amp;u=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/" title="Add 'Certificate Assistant says certificate already exists' to FURL" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/furl.png" title="Add 'Certificate Assistant says certificate already exists' to FURL" alt="Add 'Certificate Assistant says certificate already exists' to FURL" /></a><a class="social_img" href="http://reddit.com/submit?url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to reddit" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Certificate Assistant says certificate already exists' to reddit" alt="Add 'Certificate Assistant says certificate already exists' to reddit" /></a><a class="social_img" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Certificate+Assistant+says+certificate+already+exists&amp;url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;version=0.7" title="Add 'Certificate Assistant says certificate already exists' to Feed Me Links" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/feedmelinks.png" title="Add 'Certificate Assistant says certificate already exists' to Feed Me Links" alt="Add 'Certificate Assistant says certificate already exists' to Feed Me Links" /></a><a class="social_img" href="http://www.technorati.com/faves?add=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/" title="Add 'Certificate Assistant says certificate already exists' to Technorati" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Certificate Assistant says certificate already exists' to Technorati" alt="Add 'Certificate Assistant says certificate already exists' to Technorati" /></a><a class="social_img" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;t=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Yahoo My Web" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/yahoo_myweb.png" title="Add 'Certificate Assistant says certificate already exists' to Yahoo My Web" alt="Add 'Certificate Assistant says certificate already exists' to Yahoo My Web" /></a><a class="social_img" href="http://ekstreme.com/socializer/?url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Socializer" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/socializer.png" title="Add 'Certificate Assistant says certificate already exists' to Socializer" alt="Add 'Certificate Assistant says certificate already exists' to Socializer" /></a><a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists&amp;description=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Ma.gnolia" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/magnolia.png" title="Add 'Certificate Assistant says certificate already exists' to Ma.gnolia" alt="Add 'Certificate Assistant says certificate already exists' to Ma.gnolia" /></a><a class="social_img" href="http://www.stumbleupon.com/submit?url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Stumble Upon" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Certificate Assistant says certificate already exists' to Stumble Upon" alt="Add 'Certificate Assistant says certificate already exists' to Stumble Upon" /></a><a class="social_img" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Google Bookmarks" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'Certificate Assistant says certificate already exists' to Google Bookmarks" alt="Add 'Certificate Assistant says certificate already exists' to Google Bookmarks" /></a><a class="social_img" href="http://www.bloglines.com/sub/http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/" title="Add 'Certificate Assistant says certificate already exists' to Bloglines" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/bloglines.png" title="Add 'Certificate Assistant says certificate already exists' to Bloglines" alt="Add 'Certificate Assistant says certificate already exists' to Bloglines" /></a><a class="social_img" href="http://www.netscape.com/submit/?U=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;T=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Propeller" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/propeller.png" title="Add 'Certificate Assistant says certificate already exists' to Propeller" alt="Add 'Certificate Assistant says certificate already exists' to Propeller" /></a><a class="social_img" href="http://mystuff.ask.com/mysearch/QuickWebSave?v=1.2&amp;t=webpages&amp;title=Certificate+Assistant+says+certificate+already+exists&amp;url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/" title="Add 'Certificate Assistant says certificate already exists' to Ask" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/ask.png" title="Add 'Certificate Assistant says certificate already exists' to Ask" alt="Add 'Certificate Assistant says certificate already exists' to Ask" /></a><a class="social_img" href="https://favorites.live.com/quickadd.aspx?url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Live-MSN" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Add 'Certificate Assistant says certificate already exists' to Live-MSN" alt="Add 'Certificate Assistant says certificate already exists' to Live-MSN" /></a><a class="social_img" href="http://slashdot.org/bookmark.pl?title=Certificate+Assistant+says+certificate+already+exists&amp;url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/" title="Add 'Certificate Assistant says certificate already exists' to SlashDot" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Certificate Assistant says certificate already exists' to SlashDot" alt="Add 'Certificate Assistant says certificate already exists' to SlashDot" /></a><a class="social_img" href="http://www.facebook.com/share.php?u=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;t=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to FaceBook" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Certificate Assistant says certificate already exists' to FaceBook" alt="Add 'Certificate Assistant says certificate already exists' to FaceBook" /></a><a class="social_img" href="http://www.mixx.com/submit?page_url=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/&amp;title=Certificate+Assistant+says+certificate+already+exists" title="Add 'Certificate Assistant says certificate already exists' to Mixx" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/mixx.png" title="Add 'Certificate Assistant says certificate already exists' to Mixx" alt="Add 'Certificate Assistant says certificate already exists' to Mixx" /></a><a class="social_img" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Certificate+Assistant+says+certificate+already+exists&amp;c=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/" title="Add 'Certificate Assistant says certificate already exists' to MySpace" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'Certificate Assistant says certificate already exists' to MySpace" alt="Add 'Certificate Assistant says certificate already exists' to MySpace" /></a><a class="social_img" href="http://twitter.com/home?status=http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/" title="Add 'Certificate Assistant says certificate already exists' to Twitter" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'Certificate Assistant says certificate already exists' to Twitter" alt="Add 'Certificate Assistant says certificate already exists' to Twitter" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://lostentropy.com/2010/02/06/certificate-assistant-says-certificate-already-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling FreeImage in 64-bit on Snow Leopard</title>
		<link>http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/</link>
		<comments>http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 15:31:16 +0000</pubDate>
		<dc:creator>Aaron B. Russell</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[FreeImage]]></category>
		<category><![CDATA[ImageScience]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://lostentropy.com/?p=2367</guid>
		<description><![CDATA[I recently tried to use the image_science gem for Ruby, but it didn&#8217;t work after installation because it was looking for FreeImage.h. Thinking it&#8217;d be an easy fix, I headed over to http://freeimage.sourceforge.net/ to go grab a copy of a binary file to install, but there wasn&#8217;t one. Undeterred, I went to grab the source [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Profile of Djamila" href="http://flickr.com/photos/8070463@N03/2848818561"><img src="http://farm4.static.flickr.com/3189/2848818561_764c2c2831.jpg" alt="" width="425" height="282" /></a><br />
I recently tried to use the image_science gem for Ruby, but it didn&#8217;t work after installation because it was looking for FreeImage.h. Thinking it&#8217;d be an easy fix, I headed over to <a href="http://freeimage.sourceforge.net/">http://freeimage.sourceforge.net/</a> to go grab a copy of a binary file to install, but there wasn&#8217;t one.</p>
<p>Undeterred, I went to <a href="http://downloads.sourceforge.net/freeimage/FreeImage3120.zip">grab the source</a> and compile it myself. It didn&#8217;t work. Eventually I figured there were two key issues:</p>
<ol>
<li>FreeImage&#8217;s source was prepared for Mac OS X 10.3 (Panther)</li>
<li>FreeImage was trying to compile for i386 (32-bit) and my Ruby install is x86-64 (64-bit)</li>
</ol>
<p>First problem is easy to fix, just replace both instances of <code>/Developer/SDKs/MacOSX10.3.9.sdk</code> with <code>/Developer/SDKs/MacOSX10.6.sdk</code> (or, 10.5 for Leopard, or 10.4u for Tiger).</p>
<p>The second part was a bit more fiddly because I wasn&#8217;t sure if order was important, so I started by replacing all instances of <code>i386</code> and <code>I386</code> with <code>x86_64</code> and <code>X86_64</code> respectively. Then, I replaced all instances of <code>ppc</code> and <code>PPC</code> with <code>i386</code> and <code>I386</code>.</p>
<p>If you don&#8217;t want to worry about making all these changes, you can simply <a href="http://unadopted.co.uk/freeimage/Makefile.osx">download my Makefile.osx here</a>. It&#8217;s built for Snow Leopard, but it&#8217;s easy to change it for Leopard or Tiger.</p>
<img style='display:none' id="post-2367-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/',title:'Compiling FreeImage in 64-bit on Snow Leopard',tweet:' I recently tried to use the image_science gem for Ruby, but it didn&#8217;t work after installation',description:' I recently tried to use the image_science gem for Ruby, but it didn&#8217;t work after installation'})"><script type='text/javascript'>document.getElementById("post-2367-blankimage").onload();</script><!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Del.icio.us" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Del.icio.us" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Del.icio.us" /></a><a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to digg" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to digg" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to digg" /></a><a class="social_img" href="http://furl.net/storeIt.jsp?t=Compiling+FreeImage+in+64-bit+on+Snow+Leopard&amp;u=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to FURL" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/furl.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to FURL" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to FURL" /></a><a class="social_img" href="http://reddit.com/submit?url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to reddit" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to reddit" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to reddit" /></a><a class="social_img" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Compiling+FreeImage+in+64-bit+on+Snow+Leopard&amp;url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;version=0.7" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Feed Me Links" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/feedmelinks.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Feed Me Links" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Feed Me Links" /></a><a class="social_img" href="http://www.technorati.com/faves?add=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Technorati" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Technorati" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Technorati" /></a><a class="social_img" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;t=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Yahoo My Web" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/yahoo_myweb.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Yahoo My Web" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Yahoo My Web" /></a><a class="social_img" href="http://ekstreme.com/socializer/?url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Socializer" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/socializer.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Socializer" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Socializer" /></a><a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard&amp;description=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Ma.gnolia" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/magnolia.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Ma.gnolia" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Ma.gnolia" /></a><a class="social_img" href="http://www.stumbleupon.com/submit?url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Stumble Upon" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Stumble Upon" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Stumble Upon" /></a><a class="social_img" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Google Bookmarks" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Google Bookmarks" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Google Bookmarks" /></a><a class="social_img" href="http://www.bloglines.com/sub/http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Bloglines" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/bloglines.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Bloglines" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Bloglines" /></a><a class="social_img" href="http://www.netscape.com/submit/?U=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;T=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Propeller" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/propeller.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Propeller" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Propeller" /></a><a class="social_img" href="http://mystuff.ask.com/mysearch/QuickWebSave?v=1.2&amp;t=webpages&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard&amp;url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Ask" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/ask.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Ask" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Ask" /></a><a class="social_img" href="https://favorites.live.com/quickadd.aspx?url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Live-MSN" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Live-MSN" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Live-MSN" /></a><a class="social_img" href="http://slashdot.org/bookmark.pl?title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard&amp;url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to SlashDot" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to SlashDot" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to SlashDot" /></a><a class="social_img" href="http://www.facebook.com/share.php?u=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;t=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to FaceBook" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to FaceBook" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to FaceBook" /></a><a class="social_img" href="http://www.mixx.com/submit?page_url=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/&amp;title=Compiling+FreeImage+in+64-bit+on+Snow+Leopard" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Mixx" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/mixx.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Mixx" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Mixx" /></a><a class="social_img" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Compiling+FreeImage+in+64-bit+on+Snow+Leopard&amp;c=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to MySpace" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to MySpace" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to MySpace" /></a><a class="social_img" href="http://twitter.com/home?status=http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Twitter" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Twitter" alt="Add 'Compiling FreeImage in 64-bit on Snow Leopard' to Twitter" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://lostentropy.com/2009/10/03/compiling-freeimage-in-64-bit-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Fixing CPAN on Snow Leopard (Mac OS X 10.6)</title>
		<link>http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/</link>
		<comments>http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 17:32:41 +0000</pubDate>
		<dc:creator>Aaron B. Russell</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Compress]]></category>
		<category><![CDATA[CPAN]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[IO]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Macs]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scripting languages]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Uncompress]]></category>

		<guid isPermaLink="false">http://lostentropy.com/?p=2345</guid>
		<description><![CDATA[I ran into some problems with Perl&#8217;s CPAN installer on Snow Leopard, notably, it didn&#8217;t work once Bundle::CPAN was installed. Every time I tried to install a package I&#8217;d end up with an error like this: Catching error: 'Can\'t call method "value" on an undefined value at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/IO/Uncompress/RawInflate.pm line 64. ' at /System/Library/Perl/5.10.0/CPAN.pm line 281 [...]]]></description>
			<content:encoded><![CDATA[<p><a title="My MacBook Etching" href="http://flickr.com/photos/41894166582@N01/301812211"><img src="http://farm1.static.flickr.com/116/301812211_5684bc0a75.jpg" alt="" width="420" height="280" /></a><br />
I ran into some problems with Perl&#8217;s CPAN installer on Snow Leopard, notably, it didn&#8217;t work once Bundle::CPAN was installed. Every time I tried to install a package I&#8217;d end up with an error like this:</p>
<blockquote>
<pre>Catching error: 'Can\'t call method "value" on an undefined value at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/IO/Uncompress/RawInflate.pm line 64.
' at /System/Library/Perl/5.10.0/CPAN.pm line 281
CPAN::shell() called at /usr/bin/cpan5.10.0 line 199</pre>
</blockquote>
<p>Not good. So, how to fix it? <em>Move the broken IO::Uncompress module out of the way.</em> In a terminal window, copy and paste the following</p>
<blockquote>
<pre>sudo mv /System/Library/Perl/5.10.0/darwin-thread-multi-2level/IO/Uncompress/RawInflate.pm /System/Library/Perl/5.10.0/darwin-thread-multi-2level/IO/Uncompress/RawInflate.pm-broken</pre>
</blockquote>
<p>Once that&#8217;s been shifted out the way, it should work provided CPAN was configured with the proper paths to your tar, bzip2 and gzip executables (if not, nuke your /System/Library/Perl/5.10.0/CPAN/Config.pm and start over).</p>
<p><strong>Note:</strong> This isn&#8217;t a long-term solution, some things like CPAN::SQLite won&#8217;t install if IO::Uncompress::RawInflate is missing, but at least it gets some functionality back into CPAN. I&#8217;m very interested in hearing of any better fixes for this.</p>
<img style='display:none' id="post-2345-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/',title:'Fixing CPAN on Snow Leopard (Mac OS X 10.6)',tweet:' I ran into some problems with Perl&#8217;s CPAN installer on Snow Leopard, notably, it didn&#8217;t',description:' I ran into some problems with Perl&#8217;s CPAN installer on Snow Leopard, notably, it didn&#8217;t'})"><script type='text/javascript'>document.getElementById("post-2345-blankimage").onload();</script><!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Del.icio.us" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Del.icio.us" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Del.icio.us" /></a><a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to digg" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to digg" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to digg" /></a><a class="social_img" href="http://furl.net/storeIt.jsp?t=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29&amp;u=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to FURL" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/furl.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to FURL" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to FURL" /></a><a class="social_img" href="http://reddit.com/submit?url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to reddit" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to reddit" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to reddit" /></a><a class="social_img" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29&amp;url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;version=0.7" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Feed Me Links" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/feedmelinks.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Feed Me Links" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Feed Me Links" /></a><a class="social_img" href="http://www.technorati.com/faves?add=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Technorati" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Technorati" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Technorati" /></a><a class="social_img" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;t=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Yahoo My Web" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/yahoo_myweb.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Yahoo My Web" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Yahoo My Web" /></a><a class="social_img" href="http://ekstreme.com/socializer/?url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Socializer" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/socializer.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Socializer" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Socializer" /></a><a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29&amp;description=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Ma.gnolia" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/magnolia.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Ma.gnolia" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Ma.gnolia" /></a><a class="social_img" href="http://www.stumbleupon.com/submit?url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Stumble Upon" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Stumble Upon" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Stumble Upon" /></a><a class="social_img" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Google Bookmarks" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Google Bookmarks" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Google Bookmarks" /></a><a class="social_img" href="http://www.bloglines.com/sub/http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Bloglines" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/bloglines.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Bloglines" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Bloglines" /></a><a class="social_img" href="http://www.netscape.com/submit/?U=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;T=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Propeller" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/propeller.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Propeller" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Propeller" /></a><a class="social_img" href="http://mystuff.ask.com/mysearch/QuickWebSave?v=1.2&amp;t=webpages&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29&amp;url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Ask" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/ask.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Ask" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Ask" /></a><a class="social_img" href="https://favorites.live.com/quickadd.aspx?url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Live-MSN" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Live-MSN" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Live-MSN" /></a><a class="social_img" href="http://slashdot.org/bookmark.pl?title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29&amp;url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to SlashDot" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to SlashDot" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to SlashDot" /></a><a class="social_img" href="http://www.facebook.com/share.php?u=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;t=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to FaceBook" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to FaceBook" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to FaceBook" /></a><a class="social_img" href="http://www.mixx.com/submit?page_url=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/&amp;title=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Mixx" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/mixx.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Mixx" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Mixx" /></a><a class="social_img" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Fixing+CPAN+on+Snow+Leopard+%28Mac+OS+X+10.6%29&amp;c=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to MySpace" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to MySpace" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to MySpace" /></a><a class="social_img" href="http://twitter.com/home?status=http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Twitter" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Twitter" alt="Add 'Fixing CPAN on Snow Leopard (Mac OS X 10.6)' to Twitter" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://lostentropy.com/2009/09/09/fixing-cpan-on-snow-leopard-mac-os-x-10-6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)</title>
		<link>http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/</link>
		<comments>http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 01:12:08 +0000</pubDate>
		<dc:creator>Aaron B. Russell</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[invaluable tool]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[SCP]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://lostentropy.com/?p=2273</guid>
		<description><![CDATA[If you&#8217;re running a Linux, Mac OS X or Unix server of any description, SSH is an invaluable tool when it comes to taking control of the machine while you&#8217;re not infront of it. In the world of web hosting, it&#8217;s also brings with it SFTP; a fantastic alternative to the very insecure FTP. Except [...]]]></description>
			<content:encoded><![CDATA[<p><a title="El pequeño BOB" href="http://flickr.com/photos/89585721@N00/48396519"><img src="http://farm1.static.flickr.com/26/48396519_28383f1d18.jpg" alt="" width="405" height="304" /></a></p>
<p>If you&#8217;re running a Linux, Mac OS X or Unix server of any description, SSH is an invaluable tool when it comes to taking control of the machine while you&#8217;re not infront of it.</p>
<p>In the world of web hosting, it&#8217;s also brings with it SFTP; a fantastic alternative to the very insecure FTP. Except it has one major flaw: by default on Ubuntu (and most Linux distros), one user can see all of another user&#8217;s files just by dropping up a directory to /home. Not exactly ideal if you&#8217;re providing a shared-hosting service.</p>
<p>So what we want is a chrooted version of SFTP. But this would also chroot SSH too, making it unusable for system administration. So we need to lock down SFTP only, but let SSH run free. We also want to be able to make some users SFTP-only (web hosting customers), and some users SFTP and SSH capable.</p>
<p>Luckily someone known as &#8220;The Minstrel&#8221;, came up with <a href="http://www.minstrel.org.uk/papers/sftp/">a pretty good solution to this</a>. Back in November 2007, Mads Madsen also created <a href="http://zephid.dk/2007/11/20/getting-the-power-of-sftp-chroot-in-debian/">a guide to this process for Debian/Ubuntu 7.04</a>. This has been my favourite solution for some time now. The OpenSSH project has since created a version of this this idea internally, but annoyingly it&#8217;s got a major flaw: <em>wherever you want to chroot the users to must be owned by root</em>. In other words, users will not be able to create any files in the top level of their chroot jail.</p>
<p>Imagine that you have your users data stored in /home/username. You can&#8217;t chroot them to /home/username unless you create a directory inside there, and then let them own that. That gives them an ugly chrooted writable path like /htdocs (or whatever you choose to call it), and a / folder they can&#8217;t edit. The other option is to chroot them to /home, and let them own their homedir as normal, but then they can see every other user&#8217;s files. Again, not ideal.</p>
<p>So I stuck with The Minstrel&#8217;s version, but got tired of having to recompile and rebuild all this every time I wanted it on a new machine. Some people would have probably avoided this (actually quite good) solution altogether because it&#8217;s a bit too indepth. Well, it just got a bunch easier, because I created all the bits needed and am publishing them here for you to use.</p>
<p>Disclaimer: I make no promises that this won&#8217;t electrocute your cat, sleep with your girlfriend, make fun of your children, etc. Infact I make no promises about this at all. That said, for me, this has worked very well several times since Ubuntu 8.10&#8242;s release, on a whole variety of machines, and I&#8217;ve had no problems with it.</p>
<p>So from your Ubuntu machine, fire up a terminal (or SSH in, if you&#8217;re not sat infront of it) and paste this in:</p>
<blockquote>
<pre>wget http://unadopted.co.uk/openssh/openssh-server_5.1p1-3ubuntu1_i386.deb
sudo dpkg -i openssh-server_5.1p1-3ubuntu1_i386.deb
sudo aptitude hold openssh-server</pre>
</blockquote>
<p>This will download the modified package, install it, and tell Ubuntu not to replace it with new any of Ubuntu&#8217;s versions. Now bear in mind that you won&#8217;t get automatic security updates on OpenSSH anymore &#8212; you&#8217;ll need a new version of this package when OpenSSH 5.2 comes out, but when that comes out, it&#8217;ll be a pretty simple copy/paste job to upgrade, just like that was. The Minstrel notes that it&#8217;s worth signing up to the <a href="http://lists.mindrot.org/mailman/listinfo/openssh-unix-announce">openssh-unix-announce</a> mailing list to find out when this is necessary.</p>
<p>Now if this is the first time you&#8217;re doing this we need to do a couple extra steps (though you won&#8217;t need to do this if you&#8217;re just updating):</p>
<blockquote>
<pre>wget http://unadopted.co.uk/openssh/sftpsh
sudo cp sftpsh /bin/sftpsh
sudo chown root:root /bin/sftpsh
sudo chmod 755 /bin/sftpsh
sudo echo "/bin/sftpsh" &gt;&gt; /etc/shells </pre>
</blockquote>
<p>This will download and install a special shell which you&#8217;ll need to set up as the login shell for the user accounts for whoever you want to lock down. This will kick them straight out if they try and SSH in, but will still let SFTP work. We also need to tell the system which directory to lock them into by adding a special tag into their home folder definition. Which all sounds a bit more complicated than it really is (it&#8217;s just one line to copy and paste).</p>
<p>So, let&#8217;s say our web user is called &#8220;mywebsite-sftp&#8221;. We&#8217;d just do this, if we wanted to lock them to their home directory:</p>
<blockquote>
<pre>sudo usermod -s /bin/sftpsh -d /home/mywebsite-sftp/./ mywebsite-sftp</pre>
</blockquote>
<p>Simple, right? The Minstrel has built up a <a href="http://www.minstrel.org.uk/papers/sftp/faq.html">pretty good set of FAQs</a> incase you run into any problems.</p>
<p>If you ever change your mind, and want to go back to Ubuntu&#8217;s default OpenSSH server and undo all these changes, that&#8217;s dead simple too, just copy and paste this in (go-go-gadget uninstaller!):</p>
<blockquote>
<pre>sudo rm /bin/sftpsh
sudo aptitude remove openssh-server
sudo aptitude install openssh-server </pre>
</blockquote>
<p>Warning: If you&#8217;re SSH&#8217;d in, don&#8217;t disconnect between the two aptitude commands, or you won&#8217;t have an SSH server to reconnect to (but it will stay alive until you disconnect). Also, you&#8217;ll need to remember that the sftpsh shell doesn&#8217;t exist anymore, though, and you&#8217;ll need to change any users back to a different shell using usermod.</p>
<p>Okay, so that&#8217;s that over with. Tell your friends, post it on Facebook, link to this in forum posts, Digg it, link to this from the Ubuntu Wiki, do whatever you feel you must do to share this with the world. :)</p>
<img style='display:none' id="post-2273-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/',title:'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)',tweet:' If you&#8217;re running a Linux, Mac OS X or Unix server of any description, SSH is an invaluable t',description:' If you&#8217;re running a Linux, Mac OS X or Unix server of any description, SSH is an invaluable t'})"><script type='text/javascript'>document.getElementById("post-2273-blankimage").onload();</script><!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Del.icio.us" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Del.icio.us" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Del.icio.us" /></a><a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to digg" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to digg" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to digg" /></a><a class="social_img" href="http://furl.net/storeIt.jsp?t=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29&amp;u=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to FURL" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/furl.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to FURL" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to FURL" /></a><a class="social_img" href="http://reddit.com/submit?url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to reddit" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to reddit" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to reddit" /></a><a class="social_img" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29&amp;url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;version=0.7" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Feed Me Links" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/feedmelinks.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Feed Me Links" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Feed Me Links" /></a><a class="social_img" href="http://www.technorati.com/faves?add=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Technorati" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Technorati" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Technorati" /></a><a class="social_img" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;t=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Yahoo My Web" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/yahoo_myweb.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Yahoo My Web" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Yahoo My Web" /></a><a class="social_img" href="http://ekstreme.com/socializer/?url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Socializer" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/socializer.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Socializer" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Socializer" /></a><a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29&amp;description=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Ma.gnolia" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/magnolia.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Ma.gnolia" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Ma.gnolia" /></a><a class="social_img" href="http://www.stumbleupon.com/submit?url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Stumble Upon" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Stumble Upon" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Stumble Upon" /></a><a class="social_img" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Google Bookmarks" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Google Bookmarks" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Google Bookmarks" /></a><a class="social_img" href="http://www.bloglines.com/sub/http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Bloglines" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/bloglines.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Bloglines" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Bloglines" /></a><a class="social_img" href="http://www.netscape.com/submit/?U=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;T=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Propeller" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/propeller.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Propeller" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Propeller" /></a><a class="social_img" href="http://mystuff.ask.com/mysearch/QuickWebSave?v=1.2&amp;t=webpages&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29&amp;url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Ask" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/ask.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Ask" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Ask" /></a><a class="social_img" href="https://favorites.live.com/quickadd.aspx?url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Live-MSN" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/live.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Live-MSN" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Live-MSN" /></a><a class="social_img" href="http://slashdot.org/bookmark.pl?title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29&amp;url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to SlashDot" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to SlashDot" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to SlashDot" /></a><a class="social_img" href="http://www.facebook.com/share.php?u=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;t=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to FaceBook" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to FaceBook" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to FaceBook" /></a><a class="social_img" href="http://www.mixx.com/submit?page_url=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/&amp;title=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Mixx" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/mixx.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Mixx" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Mixx" /></a><a class="social_img" href="http://www.myspace.com/Modules/PostTo/Pages/?t=Lock+down+SFTP+without+restricting+SSH+on+Ubuntu+8.10+%28Intrepid+Ibex%29&amp;c=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to MySpace" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/myspace.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to MySpace" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to MySpace" /></a><a class="social_img" href="http://twitter.com/home?status=http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Twitter" border="0" ><img src="http://lostentropy.com/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Twitter" alt="Add 'Lock down SFTP without restricting SSH on Ubuntu 8.10 (Intrepid Ibex)' to Twitter" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://lostentropy.com/2009/01/11/lock-down-sftp-without-restricting-ssh-on-ubuntu-810-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>
