<?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>Chinquapin Tech Blog</title>
	<atom:link href="http://chinquapin.org/tech/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://chinquapin.org/tech</link>
	<description>Tech resources and musings</description>
	<lastBuildDate>Mon, 23 Aug 2010 01:43:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to add a network printer</title>
		<link>http://chinquapin.org/tech/?p=75</link>
		<comments>http://chinquapin.org/tech/?p=75#comments</comments>
		<pubDate>Tue, 15 Dec 2009 04:26:41 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chinquapin.org/tech/?p=75</guid>
		<description><![CDATA[Mac]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">Mac</span></p>
<p><code><img src="http://chinquapin.org/tech/wp-content/plugins/flash-video-player/default_video_player.gif" /></code></p>
]]></content:encoded>
			<wfw:commentRss>http://chinquapin.org/tech/?feed=rss2&amp;p=75</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add network shares</title>
		<link>http://chinquapin.org/tech/?p=72</link>
		<comments>http://chinquapin.org/tech/?p=72#comments</comments>
		<pubDate>Tue, 15 Dec 2009 03:20:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chinquapin.org/tech/?p=72</guid>
		<description><![CDATA[Windows Mac]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">Windows</span></p>
<p><code><img src="http://chinquapin.org/tech/wp-content/plugins/flash-video-player/default_video_player.gif" /></code></p>
<p><span style="text-decoration: underline;">Mac</span></p>
<p><code><img src="http://chinquapin.org/tech/wp-content/plugins/flash-video-player/default_video_player.gif" /></code></p>
]]></content:encoded>
			<wfw:commentRss>http://chinquapin.org/tech/?feed=rss2&amp;p=72</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find your MAC address</title>
		<link>http://chinquapin.org/tech/?p=67</link>
		<comments>http://chinquapin.org/tech/?p=67#comments</comments>
		<pubDate>Mon, 14 Dec 2009 23:38:16 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chinquapin.org/tech/?p=67</guid>
		<description><![CDATA[Windows Go to Start and type cmd in the search box (for Vista and 7) or select Run and then type in cmd (for XP) Type &#8220;ipconfig /all&#8221; and press enter. Record the Physical Address from your wireless card (there will be multiple physical addresses&#8211;find the one associated with your wireless card, not your ethernet [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">Windows</span></p>
<ol>
<li>Go to <em>Start</em> and type <em>cmd</em> in the search box (for Vista and 7) or select <em>Run</em> and then type in <em>cmd</em> (for XP)</li>
<li>Type &#8220;ipconfig /all&#8221; and press enter.</li>
<li>Record the <em>Physical Address</em> from your <strong>wireless card </strong>(there will be multiple physical addresses&#8211;find the one associated with your wireless card, not your ethernet card)</li>
<li>Send an email with the code to the IT Director</li>
</ol>
<p><img class="alignnone size-full wp-image-69" title="macAddress" src="http://chinquapin.org/tech/wp-content/uploads/2009/12/macAddress.jpg" alt="macAddress" width="677" height="342" /></p>
<p><span style="text-decoration: underline;">Mac</span></p>
<ol>
<li>Go to <em>System Preferences</em> and click on the <em>Network</em> preference button.</li>
<li>Click the <em>Advanced</em> button.</li>
<li>Make sure the <em>Airport</em> tab is selected and record the <em>Airport ID</em> as circled in the photo below (partially blocked out for security).</li>
<li>Send an email with the code to the IT Director</li>
</ol>
<p><img class="alignnone size-full wp-image-68" title="AirportID" src="http://chinquapin.org/tech/wp-content/uploads/2009/12/AirportID.jpg" alt="AirportID" width="651" height="506" /></p>
]]></content:encoded>
			<wfw:commentRss>http://chinquapin.org/tech/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: How to add the Lanier LD175 copier as a printer</title>
		<link>http://chinquapin.org/tech/?p=63</link>
		<comments>http://chinquapin.org/tech/?p=63#comments</comments>
		<pubDate>Tue, 01 Dec 2009 01:50:48 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://chinquapin.org/tech/?p=63</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://chinquapin.org/tech/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-63">Password:<br />
<input name="post_password" id="pwbox-63" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://chinquapin.org/tech/?feed=rss2&amp;p=63</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting up an OS X laptop client (10.4 or 10.5) in 10.5 Apple Server Environment</title>
		<link>http://chinquapin.org/tech/?p=24</link>
		<comments>http://chinquapin.org/tech/?p=24#comments</comments>
		<pubDate>Wed, 07 Oct 2009 01:42:42 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[apple mobile accounts]]></category>
		<category><![CDATA[apple server 10.5]]></category>
		<category><![CDATA[iBook]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[imaging]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[OS X open directory]]></category>

		<guid isPermaLink="false">http://chinquapin.org/tech/?p=24</guid>
		<description><![CDATA[Laptops are complicated computing resources because their network connectivity is unreliable.  Many schools simply avoid the hassle of network services on laptops by using local accounts.  Of course, there are many disadvantages to using local accounts, so we use a bit of a hybrid system. Apple introduced &#8220;mobile accounts&#8221; to in essence mimic a Windows-based [...]]]></description>
			<content:encoded><![CDATA[<p>Laptops are complicated computing resources because their network connectivity is unreliable.  Many schools simply avoid the hassle of network services on laptops by using local accounts.  Of course, there are many disadvantages to using local accounts, so we use a bit of a hybrid system.</p>
<p>Apple introduced &#8220;mobile accounts&#8221; to in essence mimic a Windows-based environment: a user is authenticated by a server and that server looks for a local copy of the user&#8217;s profile and either creates one if it doesn&#8217;t exist or synchronizes the one on the server with the local copy and logs the user in.  This allows users to log in to that laptop later, even if they aren&#8217;t connected to the network because a local account has been created to mimic the network account.  The network/local account will be synchronized later when network connectivity is restored.  Sounds great, right?  The problem with Apple&#8217;s mobile accounts are that they are incredibly slow in practice, so much so, that I consider them to be unusable.  If you don&#8217;t use local or mobile accounts, your user&#8217;s computing environment will freeze anytime they lose network connectivity, which is also an unworkable solution in my opinion.  Many schools will choose to setup mobile accounts to only synchronize certain folders of the user&#8217;s network profile (like Documents), but I have found it still too slow to warrant the convenience, as well as potentially being a bit deceptive for the user (what if the user doesn&#8217;t save the file in Documents?).</p>
<p>At the beginning of the year, we tried using mobile accounts with synchronization turned completely off.  In essence, this would mean that local accounts are created for each user as they log in for the first time, but those local accounts are never synchronized with the server account, so the user has to make sure to save to their mounted server home directory.  In theory, this system works well, but in reality, it doesn&#8217;t.  For our older clients (G4 iBooks 1.33ghz, 512 RAM, 10.4), the login times were horrendous (~1-5 min) and completely unreliable (half of the time, the mobile account creation wasn&#8217;t executed and the user logged in as a regular network user).  The system seemed to work fine (though still slower than expected) for our newer clients (2.4ghz macbook, 2 gb RAM, 10.5).  I&#8217;m not sure how much of the reliability issue was related to 10.4 vs 10.5 or speed of the client, but the solution was unworkable for our 10.4 iBooks.</p>
<p>Thus, we have reverted back to our original hybrid network/local system.  This system is based on a design from another website/blog that I can no longer find to credit.  If you know who it is, please comment.  We used this system with our laptops back before we switched over to an Apple server from a Linux LDAP/NFS file server.  Here&#8217;s how it works:</p>
<ol>
<li>The client is setup to authenticate to our 10.5 server using open directory.  The mappings for NFShomedirectory and apple-home-dir are changed to point to a local alias:
<pre>#/Users/networkUser</pre>
<p><img class="alignnone size-full wp-image-44" title="directoryAccess" src="http://chinquapin.org/tech/wp-content/uploads/2009/10/directoryAccess.jpg" alt="directoryAccess" width="532" height="498" /></p>
<p><img class="alignnone size-full wp-image-45" title="directoryAccess2" src="http://chinquapin.org/tech/wp-content/uploads/2009/10/directoryAccess2.jpg" alt="directoryAccess2" width="530" height="498" /></li>
<li>A startup script is run to copy a local user template to the folder /Users/NetworkUsers/&lt;username&gt;-local and then point the alias /Users/networkUser to that folder
<pre>#!/bin/tcsh -f

# script to change the ownership of the default profile to the user
logging in and to mount network shares

set localAdmin = admin
set localUser = local

### Debug/testing sanity check ###
if ( $#argv &lt; 1 ) then
	echo "No user specified!"
	exit 1
endif
if ( $1 != $localAdmin ) then
if ( $1 != $localUser ) then
	if ( ! -d "/Users/NetworkUsers/${1}-local" ) then
	 `mkdir -m 700 /Users/NetworkUsers/${1}-local`
	 `/usr/bin/ditto -rsrcFork "/System/Library/User Template/Non_localized" "/Users/NetworkUsers/${1}-local"`
	 `/usr/sbin/chown -R ${1}:staff /Users/NetworkUsers/${1}-local`
	endif
	 `rm -R /Users/networkUser`
	 `ln -fs "/Users/NetworkUsers/${1}-local" /Users/networkUser`
	 `/usr/bin/osascript /Library/Management/networkMounts.scpt ${1}`
	endif
endif

### Always exit with 0 status
exit 0</pre>
</li>
<li>To make the startup script run during login, you have to set the login hook (this command assumes you named the script &#8220;reset-homedir-startup.sh&#8221; and placed it in the folder /Library/Management/
<pre>sudo defaults write com.apple.loginwindow LoginHook /Library/Management/reset-homedir-startup.sh</pre>
</li>
<li>At the end of the login script, an applescript is run to mount the network shares automatically.  Right now, the script is hard coded to obtain the group id number and convert that to a folder name so that a shortcut directly to the user&#8217;s home directory can be made and placed on the desktop and sidebar (this could be made more elegant).  AFP cannot mount a specific folder, thus you have to create a symbolic link to the user&#8217;s folder instead.  Apple has the option to automatically include this folder in the dock, but not in the Finder or the Desktop (thus it is kind of worthless because users can&#8217;t browse to the Dock when saving inside of a program).  The home share and group share AFP mounts are included in the Login Items preferences section of each group.  You cannot use Apple&#8217;s default &#8220;mount home directory automatically&#8221; option in workgroup manager because it will try to mount the home directory under /Users/networkUser.  Thus, simply tell it to mount the AFP share you want manually.  The profile template that is setup for the network users includes a sidebar item that points to a symbolic link (that is created from the applescript) in an administration folder (/Library/Management/) that links to the users home directory.  When you are first setting up this sidebar item in the user template, just make a folder /Library/Management/home and give everyone read/write permissions.  Then drag that folder to the user&#8217;s sidebar.  When the login script runs, it will replace this folder with a symbolic link and the sidebar item will automatically update (and change names to the user&#8217;s home directory name).  The applescript is below:</li>
<pre>on run argv
	set user to item 1 of argv
	set groupid to do shell script "id " &amp; user &amp; " | awk
            '{ print substr($2,5,4)}'"
	if groupid = "1025" then
		set group to "faculty"
	else if groupid = "1027" then
		set group to "class2010"
	else if groupid = "1028" then
		set group to "class2011"
	else if groupid = "1029" then
		set group to "class2012"
	else if groupid = "1030" then
		set group to "class2013"
	else if groupid = "1031" then
		set group to "class2014"
	else if groupid = "1032" then
		set group to "class2015"
	else if groupid = "1033" then
		set group to "class2016"
	else if groupid = "1034" then
		set group to "class2017"
	else if groupid = "1035" then
		set group to "class2018"
	else if groupid = "1036" then
		set group to "class2019"
	else if groupid = "1037" then
		set group to "class2020"

	end if
	set group1 to group

	do shell script "rm -R /Library/Management/home"
	do shell script "ln -sf /Volumes/home/" &amp; group1 &amp; "/" &amp; user &amp; "/Library/Management/home"
	do shell script "ln -sf /Volumes/home/" &amp; group1 &amp; "/" &amp; user &amp; "/Users/networkUser" &amp; "/Desktop/" &amp; user

end run</pre>
<li> A screenshot is provided below to highlight how the user&#8217;s network home directory is placed in both the sidebar and the desktop.<a class="thickbox" href="http://chinquapin.org/tech/wp-content/uploads/2009/10/desktop.jpg">sd<img class="alignnone size-medium wp-image-49" title="desktop" src="http://chinquapin.org/tech/wp-content/uploads/2009/10/desktop-300x224.jpg" alt="desktop" width="300" height="224" /></a></li>
<li> The video below details how to create a local template and set up proper permissions, etc.</li>
</ol>
<p><img src="http://chinquapin.org/tech/wp-content/plugins/flash-video-player/default_video_player.gif" /></p>
]]></content:encoded>
			<wfw:commentRss>http://chinquapin.org/tech/?feed=rss2&amp;p=24</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setup a Linux Client to use Apple&#8217;s Open Directory</title>
		<link>http://chinquapin.org/tech/?p=10</link>
		<comments>http://chinquapin.org/tech/?p=10#comments</comments>
		<pubDate>Thu, 10 Sep 2009 01:56:50 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[open directory with linux]]></category>

		<guid isPermaLink="false">http://chinquapin.org/tech/?p=10</guid>
		<description><![CDATA[Perhaps I&#8217;m not looking in the right place, but there seems to be very little information on the web about how to setup a linux client to use Apple&#8217;s Open Directory.  There is a lot of information for the reverse process (setting up an Apple client to use an OpenLDAP server), which seems to suggest [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps I&#8217;m not looking in the right place, but there seems to be very little information on the web about how to setup a linux client to use Apple&#8217;s Open Directory.  There is a lot of information for the reverse process (setting up an Apple client to use an OpenLDAP server), which seems to suggest that few people are using Apple&#8217;s Open Directory as their main directory server in a mixed-platform environment.  This <a href="http://rajeev.name/blog/2007/11/08/integrating-linux-into-open-directory/" target="_blank">blog post</a> has links to a 3-part article series that covers some of the relevant information, but is not exactly what we needed.  Getting a linux client to authenticate to an Open Directory is fairly trivial, but getting home directories to work correctly is not.</p>
<p>Lots of people like the idea of sharing one home directory for both Apple and Linux logins, but I think that results in some confusing overlaps and ugliness on the Desktop.  Windows Samba home directories are almost always treated as a separate folder/share, so why should linux home directories be any different?  Since Apple Open Directory is basically just OpenLDAP, the two systems overlap nicely, making combined home directories possible, but I still don&#8217;t think it makes much sense (the Desktop icons for a Linux system would show up on your Apple system and vice versa, making it confusing for the user).</p>
<p>The end result is that there is no magical way for users to have one shared home directory that integrates perfectly into whatever OS you log into.  Thus, a separate network share that is independent of all the normal home directory crap (Desktop/Documents/Movies/etc) is necessary.  It turns out that this is possible using Open Directory, but that it is easier to have Linux and Apple home directories shared.  Within an Open Directory (or OpenLDAP), there are fields for your Apple Home Directory, NFS Home Directory, and Windows (Samba) Home Directory.  However, Workgroup Manager in OS X Server automatically populates both the Apple Home Directory and the NFS Home directory based on your selection in the Home tab, so you have to manually edit the NFS Home Directory entry if you want something different.  The problem with manually editing is that it isn&#8217;t as automated (though there is probably a way to make it more automated through the use of presets?).  Additionally, it is more easily messed up&#8211;so it is best to have a combined Apple/Linux home directory as it is originally setup.  Thus, in order to properly mount a user&#8217;s home directory in Linux, setup the ridiculous mount point on your linux box by creating the directory structure: /Network/Servers/&lt;servername&gt;/Volumes/&lt;volumename&gt;/home and mounting via NFS the network share in that location.</p>
<p>See future posts for details about our particular setup and on how to make Linux/Apple/Windows play nicely together.</p>
]]></content:encoded>
			<wfw:commentRss>http://chinquapin.org/tech/?feed=rss2&amp;p=10</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
