<?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>The Adventures of Systems Boy! &#187; Lab</title>
	<atom:link href="http://systemsboy.com/category/lab/feed" rel="self" type="application/rss+xml" />
	<link>http://systemsboy.com</link>
	<description>Big, Honkin' Systems Stuff</description>
	<lastBuildDate>Sat, 21 Aug 2010 15:31:29 +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>Create a Dual-Format Drive for Mac and Windows</title>
		<link>http://systemsboy.com/2009/10/create-a-dual-format-drive-for-mac-and-windows.html</link>
		<comments>http://systemsboy.com/2009/10/create-a-dual-format-drive-for-mac-and-windows.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 14:00:55 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=2777</guid>
		<description><![CDATA[It&#8217;s just come to my attention that it&#8217;s now fairly trivial to split a drive into two differently formatted partitions, one of which could be used for the Mac while the other could be used for Windows. This is not necessarily new, but there are a number of things that make it of particular interest [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s just come to my attention that it&#8217;s now fairly trivial to split a drive into two differently formatted partitions, one of which could be used for the Mac while the other could be used for Windows. This is not necessarily new, but there are a number of things that make it of particular interest to me. Before I detail the process of creating this dual-platform drive, I want to talk a bit about some of the reasons you might want to do this and some of the challenges I&#8217;ve faced over the years with regards to the issue of cross-platform drives.</p>
<p><strong>Some History</strong><br />
In the very cross-platform lab where I used to work we were continually on the hunt for the best filesystem solution for users of multiple platforms when they were using external firewire or USB drives. That is, some folks wanted their drives to be accessible from both the Mac OS and Windows. On the surface this can seem like an easy problem to solve — <a href="http://en.wikipedia.org/wiki/File_Allocation_Table" target="_blank">Fat32</a> (or &#8220;MS-DOS&#8221; as it&#8217;s called in Disk Utility) is readable and writable on both platforms. But it&#8217;s not so cut and dry.</p>
<div id="attachment_2820" class="wp-caption aligncenter" style="width: 154px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/firewire.png"><img class="size-full wp-image-2820" title="firewire" src="http://systemsboy.com/wp-content/uploads/2009/10/firewire.png" alt=" " width="144" height="164" /></a><p class="wp-caption-text"> </p></div>
<p>The biggest problem for me was video. See, I taught — and continue to teach — a video class in that very same department. We use Final Cut Pro as our editing software, for a variety of reasons, not the least of which is the fact that I prefer to work on the Mac. I require my students to have a firewire drive appropriate to showing in-progress video work in class. But Fat32 has a 4GB file size limit, and video captures can often exceed that limit. What happens when this limit is exceeded is interesting from a systems standpoint, but devastating from a user standpoint.</p>
<p><strong>Video and Fat32</strong><br />
When capturing video in Final Cut Pro to a Fat32 volume, what happens is that the video file gets segmented. That is, the capture file gets written in 4GB chunks. Initially, Final Cut will see these chunks and understand what they are. But after saving the project and quitting the app Final Cut will no longer be able to locate the captured media because it&#8217;s in multiple files with different names. The path to the media that FCP relies on is now, essentially, broken. This actually happened to a student of mine some time ago, and we were able to use the <code>cat</code> command to reconstruct the single movie file onto an HFS+ volume and then point FCP at the reconstructed file. Boy was that fun.</p>
<p><strong>NTFS</strong><br />
We&#8217;ve often looked to the ever-popular <a href="http://en.wikipedia.org/wiki/NTFS" target="_blank">NTFS</a> file system as a possible future solution. It does not have such small file size limits, and it&#8217;s readable on Mac and Windows. But the Mac has never been able to <em>write</em> to NTFS. So, in the past, our solution in the lab — our recommendation for users who really needed a dual-format drive with read/write capabilities on Mac and Windows — was to use the HFS+ filesystem on the drive and use MacDrive on Windows to read and write to that drive. Inelegant? Yes. But it mostly worked.</p>
<p><strong>Mac and Windows Partitions</strong><br />
Another potentially attractive alternative to a single, dual-platform volume was the idea of splitting the drive into two partitions and dedicating each partition to a platform/filesystem. This way, even if all your Mac and Windows data wasn&#8217;t all mushed together in one volume, you could at least keep it all on one device. This solution would likely work for the vast majority of users. Unfortunately, there was never a particularly straightforward way of doing this. Sure, it was doable. But it wasn&#8217;t easy, and it wasn&#8217;t something you could tell new students to do. In fact, it was likely to require admin access and command-line heroics, and so just wasn&#8217;t a viable solution to anyone but the most die-hard user. Until now.</p>
<p>Without too much mucking around, it&#8217;s now possible to create a dual-format external drive that contains a mac-formatted partition and a Windows-formatted one.</p>
<p><strong>MacFUSE and NTFS for Mac OS X</strong><br />
The first step is the only really tricky part, and it&#8217;s not even that tricky. If you have need for a dual-format drive, this should be pretty easy for you. You&#8217;re going to need to install the <a href="http://code.google.com/p/macfuse/" target="_blank">MacFUSE</a> and NTFS packages. In a nutshell, MacFUSE is an experimental set of tools for doing unsupported things with filesystems like SSH, FTP and, of course, NTFS on your Mac. And, experimental though it may be, I&#8217;ve been using it for quite a while and have not had any problems to speak of. Installing MacFUSE and the NTFS drivers will allow you to mount NTFS volumes with read-write access.</p>
<div id="attachment_2795" class="wp-caption aligncenter" style="width: 522px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/MacFUSE-Banner.png"><img class="size-full wp-image-2795" title="MacFUSE-Banner" src="http://systemsboy.com/wp-content/uploads/2009/10/MacFUSE-Banner.png" alt="MacFUSE" width="512" height="147" /></a><p class="wp-caption-text">MacFUSE</p></div>
<p>So, if NTFS can be mounted read-write on the Mac with MacFUSE, and it&#8217;s obviously read-write on Windows, and it doesn&#8217;t suffer from the file size limitations of Fat32, why not just use NTFS as your über-filesystem and format the whole drive with it? That&#8217;s a great question, and I&#8217;m glad I asked it!</p>
<p>The thing about getting NTFS read-write access on a Mac with MaFUSE is that it&#8217;s very much a hack. Yes, it works, but it has its problems. First and foremost among them is the fact that Final Cut Pro is really not a fan. In fact, FCP might just be the best barometer of a good cross-platform solution as it seems to be so picky about filesystems. So far, the only filesystem I&#8217;ve seen work consistently well with Final Cut is HFS+. No surprise there. And on NTFS it gets downright crazy. Files sometimes won&#8217;t open. Sometimes they won&#8217;t save. It&#8217;s a scary mess, and I wouldn&#8217;t trust my FCP data on NTFS for any amount of money.</p>
<p>But, what the MacFUSE NTFS package does get you is a relatively easy way to format your drive with separate Mac and Windows partitions, and this, at least in my tests seems to work just fine.</p>
<div id="attachment_2797" class="wp-caption aligncenter" style="width: 385px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/ntfs-mac-package.png"><img class="size-full wp-image-2797" title="ntfs-mac-package" src="http://systemsboy.com/wp-content/uploads/2009/10/ntfs-mac-package.png" alt="NTFS-3G for Mac OS X" width="375" height="215" /></a><p class="wp-caption-text">NTFS-3G for Mac OS X</p></div>
<p>The easiest way to get everything you need is to go to the <a href="http://macntfs-3g.blogspot.com/" target="_blank">NTFS-3G for Mac OS X</a> website and download the latest package. This package will install the most recent non-beta version of MacFUSE as well as the latest NTFS libraries, and contains everything you need. Once you&#8217;ve installed this bundle, you&#8217;ll need to reboot your system.</p>
<p><strong>Creating the Dual-Partition Drive</strong><br />
After the reboot you&#8217;ll see a new filesystem option when you go to format drives in Disk Utility.</p>
<div id="attachment_2798" class="wp-caption aligncenter" style="width: 325px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/ntfs-new-option.png"><img class="size-full wp-image-2798" title="ntfs-new-option" src="http://systemsboy.com/wp-content/uploads/2009/10/ntfs-new-option.png" alt="A New Option" width="315" height="140" /></a><p class="wp-caption-text">A New Option</p></div>
<p>Moreover, that option will be available to individual partitions of drives that are otherwise formatted. And that&#8217;s what&#8217;s new (to me) and what allows the magic to happen. Here&#8217;s how you do it.</p>
<ol>
<li>First, if you have any data on the drive that you need to preserve, back it up. This process WILL ERASE YOUR HARD DRIVE.</li>
<li>Next, select the drive you want to dual-format and choose the Partition tab.</li>
<li>Select a Volume Scheme. I&#8217;m just doing the simplest, two-partition scheme, with one Mac and one Windows partition, but you can certainly get more Byzantine with it if you&#8217;d like.
<div id="attachment_2811" class="wp-caption aligncenter" style="width: 227px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/volume-scheme.png"><img class="size-full wp-image-2811" title="volume-scheme" src="http://systemsboy.com/wp-content/uploads/2009/10/volume-scheme.png" alt="Volume Scheme" width="217" height="316" /></a><p class="wp-caption-text">Volume Scheme</p></div></li>
<li>Set the Format for the partition you want to use on the Mac to &#8220;Mac OS Extended (Journaled),&#8221; give it a name and a size.
<p><div id="attachment_2799" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/dual-mac-win-fw-partitions-1.1.png"><img class="size-medium wp-image-2799" title="dual-mac-win-fw-partitions-1.1" src="http://systemsboy.com/wp-content/uploads/2009/10/dual-mac-win-fw-partitions-1.1-530x466.png" alt="Mac Partition" width="530" height="466" /></a><p class="wp-caption-text">Mac Partition</p></div></li>
<li>Set the Format for the partition you want to use on Windows to &#8220;Windows NT Filesystem (NTFS-3G),&#8221; give it a name and size.
<p><div id="attachment_2801" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/dual-mac-win-fw-partitions-2.1.png"><img class="size-medium wp-image-2801" title="dual-mac-win-fw-partitions-2.1" src="http://systemsboy.com/wp-content/uploads/2009/10/dual-mac-win-fw-partitions-2.1-530x466.png" alt="Windows Partition" width="530" height="466" /></a><p class="wp-caption-text">Windows Partition</p></div></li>
<li>Under the Options&#8230; set the partition scheme to &#8220;Master Boot Record.&#8221; This is needed for Windows to see your drive.
<p><div id="attachment_2803" class="wp-caption aligncenter" style="width: 480px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/dual-mac-win-fw-partitions-3.png"><img class="size-full wp-image-2803" title="dual-mac-win-fw-partitions-3" src="http://systemsboy.com/wp-content/uploads/2009/10/dual-mac-win-fw-partitions-3.png" alt="Partition Scheme" width="470" height="362" /></a><p class="wp-caption-text">Partition Scheme</p></div></li>
<li>Finally, hit the Apply button. You&#8217;ll be warned that everything is about to be deleted. Click through, and after a few seconds you will have completed the formatting process and your dual-format drive will be ready for use on Mac and Windows.</li>
</ol>
<p><strong>Caveats</strong><br />
As I said, so far this has been working really well for my class. You may still want to file it under &#8220;experimental&#8221; for the time being, at least until you&#8217;re sure it&#8217;s working safely. But I&#8217;m confident enough in this method to recommend it to my video students who also need some external Windows drive love.</p>
<p>It&#8217;s also important to keep in mind here that I am not endorsing using the NTFS partition for Mac data of any kind. Doing so is surely unsupported by Apple, and by all reports is <a href="http://www.macosxhints.com/article.php?story=20090913140023382" target="_blank">fraught with problems</a>.</p>
<p>The other thing to keep in mind is that, unlike with a GUID partition table, you will not be able to <a href="http://systemsboy.com/2007/10/leopard.html">resize or split partitions</a> without completely erasing the drive.</p>
<p><div id="attachment_2823" class="wp-caption aligncenter" style="width: 444px"><a href="http://systemsboy.com/wp-content/uploads/2009/10/partition-warning.png"><img class="size-full wp-image-2823" title="partition-warning" src="http://systemsboy.com/wp-content/uploads/2009/10/partition-warning.png" alt="Erases Everything" width="434" height="330" /></a><p class="wp-caption-text">Erases Everything</p></div>
<p><strong>Conclusion</strong><br />
Lastly, I realize that this process is hardly new, nor am I the first to discover it. It was pointed out to me by one of my video students, and I have a feeling the new admins at my old job have been using it for some time. But it&#8217;s new to me. This is the first I&#8217;ve heard of this and it&#8217;s exciting to me from an academic standpoint, in the context of my old job, in the context of my class, as a new option I can offer to whomever might need it, and as a symbol of progress — however small or kludgy — towards cross-platform filesystem solutions. This is just another of the very cool advances made possible by the existence of the MacFUSE (and the original Linux FUSE) effort. It&#8217;s very cool to see this sort of thing coming to fruition at last!</p>
<p>Another intriguing extension of the MacFUSE project — and one that I&#8217;ve used a bit myself — is <a href="http://www.macfusionapp.org/" target="_blank">MacFusion</a>, which allows for mounting of data over network protocols such as FTP and SSH. I&#8217;m sure there are tons of others. I highly recommend folks — particularly SysAdmins — check out and familiarize themselves with MacFUSE in general, as well. As much as has been done since <a href="http://systemsboy.com/2008/02/macfuse-follow-up.html">the last time I looked at it</a>, there is still a ton of future potential in the project, and I see it increasingly becoming a part of the admin&#8217;s toolbox.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2009/10/create-a-dual-format-drive-for-mac-and-windows.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Experimenting with DokuWiki</title>
		<link>http://systemsboy.com/2009/06/experimenting-with-dokuwiki.html</link>
		<comments>http://systemsboy.com/2009/06/experimenting-with-dokuwiki.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 14:00:36 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=1847</guid>
		<description><![CDATA[Wikis are just one more thing I&#8217;ve always wanted to play around with. And my job has, once again, afforded me the opportunity to do just that. We&#8217;re currently using an engine called DokuWiki, so I decided to kick its tires and see what it — and wikis in general — are all about. DokuWiki&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Wikis are just one more thing I&#8217;ve always wanted to play around with. And my job has, once again, afforded me the opportunity to do just that. We&#8217;re currently using an engine called <a href="http://www.dokuwiki.org/dokuwiki" target="_blank">DokuWiki</a>, so I decided to kick its tires and see what it — and wikis in general — are all about.</p>
<p>DokuWiki&#8217;s front page describes it thusly:</p>
<blockquote><p><em>&#8220;DokuWiki is a standards compliant, simple to use <a class="interwiki iw_wp" title="http://en.wikipedia.org/wiki/Wiki" href="http://en.wikipedia.org/wiki/Wiki">Wiki</a>, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It has a simple but powerful <a class="wikilink1" title="wiki:syntax" href="http://www.dokuwiki.org/wiki:syntax">syntax</a> which makes sure the datafiles remain readable outside the Wiki and eases the creation of structured texts. All data is stored in plain text files – no database is required.&#8221;</em></p></blockquote>
<p><strong>No Database</strong><br />
That last little bit — the lack of a database — is actually one of the things that makes DokuWiki unique. It is both its strength and its potential weakness, and one of its defining characteristics.</p>
<div id="attachment_1881" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/06/dokuwiki.png"><img class="size-medium wp-image-1881" title="dokuwiki" src="http://systemsboy.com/wp-content/uploads/2009/06/dokuwiki-530x390.png" alt="DokuWiki" width="530" height="390" /></a><p class="wp-caption-text">DokuWiki</p></div>
<p>If you are looking to install a documentation engine for a small to medium-sized workgroup, it&#8217;s true: DokuWiki is great. It&#8217;s very easy to install and only requires Apache and PHP be running on your server. This means it can be installed on any Mac OS X machine without having to install or configure much beyond Personal Web Sharing. I say, &#8220;much&#8221; because you will have to <a href="http://foundationphp.com/tutorials/php_leopard.php" target="_blank">activate (not install) PHP</a>, which isn&#8217;t too hard for savvy users, but isn&#8217;t exactly <a href="http://momfriendlysystems.com" target="_blank">mom-friendly</a> either. Still, it beats having to also install and enable a database application like MySQL, which most other wikis require. So DokuWiki is <em>relatively</em> easy to setup.</p>
<p>That lack of a database is nice, in that it makes installation quick and easy. But it&#8217;s also a potential drawback, albeit a minor one. DokuWiki writes all its entries to flat files and that could affect scalability, and to some extent performance, if your wiki ever became extremely large. The merits of databases vs. flat files for storing data are debated all over the Internets, but databases usually only offer a significant advantage when dealing with complex, relational data, and that advantage is usually only seen by the developer. For small to mid-sized or even large-ish sites, DokuWiki is great. If you’re worried your wiki might need to grow very large some day (like, to the point where load balancing across multiple servers is required, for instance — we&#8217;re talking big!), DokuWiki may not be for you. Otherwise, the flat file system offers additional advantages, like easy-to-parse and repair backups, to name just one.</p>
<p><strong>Wherefore Wiki?</strong><br />
That said, once installed, DokuWiki is very easy to use. It does use its own markup for page layout, but that markup is exceedingly sensible and easy to learn. My biggest stumbling block was getting started: How do you create a page? Well, once you know, it&#8217;s pretty simple, but figuring it out took me a minute. The easiest way to create a page, is to navigate to that page. If the page doesn&#8217;t exist, DokuWiki allows you to create it. See? Easy! Maybe too easy!</p>
<p>So what&#8217;s it for? Well, I&#8217;ll tell you, TASB was almost a wiki rather than a blog. While both are types of Content Management Systems (CMSes), and essentially do the same thing — allow a person to easily and rapidly build and read a structured store of text and media data — the difference is intent.</p>
<p>Blogs — and therefore blog engines — are geared toward personal, diaristic, periodic writing. They&#8217;re usually organized chronologically, like a diary, and require no special markup when creating entries. Entries, once made, are rarely revised. One of the things I enjoy about writing this blog is that it&#8217;s a bit more personal. It&#8217;s a record of personal experience as much as, if not more than, documentation. So I stuck with using the blog format. I like to be chatty.</p>
<p>Wikis, on the other hand, are made to be accessed like a reference, like an encyclopedia, for instance. They&#8217;re not chronological, but are usually ordered and read alphabetically; and wiki articles are made to be maintained and updated as information changes. Wikipedia is a great example of this. There is also a blog called the <a href="http://the.taoofmac.com" target="_self">Tao of Mac</a> that uses a <a href="http://the.taoofmac.com/space/The%20Tao%20of%20Mac" target="_blank">wiki engine</a> for content management, showing that, in the end, the two types of engines do essentially the same thing. They simply present different capabilities to their users based largely on the purpose of the site.</p>
<p><strong>Conclusion</strong><br />
If you&#8217;re looking for a quick, easy-to-use and easy-to-maintain storehouse of information (either for yourself, or for use with others), a wiki is a great thing to have. Need to document a procedure for your workgroup? Put it on the wiki. Need to let everyone know where that essential file is? Put it on the wiki. Just want to jot down some notes for the general use? Put &#8216;em on the wiki.</p>
<p>After using one for a few days I can already see just how damn handy a wiki is to have. And DokuWiki is super-easy both to install and learn. If you just need something small to document procedures or productions — or if you&#8217;re just looking to dip your toe into the world of wikis — DokuWiki is very nice indeed.</p>
<p><strong>UPDATE:</strong><br />
I&#8217;ve edited the article for clarity and accuracy regarding the use of flat file systems vs. relational databases. Thanks to DokuWiki&#8217;s author for pointing out the error.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2009/06/experimenting-with-dokuwiki.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Portable Home Directories Part 3: Keychain Oddities</title>
		<link>http://systemsboy.com/2009/06/portable-home-directories-part-3-keychain-oddities.html</link>
		<comments>http://systemsboy.com/2009/06/portable-home-directories-part-3-keychain-oddities.html#comments</comments>
		<pubDate>Thu, 18 Jun 2009 14:00:08 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[PortableHomeDirectories]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=1850</guid>
		<description><![CDATA[Hey, here&#8217;s a weird one: I finally got my home account back to working order after my experiment with PHDs only to find that iCal couldn&#8217;t open any of my online calendars. It kept saying the password was missing from Keychain, then refusing to let me add one, saying that the &#8220;Keychain could not be [...]]]></description>
			<content:encoded><![CDATA[<p>Hey, here&#8217;s a weird one: I finally got my home account back to working order after my experiment with PHDs only to find that iCal couldn&#8217;t open any of my online calendars. It kept saying the password was missing from Keychain, then refusing to let me add one, saying that the &#8220;Keychain could not be found.&#8221;</p>
<div id="attachment_1869" class="wp-caption aligncenter" style="width: 517px"><a href="http://systemsboy.com/wp-content/uploads/2009/06/not-found-mod.png"><img class="size-full wp-image-1869" title="not-found-mod" src="http://systemsboy.com/wp-content/uploads/2009/06/not-found-mod.png" alt="Keychain Not Found" width="507" height="279" /></a><p class="wp-caption-text">Keychain Not Found</p></div>
<p>The Keychain application also refused to read my keychains. The keychains were there, as they always had been, in ~/Library/Keychains. Keychain.app just refused to see them. Refused to add them — or anything else for that matter — as well. Keychain First Aid reported everything as fine, but the damn things just wouldn&#8217;t show up.</p>
<p>Suspecting some sort of weird, post-PHD permissions snafu, I copied the Keychain application to my Desktop and then launched it. This seemed to remedy the problem; the keychains became visible in Keychain.app. But upon re-launching iCal, my keychains became inaccessible again.</p>
<p>Mucking around in Keychain.app, everything looked fine. But I wanted to make sure that my &#8220;login&#8221; keychain was set to be the default. So I selected another keychain I have, right-clicked it and chose &#8220;Make keychain &#8216;systemsboy&#8217; Default,&#8221; then did the same to the login keychain, thus resetting it as the default keychain.</p>
<div id="attachment_1870" class="wp-caption aligncenter" style="width: 404px"><a href="http://systemsboy.com/wp-content/uploads/2009/06/make-default.png"><img class="size-full wp-image-1870" title="make-default" src="http://systemsboy.com/wp-content/uploads/2009/06/make-default.png" alt="Remaking the Default" width="394" height="201" /></a><p class="wp-caption-text">Remaking the Default</p></div>
<p>After doing this I launched iCal and the password complaints were gone; the calendars all loaded properly. Launching Keychain again, however, seemed to break everything. Again! WTF? No matter what I did, Keychain would eventually lose track of my keychains, and this would cause any application that relied on them to screw up. But I did eventually figure it out.</p>
<p>The solution? Well, it&#8217;s so simple and so idiotic it&#8217;s hardly worth a post. But here you go: I rebooted.</p>
<p>That&#8217;s right. A simple reboot and all my troubles were gone.</p>
<p>Remember, kids: reboot, reboot, reboot!</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2009/06/portable-home-directories-part-3-keychain-oddities.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portable Home Directories Part 2: Oh God, Make it Stop</title>
		<link>http://systemsboy.com/2009/06/portable-home-directories-part-2-oh-god-make-it-stop.html</link>
		<comments>http://systemsboy.com/2009/06/portable-home-directories-part-2-oh-god-make-it-stop.html#comments</comments>
		<pubDate>Thu, 04 Jun 2009 14:00:41 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[PortableHomeDirectories]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=1823</guid>
		<description><![CDATA[Last week I began testing the Apple Portable Home Directories feature. I&#8217;d heard a lot of good buzz, but my experience was pretty terrible. Of course I was doing things my own way, and not the Apple way, which is always a bit dicey. Almost Proper Wanting to get PHDs working, I decided to try [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I began <a href="http://systemsboy.com/2009/05/portable-homes-part-1-miserable-failures.html">testing the Apple Portable Home Directories</a> feature. I&#8217;d heard a lot of good buzz, but my experience was pretty terrible. Of course I was doing things my own way, and not the Apple way, which is always a bit dicey.</p>
<p><strong>Almost Proper</strong><br />
Wanting to get PHDs working, I decided to try doing things a bit more by the book. I set up our NFS Home Account Server as an <a href="http://docs.info.apple.com/article.html?path=ServerAdmin/10.5/en/c2fs10.html" target="_blank">NFS Reshare</a> and shared it out over AFP. I also set my home accounts up properly in WGM, using the AFP share as my network home, and a local folder as my local one.</p>
<p>But PHD kept incorrectly syncing things, to the point where I&#8217;ve actually now lost some data. Seems PHD, when it syncs, is for some reason using the data on the <em>network</em> drive as the master data set. Files I&#8217;ve modified before leaving for work have been reverted back to their old versions — the ones on the network — over night. (Which is weird considering the fact that I was logged out.)</p>
<p>I&#8217;m sure this works in a perfectly <a href="http://www.makemacwork.com/portable-home-directories-1.htm" target="_blank">standard environment</a>, with no existing users and no NFS Reshares, when set up from scratch. But I have to say, I could not be more frustrated with PHDs. So I&#8217;m giving up for now and setting my home account back to the local drive. Of course, even reverting back to a non-managed, non-PHD, local account is difficult in this case.</p>
<p><strong>Cache Insanity</strong><br />
The reason for this — and one of the things that&#8217;s made testing PHDs so difficult in general — is the insane level of caching the server does with regards to PHDs. Caching is so aggressive that, even after disabling PHDs on the server and restarting the client machine, the SyncAgent on the client continues to attempt to sync my homes. If I try to stop it I get an error that says I can&#8217;t stop it because I don&#8217;t have a PHD. I&#8217;m a big fan of irony, but not in my server software, thank you very much.</p>
<div id="attachment_1824" class="wp-caption aligncenter" style="width: 512px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/must-have-mobile-account.png"><img class="size-full wp-image-1824" title="must-have-mobile-account" src="http://systemsboy.com/wp-content/uploads/2009/05/must-have-mobile-account.png" alt="No Mobile Account" width="502" height="274" /></a><p class="wp-caption-text">No Mobile Account</p></div>
<p>So now the PHD service is incorrectly syncing my local home account with a network home it shouldn&#8217;t even see. Thousands of conflicts are occurring. I&#8217;m losing data. Though I&#8217;ve disabled the service, the settings persist. This is terrible. Horrible. Godawful.</p>
<div id="attachment_1797" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/phd-conflict-resolution.png"><img class="size-medium wp-image-1797" title="phd-conflict-resolution" src="http://systemsboy.com/wp-content/uploads/2009/05/phd-conflict-resolution-530x426.png" alt="PHD Conflict Resolution" width="530" height="426" /></a><p class="wp-caption-text">PHD Conflict Resolution: Why?</p></div>
<p>And there is no sanctioned, GUI way to stop this from happening.</p>
<p><strong>Freedom!</strong><br />
Eventually I was able to stop the errant syncing by running the ever-trusty:<br />
<code>sudo dscacheutil -flushcache</code></p>
<p>Jesus! What a kludge!</p>
<p>You can imagine how difficult this has made my testing. I can&#8217;t be sure that any change I&#8217;ve made on the server is actually happening on the client, so it&#8217;s impossible to know where this is failing or what I might be doing wrong without starting from scratch every time I make a configuration change. And starting from scratch is pretty damned difficult as well, as the PHD settings are persistent to a fault.</p>
<p><strong>Is That All There Is?</strong><br />
I&#8217;m not sure what to do with PHDs at this point. I don&#8217;t think they&#8217;re useful for our environment, or for any existing users. Testing them is downright painful. And data loss is a real possibility, and not a risk I&#8217;m willing to take with other users&#8217; data.</p>
<p>So, after a couple weeks of some very frustrating testing, I&#8217;m afraid I&#8217;ll have to pass on PHDs. It&#8217;s a nice idea, but not ready for prime time from where I sit.</p>
<p>There&#8217;s a slight chance I&#8217;ll try PHDs from scratch with a fresh home account, just to see if it works at all. But we&#8217;ll see. I&#8217;m pretty annoyed at this point.</p>
<p>More annoyed than I ever was with Windows Roaming Profiles. And that&#8217;s a feat.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2009/06/portable-home-directories-part-2-oh-god-make-it-stop.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Portable Home Directories Part 1: What a Mess!</title>
		<link>http://systemsboy.com/2009/05/portable-homes-part-1-miserable-failures.html</link>
		<comments>http://systemsboy.com/2009/05/portable-homes-part-1-miserable-failures.html#comments</comments>
		<pubDate>Sun, 31 May 2009 17:00:08 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[PortableHomeDirectories]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=1720</guid>
		<description><![CDATA[Now that I&#8217;ve tried it myself, I&#8217;ve very much enjoyed the advantages that having a network home account has offered. I&#8217;ve also rather disliked some of the disadvantages. Ultimately, the biggest drawback has been that when our production crew is doing a lot of rendering, my home account slows to a crawl and I can&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I&#8217;ve tried it myself, I&#8217;ve very much enjoyed the advantages that having a <a href="http://systemsboy.com/2008/12/taking-my-own-medicine.html">network home account</a> has offered. I&#8217;ve also rather disliked some of the disadvantages. Ultimately, the biggest drawback has been that when our production crew is doing a lot of rendering, my home account slows to a crawl and I can&#8217;t get work done. Okay, I can, but not without a lot of swearing, and the fellas in the other cubicles just ain&#8217;t digging that, believe me.</p>
<p>After some water-cooler-side conversation, and some <a href="http://systemsboy.com/2008/12/taking-my-own-medicine.html#comments">excellent comments</a> by my excellent readers, I&#8217;ve decided I might be just be a perfect candidate for something that may offer the best of both worlds.</p>
<div id="attachment_1758" class="wp-caption aligncenter" style="width: 522px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/sync.png"><img class="size-full wp-image-1758" title="sync" src="http://systemsboy.com/wp-content/uploads/2009/05/sync.png" alt="Portable Home Accounts" width="512" height="512" /></a><p class="wp-caption-text">Portable Home Directories</p></div>
<p>Portable Home Directories (PHDs), as they&#8217;re called by Apple, essentially allow a user to keep and work from a local copy of his network home account. The local account is synced up with the network account using various strategies, which I&#8217;ll talk about in a bit. It&#8217;s essentially an intelligent implementation of Windows&#8217; crappy Roaming Profiles. The big difference is those strategies I mentioned.</p>
<p>Windows&#8217; Roaming Profiles are problematic, particularly in production environments where users store a lot of data, because Windows simply hard syncs those profiles at login and logout. This means that if you&#8217;ve generated a lot of data in any given session, you&#8217;re in for a long wait when you log out — and another long wait if you log into another machine — while Windows syncs your local and network profiles. It&#8217;s a nice idea — giving you the centrality of a network account and the responsiveness of a local one — but it fails in practice because it is, essentially, dumb, causing the sync process to ruin the experience.</p>
<p>The experience we&#8217;re going for here is, of course, seamlessness. Or as close to it as possible. So: I want to be able to log in to my workstation and have the responsiveness and normalcy of a local account, but I then want to be able to log in to another workstation and have my documents follow me throughout a given facility. Moreover, I want the synchronization of said documents to be as invisible as possible to the user. It should &#8220;just work.&#8221; With as little waiting and confusion as possible.</p>
<p>This is, of course, <a href="http://systemsboy.com/2008/10/syncing-makes-me-cranky.html">easier said than done</a>.</p>
<p>Apple takes a noble stab at this with its Portable Home Directory settings. See, where Microsoft simply syncs account data at login and logout, Apple affords some granularity in what gets synced and at what times. Apple gives you precise control over what gets synced, as well as allowing for not just login and logout syncing, but periodic syncing as well. Smart! And it could make all the difference.</p>
<p>But I&#8217;m getting ahead of myself again. Let&#8217;s actually step through the process of creating a Portable Home Account. I&#8217;ll show where it shines and where it falls apart for me.</p>
<p><strong>Activate Mobility Preferences</strong></p>
<ul>
<li>This all starts in Workgroup Manager. So fire that up and navigate to the user you want on Portable Homes.</li>
<li>Make sure that user&#8217;s current home account is a Network Home Account (i.e., it lives on a server somewhere).</li>
<li>Click the &#8220;Preferences&#8221; button from the toolbar, and then open the &#8220;Mobility&#8221; pane. This is where all the action happens.
<div id="attachment_1755" class="wp-caption aligncenter" style="width: 487px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/wgm-mobility-prefs.png"><img class="size-medium wp-image-1755 " title="wgm-mobility-prefs" src="http://systemsboy.com/wp-content/uploads/2009/05/wgm-mobility-prefs-530x436.png" alt="Mobility Preferences" width="477" height="392" /></a><p class="wp-caption-text">Mobility Preferences</p></div></li>
</ul>
<p><strong>Set Account Creation Options</strong></p>
<ul>
<li>The first thing to set up is how and when the local portable account is created. Click on the Account Creation tab and set Manage: to Always.</li>
<li>Since I already have a network home account that I&#8217;ve been using from an NFS share (on a non-Apple server), I set my user to &#8220;Create mobile account when user logs in&#8221; using the &#8220;default sync settings.&#8221; I assumed this would copy everything over from the network account to the local drive and start the ball rolling fresh, but that&#8217;s not what happened. More on that in a bit.
<p><div id="attachment_1761" class="wp-caption aligncenter" style="width: 487px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/wgm-acct-create-creation.png"><img class="size-medium wp-image-1761 " title="wgm-acct-create-creation" src="http://systemsboy.com/wp-content/uploads/2009/05/wgm-acct-create-creation-530x436.png" alt="Account Creation" width="477" height="392" /></a><p class="wp-caption-text">Account Creation</p></div></li>
<li>Under Account Creation&#8217;s Options tab I set a custom path that pointed to a folder that contained a local version of my home account that I&#8217;d rsynced previously. Again, I did this thinking it would speed the initial sync process, but that turned out to not be the case.
<p><div id="attachment_1762" class="wp-caption aligncenter" style="width: 487px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/wgm-acct-create-options.png"><img class="size-medium wp-image-1762 " title="wgm-acct-create-options" src="http://systemsboy.com/wp-content/uploads/2009/05/wgm-acct-create-options-530x436.png" alt="Account Creation Options" width="477" height="392" /></a><p class="wp-caption-text">Account Creation Options</p></div></li>
</ul>
<p><strong>Set Sync Rules</strong></p>
<ul>
<li>Finally it&#8217;s time to define how the syncing between local and network homes will behave. This is the real genius behind the Portable Home Directory system, and what distinguishes it from Roaming Profiles.</li>
<li>First under the Rules tab you have &#8220;Login &amp; Logout Sync.&#8221; This allows you to set specific items to sync only at login and logout. The suggested defaults for this are mainly your account settings, i.e. your entire ~/Library folder. This is quite sane, and I stuck with this setting.
<p><div id="attachment_1763" class="wp-caption aligncenter" style="width: 487px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/wgm-rules-loginout.png"><img class="size-medium wp-image-1763 " title="wgm-rules-loginout" src="http://systemsboy.com/wp-content/uploads/2009/05/wgm-rules-loginout-530x436.png" alt="Login &amp; Logout Rules" width="477" height="392" /></a><p class="wp-caption-text">Login &amp; Logout Rules</p></div></li>
<li>Note the &#8220;Merge with user&#8217;s settings&#8221; checkbox. I initially checked this, but later found it problematic. It was useful on my first sync, but it doesn&#8217;t appear to track deletions and such, so I ended up disabling it.</li>
<li>Also of note is the &#8220;Skip items&#8221; section. This allows for what rsync users would call exclusions. This also greatly speeds syncing as you can exclude unneeded items such as cache and trash. I stuck with the sane defaults here as well.</li>
<li>Next up are your Background Sync settings. Again, very sane defaults are provided: We back up your entire home account, periodically, in the background. Skip the usual suspects and don&#8217;t merge.
<p><div id="attachment_1764" class="wp-caption aligncenter" style="width: 487px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/wgm-rules-bkgnd.png"><img class="size-medium wp-image-1764 " title="wgm-rules-bkgnd" src="http://systemsboy.com/wp-content/uploads/2009/05/wgm-rules-bkgnd-530x436.png" alt="Background Sync Rules" width="477" height="392" /></a><p class="wp-caption-text">Background Sync Rules</p></div></li>
<li>Finally, under Options, we can set the frequency with which the server will run the background sync.
<p><div id="attachment_1765" class="wp-caption aligncenter" style="width: 487px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/wgm-rules-options.png"><img class="size-medium wp-image-1765 " title="wgm-rules-options" src="http://systemsboy.com/wp-content/uploads/2009/05/wgm-rules-options-530x436.png" alt="Background Frequency" width="477" height="392" /></a><p class="wp-caption-text">Background Frequency</p></div></li>
<li>I also set the option to &#8220;Show status in menu bar.&#8221; This, as you&#8217;ll see, becomes quite useful for the way I ultimately ended up using this feature.</li>
</ul>
<p><strong>Some Disclaimers</strong><br />
Portable Home Directories are actually not specifically intended for the sort of use-case we&#8217;re applying them to here. PHDs are actually designed for users with laptops that come and go onto a network that is also populated with stationary workstations. It&#8217;s really made to be used in conjunction with network home accounts, allowing laptop users to use network home accounts without being completely tethered to the network.</p>
<p>So to be clear, this is an experiment. I&#8217;m doing things a bit outside the norm. (I mean, what fun would it be if I weren&#8217;t.) And any problems I had were likely because of this fact. Still, it&#8217;s hinted at in the documentation that PHDs can be used for users of non-portable machines to some advantage, so I wanted to see how we could apply them to our (okay, <em>my</em>) particular situation.</p>
<p>I started off a bit outside the realm of the typical first time setup. I had two things at the outset that essentially represented a test of how we might migrate to a PHD-style system: I had a network home account already populated with data, and I had a copy of that data on a local hard drive. This represents our typical user. But I was also hoping that I&#8217;d be able to use these to get the Portable Homes process underway more speedily. This was not the case at all.</p>
<p><strong>Initial Experiences<br />
</strong>The first thing that happened when I logged into my newly Portable Homes-activated account was that I was greeted with a prompt asking me if I wanted to create a portable home.</p>
<p><div id="attachment_1770" class="wp-caption aligncenter" style="width: 526px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/prompt.png"><img class="size-full wp-image-1770" title="prompt" src="http://systemsboy.com/wp-content/uploads/2009/05/prompt.png" alt="Initial Prompt" width="516" height="296" /></a><p class="wp-caption-text">Initial Prompt</p></div>
<p>I chose to do so (&#8220;Yes&#8221;), since that was pretty much what I was here to do. And upon login I was greeted, not with my previously set up network home account nor my rsynced local account, but rather with the standard boilerplate skel account you see when creating a new user. Worse, the server seemed to get confused as to where my home account should be placed on the local drive. Though I had defined it on my server as a custom path, it seemed to want to go in a folder called &#8220;User&#8221; on the specified drive, no matter what I entered for the custom path. Apparently, for me anyway, the custom path — and my hopes of speeding the sync process — just plain old didn&#8217;t work.</p>
<div id="attachment_1816" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/default-login.png"><img class="size-medium wp-image-1816" title="default-login" src="http://systemsboy.com/wp-content/uploads/2009/05/default-login-530x331.png" alt="Default Login Environment" width="530" height="331" /></a><p class="wp-caption-text">Default Login Environment: Not What I was Hoping For</p></div>
<p>After this I decided to try again. I moved my custom folder off the local drive and, in Mobility Preferences, simply defined the drive I wanted to use for my Portable Home. I also chose to &#8220;Merge with user&#8217;s settings&#8221; for this go &#8217;round under the Rules section of the Mobility prefs. The thought was that this should pull down my network home account and create a local version from it. And this is exactly what happened. And for a time life was good and I thought I was done. I thought I&#8217;d found my magic settings. But the next day I logged in to find that once again my account had reverted back to the default, first-login settings. Yikes!</p>
<div id="attachment_1773" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/picture-7.png"><img class="size-medium wp-image-1773" title="picture-7" src="http://systemsboy.com/wp-content/uploads/2009/05/picture-7-530x272.png" alt="Portable Homes Weirdness" width="530" height="272" /></a><p class="wp-caption-text">Portable Homes Weirdness</p></div>
<p>(Here I&#8217;d just like to point out the benefits of having a backup of your entire home account if you&#8217;re going to play around with this. Or just use a spare, dummy account. I actually did lose data numerous times during my testing, as you&#8217;ll see in Part 2.)</p>
<p>After poking around a bit I discovered that my machine had logged me into my network home. Or at least that&#8217;s where the Finder went when I hit Command-Shift-H. But my home account settings were the defaults, not my network home account settings. WTF? Logging out and logging back in I found myself in what I considered to be the right local location, and all my custom settings had returned. But this was clearly getting weird and flaky. And no matter how I configured things, the weirdness persisted. The biggest problem, though, was the fact that my local and network home accounts never synced in the background. And that was sort of the most important part.</p>
<p><strong>Manual Sync</strong><br />
For a time I used Portable Home Directories the only way I could get it to work for me. Remember that tickbox to &#8220;Show status in menu bar?&#8221; Well, it turns out that you can use this menubar widget to manually sync your local and network home accounts. And manual syncing actually worked okay for me. In fact, it was the only way I could get my network and local data in sync.</p>
<div id="attachment_1774" class="wp-caption aligncenter" style="width: 129px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/menubar-icon.png"><img class="size-full wp-image-1774" title="menubar-icon" src="http://systemsboy.com/wp-content/uploads/2009/05/menubar-icon.png" alt="Menubar Icon" width="119" height="87" /></a><p class="wp-caption-text">Menubar Icon</p></div>
<p>During this time I pretty much using the default Mobility settings, but my account was on my Work drive. Portable Homes had placed it at:<br />
/Volumes/Work/systemsboy.xahomes<br />
for some strange reason, but I could live with that. Every so often — particularly if I thought I might be going to another machine and logging in as myself — I&#8217;d hit &#8220;Sync Home Now&#8221; in the Menubar pulldown.</p>
<div id="attachment_1775" class="wp-caption aligncenter" style="width: 428px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/mobile-sync-menubar.png"><img class="size-full wp-image-1775" title="mobile-sync-menubar" src="http://systemsboy.com/wp-content/uploads/2009/05/mobile-sync-menubar.png" alt="Sync Now" width="418" height="125" /></a><p class="wp-caption-text">Sync Home Now</p></div>
<p>This would begin the Home Sync process. The process is far from immediate, but it&#8217;s not too slow. It takes a few minutes. Once it&#8217;s done I can verify that my network and local homes are synced up.</p>
<div id="attachment_1776" class="wp-caption aligncenter" style="width: 512px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/picture-1.png"><img class="size-full wp-image-1776" title="picture-1" src="http://systemsboy.com/wp-content/uploads/2009/05/picture-1.png" alt="Home Sync Status" width="502" height="195" /></a><p class="wp-caption-text">Home Sync Status</p></div>
<p>Conflicts that the service couldn&#8217;t resolve were handled similarly to iPhone-to-AddressBook conflicts, though, with the usual PHD flakiness: often conflicts occurred where they shouldn&#8217;t have.</p>
<div id="attachment_1797" class="wp-caption aligncenter" style="width: 540px"><a href="http://systemsboy.com/wp-content/uploads/2009/05/phd-conflict-resolution.png"><img class="size-medium wp-image-1797" title="phd-conflict-resolution" src="http://systemsboy.com/wp-content/uploads/2009/05/phd-conflict-resolution-530x426.png" alt="PHD Conflict Resolution" width="530" height="426" /></a><p class="wp-caption-text">PHD Conflict Resolution</p></div>
<p>But the biggest problem with Manual Sync was that logging in to another computer failed. A popup alert appeared telling me I was unable to log in at this time because &#8220;an error occurred.&#8221; Great.</p>
<p>I was really hoping for this to be seamless, of course. But it just may not be possible with this particular setup. The best I can get out of Portable Homes so far is not much better than a glorified rsync script with a pretty GUI for running it and some semblance of conflict resolution. And it completely breaks my ability to log into other computers.</p>
<p><strong>Conclusion (For Now)</strong><br />
In the end I decided that my troubles were likely due to the fact that I was not working in the typical Mac OS X idiom. It&#8217;s my guess that Portable Homes failed for me in this instance mainly because my network home account is on a completely different, non-Apple server, one that my Mac Server is not set up to share as a network home location. I would venture that if you set Portable Homes up just like it says in the manual, using Apple kit and AFP and the like (possibly AFP reshares would work), Portable Homes works like a charm. But if you don&#8217;t you&#8217;ll get some strangeness like I did. Ah, the joys of the bleeding edge!</p>
<p>On my first shot at Portable Homes I experienced a number of surprises and inconsistencies. While Portable Homes is a great idea, and in theory looks to be perfect for someone like me, there are major pitfalls in a complex, multi-platform environment that prevent it from being usable for much of anything. But Portable Homes has potential and I plan to delve more into how to get it working for us in our complex environment. In our next installment I&#8217;ll be trying a setup more closely aligned with the Apple-sanctioned method for implementing PHDs. We&#8217;ll see how it goes.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2009/05/portable-homes-part-1-miserable-failures.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Division of Labor</title>
		<link>http://systemsboy.com/2008/12/division-of-labor.html</link>
		<comments>http://systemsboy.com/2008/12/division-of-labor.html#comments</comments>
		<pubDate>Mon, 08 Dec 2008 15:31:49 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Lab]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=776</guid>
		<description><![CDATA[One of the great things about my new job is that labor is divided among a much larger crew than I&#8217;m accustomed to. This means I get to do more of the sort work I like and less of the sort I don&#8217;t. In my old job, there were basically two and-a-half SysAdmins running the [...]]]></description>
			<content:encoded><![CDATA[<p>One of the great things about my new job is that labor is divided among a much larger crew than I&#8217;m accustomed to. This means I get to do more of the sort work I like and less of the sort I don&#8217;t.</p>
<p>In my old job, there were basically two and-a-half SysAdmins running the whole show. And since I was the front man, most requests got funneled through me. So I was pretty much dealing with everything.</p>
<p>In my new job, on the other hand, I am one member of a much larger team that deals with a whole wide range of technologies — from SANs to fibre connections to video playback devices. In some respects my job description is fairly generalized. All the SysAdmins on the team essentially share the same set of responsibilities, but as usually happens, each of us has our unique talents and proclivities, and since our team is comprised of a bunch of people, we each have a chance to specialize to some extent as well. We each get to focus more on stuff we&#8217;re good at — which is to say, stuff we <em>like</em> — and worry less about stuff we don&#8217;t like.</p>
<p>Case in point: last week we got a new printer. Not only did I have nothing to do with spec-ing, purchasing or installing the printer, I wasn&#8217;t even aware of the fact that we&#8217;d gotten one until the part of the crew that installs printers had installed the damn thing.</p>
<div id="attachment_892" class="wp-caption aligncenter" style="width: 252px"><a href="http://systemsboy.com/wp-content/uploads/2008/12/print-prefs1.png"><img class="size-full wp-image-892" title="print-prefs" src="http://systemsboy.com/wp-content/uploads/2008/12/print-prefs1.png" alt="Printer Prefs" width="242" height="243" /></a><p class="wp-caption-text">Printer Prefs</p></div>
<p>People in my old job all knew how much I hate printers. I truly despise them. I despise the hardware — it&#8217;s large, cumbersome, ugly and resource intensive. I despise the software — the drivers are always a pain to find and install (especially Epson&#8217;s) and the bundled software is ugly and unintuitive. I even despise the act of printing itself, which is often problematic, wasteful and eco-unfriendly, particularly when dealing with inkjet technology. Prints themselves I find generally useless as they&#8217;re not searchable. And, of course, troubleshooting printer problems is a nightmare that&#8217;s usually best dealt with by simply getting a new printer.</p>
<p>In the past it was my job to deal with every aspect of any printer purchase and installation. Needless to say, It was one of my least favorite duties. So to never have to deal with any aspect of the printer pipeline is a dream come true. When I saw the guys setting up a printer I almost laughed out loud when I realized that I&#8217;d had nothing to do with it.</p>
<p>Well, I did have to add the printer to the lab systems. But that&#8217;s the best part. And that was it.</p>
<p>Back to building servers. Fantastic.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2008/12/division-of-labor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taking My Own Medicine</title>
		<link>http://systemsboy.com/2008/12/taking-my-own-medicine.html</link>
		<comments>http://systemsboy.com/2008/12/taking-my-own-medicine.html#comments</comments>
		<pubDate>Wed, 03 Dec 2008 13:49:23 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Lab]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=879</guid>
		<description><![CDATA[I&#8217;ve long extolled the virtues of network-based home accounts, at least in some situations. And, of course, I&#8217;ve written copiously on how to implement such a thing in a lab setting. What I&#8217;ve never really done in any meaningful way, or for any length of time, is to use network home accounts myself. Until now. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve long extolled the virtues of <a href="http://systemsboy.com/?s=networked+home+account&amp;submit=Search" target="_self">network-based home accounts</a>, at least in some situations. And, of course, I&#8217;ve written copiously on how to implement such a thing in a lab setting. What I&#8217;ve never really done in any meaningful way, or for any length of time, is to use network home accounts myself. Until now.</p>
<p>There are certainly situations in which local home accounts are preferable. Generally speaking, they tend to be the way to go if you can swing it. They&#8217;re usually a bit more responsive, and of course they don&#8217;t rely on a functioning network, proper network settings, authentication servers and home account servers to work. They are the de facto, the default, and they&#8217;re what most people are used to. And if your users ever only use their one computer, local home accounts are likely to be all you&#8217;ll ever need.</p>
<p>But in environments that involve numerous shared (network) resources, or in which people are moving from computer to computer on a regular basis and need some semblance of consistency among machines, a centrally-located, accessible-from-everywhere home account can be a real blessing. In order to sell this system at my new job (on the Mac side — Linux was already using network homes), I needed to prove its reliability, so I threw myself on the grenade, as it were: I started using a networked home account. And you know what? I really like it.</p>
<p>There are, as alluded, certain inconveniences with such a scheme. For one, login tends to be a bit slower as the system needs additional time to locate and coordinate with the necessary network resources. Also, there is no Trash folder for a network home, and deleting files is immediate on a Mac when done over the network. So every time I try to throw something away I get this alert:</p>
<div id="attachment_882" class="wp-caption aligncenter" style="width: 510px"><a href="http://systemsboy.com/wp-content/uploads/2008/11/trash-alert1.png"><img class="size-full wp-image-882" title="trash-alert" src="http://systemsboy.com/wp-content/uploads/2008/11/trash-alert1.png" alt="No Trash!" width="500" height="205" /></a><p class="wp-caption-text">No Trash!</p></div>
<p>And the file is deleted for good. This is probably the worst part of the networked home. No Trash. But the advantages are so great that I plan to stick with my networked home, despite the minor annoyances.</p>
<p>At some point not too long ago I decided that the reliability test had been a success, and that I could finally revert back to my local home account. So I synced everything back to the local drive, and changed my home account location on the server (I use server-based authentication either way), and logged in. I worked locally for a while, and then I needed to do something on a Linux machine. I logged into that machine — which uses networked home accounts — and got my old, outdated, network home. And that&#8217;s when I realized: you can&#8217;t have it both ways. You either need to go local-only, in which case you need to really only use one machine, or you need to go networked. Otherwise your data&#8217;s all out of sync. And that&#8217;s way worse than any network dependencies or minor performance hits. So I immediately switched back to my networked home. And I plan to stay there.</p>
<p>And speaking of having it both ways, I suppose it is possible. At my old job I had a local account on my office computer and a networked account everywhere else. This was okay, but created all sorts of problems — particularly permissions problems — any time I wanted to share data with, uh, myself. Long story short, it was a real pain in the ass. Doable, but kinda sucky. Avoid if possible.</p>
<p>I have to say, since committing to my network home account, I&#8217;ve been pretty darned happy with it. Most times I&#8217;m completely unaware that I&#8217;m even on the network. And it&#8217;s great to have the same environment across every machine in the lab. It&#8217;s also great to finally be able to say definitively that this approach is not only valid, but actually pretty great in instances in which it&#8217;s appropriate.</p>
<p>Go me!</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2008/12/taking-my-own-medicine.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Abandonment Issues</title>
		<link>http://systemsboy.com/2008/11/abandonment-issues.html</link>
		<comments>http://systemsboy.com/2008/11/abandonment-issues.html#comments</comments>
		<pubDate>Sun, 16 Nov 2008 17:28:49 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Lab]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=839</guid>
		<description><![CDATA[Because of the recent departure of Apple&#8217;s Senior VP of Enterprise Sales, John C. Welch claims that &#8220;the Mac IT crowd&#8221; is wondering if Apple is abandoning the Enterprise. He then goes on to say that this depends on whether or not you thought &#8220;Apple was, or wanted to be, an &#8216;enterprise&#8217; company.&#8221; Um&#8230; No [...]]]></description>
			<content:encoded><![CDATA[<p>Because of the <a href="http://www.macobserver.com/article/2008/11/11.7.shtml" target="_blank">recent departure</a> of Apple&#8217;s Senior VP of Enterprise Sales, John C. Welch claims that &#8220;the Mac IT crowd&#8221; is wondering if Apple is abandoning the Enterprise. He then goes on to say that this depends on whether or not you thought &#8220;Apple was, or wanted to be, an &#8216;enterprise&#8217; company.&#8221;</p>
<p>Um&#8230; No it doesn&#8217;t&#8230;</p>
<p>Mr. Welch raises some good points in <a href="http://www.macworld.com/article/136762/2008/11/apple_enterprise.html" target="_blank">his article</a>, the main premise of which is that Apple is, indeed, not an enterprise company, an idea I fully agree with. But the fact is that it&#8217;s certainly possible to worry that Apple will abandon the enterprise without thinking of them as an enterprise company. And that&#8217;s because Apple makes enterprise products that some of us have come to rely on.</p>
<div id="attachment_843" class="wp-caption aligncenter" style="width: 510px"><a href="http://systemsboy.com/wp-content/uploads/2008/11/macserver1.png"><img class="size-full wp-image-843" title="macserver" src="http://systemsboy.com/wp-content/uploads/2008/11/macserver1.png" alt="Mac Server: I'd Miss You" width="500" height="76" /></a><p class="wp-caption-text">Mac Server: I&#39;ll Miss You When You&#39;re Gone</p></div>
<p>I don&#8217;t think many IT folk — Mac or otherwise — think of Apple as an enterprise company. In fact, I&#8217;d venture to say that we worry that Apple will abandon us because we know know full well that Apple is <em>not</em> such a company at heart, and that their connections to enterprise are tenuous at best. But some of us do actually appreciate the design and ease-of-use of their server products. In my case, I&#8217;ve come to rely fairly heavily on <a href="http://systemsboy.com/category/server" target="_self">Mac OS X Server</a> for cross-platform <a href="http://systemsboy.com/category/threeplatformsoneserver" target="_self">authentication</a>, among <a href="http://systemsboy.com/category/netboot" target="_self">other things</a>. I get flack for this sometimes, but the plain fact is that no one has integrated authentication for Mac, Windows and Linux in one spot in such an easy-to-build package as Mac OS X Server. Could I do this with a Windows server? Sure. Could I do it on Linux? Yes, of course I could. But I&#8217;ll spend twice as long building it, and twice as much time maintaining it, when Mac OS X Server does it out of the box with ease and grace. I suppose I could punch myself in the face over and over again as well. Do I want to? Not particularly.</p>
<p>I often worry that Apple will someday leave the server market altogether. I sometimes even worry that Apple will stop building high-end workstations. Hell, who knows? Maybe Apple will stop selling <em>computers</em> one day. But I don&#8217;t worry about these things because I think Apple is one kind of company or another. I worry about them because these are products that I enjoy using on a daily basis, and I would like to keep using them for as long as they&#8217;re the best tool for the job.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2008/11/abandonment-issues.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>APM Partition Boots Intel Macs</title>
		<link>http://systemsboy.com/2008/11/apm-partition-boots-intel-macs.html</link>
		<comments>http://systemsboy.com/2008/11/apm-partition-boots-intel-macs.html#comments</comments>
		<pubDate>Sun, 02 Nov 2008 19:06:57 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[NetBoot]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=736</guid>
		<description><![CDATA[I&#8217;d thought that if you wanted to boot Intel Macs you needed to use the recently available GUID partition table, mainly because that&#8217;s what it says in Disk Utility when you format the drive. In fact, as it turns out (at least as of Mac OS X 10.5.5), using the Apple Partition Map (APM) boots [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d thought that if you wanted to boot Intel Macs you needed to use the recently available GUID partition table, mainly because that&#8217;s what it says in Disk Utility when you format the drive. In fact, as it turns out (at least as of Mac OS X 10.5.5), using the Apple Partition Map (APM) boots Intel Macs perfectly well. It&#8217;s exceedingly useful to have a partition format that will boot both architectures, particularly at the museum, where Intel and PPC Macs still very much coexist.</p>
<div id="attachment_741" class="wp-caption aligncenter" style="width: 480px"><a href="http://systemsboy.com/wp-content/uploads/2008/11/partitionmaps1.png"><img class="size-full wp-image-741" title="partitionmaps" src="http://systemsboy.com/wp-content/uploads/2008/11/partitionmaps1.png" alt="Disk Utility Partition Styles: Lies!" width="470" height="362" /></a><p class="wp-caption-text">Disk Utility Partition Styles: Lies!</p></div>
<p>In fact, my Mac is a G5, but all the new hardware is, of course, Intel-based. And I&#8217;m trying to create a master build image for setting up new machines. Generally the way I do this is by making a test build on a firewire partition. I can boot into this build and tweak it until it&#8217;s perfect. And when it is, I image it to an ASR disk image for <a href="http://systemsboy.com/category/netboot" target="_self">NetBooting</a>. I was worried that architecture limitations would make this painful — that booting into my test build partition would be impossible on my PPC Mac because of these restrictions. Glad to know I can just use the old reliable APM for everything and it&#8217;ll do what I need.</p>
<p>Not sure when or how they worked this out, or why the language in Disk Utility has gone unchanged. That fact does give me pause. But so far booting Intel Macs from APM partitions has worked perfectly for me on multiple machines.</p>
<p><strong>UPDATE:</strong><br />
More info at Apple&#8217;s <a href="http://developer.apple.com/technotes/tn2006/tn2166.html" target="_blank">Secrets of the GPT</a> Tech Note, via Jeff in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2008/11/apm-partition-boots-intel-macs.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Leopard umask</title>
		<link>http://systemsboy.com/2008/10/leopard-umask.html</link>
		<comments>http://systemsboy.com/2008/10/leopard-umask.html#comments</comments>
		<pubDate>Mon, 27 Oct 2008 13:48:54 +0000</pubDate>
		<dc:creator>systemsboy</dc:creator>
				<category><![CDATA[Lab]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://systemsboy.com/?p=714</guid>
		<description><![CDATA[This is one of those I-keep-forgetting-how-to-do-this posts, so I&#8217;m writing it down. It&#8217;s certainly been posted elsewhere, but I&#8217;m tired of going looking every time I need it. So here it is. In Tiger a simple defaults command could be used to modify a user&#8217;s umask (a setting that controls the default permissions for newly [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of those I-keep-forgetting-how-to-do-this posts, so I&#8217;m writing it down. It&#8217;s certainly been <a href="http://www.macosxhints.com/article.php?story=20071207091554360" target="_blank">posted elsewhere</a>, but I&#8217;m tired of going looking every time I need it. So here it is.</p>
<p>In Tiger a simple <code>defaults</code> command could be used to modify a user&#8217;s <a href="http://en.wikipedia.org/wiki/Umask" target="_blank"><code>umask</code></a> (a setting that controls the default permissions for newly created files and folders). Leopard, however, changes the way this is done. Leopard instead uses a <code>launchd</code> configuration file. To create a custom <code>umask</code> for all users of a system (i.e. all user-level processes):</p>
<ol>
<li>Create a file called <code>launchd-user.conf</code>.</li>
<li>Place the file in <code>/etc/</code></li>
<li>Enter the property, then the <code>umask</code> setting in the file, like so:<code><br />
umask 002</code></li>
<li>Restart the machine.</li>
</ol>
<p>The restart may not be necessary, but if I recall it was the only way I could get it to work. If you don&#8217;t want to reboot, you&#8217;ll at least need to restart <code>launchd</code> and any application or process you want to use the new setting. Rebooting, though, is a nice catch-all.</p>
<p>Some additional info: if you want virtually all applications (i.e. system-level processes) to use a custom <code>umask</code>, you can leave the &#8220;user&#8221; off the file name. Using <code>/etc/launchd.conf</code> will have said affect, but it is not <a href="http://support.apple.com/kb/HT2202" target="_blank">recommended by Apple</a> (or me for that matter).</p>
<p>Setting a custom <code>umask</code> in general isn&#8217;t something I recommend either, but it&#8217;s damn handy in certain file sharing environments in which multiple users need access to the same stuff, but where <a href="http://systemsboy.com/2006/06/sandbox-and-acls-or-why-i-want-to-french-kiss-mikey-san.html" target="_self">ACLs</a> — the preferred method for setting up complex file sharing permission sets — aren&#8217;t an option. Creating a common group for the users and setting up their <code>umask</code> to create files and folders that are group-writable is an acceptable workaround in many scenarios. Which, by the way, is what the above setting will do. A <code>umask</code> of <code>002</code> will create files with permissions of <code>775</code> (the opposite of <code>002</code> — it&#8217;s a mask, silly).</p>
<p>Okay then. Happy <code>umask</code>ing!</p>
]]></content:encoded>
			<wfw:commentRss>http://systemsboy.com/2008/10/leopard-umask.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
