<?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>North Star Labs &#187; Leopard</title>
	<atom:link href="http://northstarlabs.net/category/mac-os-x/leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://northstarlabs.net</link>
	<description>System Administration hacks and howto articles.</description>
	<lastBuildDate>Thu, 03 Jun 2010 21:52:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enable Screen Sharing from the Terminal in Leopard</title>
		<link>http://northstarlabs.net/2008/03/17/enable-screen-sharing-from-the-terminal-in-leopard/</link>
		<comments>http://northstarlabs.net/2008/03/17/enable-screen-sharing-from-the-terminal-in-leopard/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 18:13:07 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[kickstart]]></category>
		<category><![CDATA[screen sharing]]></category>
		<category><![CDATA[sharing]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2008/03/17/enable-screen-sharing-from-the-terminal-in-leopard/</guid>
		<description><![CDATA[After graduation and my last day at work, I&#8217;ve taken a road trip to visit the Bennett&#8217;s in D.C. and was promptly chagrined while trying to show off Leopard&#8217;s screen sharing over OpenVPN.
Fortunately, it&#8217;s pretty easy to turn on Screen Sharing from an SSH session.

echo -n enabled > /Library/Preferences/com.apple.ScreenSharing.launchd

Launchd should automatically start the Screen Sharing [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/terminal.png" alt="Terminal" height="96" width="96" align="right" class="right"/>After graduation and my last day at work, I&#8217;ve taken a road trip to visit the Bennett&#8217;s in D.C. and was promptly chagrined while trying to show off Leopard&#8217;s screen sharing over OpenVPN.</p>
<p>Fortunately, it&#8217;s pretty easy to turn on Screen Sharing from an SSH session.</p>
<pre class="code">
echo -n enabled > /Library/Preferences/com.apple.ScreenSharing.launchd
</pre>
<p>Launchd should automatically start the Screen Sharing service when this file is modified.</p>
<p>More information is available at <a href="http://docs.info.apple.com/article.html?artnum=108030">Apple Remote Desktop: Configuring remotely via command line (kickstart)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2008/03/17/enable-screen-sharing-from-the-terminal-in-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard VNC Server Serial Number Password</title>
		<link>http://northstarlabs.net/2008/02/29/leopard-vnc-server-serial-number-password/</link>
		<comments>http://northstarlabs.net/2008/02/29/leopard-vnc-server-serial-number-password/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 15:36:03 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[netboot]]></category>
		<category><![CDATA[netinstall]]></category>
		<category><![CDATA[netrestore]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2008/02/29/leopard-vnc-server-serial-number-password/</guid>
		<description><![CDATA[Digging around in a NetBoot-Install.dmg file created by NetRestore Helper, I found a nice little gem.
In Leopard, and perhaps earlier versions of Mac OS X, we&#8217;re able to start a VNC server with the machine serial number as a password.  This is particularly interesting for a managed network or lab environment.
As an example, I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/vnc-guest.png" alt="VNC Guest" height="96" width="96" align="right" class="right"/>Digging around in a NetBoot-Install.dmg file created by NetRestore Helper, I found a nice little gem.</p>
<p>In Leopard, and perhaps earlier versions of Mac OS X, we&#8217;re able to start a VNC server with the machine serial number as a password.  This is particularly interesting for a managed network or lab environment.</p>
<p>As an example, I&#8217;m starting a VNC server in my NetBoot-Install image with the following shell script:</p>
<pre class="code">
# Credit to Mike Bombich for this snippet

VNC="/System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/MacOS/AppleVNCServer"

if [ -x "$VNC" ]; then
    "$VNC" -noRegister -serialNumber &#038;
fi
</pre>
<p>I&#8217;m then able to quickly connect with Cmd+K in the finder:<br />
<img src="http://northstarlabs.net/blog/wp-content/uploads/connect-to-server-small.png" alt="Connect to Server" align="center" class="center"/></p>
<p>If you&#8217;re scripting this, here&#8217;s a quick way to snag the serial number.  I do this before I bless a client machine to netboot, so I have the serial number to connect back up once it&#8217;s in the NetRestore system.</p>
<pre class="code">
system_profiler SPHardwareDataType | \
  grep -i 'serial number' | \
  perl -ple 's/.*:\s+(\w+).*?/$1/'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2008/02/29/leopard-vnc-server-serial-number-password/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fast Screen Sharing with Quicksilver</title>
		<link>http://northstarlabs.net/2008/02/17/fast-screen-sharing-with-quicksilver/</link>
		<comments>http://northstarlabs.net/2008/02/17/fast-screen-sharing-with-quicksilver/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 15:29:11 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[quicksilver]]></category>
		<category><![CDATA[screen sharing]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2008/02/17/fast-screen-sharing-with-quicksilver/</guid>
		<description><![CDATA[After upgrading all of my personal machines to Leopard, I&#8217;ve found myself using the Screen Sharing feature quite often.  Many people have two Mac&#8217;s these days, particularly owners of the MacBook Air, and screen sharing makes it incredibly convenient to access a machine in another room.
As with most things I do frequently, Quicksilver has [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2008/02/liaison.png" alt="" height="96" width="96" align="right" class="right"/>After upgrading all of my personal machines to Leopard, I&#8217;ve found myself using the Screen Sharing feature quite often.  Many people have two Mac&#8217;s these days, particularly owners of the MacBook Air, and screen sharing makes it incredibly convenient to access a machine in another room.</p>
<p>As with most things I do frequently, Quicksilver has utterly spoiled me.  The process of making the Finder active, pressing Command+K, and selecting or typing vnc://champ.local is just way too long.</p>
<p>Fortunately, it&#8217;s really easy to integrate Screen Sharing into our Quicksilver workflow.</p>
<p>Here&#8217;s how.</p>
<p>You&#8217;ll need to edit unix plaintext files, rather than rich text which TextEdit.app seems to insist on producing.  <a href="http://www.barebones.com/products/textwrangler/">TextWrangler</a> is a great, free, text editor for editing Unix plain text files, although I&#8217;m partial to <a href="http://macromates.com/">TextMate</a>.</p>
<p>First, make sure Screen Sharing is turned on in the Sharing Preference Pane in Leopard.</p>
<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2008/02/sharing-pref-pane.png" alt="Sharing Pref Pane" width="400" align="center" class="center"/></p>
<p>Suppose you want to connect to a machine named &#8220;champ&#8221; in the Sharing Preference Pane.</p>
<p>The script will have the contents:</p>
<pre class="code">
#!/bin/sh
# Nice and short
open vnc://champ.local &#038;
</pre>
<p>Save the script into ~/Library/Application Support/Quicksilver/Scripts/champ.sh and make sure that folder is scanned by Quicksilver.</p>
<p>You&#8217;ll also need to make sure the script is executable, so open up Terminal.app and change the permissions:</p>
<pre class="code">
chmod a+x ~/"Library/Application Support/Quicksilver/Scripts/"*.sh
</pre>
<p>That&#8217;s it.  Now you should just be able to invoke Quicksilver, start typing the name of the machine you want to share the screen with, and presto!  Nice and fast.</p>
<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2008/02/quicksilver-vnc.png" alt="Quicksilver VNC" height="247" width="396" class="center" align="center"/></p>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2008/02/17/fast-screen-sharing-with-quicksilver/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>More on SSL and LDAP in Leopard</title>
		<link>http://northstarlabs.net/2007/12/04/more-on-ssl-and-ldap-in-leopard/</link>
		<comments>http://northstarlabs.net/2007/12/04/more-on-ssl-and-ldap-in-leopard/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 17:55:44 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2007/12/04/more-on-ssl-and-ldap-in-leopard/</guid>
		<description><![CDATA[Joel just posted a great article titled SSL and LDAP in Leopard about the pitfalls of using SSL secured LDAP servers in Leopard.  As Joel mentions, Leopard now refuses to trust any and all SSL protected LDAP servers out of the box.
A few people have complained that Directory.app, and the the LDAPv3 plugin for [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/12/directory.png" alt="Directory" height="96" width="96" align="right" class="right"/>Joel just posted a great article titled <a href="http://www.afp548.com/article.php?story=20071203011158936">SSL and LDAP in Leopard</a> about the pitfalls of using SSL secured LDAP servers in Leopard.  As Joel mentions, Leopard now refuses to trust any and all SSL protected LDAP servers out of the box.</p>
<p>A few people have complained that Directory.app, and the the LDAPv3 plugin for DirectoryService don&#8217;t honor the same purchased certificates that work just fine in their web browsers.  Nor do they honor certificates signed by authorities listed in the x509Anchors keychain.</p>
<p>I&#8217;m not sure exactly where I personally stand on these very reasonable gripes, but I do know that it&#8217;s relatively trivial to configure all of your clients to honor &#8220;legitimate&#8221; certificates signed by authorities such as VeriSign, GeoTrust, etc&#8230;</p>
<p>It&#8217;s as simple as:</p>
<pre class="code">
echo "TLS_CACERT /usr/share/curl/curl-ca-bundle.crt" >> \
  /etc/openldap/ldap.conf
</pre>
<p>You may need to give DirectoryService a kick, with killall DirectoryService.</p>
<p>This works because Apple already distributes a long PEM encoded list of certificate authorities for use with the curl command line utility.  We&#8217;re able to leverage it&#8217;s trusted certificate store.</p>
<p>Also be warned your Leopard workstations are now slightly more vulnerable than if you were to configure only the certification authorities you need to get your LDAP server trusted.</p>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2007/12/04/more-on-ssl-and-ldap-in-leopard/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Leopard: Run Before LoginWindow</title>
		<link>http://northstarlabs.net/2007/11/14/leopard-run-before-loginwindow/</link>
		<comments>http://northstarlabs.net/2007/11/14/leopard-run-before-loginwindow/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 16:15:46 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[loginwindow]]></category>
		<category><![CDATA[rc.local]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2007/11/14/leopard-run-before-loginwindow/</guid>
		<description><![CDATA[James Reynolds mentioned on the Mac Enterprise mailing list that /etc/rc.local scripting is no longer a viable option to execute scripts at boot time, before the loginwindow presents itself to the user.
In Mac OS X 10.4, I&#8217;ve relied heavily on /etc/rc.local to execute a number of management scripts, and /etc/rc.local has always irritated me as [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/11/accounts.png" alt="Accounts" height="96" width="96" class="right" align="right"/><a href="http://lists.psu.edu/cgi-bin/wa?A2=ind0711&#038;L=macenterprise&#038;T=0&#038;F=&#038;S=&#038;P=38870">James Reynolds</a> mentioned on the Mac Enterprise mailing list that /etc/rc.local scripting is no longer a viable option to execute scripts at boot time, before the loginwindow presents itself to the user.</p>
<p>In Mac OS X 10.4, I&#8217;ve relied heavily on /etc/rc.local to execute a number of management scripts, and /etc/rc.local has always irritated me as a solution because of the parallel nature of sub-systems coming online during the Mac OS X boot process.  Note; I didn&#8217;t say &#8220;boot sequence.&#8221;  For example, I have some pretty extensive code to simply detect if DNS resolution is working or not.</p>
<p>Now that loginwindow is started from launchd, we&#8217;re able to replace it with our own scripts, and ultimately call it when we&#8217;re finished.  I have yet to try this as a replacement for my current system, but I&#8217;m hopeful there aren&#8217;t as many issues figuring out what&#8217;s available and what isn&#8217;t at boot time, now that many more processes are started form launchd.</p>
<p>I&#8217;ll report back with any problems I&#8217;m sure to encounter migrating my startup scripts to launchd in Leopard.</p>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2007/11/14/leopard-run-before-loginwindow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard Firewire Target Mode OS Install</title>
		<link>http://northstarlabs.net/2007/11/04/leopard-firewire-target-mode-os-install/</link>
		<comments>http://northstarlabs.net/2007/11/04/leopard-firewire-target-mode-os-install/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 18:17:59 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2007/11/04/leopard-firewire-target-mode-os-install/</guid>
		<description><![CDATA[The DVD drive on my desktop Mac is broken, making it difficult to install the operating system.  I wanted to put Leopard on this machine today, so I tried installing to the machine from my MacBook Pro.
Since Leopard is now Universal for both PowerPC and Intel, this ended up working nicely.  The one [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/11/leopard-installer.png" alt="Leopard Installer" height="96" width="96" align="right"/>The DVD drive on my desktop Mac is broken, making it difficult to install the operating system.  I wanted to put Leopard on this machine today, so I tried installing to the machine from my MacBook Pro.</p>
<p>Since Leopard is now Universal for both PowerPC and Intel, this ended up working nicely.  The one note, however, is that installer will complain about the partition table when it&#8217;s executing on an intel machine, but installing to a PowerPC disk.  The installer thinks it&#8217;ll be booting from the drive, so it doesn&#8217;t like the Apple Partition Map, demanding a GPT table instead.</p>
<p>The solution is to set the CM_BUILD variable, allowing installation to the target disk.</p>
<pre class="code">
  export CM_BUILD=CM_BUILD
  export COMMAND_LINE_INSTALL=1
  export SRC="/Volumes/Mac OS X Install DVD"

  installer -verbose \
    -pkg "$SRC"/System/Installation/Packages/OSInstall.mpkg \
    -target "/Volumes/Macintosh HD 1/" \
    -lang en | tee /tmp/installer.log
</pre>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2007/11/04/leopard-firewire-target-mode-os-install/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>User Level VPN with Leopard</title>
		<link>http://northstarlabs.net/2007/11/04/user-level-vpn-with-leopard/</link>
		<comments>http://northstarlabs.net/2007/11/04/user-level-vpn-with-leopard/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 15:14:00 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solution]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2007/11/04/user-level-vpn-with-leopard/</guid>
		<description><![CDATA[One of the small, but incredibly useful features for me in Leopard is that ssh-agent is automatically running for each user account.  This relatively small change allows me to log into remote machines without entering my password each time.
Using the SOCKS proxy built into ssh, we&#8217;re also able to setup a quick and easy [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/11/camino.png" alt="Camino" height="96" width="96" align="right" class="right"/>One of the small, but incredibly useful features for me in Leopard is that ssh-agent is automatically running for each user account.  This relatively small change allows me to log into remote machines without entering my password each time.</p>
<p>Using the SOCKS proxy built into ssh, we&#8217;re also able to setup a quick and easy secure tunnel.  I wanted to check some sensitive information this morning, but I&#8217;m at a coffee shop that doesn&#8217;t pass VPN traffic, so I quickly hacked together the following:</p>
<p>Setup a new Location in the Network System Preference Pane to configure the SOCKS proxy at 127.0.0.1, port 4088.  This connects most Apple applications to the secure and encrypted tunnel.</p>
<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/11/network-preferences-socks-ssh-proxy.png" alt="Network Preferences Socks ssh Proxy" width="340" class="center"/></p>
<p>Next, I configured ssh to automatically setup the SOCKS proxy whenever I type &#8220;ssh ford&#8221;, which is an alias for my workstation back at the office.</p>
<pre class="code">
# ~/.ssh/config
host ford
  User mccune
  HostName ford.math.ohio-state.edu
  # Handle sleep/wake robustly with TCPKeepAlive
  TCPKeepAlive no
  Port 22
  # DynamicForward is a SOCKS proxy server.
  DynamicForward 4088
  ForwardX11 no
</pre>
<p>With this configuration, I&#8217;m able to load my SSH public key into the ssh-agent running by default on Leopard, type &#8220;ssh ford&#8221; to setup the encrypted SOCKS proxy, then change location to &#8220;SSH Socks Proxy&#8221; to automatically have Mail.app, iChat, Safari and Camino use the secure proxy.</p>
<p>An easy way to verify the proxy is working is to add an IP Address gadget to your personal google home page:</p>
<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/11/google-ip-address.png" alt="Google ip Address" width="240" class="center"/></p>
<p>Finally, with the Network Location module for Quicksilver, you can easily switch back and forth between the encrypted proxy.</p>
<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/11/quicksilver-ssh-network-location.png" alt="Quicksilver SSH Network Location" width="240" class="center"/></p>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2007/11/04/user-level-vpn-with-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate on Leopard Command Line Tool Fix</title>
		<link>http://northstarlabs.net/2007/11/01/textmate-on-leopard-command-line-tool-fix/</link>
		<comments>http://northstarlabs.net/2007/11/01/textmate-on-leopard-command-line-tool-fix/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 17:36:11 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[mate]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2007/11/01/textmate-on-leopard-command-line-tool-fix/</guid>
		<description><![CDATA[I quickly noticed that the &#8220;mate&#8221; command line tool does not work as expected under GNU Screen on Leopard.  The error I get is:
mate: failed to establish connection with TextMate.
I suspect this is a side-effect of the Leopard sandbox feature.  I&#8217;ve found a quick shell alias to be a nice work-around:
alias mate='open -a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/11/text-mate1.png" alt="Text Mate" height="96" width="96" align="right"/>I quickly noticed that the &#8220;mate&#8221; command line tool does not work as expected under GNU Screen on Leopard.  The error I get is:</p>
<pre class="code">mate: failed to establish connection with TextMate.</pre>
<p>I suspect this is a side-effect of the Leopard sandbox feature.  I&#8217;ve found a quick shell alias to be a nice work-around:</p>
<pre class="code">alias mate='open -a TextMate.app'</pre>
<p>This works inside of GNU Screen, where the mate command line utility does not.</p>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2007/11/01/textmate-on-leopard-command-line-tool-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually Migrate Tiger FileVault sparseimage to Leopard FileVault sparsebundle</title>
		<link>http://northstarlabs.net/2007/11/01/manually-migrate-tiger-filevault-sparseimage-to-leopard-filevault-sparsebundle/</link>
		<comments>http://northstarlabs.net/2007/11/01/manually-migrate-tiger-filevault-sparseimage-to-leopard-filevault-sparsebundle/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 13:23:04 +0000</pubDate>
		<dc:creator>jmccune</dc:creator>
				<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Solution]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[tiger]]></category>

		<guid isPermaLink="false">http://northstarlabs.net/2007/11/01/manually-migrate-tiger-filevault-sparseimage-to-leopard-filevault-sparsebundle/</guid>
		<description><![CDATA[So I&#8217;m finally running Mac OS X 10.5 Leopard on my portable.  I&#8217;ve decided to migrate to the new sparsebundle style FileVault image, and here&#8217;s how I did it:
First, make sure you&#8217;ve created a FileVault master certificate by setting a master password in the Security preference pane.
Manually create the sparse bundle:

umask 077
export NAME="mccune"
hdiutil create [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://northstarlabs.net/blog/wp-content/uploads/2007/11/filevault.png" align=right width="96" height="96" />So I&#8217;m finally running Mac OS X 10.5 Leopard on my portable.  I&#8217;ve decided to migrate to the new sparsebundle style FileVault image, and here&#8217;s how I did it:</p>
<p>First, make sure you&#8217;ve created a FileVault master certificate by setting a master password in the Security preference pane.</p>
<p>Manually create the sparse bundle:</p>
<pre class="code">
umask 077
export NAME="mccune"
hdiutil create -size 300g \
  -encryption -agentpass \
  -certificate /Library/Keychains/FileVaultMaster.cer \
  -uid 502 -gid 20 -mode 0700 \
  -fs "HFS+J" \
  -type SPARSEBUNDLE \
  -layout SPUD \
  -volname "$NAME" \
  "$NAME".sparsebundle;
chown -R "$NAME":staff "$NAME".sparsebundle
</pre>
<p>Make sure to set the password on the disk image the same as the password used with the user account, otherwise the system won&#8217;t be able to decrypt the image from the loginwindow.</p>
<p>Mount the sparsebundle:</p>
<pre class=code>
hdiutil mount -owners on -mountrandom /tmp -stdinpass "$NAME".sparsebundle
</pre>
<p>Copy the contents of your home directory:</p>
<pre class="code">
rsync -avxHE --progress /Users/mccune/ /tmp/dmg.TYSCwg/
</pre>
<p>After I did the initial pass with rsync, I logged out of my user account, and logged in using the administrator account in order to run the rsync process a second time, while my profile was in a steady state.</p>
]]></content:encoded>
			<wfw:commentRss>http://northstarlabs.net/2007/11/01/manually-migrate-tiger-filevault-sparseimage-to-leopard-filevault-sparsebundle/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
