<?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>IT Notepad</title>
	<atom:link href="http://itnotepad.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://itnotepad.wordpress.com</link>
	<description>Things to remember!</description>
	<lastBuildDate>Wed, 18 May 2011 15:04:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='itnotepad.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>IT Notepad</title>
		<link>http://itnotepad.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://itnotepad.wordpress.com/osd.xml" title="IT Notepad" />
	<atom:link rel='hub' href='http://itnotepad.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Clone hard disk with VMware ESXi</title>
		<link>http://itnotepad.wordpress.com/2011/05/18/clone-hard-disk-with-vmware-esxi/</link>
		<comments>http://itnotepad.wordpress.com/2011/05/18/clone-hard-disk-with-vmware-esxi/#comments</comments>
		<pubDate>Wed, 18 May 2011 14:58:06 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=109</guid>
		<description><![CDATA[I have been using VMware ESXi (4.1) a lot recently and have been using disk clones so that I don&#8217;t have to do a new OS install every time. The issue is that I am using thin provisioning and when you do a copy if you are using NFS then it will change and allocate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=109&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been using VMware ESXi (4.1) a lot recently and have been using disk clones so that I don&#8217;t have to do a new OS install every time.</p>
<p>The issue is that I am using thin provisioning and when you do a copy if you are using NFS then it will change and allocate all of the space in the resulting copy. Not helpful!</p>
<p>So to get around this you can use vmkfstools. You will need to perform the following on a hard disk that is part of an existing machine otherwise you will get the following error:</p>
<p><code>DiskLib_Check() failed for source disk The system cannot find the file specified (25).<br />
that the machine </code></p>
<p>Use the following to do a thin provisioned clone of a disk.<br />
<code><br />
vmkfstools -i original.vmdk -d thin ../newmachine/copy.vmdk<br />
</code></p>
<p>What I tend to do is to do a snapshot after I have created the virtual machine (original). I can then do a clone on a running machine as everything after the snapshot will be written to a delta file that just contains the changes after the snapshot.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=109&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2011/05/18/clone-hard-disk-with-vmware-esxi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Clonezilla</title>
		<link>http://itnotepad.wordpress.com/2010/11/04/using-clonezilla/</link>
		<comments>http://itnotepad.wordpress.com/2010/11/04/using-clonezilla/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 13:17:00 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=104</guid>
		<description><![CDATA[I have just had the task of configuring 50 netbooks for a specific purpose. As I had already done a few of these before I knew it would be a good idea to try to clone one of the disks and use this on the others. I came across Clonezilla a while back, and basically [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=104&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have just had the task of configuring 50 netbooks for a specific purpose. As I had already done a few of these before I knew it would be a good idea to try to clone one of the disks and use this on the others.</p>
<p>I came across Clonezilla a while back, and basically it&#8217;s an open source alternative to Norton Ghost. You can run it as a server or on a cd or usb drive. I decided to use the server option as I had so many netbooks to setup.</p>
<p>The first thing I did was install on a Ubuntu 10.04 virtual machine using some helpful instructions from <a href="http://www.howtoforge.com/cloning-linux-systems-with-clonezilla-server-edition-clonezilla-se">here</a>.</p>
<p>After cloning a configured install, I connected the server to a separate 8 port gigabit switch. From what I could see it needs it&#8217;s own switch as the server needs to run dhcp. I was able to restore the image to multiple devices at once using the multicast option, meaning that the data stream is sent to all the devices at once.</p>
<p>All in all, I&#8217;m really impressed with Clonezilla and will definitely use it again if doing something similar.</p>
<p><em>NOTE: When doing the multicast restore the speed was around 14.5MB/s, a bit slower than I would have thought for a gigabit switch, but still plenty fast enough and there may have been some way to increase this.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/104/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/104/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/104/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=104&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2010/11/04/using-clonezilla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>ARP issue with xen bridge</title>
		<link>http://itnotepad.wordpress.com/2010/08/23/arp-issue-with-xen-bridge/</link>
		<comments>http://itnotepad.wordpress.com/2010/08/23/arp-issue-with-xen-bridge/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 15:25:00 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=100</guid>
		<description><![CDATA[I have been using Xen with network bridging for a while and things have been working well. However I started to see strange behaviour on a specific new guest (domU). Connectivity on the public bridged interface would be intermittent. Up for a while and then down for a while. It turns out that some arp [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=100&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been using Xen with network bridging for a while and things have been working well. However I started to see strange behaviour on a specific new guest (domU). Connectivity on the public bridged interface would be intermittent. Up for a while and then down for a while. It turns out that some arp queries were not being answered and so the guest (domU) host did not know the mac address for a particular ip (the gateway) for a period of time. I then observed this on other hosts.</p>
<p>After much digging and looking at tcpdump output, I set the arp address manually on the affected guests. After a while though I decided to specify the network bridges in Debian, instead of letting the Xen scripts do their work as I had heard that they can cause issues.</p>
<p>So to add two bridge interfaces, one with an ip and one without, add the following to /etc/network/interfaces</p>
<p><code><br />
auto br-eth0<br />
iface br-eth0 inet static<br />
address 192.168.xxx.xxx<br />
netmask 255.255.255.0<br />
gateway 192.168.xxx.xxx<br />
bridge_ports eth0</p>
<p>auto br-eth1<br />
iface br-eth1 inet manual<br />
  bridge_ports eth1</p>
<p></code></p>
<p>Now that I have done this the problem has not reappeared as yet. I still don&#8217;t know exactly why this was happening.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=100&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2010/08/23/arp-issue-with-xen-bridge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>Use Keepass with Dropbox</title>
		<link>http://itnotepad.wordpress.com/2010/06/18/use-keepass-with-dropbox/</link>
		<comments>http://itnotepad.wordpress.com/2010/06/18/use-keepass-with-dropbox/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 09:08:50 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=92</guid>
		<description><![CDATA[I have been using Keepass (KeepassX) for a while now (replacing Password Safe). It works well and does everything I need. There is even an Android app (KeePassDroid), along with ports for other platforms http://keepass.info/download.html. Storing files on Dropbox, means they are always available on any computers that are linked to your Dropbox account. Dropbox [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=92&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been using Keepass (KeepassX) for a while now (replacing Password Safe). It works well and does everything I need. There is even an Android app (KeePassDroid), along with ports for other platforms <a href="http://keepass.info/download.html">http://keepass.info/download.html</a>.</p>
<p>Storing files on Dropbox, means they are always available on any computers that are linked to your Dropbox account. Dropbox also now has an Android client so you can view files on your phone.</p>
<p>Now to have your password file available you could just pop the file within your Dropbox folder, however for extra security you can create a key file for the password database. This then means that to open the password database you need not just the password but the key file also.</p>
<p>A good secure option then would be to store your password database in Dropbox and your key file on the computers or devices that need it.</p>
<p>For your password itself be sure to set a secure one of at least 8 mixed case alpha numeric characters. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=92&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2010/06/18/use-keepass-with-dropbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>Disown job</title>
		<link>http://itnotepad.wordpress.com/2010/05/05/disown-job/</link>
		<comments>http://itnotepad.wordpress.com/2010/05/05/disown-job/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:47:55 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Bash]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=87</guid>
		<description><![CDATA[Every so often I fire up and job and then need to end my ssh session for one reason or another. Until the other day I did not realise that you could leave an already existing process running (other than using screen or nohup). Use disown. Run your job. CTRL+Z to stop the job. To [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=87&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every so often I fire up and job and then need to end my ssh session for one reason or another. Until the other day I did not realise that you could leave an already existing process running (other than using screen or nohup).</p>
<p>Use disown.</p>
<p>Run your job.</p>
<p>CTRL+Z to stop the job.</p>
<p>To put it in the backgroud.<br />
<code>$ bg</code><br />
Then to disown.<br />
<code>$ disown -h</code></p>
<p>Now logout (CTRL+D) and it will just keep on running!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=87&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2010/05/05/disown-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Tomcat 6 on Debian Lenny with pinning</title>
		<link>http://itnotepad.wordpress.com/2009/11/24/install-tomcat-6-on-debian-lenny-with-pinning/</link>
		<comments>http://itnotepad.wordpress.com/2009/11/24/install-tomcat-6-on-debian-lenny-with-pinning/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:39:36 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=77</guid>
		<description><![CDATA[I recently needed to install tomcat 6 on debian lenny, however it is not in the repository and there is no backport. There were two options, either use the tar or install the debian testing package. I have opted for the testing package as it is a debian specific setup and integrates properly. I am [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=77&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently needed to install tomcat 6 on debian lenny, however it is not in the repository and there is no backport.</p>
<p>There were two options, either use the tar or install the debian testing package. I have opted for the testing package as it is a debian specific setup and integrates properly.</p>
<p>I am assuming that you already have the debian java 6 package installed. Run the following as root.</p>
<p>First set the release to stable:<br />
<code><br />
echo 'APT::Default-Release "stable";' &gt; /etc/apt/apt.conf<br />
</code><br />
This is important and not setting this will cause issues.</p>
<p>Now add the testing repository:<br />
<code><br />
cat &lt;&lt;EOF&gt;/etc/apt/sources.list.d/squeeze.list<br />
# Repository for Squeeze, to get Tomcat6<br />
deb http://ftp.uk.debian.org/debian squeeze main contrib non-free<br />
deb-src http://ftp.uk.debian.org/debian squeeze main contrib non-free<br />
EOF<br />
</code></p>
<p>Now pin the new packages:<br />
<code><br />
cat &lt;&lt;EOF&gt;/etc/apt/preferences<br />
Package: *<br />
Pin: release o=Debian,a=stable<br />
Pin-Priority: 990<br />
Package: *<br />
Pin: release o=Debian,a=testing<br />
Pin-Priority: 500<br />
Package: tomcat6,tomcat6-admin,tomcat6-common,libtomcat6-java,libservlet2.5-java<br />
Pin: release o=Debian,a=testing<br />
Pin-Priority: 990<br />
EOF<br />
</code></p>
<p>The above with ensure that testing packages will only take the priority for the tomcat related packages. The higher pin priority takes precedence.</p>
<p>Now update the repositories and install tomcat 6.<br />
<code><br />
aptitude update<br />
aptitude install tomcat6<br />
</code></p>
<p>Ref:</p>
<p><a href="http://www.waltercedric.com/component/content/article/193-technical/1634-debian-lenny-how-to.html">http://www.waltercedric.com/component/content/article/193-technical/1634-debian-lenny-how-to.html</a><br />
<a href="http://linux.derkeiler.com/Mailing-Lists/Debian/2008-12/msg01207.html">Why no apt-pinning by release name?</a><br />
<a href="http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_tweaking_candidate_version">http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_tweaking_candidate_version</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=77&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2009/11/24/install-tomcat-6-on-debian-lenny-with-pinning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>Convert Virtualbox disk (.vdi) to VMware disk (.vmdk)</title>
		<link>http://itnotepad.wordpress.com/2009/10/22/convert-virtualbox-disk-vdi-to-vmware-disk-vmdk/</link>
		<comments>http://itnotepad.wordpress.com/2009/10/22/convert-virtualbox-disk-vdi-to-vmware-disk-vmdk/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 08:32:37 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Virtualisation]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=69</guid>
		<description><![CDATA[I needed to do this recently and found that the instructions on the net that told me to just use qemu did not work as the hard disk would not boot. Then I found the following set of commands: VBoxManage internalcommands converttoraw vb.vdi vb.raw &#38;&#38; qemu-img convert -O vmdk vb.raw vb.vmdk &#38;&#38; rm vb.raw It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=69&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to do this recently and found that the instructions on the net that told me to just use qemu did not work as the hard disk would not boot.</p>
<p>Then I found the following set of commands:</p>
<p><code>VBoxManage internalcommands converttoraw vb.vdi vb.raw &amp;&amp; qemu-img convert -O vmdk vb.raw vb.vmdk &amp;&amp; rm vb.raw</code></p>
<p>It worked at treat and I was up and running on VMware 2 Server.</p>
<p><a href="http://www.commandlinefu.com/commands/view/3773/convert-vdi-to-vmdk-virtualbox-hard-disk-conversion-to-vmware-hard-disk-format">http://www.commandlinefu.com/commands/view/3773/convert-vdi-to-vmdk-virtualbox-hard-disk-conversion-to-vmware-hard-disk-format</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=69&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2009/10/22/convert-virtualbox-disk-vdi-to-vmware-disk-vmdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>Update ARP cache on router</title>
		<link>http://itnotepad.wordpress.com/2009/07/29/update-arp-cache-on-router/</link>
		<comments>http://itnotepad.wordpress.com/2009/07/29/update-arp-cache-on-router/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 14:16:33 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=62</guid>
		<description><![CDATA[A couple of times in the past I have had issues when migrating from one server to another behind a router. By this I mean bringing the interface of one server down and then assigning the same ip address to another server. So by doing this you do not have to change a dns records. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=62&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A couple of times in the past I have had issues when migrating from one server to another behind a router. By this I mean bringing the interface of one server down and then assigning the same ip address to another server. So by doing this you do not have to change a dns records.</p>
<p>However there is sometimes as issue which is that the arp cache on the router is not updated with the new mac address, so the router is still looking for the old mac address.</p>
<p>In order to force an update on the router, run the following:</p>
<p><code>sudo arping -U -I eth1 xxx.xxx.xxx.xxx </code></p>
<p>On Debian Lenny this is in iputils-arping.</p>
<p><code>sudo aptitude install iputils-arping</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=62&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2009/07/29/update-arp-cache-on-router/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>SSH Timeout</title>
		<link>http://itnotepad.wordpress.com/2009/06/26/ssh-timeout/</link>
		<comments>http://itnotepad.wordpress.com/2009/06/26/ssh-timeout/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 12:18:42 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=59</guid>
		<description><![CDATA[As I use ssh all the time. An issue that I sometimes get is that the vpn disconnects, and the ssh session just freezes and never disconnects. To combat this and to get the ssh client to disconnect if it does not receive anything from the server after a period of time, then add the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=59&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I use ssh all the time. An issue that I sometimes get is that the vpn disconnects, and the ssh session just freezes and never disconnects. To combat this and to get the ssh client to disconnect if it does not receive anything from the server after a period of time, then add the following to /etc/ssh/ssh_config:</p>
<pre>
ServerAliveInterval 30
</pre>
<p>The above should mean that it will disconnect after 30 seconds, however it seems to be a bit longer than that. Anyway it works.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=59&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2009/06/26/ssh-timeout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
		<item>
		<title>Postgres readonly access</title>
		<link>http://itnotepad.wordpress.com/2009/04/22/postgres-readonly-access/</link>
		<comments>http://itnotepad.wordpress.com/2009/04/22/postgres-readonly-access/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:12:09 +0000</pubDate>
		<dc:creator>nedwards</dc:creator>
				<category><![CDATA[Postgres]]></category>

		<guid isPermaLink="false">http://itnotepad.wordpress.com/?p=47</guid>
		<description><![CDATA[Having used MySQL quite a bit in the past. I have been used to being able to setup a read only user for a database. In PostgreSQL things work a bit differently. In order to allow read only access you need to assign SELECT access on each table to a role. The following seems to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=47&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having used MySQL quite a bit in the past. I have been used to being able to setup a read only user for a database. In PostgreSQL things work a bit differently. In order to allow read only access you need to assign SELECT access on each table to a role.</p>
<p>The following seems to work.</p>
<p><strong>Login to database</strong></p>
<p>psql database</p>
<p><strong>Create readonly role</strong></p>
<p>CREATE ROLE readonly;</p>
<p><strong>Create readonly_for_database.sh</strong></p>
<p>This will grant select access on every table.</p>
<pre>
<code>
#!/bin/sh

tables=$(psql database -A -t -c "SELECT table_name FROM information_schema.tables \
WHERE table_schema = 'public';")

for table in $tables
do
echo "Granting select to readonly on $table"
psql database -c "GRANT SELECT ON $table to readonly;"
done
</code>
</pre>
<p><strong>Grant readonly role to existing user</strong></p>
<p>GRANT readonly TO existinguser;</p>
<p>Once this is done you will be able to give users read only access to the database.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itnotepad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itnotepad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itnotepad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itnotepad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itnotepad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itnotepad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itnotepad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itnotepad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itnotepad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itnotepad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itnotepad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itnotepad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itnotepad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itnotepad.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itnotepad.wordpress.com&amp;blog=846587&amp;post=47&amp;subd=itnotepad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itnotepad.wordpress.com/2009/04/22/postgres-readonly-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55ba636c2dd87596282cf46285361836?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nedwards</media:title>
		</media:content>
	</item>
	</channel>
</rss>
