<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JB&#039;s Blog &#187; Linux</title>
	<atom:link href="http://blade.lansmash.com/category/technical/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blade.lansmash.com</link>
	<description>/au/SysAdmin</description>
	<lastBuildDate>Wed, 27 Apr 2011 05:14:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>What you don&#8217;t want to see on a Monday morning&#8230;.</title>
		<link>http://blade.lansmash.com/2011/03/29/what-you-dont-want-to-see-on-a-monday-morning/</link>
		<comments>http://blade.lansmash.com/2011/03/29/what-you-dont-want-to-see-on-a-monday-morning/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 05:01:27 +0000</pubDate>
		<dc:creator>JB Hewitt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blade.lansmash.com/?p=455</guid>
		<description><![CDATA[Kernel fault.]]></description>
			<content:encoded><![CDATA[<p>Kernel fault.</p>
<p><img src="http://blade.lansmash.com/wp-content/uploads/2011/03/what-you-dont-want-to-see.jpg" border="0" alt="What you dont want to see" width="600" height="534" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blade.lansmash.com/2011/03/29/what-you-dont-want-to-see-on-a-monday-morning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need to delete old emails &#8211; archivemail to the rescue</title>
		<link>http://blade.lansmash.com/2010/09/09/need-to-delete-old-emails-archivemail-to-the-rescue/</link>
		<comments>http://blade.lansmash.com/2010/09/09/need-to-delete-old-emails-archivemail-to-the-rescue/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 02:08:51 +0000</pubDate>
		<dc:creator>JB Hewitt</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blade.lansmash.com/?p=428</guid>
		<description><![CDATA[I have a few customers who have massive Spam traps and Catch-all email accounts.  These accumulate an enormous amount of email, and like any good tree need to be pruned. I was going to write a small PHP script, or some crazy sieve scripts but of course someone has been there, done that, and compiled [...]]]></description>
			<content:encoded><![CDATA[<p>I have a few customers who have massive Spam traps and Catch-all email accounts.  These accumulate an enormous amount of email, and like any good tree need to be pruned.</p>
<p>I was going to write a small PHP script, or some crazy sieve scripts but of course someone has been there, done that, and compiled the source already for me.</p>
<p>An easy solution is to use archivemail - ﻿<a href="http://archivemail.sourceforge.net/">http://archivemail.sourceforge.net/</a></p>
<pre>﻿archivemail  --delete --days=60 imaps://spambox:hereismyawesomepassword@lansmash.com/INBOX</pre>
<p> </p>
<p>Archivemail will let you delete emails older than a date or time and works with IMAP, POP3, etc</p>
]]></content:encoded>
			<wfw:commentRss>http://blade.lansmash.com/2010/09/09/need-to-delete-old-emails-archivemail-to-the-rescue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo add a USB device permanently with VirtualBox 3.0+</title>
		<link>http://blade.lansmash.com/2010/01/27/howto-add-a-usb-device-permanently-with-virtualbox-3-0/</link>
		<comments>http://blade.lansmash.com/2010/01/27/howto-add-a-usb-device-permanently-with-virtualbox-3-0/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 01:39:21 +0000</pubDate>
		<dc:creator>Blade</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://blade.lansmash.com/2010/01/27/howto-add-a-usb-device-permanently-with-virtualbox-3-0/</guid>
		<description><![CDATA[So I was having a little trouble adding a USB device permanently to a Virtual Machine guest with VirtualBox. The trick is to use the VBoxManage command to add a USB filter into the Machine&#8217;s configuration which will automagically attach whenever the VM is run. First, find a list of all usb devices on the [...]]]></description>
			<content:encoded><![CDATA[<p>So I was having a little trouble adding a USB device permanently to a Virtual Machine guest with VirtualBox. The trick is to use the VBoxManage command to add a USB filter into the Machine&#8217;s configuration which will automagically attach whenever the VM is run.</p>
<p>First, find a list of all usb devices on the host, remembering to run these commands as the user your VirtualBox machine is under. In this example we&#8217;ll be using a Canon MX7600 printer as a test USB device.</p>
<p><b>$ VBoxManage list usbhost</b></p>
<pre>
UUID:               6bac41f4-cc44-40e4-a726-4d9655a49f63
VendorId:           0x04a9 (04A9)
ProductId:          0x171c (171C)
Revision:           1.3 (0103)
Manufacturer:       Canon
Product:            MX7600 series
SerialNumber:       102787
Address:            /proc/bus/usb/007/004
Current State:      Captured
</pre>
<p>Now we use the details of the USB device to filter adding into our VirtualBox machine. In this case our VirtualMachine name is <b>winxp</b>.</p>
<p>The usbfilter command requires four options at a minimum.</p>
<pre>
VBoxManage usbfilter        add
--target ||global
--name
--action ignore|hold (global filters only)
[--active yes|no] (yes)
[--vendorid ] (null)
[--productid ] (null)
[--revision ] (null)
[--manufacturer ] (null)
[--product ] (null)
[--remote yes|no] (null, VM filters only)
[--serialnumber ] (null)
[--maskedinterfaces ]
</pre>
<p>So armed with this info let&#8217;s add our device.</p>
<p><b>VBoxManage usbfilter add 0 &#8211;target winxp &#8211;name canonmx7600 &#8211;action hold &#8211;active yes &#8211;vendorid 04A9 &#8211;productid 171C &#8211;revision 0103 &#8211;manufacturer Canon &#8211;product &#8220;MX7600 series&#8221; &#8211;serialnumber 102787</b> <b><br /></b><b><br /></b></p>
]]></content:encoded>
			<wfw:commentRss>http://blade.lansmash.com/2010/01/27/howto-add-a-usb-device-permanently-with-virtualbox-3-0/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Drupal &#8211; &#8220;Content (missing)&#8221;</title>
		<link>http://blade.lansmash.com/2008/09/30/drupal-content-missing/</link>
		<comments>http://blade.lansmash.com/2008/09/30/drupal-content-missing/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 00:40:16 +0000</pubDate>
		<dc:creator>Blade</dc:creator>
				<category><![CDATA[LanSmash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blade.lansmash.com/2008/09/30/drupal-content-missing/</guid>
		<description><![CDATA[I&#8217;ve started playing with Drupal and looking at moving a few sites over to it. In a late night session of bolting things together I ran into a bit of a snag with a few modules trying to create thumbnails on teaser articles. Unfortunately when I installed the imagefield CCK module I ran into a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started playing with Drupal and looking at moving a few sites over to it. In a late night session of bolting things together I ran into a bit of a snag with a few modules trying to <a href="http://drupal.org/node/101748">create thumbnails on teaser articles</a>.</p>
<p>Unfortunately when I installed the imagefield CCK module I ran into a snag where it wouldn&#8217;t allow me to continue without the &#8216;content&#8217; module which was missing.</p>
<p>I attempted to search for this missing module in the drupal module downloads section with no luck&#8230; <a href="http://drupal.org/search/node/type%3Aproject_project+content">http://drupal.org/search/node/type%3Aproject_project+content</a> gave me no joy at all.</p>
<p>Luckily, the a nice Drupal IRC user slapped me with a quick &#8216;CCK = content&#8217; line after I pleaded where this magical &#8216;Content&#8217; module is and of course after I installed the <a href="http://drupal.org/project/cck">CCK</a> module everything worked like a charm. I had thought I had already installed this module and was probably too tired to have checked this first&#8230;</p>
<p>So for any newbie Drupal users out there I hope you find this helpful tip on Google before you harass some poor sod on IRC&#8230; that way you might actually appear somewhat knowledgeable.</p>
]]></content:encoded>
			<wfw:commentRss>http://blade.lansmash.com/2008/09/30/drupal-content-missing/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>MyBook backups with Rsnapshot and some bash trickey</title>
		<link>http://blade.lansmash.com/2008/06/20/mybook-backups-with-rsnapshot-and-some-bash-trickey/</link>
		<comments>http://blade.lansmash.com/2008/06/20/mybook-backups-with-rsnapshot-and-some-bash-trickey/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 02:13:11 +0000</pubDate>
		<dc:creator>JB Hewitt</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blade.lansmash.com/2008/06/20/mybook-backups-with-rsnapshot-and-some-bash-trickey/</guid>
		<description><![CDATA[I had a client accidentally purchase half a dozen 500GB MyBook&#8217;s instead of the simpler cheaper USB models. Since this site is remote from me it took a little while to deduce what was going on since the MyBook&#8217;s don&#8217;t act as USB drives and hence don&#8217;t appear as a USB device to linux. User: [...]]]></description>
			<content:encoded><![CDATA[<p>I had a client accidentally purchase half a dozen 500GB MyBook&#8217;s instead of the simpler cheaper USB models.</p>
<p>Since this site is remote from me it took a little while to deduce what was going on since the MyBook&#8217;s don&#8217;t act as USB drives and hence don&#8217;t appear as a USB device to linux.</p>
<blockquote>
<p>User: &#8216;Yes, I&#8217;ve plugged it in! Yes it&#8217;s using the white cable!&#8217;<br />
  Me: &#8216;So&#8230; what exactly does it say on the box what drive it is&#8230;&#8217;</p>
</blockquote>
<p>Anyhow, after figuring out that is was a MyBook I implemented ssh access using <a href="http://martin.hinner.info/mybook/sshaccess.php">Martin Hinner&#8217;s clever hack</a> and found a nice website of various <a href="http://mybookworld.wikidot.com/hacks-and-howto">MyBook Hack&#8217;s</a>.</p>
<p>I was originally using the venerable Rdiff-backup, but alas couldn&#8217;t see it in the Optware packages. So I implemented a Rsnapshot solution, the only problem was I wanted some notifications from the MyBook devices to check that the backups were working, and so a simple bash script was in order&#8230;</p>
<pre>
#!/bin/bash
mailto=my@emailaddress.com,clients@theclientsdomain.com
time=$1
</pre>
<pre>
if /opt/bin/rsnapshot $time &gt; /tmp/rsnapshot.log 2&gt; /tmp/rsnapshot.logthen   subject='Backup success'else   subject='Backup FAILURE'ficat /tmp/rsnapshot.log | /opt/bin/nail -r admin@theclientsdomain.com -s "$subject" $mailto
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blade.lansmash.com/2008/06/20/mybook-backups-with-rsnapshot-and-some-bash-trickey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I hate Nano!</title>
		<link>http://blade.lansmash.com/2005/10/25/i-hate-nano/</link>
		<comments>http://blade.lansmash.com/2005/10/25/i-hate-nano/#comments</comments>
		<pubDate>Tue, 25 Oct 2005 01:25:55 +0000</pubDate>
		<dc:creator>JB Hewitt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://blade.lansmash.com/?p=168</guid>
		<description><![CDATA[I hate that cursed text editor. This morning I spent 5 minutes trying to figure out why a fresh crontab wasn&#8217;t working as I ssh&#8217;d into a server&#8230; My syntax was correct yet crontab refuse to save my entry stating bad minute errors in crontab file. I then realised it was the crap characters nano [...]]]></description>
			<content:encoded><![CDATA[<p>I hate that cursed text editor.  This morning I spent 5 minutes trying to figure out why a fresh crontab wasn&#8217;t working as I ssh&#8217;d into a server&#8230; My syntax was correct yet crontab refuse to save my entry stating <b>bad minute errors in crontab file</b>.<br />
I then realised it was the crap characters nano was feeding into the beginning of the file!</p>
<p>A swift <b>export EDITOR=vim</b> and my crontab problems were gone.  </p>
<p>Note: After bitching to a friend of mine who is pro Nano he stated to me that <b>nano > 8</b>.  My point exactly, he&#8217;s so handicapped from using nano that he can&#8217;t even type an Asterisk.</p>
]]></content:encoded>
			<wfw:commentRss>http://blade.lansmash.com/2005/10/25/i-hate-nano/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

