<?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>marcoschuh.de</title>
	<atom:link href="http://marcoschuh.de/wp/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://marcoschuh.de/wp</link>
	<description>code, techtalk and stuff</description>
	<lastBuildDate>Sun, 01 Apr 2012 11:41:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Parallels 7 vs Virtualbox 4.1 vs VMWare Fusion 4.1</title>
		<link>http://marcoschuh.de/wp/?p=891</link>
		<comments>http://marcoschuh.de/wp/?p=891#comments</comments>
		<pubDate>Sat, 31 Dec 2011 17:12:44 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[Fusion]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[parallels]]></category>
		<category><![CDATA[Virtualbox]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=891</guid>
		<description><![CDATA[&#160; I recently needed to decide which virtualization software to use on my new MacMini. I see three main competitors for Desktop Virtualization on the Mac: &#160;&#160;&#160; Paralles Desktop for Mac (~ 80 &#8364;) &#160;&#160;&#160; VMWare Fusion (~ 70 &#8364;, now 40 &#8364; introduction price) &#160;&#160;&#160; Virtualbox (OpenSource / with Extension pack usage under their [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I recently needed to decide which virtualization software to use on my new MacMini.</p>
<p>I see three main competitors for Desktop Virtualization on the Mac:</p>
<ul>
	<li>&nbsp;&nbsp;&nbsp; Paralles Desktop for Mac (~ 80 &euro;)</li>
	<li>&nbsp;&nbsp;&nbsp; VMWare Fusion (~ 70 &euro;, now 40 &euro; introduction price)</li>
	<li>&nbsp;&nbsp;&nbsp; Virtualbox (OpenSource / with Extension pack usage under their <a href="https://www.virtualbox.org/wiki/VirtualBox_PUEL">PUEL License</a>)</li>
</ul>
<p>Parallels and VMWare are commercial products while Virtualbox (at least the main part) is now OpenSource and if you use their Oracle Expansion Pack is at least free for personal use under their <a href="https://www.virtualbox.org/wiki/VirtualBox_PUEL">PUEL License</a>).<br />
	It proved to be hard to find some serious comparison of the three at a recent version. So I decided to make my own. Fortunately VMWare and Parallels provide time-limited demos of their software for evaluation purposes. I took that offer. Installed the three and made some testing and benchmarks.</p>
<span id="more-891"></span>
<p>The tests were conducted on a MacMini 2011 with 2,3 GHz Core i5 Processor and 8 GB RAM and the Stock 500GB Toshiba MK5065GSFX HardDrive.</p>
<p>I installed each of the three on a fresh installation of Mac OS X (10.7.2), rebooted between startup tests and bechmarks to avoid caching effects. And waited at min 1 Minute after Startup to ensure all system services and startup items were done.<br />
	No additional software was installed on the machine, just bare Mac OS + one of the virtualization software products.</p>
<p>Tested product versions were : Virtualbox 4.1.6, VMWare Fusion 4.1.1 and Parallels 7.0.15052 . Each virtual machine was installed with standard options, given 2GB of RAM and 20 GB of dynamically expanding harddisk.</p>
<p>Windows startup performance was measured with a stopwatch, taken 7 times, best and worst time were thrown away and the other times averaged for each product. Taken was the time from pressing the &quot;Start VM&quot; button until the Desktop background first appeared, this means these times include startup and initialization of the VMs and it&#39;s bios.</p>
<p>&nbsp;</p>
<p>Results</p>
<table border="1" cellpadding="1" cellspacing="1" style="width: 90%;">
	<thead>
		<tr>
			<th scope="col">&nbsp;</th>
			<th scope="col">Parallels</th>
			<th scope="col">Virtualbox</th>
			<th scope="col">VMWare Fusion</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>Windows 7 Startup</td>
			<td style="text-align: center;">36</td>
			<td style="text-align: center;">44</td>
			<td style="text-align: center;">39</td>
		</tr>
		<tr>
			<td>Crystal Disk Mark 4k Write</td>
			<td style="text-align: center;">0,94 MB/s</td>
			<td style="text-align: center;">0,91 MB/s</td>
			<td style="text-align: center;">1,38 MB/s</td>
		</tr>
		<tr>
			<td>Geekbench</td>
			<td style="text-align: center;">3960</td>
			<td style="text-align: center;">3919</td>
			<td style="text-align: center;">3926</td>
		</tr>
		<tr>
			<td>PCMark 7 &#8211; Overall Score</td>
			<td style="text-align: center;">2007</td>
			<td style="text-align: center;">778</td>
			<td style="text-align: center;">2042</td>
		</tr>
		<tr>
			<td>PCMark 7 &#8211; Video playback</td>
			<td style="text-align: center;">13,77 fps</td>
			<td style="text-align: center;">7,69 fps</td>
			<td style="text-align: center;">13.76 fps</td>
		</tr>
		<tr>
			<td>PCMark 7 &#8211; DirectX 9</td>
			<td style="text-align: center;">9,96 fps</td>
			<td style="text-align: center;">1 fps</td>
			<td style="text-align: center;">11,19 fps</td>
		</tr>
		<tr>
			<td>PCMark 7 &#8211; Data decrypting</td>
			<td style="text-align: center;">12,68 MB/s</td>
			<td style="text-align: center;">10,85 MB/s</td>
			<td style="text-align: center;">17,77 MB/s</td>
		</tr>
		<tr>
			<td>PCMark 7 &#8211; Video transcoding downscaling</td>
			<td style="text-align: center;">706,35 kB/s</td>
			<td style="text-align: center;">543,93 kB/s</td>
			<td style="text-align: center;">679,09 kB/s</td>
		</tr>
		<tr>
			<td>PCMark 7 &#8211; Image Manipulation</td>
			<td style="text-align: center;">7,07 Mpx/s</td>
			<td style="text-align: center;">6,93 Mpx/s</td>
			<td style="text-align: center;">7,05 Mpx/s</td>
		</tr>
	</tbody>
</table>
<p>Analysis and remarks:</p>
<p>In Windows 7 Startup performance the clear winner in my tests was Parallels Desktop. However I assume they use some startup optimization by modifying the windows boot process. How come ? Well Virtualbox and VMWare show the normal boot screen just like a regular PC for Windows 7 ( the three moving colory things), while Parallels shows some Vista style progress bar. Hence I assume they somehow change and enhance the bootup process to get this clear advantage.<br />
	I could probably have tested some Linux / Mac operating system startup performance, but that would have increased my test time more than I would have wanted &#8211; maybe next time.</p>
<p>Unfortunately I had to disable 3D acceleration for the Virtualbox tests, when it was turned on PCMark would crash for me right after starting. This leads to bad graphical performance for Virtualbox in DirectX, Video Playback and other graphical parts of PCMark and thus results in an overall &quot;bad&quot; PCMark Score not directly comparable to the other two.</p>
<p>Crystal Disk Mark showed odd high values for Parallels and Fusion read tests, most likely because they use some form of caching, which is why I only included 4k write values here. They show a huge (~ 50%) advantage for Vmware.</p>
<p>Geekbench is a computational intensive cross platform benchmark, that stresses mainly the CPU with Encryption, Compression, Image Manipulation and mathematical tests. All products are in a very close range here, with a variance of approx 1%. You could say that all three products perform almost identical.</p>
<p>&nbsp;</p>
<p>Conclusions :</p>
<p>In Windows startup performance (at least for Windows 7 32bit) the crown clearly goes to Parallels Desktop for Mac. However I did not test VM suspend/resume performance thoroughly which is probably at least as interesting &#8230;</p>
<p>Pure CPU computing performance (geekbench, PCMark image manipulation etc.) just differs by about 1% between the three tested products. So if you run just CPU intensive stuff like whatever (image manipulation, scientific calculations) that does not use much data from the disk it does not matter much, which one you choose. Even though I would attest&nbsp; Parallels a quantum of advance in this field.</p>
<p>Putting caching effects aside, VMWare seems to achieve the best disk IO performance.</p>
<p>In my tests VMWare also achieved the best 3D graphcis performance. Here you have to consider that Virtualbox is not as bad as 1 fps suggests, I have successfully tested games using Virtualbox on my older macbook, so in general 3D works there too, it just did not work with PCMark 7 in my tests. However I think Fusion does best when it comes to 3D Applications.</p>
<p>&nbsp;</p>
<p>My Verdict :</p>
<p>Parallels Desktop for Mac<br />
	+ choose if you want absolute fastest CPU performance, even though only by a margin<br />
	+ very good Mac integration (copy &#038; paste between Mac Desktop and Windows VM)<br />
	- faster release cycle with a lot of paid upgrades<br />
	- highest Retail price</p>
<p>VMWare Fusion<br />
	+ best IO performance<br />
	+ best 3D performance<br />
	+ very good Mac integration (copy &#038; paste between Mac Desktop and Windows VM)<br />
	+ can be used with one license on a Desktop and a Laptop by one person (<a href="http://blogs.vmware.com/teamfusion/2011/09/got-more-than-one-mac-weve-got-you-covered.html">> link</a>)<br />
	- offered no upgrade between Fusion 3 and 4 at all.</p>
<p>Virtualbox<br />
	+ Free &#8211; obviously the best price<br />
	+ OpenSource (at least the main part)<br />
	- worst IO / 3D performance of the three</p>
<p>&nbsp;</p>
<p>If you only occasionally use a virtual machine or two. I would choose Virtualbox. Free is simply too good of a price. It works good, has almost all the features the other two have &#8211; but unfortunately doesn&#39;t have such good Mac integration as the other two.<br />
	I choose Fusion &#8211; why ? It has good performance, all the features I need and I can install it on my MacMini and my Macbook simultaneosly, so I have my VMs when I&#39;m on the road.<br />
	I once used Parallels, but I didn&#39;t like their paid upgrades which came quite often ( and which I would have needed to run it on Snow Leopard). So I cross-switched to Fusion in a promotion for about 10&euro;. I&#39;m quite happy with it. VMWare has a huge userbase with all their virtualization products across all platforms and you can google solutions to almost everything related quickly. Unfortunately they do not provide an upgrade at all from 3 to 4, however the posibility to run it on all my Macs makes that up for me. So I took Fusion 4 with the promotional discount for about 40 &euro;.<br />
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=891</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh and Lion&#8217;s xterm-256color terminfo</title>
		<link>http://marcoschuh.de/wp/?p=873</link>
		<comments>http://marcoschuh.de/wp/?p=873#comments</comments>
		<pubDate>Thu, 11 Aug 2011 16:14:16 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[Terminal.app]]></category>
		<category><![CDATA[xterm]]></category>
		<category><![CDATA[xterm-256color]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=873</guid>
		<description><![CDATA[When you ssh from your shiny Mac running new shiny Mac OS X 10.7 (aka. Lion) into another Unix box running e.g. Linux, Solaris or probably BSD you are likely to encounter an error like the following one when you use terminal based programs like less, nano and alike : Telling you that it can [...]]]></description>
			<content:encoded><![CDATA[<p>When you ssh from your shiny Mac running new shiny Mac OS X 10.7 (aka. Lion) into another Unix box running e.g. Linux, Solaris or probably BSD you are likely to encounter an error like the following one when you use terminal based programs like less, nano and alike :</p>
<p><a href="http://marcoschuh.de/wp/wp-content/uploads/2011/07/xterm-256color.jpg"><img alt="" class="aligncenter size-full wp-image-874" height="139" src="http://marcoschuh.de/wp/wp-content/uploads/2011/07/xterm-256color.jpg" title="xterm-256color" width="585" /></a></p>
<p>Telling you that it can not work with your Terminal because it doesn&#39;t know anything about &quot;xterm-256color&quot;.</p>
<p><span id="more-873"></span></p>
<p>The root cause is that with 10.7 apple set the environment variable &quot;TERM=xterm-256color&quot; probably to promote some new capatibilites of Terminal.app. This variable is then on the other unixes interpreted from terminal programs using the <a href="http://en.wikipedia.org/wiki/Terminfo">Terminfo</a> library. However they do not have the proper definition for &quot;xterm-256color&quot; in place, so we have to add it.</p>
<p>If you google this error, it will yield a bunch of results with most suggesting copying over the complete terminfo folder to your mac. While this will probably solve the problem, because the missing terminfo file is then available, I consider this an absolute non-optimal approach as it could break some stuff with existing terminfo files getting overwritten.<br />
	&nbsp;</p>
<p>I rather recommend using the less invasive method of just copying over the needed terminfo file form your mac.</p>
<p>(Open)Solaris :</p>
<pre>ssh SolarisMachine
pfexec scp MacUserName@MacComputerNameOrIP:/usr/share/terminfo/78/xterm-256color /usr/share/lib/terminfo/x
pfexec chown root:bin /usr/share/lib/terminfo/x/xterm-256color</pre>
<p>&nbsp;</p>
<p>Linux</p>
<pre>ssh LinuxMachine
sudo scp MacUserName@MacComputerNameOrIP:/usr/share/terminfo/78/xterm-256color /lib/terminfo/x
sudo ln -s /lib/terminfo/x/xterm-256color /usr/share/terminfo/x/</pre>
<p>Please note that the above terminfo location (/lib/terminfo) was for one of my Ubuntu LTS 10.04 servers, you may have to adjust this if you use another distribution &#8230;</p>
<p>&nbsp;</p>
<p>Now everything runs for me as smooth as it should.</p>
]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=873</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Easytag Build for OSX (Lion)</title>
		<link>http://marcoschuh.de/wp/?p=882</link>
		<comments>http://marcoschuh.de/wp/?p=882#comments</comments>
		<pubDate>Mon, 01 Aug 2011 11:08:08 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[cocoa]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[EasyTAG]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=882</guid>
		<description><![CDATA[Made my EasyTAG build for OSX Lion compatible. Thanks to the gtk+ people who provided gtk Lion patches in no time. Please post some feedback if it works correctly. I would especially need feedback from 10.4 Users (if there are any left because I can&#39;t test that myself &#160; Go get it]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://marcoschuh.de/wp/wp-content/themes/simplenotes/costum_images/easytag_AlBook_64.png" style="width: 64px; height: 64px; margin: 20px; float: right;" /></p>
<p>Made my EasyTAG build for OSX Lion compatible. Thanks to the gtk+ people who provided gtk Lion patches in no time.<br />
	Please post some feedback if it works correctly. I would especially need feedback from 10.4 Users (if there are any left <img src='http://marcoschuh.de/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  because I can&#39;t test that myself</p>
<p><br />
	&nbsp;<span> <a href="http://marcoschuh.de/wp/?page_id=411#downloads">Go get it</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=882</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let (Open)solaris (neta)talk to Lion about TimeMachine</title>
		<link>http://marcoschuh.de/wp/?p=839</link>
		<comments>http://marcoschuh.de/wp/?p=839#comments</comments>
		<pubDate>Fri, 29 Jul 2011 10:47:19 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[zfs]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Timemachine]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=839</guid>
		<description><![CDATA[After having (of course) upgraded to Mac OS 10.7 alias Lion on the first day available &#8211; and after having set up my machine the way I wanted it &#8211; I thought it would be a good idea to turn on TimeMachine to save my precious new installation to my ZFS / Opensolaris server. Unfortunately [...]]]></description>
			<content:encoded><![CDATA[<p>After having (of course) upgraded to Mac OS 10.7 alias Lion on the first day available &#8211; and after having set up my machine the way I wanted it &#8211; I thought it would be a good idea to turn on TimeMachine to save my precious new installation to my ZFS / Opensolaris server.</p>
<p>Unfortunately Time Machine told me that I could not do so, because my Time Machine / AFP server didn&#39;t have all necessary capabilities. Humm it worked fine with Snow Leopard &#8230;</p>
<p><img alt="" class="alignright size-full wp-image-856" src="http://marcoschuh.de/wp/wp-content/uploads/2011/07/lion_screen1.jpg" style="width: 287px; height: 179px; float: right; margin: 10px;" title="lion_screen" />Then I tried to connect to the server via AFP &#8211; and that didn&#39;t work either :<br />
	After inputting my password in the authentication dialog Finder told me that &quot;The version of the server you are trying to connect to is not supported. Please contact your system administrator to resolve the problem.&quot;</p>
<p>That would be me &#8230;</p> <span id="more-839"></span>
<p>So I fired up Google and the problem seemed well known :</p>
<p>For security reasons apple disabled &quot;DHCAST128&quot;, which is an asymmetrical encryption algorithm used for the password authentication, as allowed for the AFP Protocol in Lion. Now the minimum requirement is &quot;DHX2&quot; &#8211; the successor of DHCAST128.</p>
<p>Unfortunatly the provided solutions did not work for me &#8230; :</p>
<p>They suggested adding the following line to afpd.conf</p>
<div class="codebox"><code>-uamlist uams_randnum.so,uams_dhx.so,uams_dhx2.so </code></div> <br />
<p>But hey I already had this line there. hmmm. I searched around for other stuff but couldn&#39;t find the error.</p>
<p>Then I decided to try out the newest beta version of netatalk (2.2-beta4) but ended up the same. I thought it was &quot;correctly&quot; configured and indeed all the configuration options in the configuration file were correct.<br />
	The problem was that &quot;uams_dhx2.so&quot; did not exist in /usr/local/etc/netatalk/uams/ .<br />
	Weird &#8211; I looked through the build scripts and the build log and there it hit me :<br />
	libgcrypt was checked for CAST5 support which it did not find</p>
<p>If I would have paid more attention at build time I would have obviously noted that :</p>
<div class="codebox"><code>* Solaris specific configuration<br />
	checking if we can build Solaris kernel module... no<br />
	checking for libgcrypt-config... /usr/bin/libgcrypt-config<br />
	checking for LIBGCRYPT - version &gt;= 1.2.3... yes (1.4.4)<br />
	checking libgcrypt API version... okay<br />
	<span style="color:#800000;">checking libgcrypt hast CAST5 API... no<br />
	*** Detected libgcryt without CAST5 ***</span><br />
	*** Please install/build another one and point to it with ***<br />
	*** --with-libgcrypt-dir=</code></div>
<p>uh ah,</p>
<p>the configure summary too listed that the dhx2 module was not build :</p>
<div class="codebox"><code>Configure summary:<br />
	...<br />
	UAMS:<br />
	DHX ( SHADOW)<br />
	RANDNUM ( SHADOW)<br />
	passwd ( SHADOW)<br />
	guest</code></div>
<br />
<p>The reason for this is as stated in the configure log, that the installed libgcrypt does not support the CAST5 algorithm. And why ? Because of patent issues &#8230; (<a href="https://defect.opensolaris.org/bz/show_bug.cgi?id=15527">Opensolaris &quot;Bug&quot; 15527</a>)</p>
<p>I can&#39;t relate to that because as far as I could research, Cast5 (<a href="http://www.users.zetnet.co.uk/hopwood/crypto/scan/cs.html#CAST-128">also known as CAST-128</a>) which is described in <a href="http://tools.ietf.org/html/rfc2144">IETF RFC2144</a> is even though (partly) patented, has been granted for use for any purpose by anyone royalty and license free (<a href="http://www.ietf.org/proceedings/46/slides/smime-Adams-CAST-128/sld003.htm">1</a>, <a href="http://www.rfc-editor.org/rfc/rfc2144.txt">2</a>).</p>
<p>So in case you want Lion support and are sure that you are not affected by any patent issues (in doubt you should probably contact a lawyer), then compile libgcrypt yourself with CAST5 support and then your AFP auth should work &#8230;</p>
<p>Instructions :</p>
<div class="codebox"><code><p>wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.9.tar.gz<br />
	/usr/gnu/bin/tar xvfz libgpg-error-1.9.tar.gz<br />
	./configure &amp;&amp; make &amp;&amp; make install</code></p>

	<p><code>wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.gz<br />
		/usr/gnu/bin/tar xvfz libgcrypt-1.5.0.tar.gz<br />
		./configure --with-gpg-error-prefix=/usr/local<br />
		make &amp;&amp; make install</code></p>
	<p><code>wget http://sourceforge.net/projects/netatalk/files/netatalk/2.2/netatalk-2.2.0.tar.bz2/download<br />
		/usr/gnu/bin/tar xvfj netatalk-2.2.0.tar.bz2<br />
		./configure --disable-ddp --disable-zeroconf --without-pam --with-libgcrypt-dir=/usr/local<br />
		make &amp;&amp; make install</code></p>
</div>
<p>&nbsp;</p>
<p>Please note that I am disabling zeroconf (aka bonjour), because I want to set it up manually like described in my previous post -<a href="/wp/?p=494">&gt;here</a>.<br />
	Someday I may combine everything into a single instruction set for current OpenIndiana / Solaris 11 Express / Nexentastor.</p>
<p>&nbsp;</p>
<div class="codebox"><code><p>* Solaris specific configuration<br />
	checking if we can build Solaris kernel module... no<br />
	checking for libgcrypt-config... /usr/local/bin/libgcrypt-config<br />
	checking for LIBGCRYPT - version &gt;= 1.2.3... yes (1.5.0)<br />
	checking libgcrypt API version... okay<br />
	<span style="color:#2f4f4f;">checking libgcrypt hast CAST5 API... yes<br />
	configure: Enabling DHX2 UAM</span></code></p>
	<p><code>UAMS:<br />
		DHX ( SHADOW)<br />
		<span style="color:#2f4f4f;">DHX2 ( SHADOW)</span><br />
		RANDNUM ( SHADOW)<br />
		passwd ( SHADOW)<br />
		guest</code></p>
</div>
<p>&nbsp;</p>
<p>Everything is working again and I am happy <img src='http://marcoschuh.de/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<img src="http://marcoschuh.de/wp/wp-content/uploads/2011/07/Time-Machine-1.jpg" alt="" title="Time Machine-1" width="433" height="288" class="size-full wp-image-865" />]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=839</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>OSX Login Keychain was corrupted &#8230;</title>
		<link>http://marcoschuh.de/wp/?p=834</link>
		<comments>http://marcoschuh.de/wp/?p=834#comments</comments>
		<pubDate>Wed, 13 Apr 2011 06:59:36 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Timemachine]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=834</guid>
		<description><![CDATA[So yesterday I restarted my MacBook after some weeks and when trying to log back in, my system mourned that the password I entered was wrong, so it was not able to unlock my keychain, even though I was able to login to my desktop. Hmm I had changed my password like I always do [...]]]></description>
			<content:encoded><![CDATA[<p>So yesterday I restarted my MacBook after some weeks and when trying to log back in, my system mourned that the password I entered was wrong, so it was not able to unlock my keychain, even though I was able to login to my desktop. Hmm I had changed my password like I always do sporadically in the past week, so I typed the old pw and the new pw, triple checked everything I typed, checked CapsLock etc. I was sure everything was correct, so I concluded that my Users login Keychain was corrupted.</p>
<p>I ended up renaming ~/Library/Keychains/login.keychain to ~/Library/Keychains/login.keychain.OLD and then restored a version from 2 weeks ago from one of my TimeMachine backups. Logged out &#8211; Logged in and everything works perfectly again.</p>
<p>TimeMachine saved the day <img src='http://marcoschuh.de/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=834</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easytag Build for OSX – alpha4 released</title>
		<link>http://marcoschuh.de/wp/?p=822</link>
		<comments>http://marcoschuh.de/wp/?p=822#comments</comments>
		<pubDate>Fri, 31 Dec 2010 13:28:29 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[EasyTAG]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=822</guid>
		<description><![CDATA[After a lot of integration work &#8211; I just released alpha4 of my EasyTAG build for Mac OS X The feature list includes : &#160;&#160; &#187; Usage of the OS X MenuBar &#160;&#160; &#187; Added Mac OS X alike themeing &#160;&#160; &#187; Update notification and self-updating capatibilities with a Sparkle helper application &#160;&#160;&#160;&#160; &#160; -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>After a lot of integration work &#8211; I just released alpha4 of my EasyTAG build for Mac OS X <img src='http://marcoschuh.de/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The feature list includes :<br />
	&nbsp;&nbsp; &raquo; Usage of the OS X MenuBar<br />
	&nbsp;&nbsp; &raquo; Added Mac OS X alike themeing<br />
	&nbsp;&nbsp; &raquo; Update notification and self-updating capatibilities with a Sparkle helper application</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; <img alt="" src="http://marcoschuh.de/wp/wp-content/images/Easytag-Mac-3.png" /><br />
	&nbsp;</p>
<p><a href="../wp/?page_id=411#downloads">-&gt; Go get it while it&#39;s hot</a><br />
	&nbsp;</p>
<p>I would be very interested in any feedback, especially about 10.5 and 10.4 experience and I would like to know even if everything works perfectly <img src='http://marcoschuh.de/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> &nbsp;</p>
<p>I wish everyone a happy new year !</p>
]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=822</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ZFS and Apple TimeMachine &#8211; a perfect Team</title>
		<link>http://marcoschuh.de/wp/?p=494</link>
		<comments>http://marcoschuh.de/wp/?p=494#comments</comments>
		<pubDate>Mon, 27 Dec 2010 21:38:13 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[zfs]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Timemachine]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=494</guid>
		<description><![CDATA[There is a corresponding post, which provides updated additional instructions to make this work with Mac OS X Lion (10.7) I had this article lying around for about a year as a draft now &#8211; recently I fixed the avahi TimeMachine advertising and I thought finishing up and publishing this article would be a good [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center; color: darkred; margin: 5px; border: 1px solid gray;"><a href="http://marcoschuh.de/wp/?p=839" style="color: darkred;"><span>There is a corresponding post, which provides updated additional instructions to make this work with Mac OS X Lion (10.7)</span></a></div> <br/>
<p>I had this article lying around for about a year as a draft now &#8211; recently I fixed the avahi TimeMachine advertising and I thought finishing up and publishing this article would be a good thing.<br />
	Of course some things have changed, like most recent versions numbers and Opensolaris &#8230; but it should not matter if you try this on Opensolaris B134 , Illumnos or Solaris 11 Express because the internals are almost the same :</p>
<p><img alt="" class="alignright size-full wp-image-793" height="342" src="http://marcoschuh.de/wp/wp-content/uploads/2010/12/TimeMachineSysPref.jpg" style="margin: 10px;" title="TimeMachineSysPref" width="425" />Until now I used to exchange files between my MacBook and my HomeServer running Opensolaris via the smb protocol. Sadly this is far from perfect because smb does not support some of the Apple specific network filesystem stuff.<br />
	It gets especially nasty with Snow Leopard and TimeMachine. In 10.6 I could not get TimeMachine to work properly with samba &#8211; so I decided to take the time and configure my OpenSolaris to be an AFP server too.<br />
	It turned out that this was rather easy either way, especially with netatalk 2.0.5 and above having &quot;extended&quot; TimeMachine Support via the &quot;tm&quot; switch.</p>
<p>Even cooler ZFS provides you with quota options and additional transparent compression for your TimeMachine backups &#8230;<br />
	<span id="more-494"></span><br />
	Here are the steps I performed.</p>
<p>If you haven&#39;t compiled anything manually on your OpenSolaris box, an easy way to get a gcc development platform is installing the gcc-dev package :</p>
<div class="codebox"><code>pfexec pkg install gcc-dev</code></div>
<p>&nbsp;</p>
<hr />
<p>&nbsp;</p>
<p>Table of contents :<br />
	<a href="#configZFS">&raquo; Configure a ZFS filesystem for use with TimeMachine</a><br />
	<a href="#instBerkely">&raquo; Installing Berkely DB</a><br />
	<a href="#instNetatalk">&raquo; Installing Netatalk</a><br />
	<a href="#configAvahi">&raquo; Configurin Avahi</a><br />
	&nbsp;</p>
<p><a name="configZFS"><br />
	<strong>Configure a ZFS filesystem for use with TimeMachine</strong></a></p>
<p>If you do not already have a seperate filesystem for the TimeMachine Backups, I recommend making a seperate one for each TimeMachine client. It&#39;s very easy and introduces only minimal overhead with ZFS.<br />
	ZFS provides very useful options for its filesystems among them are quotas and transparent compression.<br />
	Quota is very useful because you can easily limit the timemachine&#39;s backup size and prevent filling it up your whole pool. I recommend setting the quota to at least 1.5x the size of your Macs harddrive if you can afford. That way even with an almost full harddisk you can keep some older backups in your timemachine (always depending on how much you change between timemachine cycles). For the 160GB HD in my MacBook this means 250GB backup space on the ZFS filesystem.<br />
	Very cool is zfs transparent filesystem compression. TimeMachine does not use compression and afaik it can not be turned on manuall either. So you just tell your zfs to compress everything TimeMachine writes to it by issuing the simple command mentioned below. This will turn on standard ZFS compression, which is a good trade-off in terms of compression/speed ratio. If you want to use a more agressive compression scheme, just look up the compression part in the ZFS manual.</p>
<div class="codebox"><code># replace POOLNAME with the name of the pool you want to<br />
	# add your timemachine backup to (the pool has to exist)<br />
	# make the filesystem if you haven&#39;t already one<br />
	zfs create POOLNAME/timemachine<br />
	# set a quota on the filesystem<br />
	# ! adjust this to your needs and disk Space<br />
	zfs set quota=250G POOLNAME/timemachine<br />
	# enable compression<br />
	zfs set compression=on POOLNAME/timemachine</code></div>
<p>&nbsp;</p>
<p><strong><a name="instBerkely">Install Berkeley db</a></strong></p>
<p>The Berkeley db is the database backend needed by netatalk to store all kind of stuff.</p>
<p>You have two options for installing it :<br />
	1. Use the &quot;unofficial&quot; package from the OpenSolaris Contrib repository<br />
	2. Compile and install it on your own</p>
<p>I prefer the second one for now, because I consider it less likely that a dist upgrade of bdb breaks my netatalk &#8211; and the bdb in the contrib repository is not the newest version.<br />
	The downside is you have to manually install and &quot;mantain&quot; it.<br />
	Your choice &#8230;<br />
	&nbsp;</p>
<p><em>Easy Installation</em></p>
<p>Via the Package Manager from the Opensolaris Contrib Repository</p>
<p>http://pkg.opensolaris.org/contrib/en/catalog.shtml</p>
<p>Find the &quot;bdb&quot; entry and click on the &quot;Install&quot; Button, then follow the instructions from the Packetmanager</p>
<p><span><em>Manual Installation</em></span></p>
<p>Download the latest version from<br />

http://www.oracle.com/technology/software/products/berkeley-db/db/index.html</p>

<p><span>move to an appropriate place, configure, build and install it</span></p>
<div class="codebox"><code>mkdir ~/netatalkBuild<br />
	mv ~/Downloads/db-X.X.XX.tar.gz ~/netatalkBuild &amp;&amp; cd ~/netatalkBuild<br />
	tar xvfz </code><code>db-X.X.XX.</code><code>tar.gz<br />
	cd </code><code>db-X.X.XX</code><code>/build_unix<br />
	../dist/configure --prefix=/usr/local<br />
	make -j 4<br />
	pfexec make install</code></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong><a name="instNetatalk">Install netatalk</a></strong></p>
<p>Download the latest netatalk package from<br />

http://sourceforge.net/projects/netatalk/files/</p>

<div class="codebox"><code>mv ~/Downloads/netatalk-2.X.X.tar.bz2 /usr/src &amp;&amp; cd /usr/src<br />
	tar xvfj </code><code>netatalk-2.X.X</code><code>.tar.bz2<br />
	cd </code><code>netatalk-2.X.X</code><br />
	<code>./configure --disable-ddp --without-pam<br />
	make -j 4<br />
	pfexec make install</code></div>
<p>&nbsp;</p>
<p><strong>Configure netatalk</strong></p>
<p>If you haven&#39;t set up a filesystem for TimeMachine Backup, look here and then continue.</p>
<p>Edit the netatalk configuration files in /usr/local/etc/netatalk/</p>
<div class="codetitle">netatalk.conf</div>
<div class="codebox"><code>ATALKD_RUN=no<br />
	PAPD_RUN=no<br />
	CNID_METAD_RUN=yes<br />
	AFPD_RUN=yes<br />
	TIMELORD_RUN=no<br />
	A2BOOT_RUN=no</code></div>
<p>We just need AFPD &#8211; ATALKD is for pre OSX Systems and PAPD is for printer services.<br />
	&nbsp;</p>
<div class="codetitle">AppleVolumes.default</div>
<div class="codebox"><code>/YOURPOOLNAME/timeMachineFolder &quot;TimeMachine&quot; allow:@staff cnidscheme:cdb options:usedots, </code>
	<p>&nbsp;</p>
	<div style="display: inline; color: darkred;">tm, <span style="color: rgb(0, 0, 0);">invisibledots,upriv perm:0770</span></div>
</div>
<p>the first entry is the path in the filesystem on the Opensolaris System, the Second one inside the hyphens &quot;The Name&quot; displayed in the Finder.<br />
	Then the access priviliges, if you want a specific user to have access you can replace &quot;@staff&quot; with your username.<br />
	The &quot;tm&quot; option is essential and it is only available in netatalk 2.0.5 and above as this feature is brand new <img src='http://marcoschuh.de/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>If you want your home folders to be accessible to I recommend replacing the standard option</p>
<div class="codebox"><code>~ </code></div>
<p>with</p>
<div class="codebox"><code>~ cnidscheme:cdb options:usedots,invisibledots,upriv perm:0770</code></div>
<p><span>if you don&#39;t want them to be shared via AFP comment that line out</span></p>
<div class="codebox"><code># ~</code></div>
<p>&nbsp;</p>
<p><strong>Make netatalk start automatically as a service</strong></p>
<p>Based upon a smf service description I found <a href="http://www.tek-ops.com/archives/20">here</a>, i made a modified one, with all the correct paths for the current netatalk version (2.5) and a current Opensolaris version (~ build 130).</p>
<p>Grab it here : <a href="http://marcoschuh.de/wp/wp-content/uploads/2010/12/netatalk.xml_.zip">netatalk.xml (for versions &lt; 2.1)</a>&nbsp;&nbsp;&nbsp; <a href="http://marcoschuh.de/wp/wp-content/uploads/2011/08/netatalk.xml-2.1.zip">netatalk.xml (for versions &gt;= 2.1)</a></p>
<p>Install it and enable the service :</p>
<div class="codebox"><code>svccfg import /path/to/netatalk.xml<br />
	svcadm enable netatalk </code></div>
<p>&nbsp;</p>
<p><strong><a name="configAvahi">Configure avahi</a></strong></p>
<p>Avahi is an Implementation of apple&#39;s bonjour protocol.<br />
	It advertises your computers network services in the network. When correctly configured it helps the Finder to find and display your Computer under &quot;network servers&quot; section in the sidebar<br />
	In an standard OpenSolaris install, you already have it installed.</p>
<p>First you want to advertise your servers afp capatibilites :</p>
<div class="codetitle">/etc/avahi/services/afpd.service</div>
<div class="codebox">&lt;?xml version=&quot;1.0&quot; standalone=&#39;no&#39;?&gt;<br />
	&lt;!DOCTYPE service-group SYSTEM &quot;avahi-service.dtd&quot;&gt;<br />
	&lt;service-group&gt;<br />
	&nbsp; &lt;name replace-wildcards=&quot;yes&quot;&gt;%h&lt;/name&gt;<br />
	&nbsp; &lt;service&gt;<br />
	&nbsp;&nbsp;&nbsp; &lt;type&gt;_afpovertcp._tcp&lt;/type&gt;<br />
	&nbsp;&nbsp;&nbsp; &lt;port&gt;548&lt;/port&gt;<br />
	&nbsp;&nbsp;&nbsp; &lt;txt-record&gt;model=TimeCapsule&lt;/txt-record&gt;<br />
	&nbsp; &lt;/service&gt;<br />
	&nbsp; &lt;service&gt;<br />
	&nbsp;&nbsp;&nbsp; &lt;type&gt;_device-info._tcp&lt;/type&gt;<br />
	&nbsp;&nbsp;&nbsp; &lt;port&gt;548&lt;/port&gt;<br />
	&nbsp;&nbsp;&nbsp; &lt;txt-record&gt;model=TimeCapsule&lt;/txt-record&gt;<br />
	&nbsp; &lt;/service&gt;<br />
	&lt;/service-group&gt;</div>
<p>Then you want to advertise your TimeMachine shares specifically so they can be used and seen from the TimeMachine prefPane and the TimeMachine restore application from the (Snow) Leopard Installer DVD :</p>
<div class="codetitle">/etc/avahi/services/adisk.service</div>
<div class="codebox">&lt;?xml version=&quot;1.0&quot; standalone=&#39;no&#39;?&gt;<br />
	&lt;!DOCTYPE service-group SYSTEM &quot;avahi-service.dtd&quot;&gt;<br />
	&lt;service-group&gt;<br />
	&nbsp; &lt;name replace-wildcards=&quot;yes&quot;&gt;%h&lt;/name&gt;<br />
	&nbsp; &lt;service&gt; &nbsp;<br />
	&nbsp;&nbsp; &lt;type&gt;_adisk._tcp&lt;/type&gt;<br />
	&nbsp;&nbsp; &lt;port&gt;9&lt;/port&gt;<br />
	&nbsp;&nbsp; &lt;txt-record&gt;sys=waMA=00:1f:c6:ef:e2:20,adVF=0&times;100&lt;/txt-record&gt;<br />
	&nbsp;&nbsp; &lt;txt-record&gt;dk0=adVF=0xa1,adVN=TimeMachine Laptop,adVU=4ed1be04-64a1-4466-a2ed-b8d9ea6780a6&lt;/txt-record&gt;<br />
	&nbsp;&nbsp; &lt;txt-record&gt;dk1=adVN=someShare,adVU=54bc0654-c071-4092-b43c-782c1164bd91&lt;/txt-record&gt;<br />
	&nbsp; &lt;/service&gt;<br />
	&lt;/service-group&gt;</div>
<div class="codecomment">Just copy this service xml description and modify the share names to your share names in the AppleVolumes.default file, you can use your own UUIDs, these are just random, just make sure they are unique in your network (change a number e.g.)</div>
<p>Another advantage of this is you don&#39;t need to set the <code style="width: 886px;">TMShowUnsupportedNetworkVolumes</code> switch anymore.</p>
<p>&nbsp;</p>
<p>Make avahi start automatically as a service</p>
<div class="codebox"><code>svcadm enable multicast<br />
	svcadm enable avahi-bridge-dsd</code></div>
<p>If you have any problems with avahi autodiscovery &#8211; I had too. Restarting avahi-bridge does not seem to suffice after making configuration changes. You first have to refresh / restart multicast and then avahi-bridge like this :</p>
<div class="codebox"><code>svcadm restart multicast<br />
	svcadm restart avahi-bridge-dsd</code></div>
<p>&nbsp;</p>
<p><strong>References&nbsp; :</strong></p>
<p><a href="http://reh-anton.de/blog/2009/03/mac-dateibackup-server-mit-centos-5/">Mac-[Datei|Backup]-Server mit CentOS 5 | reh-anton.de</a><br />
	<a href="http://developer.apple.com/library/mac/#documentation/NetworkingInternetWeb/Conceptual/TimeMachineNetworkInterfaceSpecification/TimeMachineRequirements/TimeMachineRequirements.html">Apple Time Machine Network Interface Specification</a><br />
	<a href="http://roussell.net/blog/build-your-own-linux-time-machine-server/">Build your own Linux Time Machine Server | Terry&#39;s Tech Blog</a> <a href="http://www.nexenta.org/projects/site/wiki/AFP_with_TimeMachine"><br />
	Nexenta Project &#8211; AFP with TimeMachine &#8211; The Nexenta Project</a> <a href="http://marc.info/?l=netatalk-devel&amp;m=126400002216438"><br />
	&#39;[Netatalk-devel] Avahi and Time Machine&#39; &#8211; MARC</a><br />
	<a href="http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=50&amp;t=913&amp;start=100#p17713">FreeNAS forum &bull; View topic &#8211; Time Machine</a> <a href="http://www.tek-ops.com/archives/20"><br />
	tek-ops &raquo; Blog Archive &raquo; AppleTalk on Solaris (AFP)</a></p>
<p>&nbsp;</p>
<p>If you have any suggestions, improvements or corrections leave a comment or drop me an email.</p>
]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=494</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mating Tunnelblick with TimeMachine, Growl and the Nameservers</title>
		<link>http://marcoschuh.de/wp/?p=680</link>
		<comments>http://marcoschuh.de/wp/?p=680#comments</comments>
		<pubDate>Sat, 04 Dec 2010 11:27:06 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[cocoa]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Time Machine]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=680</guid>
		<description><![CDATA[Introduction Quick Start TMMenuIconReloader Introduction Tunnelblick using OpenVPN is imho the best solution for making VPN connections on Macs, and I have been using it for years &#8230; It&#39;s relatively easy to set up, very extensible and OpenSource. However there always have been some small improvements I wanted to have such as : &#187; TimeMachine [...]]]></description>
			<content:encoded><![CDATA[<div class="project_subnav">
	<div class="subnav_ele" onclick="window.location.href=&quot;#introduction&quot;">Introduction</div>
	<div class="subnav_ele" onclick="window.location.href=&quot;#quick&quot;">Quick Start</div>
	<div class="subnav_ele" onclick="window.location.href=&quot;#tmmir&quot;">TMMenuIconReloader</div>
</div>
<p><a name="introduction">Introduction</a><br />
	<img alt="" class="alignleft size-full wp-image-704" height="55" src="http://marcoschuh.de/wp/wp-content/uploads/2010/12/Tunnelblick.png" style="margin: 20px;" title="Tunnelblick" width="55" /><br />
	Tunnelblick using OpenVPN is imho the best solution for making VPN connections on Macs, and I have been using it for years &#8230;<br />
	It&#39;s relatively easy to set up, very extensible and OpenSource.</p>
<p>However there always have been some small improvements I wanted to have such as :</p>
<p>&raquo; <strong>TimeMachine not always starting, </strong>while I am on the road and have my bridged tunnel open to home &#8211; TimeMachine starts and backs up recent changes to my home server. This saturates the line and on most connections just isn&#39;t feasible to even backup 20 MB without having to pause other work that goes over the tunnel. So I had to manually turn it off and on all the time &#8211; very annoying.</p>
<p><img alt="" class="alignright size-full wp-image-712" height="78" src="http://marcoschuh.de/wp/wp-content/uploads/2010/12/TB_Growl-1.png" style="margin: 15px;" title="TB_Growl-1" width="290" /> &raquo; <strong>Growl Notifications</strong> on connection und disconnection events. I like Growl very much, it&#39;s informative, unobtrusive and very costumizable. And even though there exists<a href="http://code.google.com/p/tunnelblick/issues/detail?id=87"> a patch</a> for Tunnelblick which integrates Growl support &#8211; it was unfortunately not included in the main branch &#8211; so I had always to repatch and recompile every new tunnelblick version I wanted to use &#8211; very annoying too &#8230;</p>
<p>&raquo; <strong>Setting my nameserver</strong> to the one inside my home network, so I can access all my ressources via the internal domain name (such as xyz.local) .</p>
<p>I looked through the available options for implementing this stuff and figured out it would be the best (read : simple) solution to use the integrated up and down script features of OpenVPN.<br />
	Most stuff was only poking through the docs, but one thing was a hard nut, if I changed the TimeMachine preferences, the MenuIcon would not reflect that, because it hasn&#39;t been notified &#8230; Funnily even if you change it in the TimeMachine PrefPane it doesn&#39;t update correctly for me (10.6.5).</p>
<p><span id="more-680"></span></p>
<p><a name="quick"><strong>Quick Setup Instructions</strong></a></p>
<hr />
<p>Prerequisites : <a href="http://code.google.com/p/tunnelblick/">Tunnelblick</a> (obviously). <strong><span style="color: rgb(178, 34, 34);">This script packages makes use of brand new features of Tunnelblick, which at the time of writing this are only available in svn </span><a href="http://code.google.com/p/tunnelblick/source/list"><span style="color: rgb(178, 34, 34);">&gt; r1235</span></a><span style="color: rgb(178, 34, 34);"> , this means you&#39;ll have to compile tunnelblick yourself from svn &#8211; the next beta release of Tunnelblick should included this feature and is scheduled at approx. Jan &#8211; Feb 2011.</span></strong> If you want Growl notifications to work you need to have &quot;growlnotify&quot; installed which you can find in the <a href="http://growl.info/">Growl distribution disk image</a> (Extras -&gt; growlnotify).</p>
<p>1. Download the <a href="http://marcoschuh.de/wp/wp-content/uploads/2010/12/tb_up_down_1.2.zip">tb_up_down.zip</a> archive and extract it to a folder of your choice. In this folder you should find 2 subfolders : &quot;TMMenuIconReloader&quot; (Source code of the TimeMachine MenuIcon Reloader) and &quot;tb_up_down_scripts&quot;. Get into &quot;tb_up_down_scripts&quot; and there you&#39;ll find 2 files (TMMenuIconReloader, YourConnectionName.tblk )<br />
	<em> </em></p>
<p>2. Copy the file &quot;TMMenuIconReloader&quot; to /Users/YOUR_USERNAME/Library/openvpn/ .<br />
	<em>TMMenuIconReloader is program I wrote, which reloads the TimeMachine MenuIcon after configuration changes. The said file is a universal binary, so you don&#39;t have to compile it yourself &#8211; but the source code is included too. If you want to know more about &quot;TMMenuIconReloader&quot; <a href="post.php?post=680&amp;action=edit#tmmir">jump here</a> &#8211; else continue with the instructions.</em></p>
<p>3. Right click on the &quot;file&quot; &quot;YourConnectionName.tblk&quot; and click on &quot;Show packages Contents&quot;, a new window should pop up &#8211; navigate down the folders Contents -&gt; Resources.</p>
<p>4. Copy your hopefully already working Tunnelblick configuration file for the appropriate connection e.g. &quot;example.conf&quot; or &quot;example.ovpn&quot; from &quot;/Users/YOUR_USERNAME/Library/openvpn/&quot; into the Resource folder of &quot;YourConnectionName.tblk&quot; (you can simply drag and drop the file in the Finder).</p>
<p>5. Rename the configuration file to config.ovpn !!! (Check it ends on .ovpn). Then you can close that Finder window.</p>
<p>6. Rename the file &quot;YourConnectionName.tblk&quot; to the Name you desire your connection to have.</p>
<p>7. Double-click the file, and Tunnelblick will ask you to install this configuration, I recommend installing it for &quot;this User&quot; only.</p>
<p>8. Done &#8211; you should have Growl Notifications and TimeMachine awareness with Tunnelblick.</p>
<p><em>If you want the scripts not to perform some of the features, just edit the the *connect*.sh&nbsp; files in the Resources folder of the .tblk Bundle and comment out any unwanted actions with an &quot;#&quot; in front of the line. By default setting nameservers is disabled, you can obviously enable it by uncommenting the feature.</em></p>
<hr />
<h2>&nbsp;</h2>
<h2><a name="releases">Changelog</a></h2>
<div style="margin-left: 30px; margin-top: 10px;">
	<div><b>1.2 [15.12.2010]</b><br />
		&raquo; renamed and added new scripts to conform to new tunnelblick .tblk package script capatibilites introduced in Tunnelblick <a href="http://code.google.com/p/tunnelblick/source/detail?r=1227">r1227</a> and <a href="http://code.google.com/p/tunnelblick/source/detail?r=1231">r1231</a><br />
		&raquo; updated to new (notification based) reloader and made it hopefully 10.4 compatible</div>
	<p>&nbsp;</p>
	<div><b>1.1 [08.12.2010]</b><br />
		&raquo; Moved from OpenVPN up/down scripts to Tunnelblick .tblk packages and pre-connect / post-disconnect actions<br />
		&raquo; Enhanced security by using Tunnelblicks automatic script protection inside the .tblk Bundle<br />
		&raquo; Enhanced security by executing TMMenuIconReloader as user with non-root privilidges</div>
	<p>&nbsp;</p>
	<div><b>1.0 [04.12.2010]</b><br />
		Initial Release</div>
</div>
<p>&nbsp;</p>
<p><a name="tmmir"><br />
	</a></p>
<h2><a name="tmmir">TMMenuIconReloader</a></h2>
<p><img alt="" class="alignleft size-full wp-image-716" height="21" src="http://marcoschuh.de/wp/wp-content/uploads/2010/12/TM_MenuIconVS.png" style="margin: 8px;" title="TM_MenuIconVS" width="100" />TMMenuIconReloader is a small command line utility, which does nothing more, than send an Notification to the MenuIcon to reload the TimeMachine configuration &#8211; it works quite well for me &#8211; but was really hard to figure out <img src='http://marcoschuh.de/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> <br />
	<em>Previous version of this utility un/reloaded the TMMenuExtra, but the new approach is much better.</em></p>
<p><img alt="" class="alignright size-full wp-image-711" height="61" src="http://marcoschuh.de/wp/wp-content/uploads/2010/12/TMMenuIconReloader.jpg" style="margin: 10px;" title="TMMenuIconReloader" width="315" /> Anyhow this small utility is free to use at your own risk (see LICENSE.TXT in the Distribution) &#8230;&nbsp; you will find the source code and a precompiled&nbsp; binary <a href="http://marcoschuh.de/wp/wp-content/uploads/2010/12/tb_up_down_1.2.zip">inside the script package.</a></p>
<p>Let me know how you think about it in the comments or drop me an email.</p>
]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=680</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Easytag Build for OSX &#8211; alpha3 released</title>
		<link>http://marcoschuh.de/wp/?p=673</link>
		<comments>http://marcoschuh.de/wp/?p=673#comments</comments>
		<pubDate>Fri, 07 May 2010 10:49:34 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[EasyTAG]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=673</guid>
		<description><![CDATA[Rebuild and repackaged my easytag build : alpha3. Now it seems to finally support 10.4 and 10.5 on Intel Macs &#8211; I have received very positive feedback. For the technical interested : It is some dyld Load command issue, somehow the loader command LC_DYLD_INFO was incorporated in my libwavepack.dylib even though I think I passed [...]]]></description>
			<content:encoded><![CDATA[Rebuild and repackaged my easytag build : alpha3. Now it seems to finally support 10.4 and 10.5 on Intel Macs &#8211; I have received very positive feedback.

For the technical interested :

It is some dyld Load command issue, somehow the loader command LC_DYLD_INFO was incorporated in my libwavepack.dylib even though I think I passed the correct compile and linker options via Deployment Target and Min Version to libwavepack … the other libraries work fine with the same options, but perhaps it was only stupid me …
Whatever, for the moment libwavpack has been removed &#8211; the rest works now well with 10.4 and 10.5 – I try to figure wavepack out some time.

<br /> &nbsp;<span />

<a href ="http://marcoschuh.de/wp/?page_id=411#downloads">Go get it</a>]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=673</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easytag Build for OSX &#8211; alpha 2 released</title>
		<link>http://marcoschuh.de/wp/?p=658</link>
		<comments>http://marcoschuh.de/wp/?p=658#comments</comments>
		<pubDate>Sun, 25 Apr 2010 16:52:39 +0000</pubDate>
		<dc:creator>marco</dc:creator>
				<category><![CDATA[EasyTAG]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://marcoschuh.de/wp/?p=658</guid>
		<description><![CDATA[Updated my easytag build. I fixed some minor quirks which resulted from the original code not being build for Mac OSX and usage inside an Mac App Bundle. I also rebuild my complete toolchain and all the libs with new min-target deployment options so you guys with Panther and Leopard can use it too. So [...]]]></description>
			<content:encoded><![CDATA[Updated my easytag build. I fixed some <a href="http://marcoschuh.de/wp/?page_id=411#releases">minor quirks</a> which resulted from the original code not being build for Mac OSX and usage inside an Mac App Bundle.
I also rebuild my complete toolchain and all the libs with new min-target deployment options so you guys with Panther and Leopard can use it too.  <del datetime="2010-04-26T13:35:11+00:00">So it should work now under 10.4 and 10.5 too</del> &#8211; I need your feedback, so please download and test it.

<br /> &nbsp;<span />

<strong>Update</strong> : Unfortunatly the new build doesn&#8217;t work under 10.4 and 10.5 &#8211; but continues to work under 10.6. I will try and look into this &#8230;

<br /> &nbsp;<span />

<a href ="http://marcoschuh.de/wp/?page_id=411#downloads">Go get it</a>]]></content:encoded>
			<wfw:commentRss>http://marcoschuh.de/wp/?feed=rss2&#038;p=658</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

