<?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>The Crane Has Landed &#187; Tools</title>
	<atom:link href="http://thecrane.wordpress.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecrane.wordpress.com</link>
	<description>But where is that?</description>
	<lastBuildDate>Sun, 01 Nov 2009 08:18:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='thecrane.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7e3c6b0b3543c6fb34728f9739ae5b76?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>The Crane Has Landed &#187; Tools</title>
		<link>http://thecrane.wordpress.com</link>
	</image>
			<item>
		<title>Great link for command line SAMBA</title>
		<link>http://thecrane.wordpress.com/2009/07/12/great-link-for-command-line-samba/</link>
		<comments>http://thecrane.wordpress.com/2009/07/12/great-link-for-command-line-samba/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 21:06:22 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/2009/07/12/great-link-for-command-line-samba/</guid>
		<description><![CDATA[I&#8217;m just discovering the usefulness of smbclient and this link has a great summary of the commands you can fire through this tool from the terminal.
Probably the most common one I need to do is to use the tarmode to copy whole folders down, like so:
tarmodelcd /tmp  #this switches the local directoryrecursepromptmget pdf995/  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=145&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m just discovering the usefulness of <code>smbclient</code> and <a href="http://learnlinux.tsf.org.za/courses/build/net-admin/ch08s02.html" target="_blank">this link</a> has a great summary of the commands you can fire through this tool from the terminal.</p>
<p>Probably the most common one I need to do is to use the <code>tarmode</code> to copy whole folders down, like so:</p>
<p><code><br />tarmode<br />lcd /tmp  #this switches the local directory<br />recurse<br />prompt<br />mget pdf995/  #this recurses and tars the pdf995 remote directory and puts it in /tmp on the client<br /></code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=145&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2009/07/12/great-link-for-command-line-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Check multiple browsers</title>
		<link>http://thecrane.wordpress.com/2009/04/09/check-multiple-browsers/</link>
		<comments>http://thecrane.wordpress.com/2009/04/09/check-multiple-browsers/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 02:24:12 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/2009/04/09/check-multiple-browsers/</guid>
		<description><![CDATA[As one who does web development from time to time, Xenocode&#8217;s website is an absolute gem of a find!  The site allows you to virtualise and access all the major web browsers to check your code &#8211; for free!  Brilliant!   
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=83&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As one who does web development from time to time, <a href="http://www.xenocode.com/browsers/">Xenocode&#8217;s website</a> is an absolute gem of a find!  The site allows you to virtualise and access all the major web browsers to check your code &#8211; for free!  Brilliant!  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=83&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2009/04/09/check-multiple-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Synergy KVM</title>
		<link>http://thecrane.wordpress.com/2008/06/02/synergy-kvm/</link>
		<comments>http://thecrane.wordpress.com/2008/06/02/synergy-kvm/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 02:34:26 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=36</guid>
		<description><![CDATA[Another sweet find!  Synergy is a virtual KVM.  Basically, what this means is that you can control more than one machine&#8230;very useful when you have two machines side by side with separate monitors.  The uber-sweet nature of the sweetness is that it is open source and multi platform, so I can jump between my Windows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=36&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Another sweet find!  <a href="http://synergy2.sourceforge.net/" target="_blank">Synergy</a> is a virtual KVM.  Basically, what this means is that you can control more than one machine&#8230;very useful when you have two machines side by side with separate monitors.  The uber-sweet nature of the sweetness is that it is open source and multi platform, so I can jump between my Windows laptop and Ubuntu server with ease!  Sweeeeet!</p>
<p>To do this, download the synergy source from the link above and follow the instructions on the page.  I have it set so my laptop (primary machine) is the server, so I followed the simply Windows instructions to get that working.  For the Ubuntu clients, the tricky bit was to get it so that synergy automatically starts at the login screen.  To do this:</p>
<ol>
<li>Add the following to <code>/etc/gdm/Init/Default</code> before <code>sysmodmap=/etc/X11/Xmodmap</code>:
<pre>#Start the Synergy client for KVM switching
	SYNERGYC=`gdmwhich synergyc`
	if [ x$SYNERGYC != x ] ; then
			$SYNERGYC <strong>servername</strong>
	fi
</pre>
</li>
<li>Add the same to PreSession/Default before the setting of the background color.</li>
</ol>
<p>That pretty much does it I think.  <strong>NB: </strong>Hardy Heron seems to have some performance issues and you may need to manually run it as root instead.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrane.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrane.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=36&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2008/06/02/synergy-kvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Mounting over Samba (SMBFS)</title>
		<link>http://thecrane.wordpress.com/2008/02/24/mounting-over-samba-smbfs/</link>
		<comments>http://thecrane.wordpress.com/2008/02/24/mounting-over-samba-smbfs/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 01:24:08 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[note to self sharing files mount smbfs]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/?p=21</guid>
		<description><![CDATA[If you want to get one Ubuntu box talking to another and have the shares mounted, then this is what you do.
Say that Box1 has a Downloads folder that you&#8217;d like to have available on Box2.  Follow these steps:

On Box2, apt-get install smbfs
On Box2, create a mount point (e.g. /media/Downloads) and edit /etc/fstab.
 Add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=21&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you want to get one Ubuntu box talking to another and have the shares mounted, then this is what you do.</p>
<p>Say that Box1 has a Downloads folder that you&#8217;d like to have available on Box2.  Follow these steps:</p>
<ol>
<li>On Box2, apt-get install smbfs</li>
<li>On Box2, create a mount point (e.g. /media/Downloads) and edit <code>/etc/fstab</code>.</li>
<li> Add the line <code>//Box1/Downloads /media/Downloads smbfs credentials=/etc/samba/.cred-file,gid=users,dmask=775,uid=USERNAME 0 0</code></li>
<li>Create <code>/etc/samba/.cred-file</code> and add the lines:
<p>	<code>username=USERNAME<br />
	password=PASSWORD</code></p>
<p>obviously replacing with the correct values.</li>
<li><code>sudo mount -a</code></li>
</ol>
<p>You should be sorted.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrane.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrane.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=21&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2008/02/24/mounting-over-samba-smbfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing a driver using ndiswrapper</title>
		<link>http://thecrane.wordpress.com/2008/01/14/installing-a-driver-using-ndiswrapper/</link>
		<comments>http://thecrane.wordpress.com/2008/01/14/installing-a-driver-using-ndiswrapper/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 06:19:41 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[note to self Ubuntu ndiswrapper]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/2008/01/14/installing-a-driver-using-ndiswrapper/</guid>
		<description><![CDATA[Face it &#8211; at the time of writing this, Ubuntu still has rubbish support for wireless drivers.  Fortunately, you can use ndiswrapper to get it to wrap the Windows driver.  I&#8217;m too lazy to repost it all, but here&#8217;s the instructions.
Maybe one day I can delete this post?   
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=16&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Face it &#8211; at the time of writing this, Ubuntu still has rubbish support for wireless drivers.  Fortunately, you can use <code>ndiswrapper</code> to get it to wrap the Windows driver.  I&#8217;m too lazy to repost it all, but <a href="http://ubuntuforums.org/showthread.php?t=112526">here&#8217;s the instructions</a>.</p>
<p>Maybe one day I can delete this post?  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrane.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrane.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=16&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2008/01/14/installing-a-driver-using-ndiswrapper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>From FTP to disk using Midnight Commander</title>
		<link>http://thecrane.wordpress.com/2007/12/22/from-ftp-to-disk-using-midnight-commander/</link>
		<comments>http://thecrane.wordpress.com/2007/12/22/from-ftp-to-disk-using-midnight-commander/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 01:21:46 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/2007/12/22/from-ftp-to-disk-using-midnight-commander/</guid>
		<description><![CDATA[When using Midnight Commander (MC) in Linux, you can copy files and folders to and from an FTP account using FTPFS.  To do this, in MC, connect to the share by using:
cd /#ftp:username:password@server
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=9&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When using Midnight Commander (MC) in Linux, you can copy files and folders to and from an FTP account using FTPFS.  To do this, in MC, connect to the share by using:</p>
<p><code>cd /#ftp:username:password@server</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrane.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrane.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=9&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2007/12/22/from-ftp-to-disk-using-midnight-commander/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Cloning a VDI disk</title>
		<link>http://thecrane.wordpress.com/2007/11/26/cloning-a-vdi-disk/</link>
		<comments>http://thecrane.wordpress.com/2007/11/26/cloning-a-vdi-disk/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 08:04:48 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[clone vdi note to self virtual box snap shot]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/2007/11/26/cloning-a-vdi-disk/</guid>
		<description><![CDATA[When using VirtualBox, if you want to copy the virtual disk image (VDI), use the following command:
VBoxManage clonevdi source target
Simple as.  Except, it&#8217;s important to note that this will only clone the base image &#8211; i.e. without snapshots!  If you want to clone the current state image, you&#8217;ll have to remove the snapshots to collapse [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=8&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When using VirtualBox, if you want to copy the virtual disk image (VDI), use the following command:</p>
<p><code>VBoxManage clonevdi source target</code></p>
<p>Simple as.  Except, it&#8217;s important to note that this will only clone the base image &#8211; i.e. <u>without snapshots!</u>  If you want to clone the current state image, you&#8217;ll have to remove the snapshots to collapse them down into one image.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrane.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrane.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=8&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2007/11/26/cloning-a-vdi-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Tunnelling X output over SSH</title>
		<link>http://thecrane.wordpress.com/2007/11/14/tunnelling-x-output-over-ssh/</link>
		<comments>http://thecrane.wordpress.com/2007/11/14/tunnelling-x-output-over-ssh/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 08:58:06 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/2007/11/14/tunnelling-x-output-over-ssh/</guid>
		<description><![CDATA[This is a good one.  Since VNC is pretty slow over the internets, it may be better to have the NX nomachine server setup on your Ubuntu box, and then tunnel that X output directly over SSH.  To do that, make sure you have the checkbox set in the NX client to push all data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=7&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a good one.  Since VNC is pretty slow over the internets, it may be better to have the NX nomachine server setup on your Ubuntu box, and then tunnel that X output directly over SSH.  To do that, make sure you have the checkbox set in the NX client to push all data over SSL, and then tunnel port 22 on the server in question to 127.0.0.1.  Then connect to 127.0.0.1 and you should be in with a grin.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrane.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrane.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=7&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2007/11/14/tunnelling-x-output-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Resetting the default VNC server password from the command line</title>
		<link>http://thecrane.wordpress.com/2007/11/14/resetting-the-default-vnc-server-password-from-the-command-line/</link>
		<comments>http://thecrane.wordpress.com/2007/11/14/resetting-the-default-vnc-server-password-from-the-command-line/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 08:55:39 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/2007/11/14/resetting-the-default-vnc-server-password-from-the-command-line/</guid>
		<description><![CDATA[So, it turns out that Ubuntu 7.10 (Gutsy) comes with VNC installed by default.  If, however, you happen to be tunnelling in through SSH and you want to reset the password, there&#8217;s no command line command to do that directly.  So, you need to do the following:

Generate a new password in Base64.
Edit the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=6&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, it turns out that Ubuntu 7.10 (Gutsy) comes with VNC installed by default.  If, however, you happen to be tunnelling in through SSH and you want to reset the password, there&#8217;s no command line command to do that directly.  So, you need to do the following:</p>
<ol>
<li><a href="http://makcoder.sourceforge.net/demo/base64.php" title="Base 64 encoder">Generate a new password in Base64</a>.</li>
<li>Edit the <code>/home/&lt;userhomedir&gt;/.gconf/desktop/gnome/remote_access/%gconf.xml file</code></li>
<li>Paste your new comment at the line that reads <code>&lt;entry name="vnc_password"...</code></li>
<li>Done.</li>
</ol>
<p>Sorted.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrane.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrane.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=6&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2007/11/14/resetting-the-default-vnc-server-password-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
		<item>
		<title>Recovering a dead hard drive in Ubuntu</title>
		<link>http://thecrane.wordpress.com/2007/11/13/recovering-a-dead-hard-drive-in-ubuntu/</link>
		<comments>http://thecrane.wordpress.com/2007/11/13/recovering-a-dead-hard-drive-in-ubuntu/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 09:51:02 +0000</pubDate>
		<dc:creator>thecrane</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[note to self dead hard drive]]></category>

		<guid isPermaLink="false">http://thecrane.wordpress.com/2007/11/13/recovering-a-dead-hard-drive-in-ubuntu/</guid>
		<description><![CDATA[So, as my previous post outlined, I came to the realisation that this blog would be a good idea right about the time I started to hunt through the internets to fix my broken hard drive.
A recap &#8211; I booted up my Ubuntu (7.10 Gutsy Gibbo) box, only to have it come up with a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=5&subd=thecrane&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, as my previous post outlined, I came to the realisation that this blog would be a good idea right about the time I started to hunt through the internets to fix my broken hard drive.</p>
<p>A recap &#8211; I booted up my Ubuntu (7.10 Gutsy Gibbo) box, only to have it come up with a series of errors as fsck tried to locate bad inodes.  What appeared to have happened is that there were one or more bad sectors on my primary boot disk (a 200GB Seagate Barracuda) &#8211; sectors that happened to be right where Linux needed them to boot.</p>
<p>Booting into Ubuntu with a live CD only proved heartbreaking &#8211; the only other bad sectors on that disk were my photos!  Thousands of un-backed up images.  Let&#8217;s just say some choice phrases were used at this point.</p>
<p>A number of remedies were attempted, but the one that worked in the end was to take an image of the whole partition and use ddrescue and dd_rhelp.  Basically, this is what I can remember (I&#8217;ll try to be more complete on future posts):</p>
<ol>
<li>Buy a new hard drive</li>
<li>Install Ubuntu fresh</li>
<li><code>apt-get install make gcc g++ ddrescue</code></li>
<li><Code> wget http://www.kalysto.org/pkg/dd_rhelp-0.1.2.tar.gz</code></li>
<li><Code>tar xzvf dd_rhelp-0.1.2.tar.gz</code></li>
<li><code>cd dd_rhelp-0.1.2</code></li>
<li><Code>./configure</code></li>
<li><code>make</code></li>
<li><code>make install</code></li>
<li><code>cd ..</code></li>
<li><code>cp dd_rhelp /bin</code></li>
<li><Code>cd /bin</code></li>
<li>Plug in the dying hard drive and mount it (for arguments sake /dev/hdd4)</li>
<li>Mount the new drive (for arguments sake /dev/hda3) with a lot of space</li>
<li><code> dd_rhelp /dev/hdd4 /dev/hda3/backup.img</code></li>
<li>This will take ages (i.e. 10 hours for my drive) as it copies the entire partition (including empty space) to that img file.</li>
<li>When it's done, poweroff and unplug the dead drive, then reboot and run <code>fsck /dev/hda3/backup.img</code> to clean it of errors.</li>
<li>Mount the img file by using something like <code>/mnt/hda3/backup.img /mnt/recover ext3 defaults 0 0</code></li>
<li>If everything has worked, your recovered files should be in the lost+found folder in that drive.</li>
<li>Get down on your knees and thank God!  Then go backup.</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecrane.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecrane.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecrane.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecrane.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecrane.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecrane.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecrane.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecrane.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecrane.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecrane.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecrane.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecrane.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecrane.wordpress.com&blog=243281&post=5&subd=thecrane&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecrane.wordpress.com/2007/11/13/recovering-a-dead-hard-drive-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48edef87af815037185dd7359c3aadb3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thecrane</media:title>
		</media:content>
	</item>
	</channel>
</rss>