<?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>damontimm.com &#187; apple</title>
	<atom:link href="http://blog.damontimm.com/tag/apple/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.damontimm.com</link>
	<description>Where I go to remember what I did</description>
	<lastBuildDate>Fri, 16 Jul 2010 18:51:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How To: Store iMovie &#8217;09 Events and Projects on a Network Volume (NAS)</title>
		<link>http://blog.damontimm.com/how-to-store-imovie-09-events-and-projects-on-a-network-volume-nas/</link>
		<comments>http://blog.damontimm.com/how-to-store-imovie-09-events-and-projects-on-a-network-volume-nas/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 15:33:32 +0000</pubDate>
		<dc:creator>Damon</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iMovie]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.damontimm.com/?p=248</guid>
		<description><![CDATA[Purpose: while iMovie &#8217;09 allows you to store your events and projects on physically attached hard drives (external or internal) it doesn&#8217;t offer an out-of-the-box way to store them on a network attached storage (NAS) device. I have a file serve and I want to use it. how to set it up The only way [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Purpose</strong>: while iMovie &#8217;09 allows you to store your events and projects on physically attached hard drives (external or internal) it doesn&#8217;t offer an out-of-the-box way to store them on a network attached storage (NAS) device.  I have a file serve and I want to use it.</p>
<p><span id="more-248"></span></p>
<h2>how to set it up</h2>
<p>The only way I have found to circumvent this annoyance is to play a little trick on iMovie.  And that trick is to move the original <code>~/Movies</code> folder under a different name and put a symlink in its place (to the network folder of your choice).</p>
<p>Here are the steps I took from the Terminal to do this (you will need to have Administrator privileges and you will need to know where your network folder is attached):</p>
<ul class="terminal">
<li><code>sudo mv ~/Movies/ ~/Movies-original</code></li>
<li><code>ln -s /Volumes/my-network-volume/Movies/ ~/Movies</code></li>
</ul>
<p>Now, when I load up iMovie it will use the networked volume.  If you don&#8217;t like this, you can always move your <code>~/Movies-original</code> folder back where it was.</p>
<h2>remaining issues</h2>
<p>Unfortunately, this isn&#8217;t a perfect fix.  There are two caveats or issues I have found.  </p>
<p>One, is that now my hard drive (called Papa Bear) is listed twice in the <em>Project Library</em>:</p>
<p><img src="http://blog.damontimm.com/wp-content/uploads/2010/04/imovie-duplicate-project-libraries.png" alt="" title="imovie-duplicate-project-libraries" width="415" height="96" class="aligncenter size-full wp-image-249" /></p>
<p>And two, is that when you delete an event or project from within iMovie, it moves the project into a temporary folder rather than actually deleting it.  The next time you open iMovie, it will show up again.  I&#8217;m sure this is because it <em>thinks</em> it is working with a bona fide Trash system but its not (because it is network storage.  See this example:</p>
<p><img src="http://blog.damontimm.com/wp-content/uploads/2010/04/imovie-temporary-folders.png" alt="" title="imovie-temporary-folders" width="423" height="93" class="aligncenter size-full wp-image-250" /></p>
<p>In order to get around this annoyance, I created a Python script which removes the temporary files for me and created a cron job to run the script from time to time (cleaning up the mess iMovie leaves behind).</p>
<pre class="brush: python; gutter: true;">#!/usr/bin/env python
'''
Simple script to remove all directories that match the name:
    /iMovie Temporary Items */  [note the star!]

'''
import os
import fnmatch
import shutil

# tuple of directories to search through (you can add more than one)
DIRS = ('/Volumes/leaker-damon/tps/Videos/',)

for directory in DIRS:
    for root, dirnames, filenames in os.walk(directory):
        for directory in dirnames:
            if fnmatch.fnmatch(directory,'iMovie Temporary Items *'):
                shutil.rmtree(os.path.join(root,directory))</pre>
<h2>make this more better</h2>
<p>Am interested to hear how other people have been handling this &#8212; this approach certainly isn&#8217;t perfect, but it seems to work (for now).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.damontimm.com/how-to-store-imovie-09-events-and-projects-on-a-network-volume-nas/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To: Install MacPorts on OS X Leopard (10.5)</title>
		<link>http://blog.damontimm.com/how-to-install-macports-on-os-x-leopard-105/</link>
		<comments>http://blog.damontimm.com/how-to-install-macports-on-os-x-leopard-105/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 12:58:56 +0000</pubDate>
		<dc:creator>Damon</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://www.damontimm.com/blog/?p=43</guid>
		<description><![CDATA[Purpose: install MacPorts on OS X Leopard (10.5) to gain access to a host of open source applications and tools that make working on the Mac as cool as can be. Using MacPorts makes it easy to install applications you would otherwise have to build from source &#8212; which can be difficult for folks like [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Purpose:</strong> install <a href="http://macports.org">MacPorts</a> on OS X Leopard (10.5) to gain access to a host of open source applications and tools that make working on the Mac as cool as can be.  Using MacPorts makes it easy to install applications you would otherwise have to build from source &#8212; which can be difficult for folks like me, who don&#8217;t understand what the hell they are doing in the first place.</p>
<p><span id="more-43"></span></p>
<h3>Install MacPorts</h3>
<p>First, we&#8217;ll need to make sure you have &#8220;XCode Tools&#8221; installed on your Mac &#8212; XCode Tools install all the programs needed to build applications from source.  It comes standard with all Macs, however, it isn&#8217;t installed by default, so you&#8217;ll need your installation DVD (or you can <a href="http://developer.apple.com/technology/xcode.html">download them</a>).  From the DVD, go to the &#8220;Optional Install&#8221; folder and then &#8220;XCode Tools&#8221; and run the installer package.</p>
<p>Second, we&#8217;ll have to download and install the MacPorts from: <a href="http://macports.org/install.php">http://macports.org/install.php</a>.  Choose a .dmg disk image for whichever version of OS X you are using. </p>
<p>Third, after MacPorts has been installed, we&#8217;ll need to update our <code>PATH</code> variable in the Terminal to be able to find the MacPorts program (which is called <code>port</code>).  If you have your own way of doing this, go for it &#8212; however, I created a <code>~/.bash_profile</code> file to accomplish this task.  If you don&#8217;t already have a profile file, you can do this by entering the following in the terminal (I also added two other common places programs get installed on the command line that save me trouble down the road):</p>
<ul class="terminal">
<li><code>$ echo "export PATH=/usr/local/bin/:/usr/local/sbin/:/opt/local/bin/:/opt/local/sbin/:$PATH" >> ~/.bash_profile</code></li>
</ul>
<p>Restart the Terminal program for these changes to take effect.  If this has been accomplished successfully, then you should be able to run (again in the Terminal) the following for a self-update and it should work:</p>
<ul class="terminal">
<li><code>$ sudo port -v selfupdate</code></li>
</ul>
<p>If nothing happens and, instead, you get an error that says: <code>-bash: port: command not found</code>, that means your <code>PATH</code> variable wasn&#8217;t set correctly.  If this is the first time you are running a command using <code>sudo</code> you&#8217;ll get a warning saying something to the effect of: if you don&#8217;t know what you are doing, turn back now.  Ignore this warning.</p>
<h3>What&#8217;s Next</h3>
<p>With MacPorts installed by itself, nothing much is going to change.  But you&#8217;ll be able to use it to install open source applications that are very exciting (like lame, flac, ffmpeg, gimp, etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.damontimm.com/how-to-install-macports-on-os-x-leopard-105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Install Netatalk (AFP) on Ubuntu with Encrypted Authentication</title>
		<link>http://blog.damontimm.com/how-to-install-netatalk-afp-on-ubuntu-with-encrypted-authentication/</link>
		<comments>http://blog.damontimm.com/how-to-install-netatalk-afp-on-ubuntu-with-encrypted-authentication/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 20:42:02 +0000</pubDate>
		<dc:creator>Damon</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[afp]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[netatalk]]></category>
		<category><![CDATA[tiger]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.damontimm.com/blog/how-to-install-netatalk-afp-on-ubuntu-with-encrypted-authentication/</guid>
		<description><![CDATA[Purpose: Install Netatalk (AFP) on Ubuntu with encrypted authentication (using OpenSSL), which is not enabled by default with the Ubuntu netatalk package. By default, the package installed from the Ubuntu universal repositories will transmit your password via clear text (you&#8217;ll know this because Mac OS X Tiger will throw a warning and Leopard won&#8217;t do [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Purpose:</strong> Install <a href="http://netatalk.sourceforge.net">Netatalk</a> (AFP) on Ubuntu with encrypted authentication (using OpenSSL), which is not enabled by default with the Ubuntu netatalk package.  By default, the package installed from the Ubuntu universal repositories will transmit your password via clear text (you&#8217;ll know this because Mac OS X Tiger will throw a warning and Leopard won&#8217;t do anything useful at all).</p>
<p><span id="more-36"></span></p>
<p>This is because, apparently, <a href="http://it.slashdot.org/comments.pl?sid=180016&amp;cid=14905489">OpenSSL has a license that is incompatible with Debian&#8217;s GPL</a>.  Regardless: clear text is bad; encryption is good.  And since Ubuntu doesn&#8217;t package netatalk with the appropriate encryption support, one must do it oneself.</p>
<p><em>Updated 05.08.09: Just tested this with Jaunty (09.04) and the package in the repositories works with no extra steps.  If you are using an older version of Ubuntu, however, you will want to follow these instructions.  Tested with Intrepid Ibex (8.10) as well as: 6.06, 7.04, 7.10, and 8.06.</em></p>
<h2>about this guide</h2>
<p>When I first found that Ubuntu&#8217;s netatalk package didn&#8217;t support encrypted authentication, I tried to compile netatalk from the source.  I didn&#8217;t get very far.  Throwing up my hands in frustration, I spent some more time on google and <a href="http://ubuntuforums.org/showthread.php?t=101823&amp;page=2">found some ideas at the Ubuntu Forums</a>.  Pulling it all together, with ideas and fixes from comments (below), this is what I came up with (which I think is a lot easier than building from source).</p>
<h2>steps to follow</h2>
<p><em>NOTE:</em> If you have already installed netatalk you should remove it before proceeding with a <code>sudo aptitude purge netatalk</code> before you get going.</p>
<ul class="terminal">
<li><code>sudo aptitude update</code></li>
<li><code>mkdir -p ~/src/netatalk</code></li>
<li><code>cd ~/src/netatalk</code></li>
<li><code>sudo aptitude install cracklib2-dev libssl-dev</code></li>
<li><code>apt-get source netatalk</code></li>
<li><code>sudo apt-get build-dep netatalk</code></li>
<li><code>cd netatalk-2.0.3</code></li>
<li><code>sudo DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -us -uc</code></li>
<li><code>sudo debi</code></li>
<li><code>echo "netatalk hold" | sudo dpkg --set-selections</code></li>
</ul>
<p>The basic trend of this set of operations is to: create a directory where all the messy files can be stored, download necessary packages, get the netatalk source, compile the source with the ssl option, install the package, then tell Ubuntu never to update the package (because if it did, it would break).</p>
<p>Settings for the netatalk service can be found on your Ubuntu machine at <code>/etc/netatalk/</code>.  There are a couple configuration files in there with instructions.  Good luck.</p>
<h2>configuration files</h2>
<p>One of the first changes I make after installing netatalk is to disable some of the services that I don&#8217;t need running (and start those that I do).  To do this, I edit: <code>/etc/default/netatalk</code>, changing  the daemons that run so that it ends up looking like this (which allows netatlk to restart a lot quicker without the atalkd daemon &#8212; which is a holdover from pre-OS X times):</p>
<pre class="brush: text;"># Set which daemons to run (papd is dependent upon atalkd):
ATALKD_RUN=no
PAPD_RUN=no
CNID_METAD_RUN=no
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no</pre>
<p>These are the settings I am using since I only need the afp file server &#8212; one thing to note, however, is that if you want to use the <strong>dbd</strong> databashe scheme rather than <strong>cdb</strong>, you need to set <code>CNID_METAD_RUN</code> to <code>yes</code>.  <strong>cdb</strong> is supposed to be faster, while <strong>dbd</strong> is supposed to be &#8220;corruption-proof&#8221;.  You can <a href="http://netatalk.sourceforge.net/2.0/htmldocs/configuration.html#CNID-backends" target="_blank">read it about in the docs</a>.</p>
<p>After you&#8217;ve saved changes to this configuration file, run the following to restart netatalk:</p>
<ul class="terminal">
<li><code>sudo /etc/init.d/netatalk restart</code></li>
</ul>
<h2>other tips and tricks</h2>
<p>Here are a couple other thoughts and pointers that I&#8217;ve picked up over the years &#8230;</p>
<h3>multiple afp servers running on the same network</h3>
<p>I never thought much of it, but I did notice: if you have two different servers on your network running netatalk, you are unable to login to both of them at the same time.  <strong>JET</strong> <a href="http://blog.damontimm.com/how-to-install-netatalk-afp-on-ubuntu-with-encrypted-authentication/#comment-3718">posted a solution</a> to this and it works flawlessly.  It has changed my life.</p>
<h3>multiple network interfaces causing errors</h3>
<p><strong>Update (9/24/07 &amp; 10/22/07):</strong> I&#8217;ve noticed <a href="http://www.damontimm.com/blog/how-to-install-netatalk-afp-on-ubuntu-with-encrypted-authentication/#comment-748">a few people mentioning </a>they get an error when compiling and/or starting netatalk (from <a href="http://ubuntuforums.org/showpost.php?p=1273565&amp;postcount=21">ubuntuforums.org</a> as well).  Folks with more than one available network adapter (like <code>eth1</code> and <code>eth2</code>, or virtual adapters created by vmware) seem to run an error when they compile and during runtime .  During compile time you might have have an error that ends in:</p>
<ul class="terminal">
<li><code>dpkg: error processing netatalk (--install):</code></li>
<li><code>subprocess post-installation script returned error exit status 1</code></li>
<li><code>Errors were encountered while processing:</code></li>
<li><code>netatalk</code></li>
<li><code>debi: debpkg -i failed</code></li>
</ul>
<p>After this, you would probably get an error at runtime that looked like:</p>
<ul class="terminal">
<li><code>Starting Netatalk services (this will take a while): nbp_rgstr: Connection timed out</code></li>
</ul>
<p><strong>Tim Pope</strong> wrote a <a href="http://www.damontimm.com/blog/how-to-install-netatalk-afp-on-ubuntu-with-encrypted-authentication/#comment-911">suggested fix</a> in the comments below that should eliminate the conflict between the multiple adapters.  I only have one adapter myself (and don&#8217;t use vmware) so I haven&#8217;t had a chance to try it yet myself.  Let me know if this works for you as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.damontimm.com/how-to-install-netatalk-afp-on-ubuntu-with-encrypted-authentication/feed/</wfw:commentRss>
		<slash:comments>150</slash:comments>
		</item>
	</channel>
</rss>
