<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>/etc/scotbofh</title>
	<atom:link href="http://scotbofh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://scotbofh.wordpress.com</link>
	<description>Jon Cowie&#039;s blog</description>
	<lastBuildDate>Tue, 01 Sep 2009 14:47:11 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='scotbofh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3a398f1f42daef55e8dc7eb597854195?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>/etc/scotbofh</title>
		<link>http://scotbofh.wordpress.com</link>
	</image>
			<item>
		<title>Garden Renovation &#8211; De-weeding Part 1</title>
		<link>http://scotbofh.wordpress.com/2009/09/01/garden-renovation-de-weeding-part-1/</link>
		<comments>http://scotbofh.wordpress.com/2009/09/01/garden-renovation-de-weeding-part-1/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 14:46:28 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[garden]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/?p=29</guid>
		<description><![CDATA[So the first stage of making our little garden suitable for barbeques, parties and general fun type activities was to clear all of the weeds and thorns, plus pruning back some of the more over enthuiastic trees.
It took around 4 hours to get from the last photos to those you see below, and the work [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=29&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So the first stage of making our little garden suitable for barbeques, parties and general fun type activities was to clear all of the weeds and thorns, plus pruning back some of the more over enthuiastic trees.</p>
<p>It took around 4 hours to get from the last photos to those you see below, and the work had the added bonus of revealing a hidden path lurking under the gravel! It turns out that a few years ago, the entire garden had been covered with industrial plastic sheeting and gravel without removing any of the original features. So, while pulling up weeds (with shallow roots, thanks to the plastic covering) I happened across the path you see below, along with what could either be a flower bed or a border for a rotary dryer. Either way, it was a rather pleasant surprise, and helped my plans of putting a path running across to the shed along very nicely indeed!</p>
<p>The end result of the day&#8217;s work was around 8 garden sacks full of brutal rose bushes, tangled ivy-weed type combinations and those parts of the trees which didn&#8217;t get out of my way quickly enough. The only trees I left un-pruned were the apple and pear trees which you can see at the right hand side of the shed. They&#8217;re kinda pretty and heavy with fruit so I thought I&#8217;d leave them be until I can build a bootleg cider factory in the shed. For those of you reading who are oblivious to such things, that was a joke. Although we also found a pear which looked exactly like a bum. True story!</p>
<p>There are many plans now running through my brain for what to do next, listed below in no particular order:</p>
<ul>
<li>Repaint or stain the shed. I don&#8217;t like the existing blue colour.</li>
<li>Lay a patio at the house end of the garden to extend the existing concrete slab you can just see at the lower edge of the pictures</li>
<li>Outline some flower beds and border them in brick or the like</li>
<li>Maybe make a gravel bed or two</li>
<li>Get rid of the bulk of the gravel and lay down turf. This might have to wait until next year tho, seems a bit late in the year for turfing tho will investigate &#8211; never done it before!!</li>
<li>Find plant for flower beds which cannot be killed by two people with not one green finger between them.</li>
</ul>
<p>Watch this space!</p>

<a href='http://scotbofh.wordpress.com/2009/09/01/garden-renovation-de-weeding-part-1/img00030-20090831-1658/' title='IMG00030-20090831-1658'><img width="112" height="150" src="http://scotbofh.files.wordpress.com/2009/09/img00030-20090831-1658.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="" title="IMG00030-20090831-1658" /></a>
<a href='http://scotbofh.wordpress.com/2009/09/01/garden-renovation-de-weeding-part-1/img00028-20090831-1651/' title='IMG00028-20090831-1651'><img width="112" height="150" src="http://scotbofh.files.wordpress.com/2009/09/img00028-20090831-1651.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="" title="IMG00028-20090831-1651" /></a>

  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=29&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2009/09/01/garden-renovation-de-weeding-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>
	</item>
		<item>
		<title>Garden Renovation &#8211; The Beginning!</title>
		<link>http://scotbofh.wordpress.com/2009/09/01/garden-renovation-the-beginning/</link>
		<comments>http://scotbofh.wordpress.com/2009/09/01/garden-renovation-the-beginning/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 14:45:04 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[garden]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/?p=22</guid>
		<description><![CDATA[Since i never write anything technical on this blog any more, I thought instead that I&#8217;d use the space to blog about my garden renovation. I&#8217;ve recently moved into a flat with my lovely girlfriend, which includes a rather overgrown garden. My task for this last bank holiday weekend was to vanquish the mass of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=22&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Since i never write anything technical on this blog any more, I thought instead that I&#8217;d use the space to blog about my garden renovation. I&#8217;ve recently moved into a flat with my lovely girlfriend, which includes a rather overgrown garden. My task for this last bank holiday weekend was to vanquish the mass of weeds and thorns, with the eventual aim of restoring the garden to nice pretty loveliness. So, to start the story, here we go with the obligatory &#8220;before&#8221; pictures. One&#8217;s taken from the kitchen window which overlooks the garden, and the other is taken as you enter the garden, looking in the same direction. I&#8217;ll update with new posts as progress is made, with pics of course.</p>

<a href='http://scotbofh.wordpress.com/2009/09/01/garden-renovation-the-beginning/img00024-20090831-1142/' title='IMG00024-20090831-1142'><img width="112" height="150" src="http://scotbofh.files.wordpress.com/2009/09/img00024-20090831-1142.jpg?w=112&#038;h=150" class="attachment-thumbnail" alt="" title="IMG00024-20090831-1142" /></a>
<a href='http://scotbofh.wordpress.com/2009/09/01/garden-renovation-the-beginning/img00026-20090831-1157/' title='IMG00026-20090831-1157'><img width="150" height="112" src="http://scotbofh.files.wordpress.com/2009/09/img00026-20090831-1157.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="" title="IMG00026-20090831-1157" /></a>

  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=22&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2009/09/01/garden-renovation-the-beginning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>
	</item>
		<item>
		<title>Produce a members report for all your Mailman lists</title>
		<link>http://scotbofh.wordpress.com/2008/10/14/produce-a-members-report-for-all-your-mailman-lists/</link>
		<comments>http://scotbofh.wordpress.com/2008/10/14/produce-a-members-report-for-all-your-mailman-lists/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 15:13:43 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/?p=14</guid>
		<description><![CDATA[I recently had cause to produce a report on the membership of all our Mailman mailing lists, so rather than doing it manually I knocked together the following handy bash script&#8230;change mailman location and output file as desired  
OUTPUTFILE="/tmp/mailman_report"
CURRMONTH=`date +%m-%Y`
LISTS=`/usr/local/mailman/bin/list_lists  &#124; awk '{print $1}' &#124; grep -v [!0-9]`
rm ${OUTPUTFILE}
echo "Mailman Report for ${CURRMONTH}" &#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=14&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently had cause to produce a report on the membership of all our Mailman mailing lists, so rather than doing it manually I knocked together the following handy bash script&#8230;change mailman location and output file as desired <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre>OUTPUTFILE="/tmp/mailman_report"</pre>
<pre>CURRMONTH=`date +%m-%Y`</pre>
<pre>LISTS=`/usr/local/mailman/bin/list_lists  | awk '{print $1}' | grep -v [!0-9]`</pre>
<pre>rm ${OUTPUTFILE}</pre>
<pre>echo "Mailman Report for ${CURRMONTH}" &gt; ${OUTPUTFILE}</pre>
<pre>echo &gt;&gt; ${OUTPUTFILE}</pre>
<pre>for x in ${LISTS}</pre>
<pre>do</pre>
<pre>        echo "Members of List ${x}:" &gt;&gt; ${OUTPUTFILE}</pre>
<pre>        LIST_MEMBERS=`/usr/local/mailman/bin/list_members ${x}`</pre>
<pre>        for mems in ${LIST_MEMBERS}</pre>
<pre>        do</pre>
<pre>                echo ${mems} &gt;&gt; ${OUTPUTFILE}</pre>
<pre>        done</pre>
<pre>echo &gt;&gt; ${OUTPUTFILE}</pre>
<pre>done</pre>
<pre>/bin/mail -s "Mailman_Report_for_${CURRMONTH}" foo@foo.com -c blah@blah.com &lt; ${OUTPUTFILE}</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=14&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2008/10/14/produce-a-members-report-for-all-your-mailman-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>
	</item>
		<item>
		<title>Shared Network Storage with iSCSI and OCFS2</title>
		<link>http://scotbofh.wordpress.com/2008/06/07/shared-network-storage-with-iscsi-and-ocfs2/</link>
		<comments>http://scotbofh.wordpress.com/2008/06/07/shared-network-storage-with-iscsi-and-ocfs2/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 17:31:05 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/?p=13</guid>
		<description><![CDATA[So we got a bunch of new hardware at work recently to build a crunch farm for all our heavyweight data processing. Part of that system is two very beefy servers which share a SAN (This one for those interested) for the majority of their disk storage. The SAN uses iSCSI, which was fairly straightforward [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=13&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So we got a bunch of new hardware at work recently to build a crunch farm for all our heavyweight data processing. Part of that system is two very beefy servers which share a SAN (<a href="http://www.dell.com/content/topics/topic.aspx/global/products/pvaul/topics/en/us/pvaul_md3000i_landing?c=us&amp;l=en&amp;s=gen">This one for those interested</a>) for the majority of their disk storage. The SAN uses iSCSI, which was fairly straightforward to set up (I&#8217;ll document it here anyway) so I got that all set up and then made a nice big ext3 partition for the servers to share. All so far so good, the servers were talking to the SAN, could see the partition, read and write to it etc. The only problem seemed to be that when one server changed a file, the other server wouldn&#8217;t pick up the change until the partition had been re-mounted. What I hadn&#8217;t accounted for was that ext3 doesn&#8217;t expect multiple machines to share the same block device so it wasn&#8217;t synching changes.</p>
<p>I knew that filesystems designed for exactly this sort of sharing were available but hadn&#8217;t done much with them but after investigating for a bit, it seemed like the Oracle Clustered File System (<a href="http://oss.oracle.com/projects/ocfs2/">linky</a>) was the best option as it was already supported by the Linux kernel and was pretty mature code. The main problem I had in setting all of this up was that the available documentation was very much geared towards people who already had in-depth experience of OCFS whereas I&#8217;d never used it before.  Hence this blog post, which details setting up iSCSI and then configuring both servers to talk to the same OCFS partition. The instructions are written for Ubuntu Server, but will work on any distro which used apt. Packages are also available for rpm distros, the only instructions you need to change are the package fetching ones.</p>
<p><strong>Setting up iSCSI</strong></p>
<p>* Install Open-iSCSI</p>
<pre>
<blockquote>apt-get install open-iscsi</blockquote>
</pre>
<p>* Edit the Open-iSCSI configuration file</p>
<p>The default configuration file could be located at /etc/openiscsi/iscsid.conf or ~/.iscsid.conf. Open the file and set the parameters as required by your iSCSI device. I&#8217;ve included the (mostly default) options I used for reference</p>
<pre>
<blockquote>
node.startup = automatic
node.session.timeo.replacement_timeout = 120
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.noop_out_interval = 10
node.conn[0].timeo.noop_out_timeout = 15
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.conn[0].iscsi.MaxRecvDataSegmentLength = 65536
</blockquote>
</pre>
<p>* Save and close the file. Restart the open-iscsi service:</p>
<pre>
<blockquote>/etc/init.d/open-iscsi restart</blockquote>
</pre>
<p>Now you need to run a discovery against the iscsi target host which basically finds all the iSCSI targets the SAN can give us:</p>
<pre>
<blockquote>iscsiadm -m discovery -t sendtargets -p ISCSI-SERVER-IP-ADDRESS</blockquote>
</pre>
<p>Finally restart the service again:</p>
<pre>
<blockquote>/etc/init.d/open-iscsi restart</blockquote>
</pre>
<p>Now you should see an additional drive on the system such as /dev/sdc. Look in the /var/log/messages file to find out device name:</p>
<p>Next, you need to use fdisk to create a blank partition on the device. This is pretty well documented so I&#8217;ll skip these steps, other than to say that I&#8217;ll assume the device was called /dev/sdc, and the new blank partition is called /dev/sdc1 for the remainder of this post. So now we&#8217;re talking to our iSCSI device and we&#8217;ve got a blank partition all ready to format as an OCFS drive. Next, how exactly we do that!</p>
<p>To be continued&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/scotbofh.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/scotbofh.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=13&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2008/06/07/shared-network-storage-with-iscsi-and-ocfs2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating DMG Files Without MacOS X</title>
		<link>http://scotbofh.wordpress.com/2008/04/02/creating-dmg-files-without-macos-x/</link>
		<comments>http://scotbofh.wordpress.com/2008/04/02/creating-dmg-files-without-macos-x/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 17:38:47 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/?p=11</guid>
		<description><![CDATA[I&#8217;ve put together a script for creating DMG files without using OS X&#8230;it requires Linux, I&#8217;ve tested it on Kubuntu 7.10 but it should work on anything recent. The process will also be Wiki&#8217;d, but in the meantime, instructions are below for the curious!
Run the following commands:
# This gets and builds a patched version of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=11&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve put together a script for creating DMG files without using OS X&#8230;it requires Linux, I&#8217;ve tested it on Kubuntu 7.10 but it should work on anything recent. The process will also be Wiki&#8217;d, but in the meantime, instructions are below for the curious!</p>
<p>Run the following commands:</p>
<pre># This gets and builds a patched version of Apple's diskdev_cmds package which will work on Linux
wget <a href="http://www.mythic-beasts.com/resources/appletv/mb_boot_tv/diskdev_cmds-332.14.tar.gz" class="moz-txt-link-freetext">http://www.mythic-beasts.com/resources/appletv/mb_boot_tv/diskdev_cmds-332.14.tar.gz</a>
wget <a href="http://www.ecl.udel.edu/%7Emcgee/diskdev_cmds/diskdev_cmds-332.14.patch.bz2" class="moz-txt-link-freetext">http://www.ecl.udel.edu/~mcgee/diskdev_cmds/diskdev_cmds-332.14.patch.bz2</a>
tar xzf diskdev_cmds-332.14.tar.gz
bunzip2 -c diskdev_cmds-332.14.patch.bz2 | patch -p0
cd diskdev_cmds-332.14
make -f Makefile.lnx

# Create symlinks to the mkfs and fsck commands for HFS+
sudo cp newfs_hfs.tproj/newfs_hfs /sbin/mkfs.hfsplus
sudo cp fsck_hfs.tproj/fsck_hfs /sbin/fsck.hfsplus

# Get and enable the hfsplus kernel module
sudo apt-get install hfsplus
sudo modprobe hfsplus

<font face="sans-serif">Now that's done, you can use the following handy bash script (must be run as root) I've written to create a DMG file which contains the contents of a directory you specify on the command line.
<font face="Courier New, Courier, monospace" size="-1">
</font></font>#!/bin/bash

# DMG Creation Script
# Usage: makedmg &lt;imagename&gt; &lt;imagetitle&gt; &lt;imagesize (MB)&gt; &lt;contentdir&gt;
#
# imagename: The output file name of the image, ie foo.dmg
# imagetitle: The title of the DMG File as displayed in OS X
# imagesize: The size of the DMG you're creating in MB (Blame Linux for the fixed size limitation!!)
# contentdir: The directory containing the content you want the DMG file to contain
#
# Example: makedmg foo.dmg "Script Test" 50 /home/jon/work/scripts/content
#
# Author: Jon Cowie
# Creation Date: 02/04/2008

if [ ! $# == 4 ]; then
	echo "Usage: makedmg &lt;imagename&gt; &lt;imagetitle&gt; &lt;imagesize (MB)&gt; &lt;contentdir&gt;"
else
	OUTPUT=$1
	TITLE=$2
	FILESIZE=$3
	CONTENTDIR=$4
	USER=`whoami`
	TMPDIR="/tmp/dmgdir"

	if [ ${USER} != "root" ]; then
		echo "makedmg must be run as root!"
	else
		echo "Creating DMG File..."
		dd if=/dev/zero of=${OUTPUT} bs=1M count=$FILESIZE
		mkfs.hfsplus -v "${TITLE}" ${OUTPUT}

		echo "Mounting DMG File..."
		mkdir -p ${TMPDIR}
		mount -t hfsplus -o loop ${OUTPUT} ${TMPDIR} 

		echo "Copying content to DMG File..."
		cp -R ${CONTENTDIR}/* ${TMPDIR}

		echo "Unmounting DMG File..."
		umount ${TMPDIR}
		rm -rf ${TMPDIR}

		echo "All Done!"
	fi
fi<font face="sans-serif"></font>
<font face="sans-serif">
</font></pre>
<p>Hope it&#8217;s useful!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/scotbofh.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/scotbofh.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=11&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2008/04/02/creating-dmg-files-without-macos-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>
	</item>
		<item>
		<title>Jings, Crivvens and Help M&#8217;Boab!</title>
		<link>http://scotbofh.wordpress.com/2008/02/25/scotipedia/</link>
		<comments>http://scotbofh.wordpress.com/2008/02/25/scotipedia/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 13:46:58 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[Fluff]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/?p=10</guid>
		<description><![CDATA[Yon chils at Wikipedia hev pit up a Scots vershun o&#8217; the site&#8230;&#8217;er isnae &#8216;at mich on ee noo but wit is there is bonnie &#8216;an guid&#8230;ah&#8217;m sure ee bonnie lads and lassies north o &#8216;ee border will fix &#8216;at richt quick!
Ee Link
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=10&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yon chils at Wikipedia hev pit up a Scots vershun o&#8217; the site&#8230;&#8217;er isnae &#8216;at mich on ee noo but wit is there is bonnie &#8216;an guid&#8230;ah&#8217;m sure ee bonnie lads and lassies north o &#8216;ee border will fix &#8216;at richt quick!</p>
<p><a href="http://sco.wikipedia.org/wiki/Main_Page">Ee Link</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/scotbofh.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/scotbofh.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=10&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2008/02/25/scotipedia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>
	</item>
		<item>
		<title>Groovy Virtualisation Hardware</title>
		<link>http://scotbofh.wordpress.com/2008/02/25/groovy-virtualisation-hardware/</link>
		<comments>http://scotbofh.wordpress.com/2008/02/25/groovy-virtualisation-hardware/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 11:47:06 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[Hardware Tech]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/?p=9</guid>
		<description><![CDATA[I came across some interesting news today (Linky) that said Neterion is releasing a fairly hardcore network card designed for offloading VM Network management from the Hypervisor. I think this has the potential to be quite an interesting field in the future&#8230;in small scale Virtualisation deployments it&#8217;s not such a big deal that the Hypervisor [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=9&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I came across some interesting news today (<a href="http://www.theregister.co.uk/2008/02/25/neterion_vmworld/">Linky</a>) that said Neterion is releasing a fairly hardcore network card designed for offloading VM Network management from the Hypervisor. I think this has the potential to be quite an interesting field in the future&#8230;in small scale Virtualisation deployments it&#8217;s not such a big deal that the Hypervisor has to do all the legwork for IO, but when you scale up to much larger deployments, network IO has the potential to be a significant bottleneck. You can mitigate this somewhat by utilising the physical network card, but this in turn shifts the load onto the host OS. It should be interesting to see in future what else hardware manufacturers come up with along similar lines: VM aware disk &amp; memory controllers, for example&#8230;Intel have already made strides towards VM aware CPUs with VT as well.</p>
<p>Being a rather geeky type, I&#8217;m quite excited to see what all these clever hardware types come up with in the next few years&#8230;wouldn&#8217;t it be nice to be able to buy a server full of VM aware kit which lets you run multiple VMs as quickly as if you were using just one host OS? I can&#8217;t see virtualisation going away any time soon, it&#8217;s just too damn useful &#8211; so I reckon this might be something just around the corner.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/scotbofh.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/scotbofh.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=9&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2008/02/25/groovy-virtualisation-hardware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>
	</item>
		<item>
		<title>Funky $PS1 Script</title>
		<link>http://scotbofh.wordpress.com/2008/02/20/funky-ps1-script/</link>
		<comments>http://scotbofh.wordpress.com/2008/02/20/funky-ps1-script/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 12:03:59 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/2008/02/20/funky-ps1-script/</guid>
		<description><![CDATA[I happened across a really cool script for doing some clever stuff with your Bash prompt&#8230;.check out the link, and if you like it then sling it into your .bashrc file   Clicky&#8230;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=6&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I happened across a really cool script for doing some clever stuff with your Bash prompt&#8230;.check out the link, and if you like it then sling it into your .bashrc file <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <a href="http://pastebin.com/m64be26a5">Clicky&#8230;</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/scotbofh.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/scotbofh.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=6&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2008/02/20/funky-ps1-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>
	</item>
		<item>
		<title>New Start</title>
		<link>http://scotbofh.wordpress.com/2008/02/20/new-start/</link>
		<comments>http://scotbofh.wordpress.com/2008/02/20/new-start/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 12:00:14 +0000</pubDate>
		<dc:creator>scotbofh</dc:creator>
				<category><![CDATA[Fluff]]></category>

		<guid isPermaLink="false">http://scotbofh.wordpress.com/?p=3</guid>
		<description><![CDATA[So with my pending move to a Web 2.0 friendly company I thought I probably ought to start updating my blog, something I&#8217;ve been meaning to do for ages! I&#8217;m going to be working as a System Engineer for Trampoline Systems who are doing some very funky stuff to allow large organisations to enable more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=3&subd=scotbofh&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So with my pending move to a Web 2.0 friendly company I thought I probably ought to start updating my blog, something I&#8217;ve been meaning to do for ages! I&#8217;m going to be working as a System Engineer for <a href="http://www.trampolinesystems.com">Trampoline Systems</a> who are doing some very funky stuff to allow large organisations to enable more natural communication&#8230;the theory is that most organisations make humans try to communicate like computers, which stifles our natural instincts. Anyway, go check them out, it&#8217;s all very exciting! In other news, 8 days until I say bye-bye to the premium rate telephony sector.</p>
<p>And now for some stuff I like&#8230;</p>
<p><a href="http://www.opensuse.org" id="file-link-5" title="opensuse_3.gif" class="file-link image"><img src="http://scotbofh.files.wordpress.com/2008/02/opensuse_3.thumbnail.gif" /></a><a href="void(0)" id="file-link-5" title="opensuse_3.gif" class="file-link image">  			</a><a href="http://www.centos.org" id="file-link-4" title="Centos" class="file-link image"> 			 <img src="http://scotbofh.files.wordpress.com/2008/02/centos.thumbnail.png" alt="Centos" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/scotbofh.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/scotbofh.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scotbofh.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scotbofh.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scotbofh.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scotbofh.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scotbofh.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scotbofh.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scotbofh.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scotbofh.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scotbofh.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scotbofh.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scotbofh.wordpress.com&blog=923092&post=3&subd=scotbofh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scotbofh.wordpress.com/2008/02/20/new-start/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b90d45eb5af6fd653f4ed23ddac9384?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">scotbofh</media:title>
		</media:content>

		<media:content url="http://scotbofh.files.wordpress.com/2008/02/opensuse_3.thumbnail.gif" medium="image" />

		<media:content url="http://scotbofh.files.wordpress.com/2008/02/centos.thumbnail.png" medium="image">
			<media:title type="html">Centos</media:title>
		</media:content>
	</item>
	</channel>
</rss>