<?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>Mind Circus &#187; Linux</title>
	<atom:link href="http://www.twistedethics.com/category/operating-systems/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.twistedethics.com</link>
	<description>Inside the mind of a young IT Professional</description>
	<lastBuildDate>Wed, 18 Jan 2012 11:37:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Install and run Wireshark on the command line (CentOS 5.2)</title>
		<link>http://www.twistedethics.com/2008/08/06/install-and-run-wireshark-on-the-command-line-centos-52/</link>
		<comments>http://www.twistedethics.com/2008/08/06/install-and-run-wireshark-on-the-command-line-centos-52/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 21:00:11 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cace]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ethereal]]></category>
		<category><![CDATA[network forensics]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/?p=332</guid>
		<description><![CDATA[Using CentOS 5.2 or Red Hat Enterprise Linux 5, install and run Wireshark (formerly Ethereal) over the command line.
Install Wireshark:
yum install wireshark
Run a capture:
tethereal -i eth1 -w ~/mycapture.pcap
This command will run Wireshark/Ethereal, capture on the eth1 interface and output the data to /yourhomedir/mycapture.pcap
Why would you want to do this? If you want to capture packets [...]]]></description>
			<content:encoded><![CDATA[<p>Using CentOS 5.2 or Red Hat Enterprise Linux 5, install and run Wireshark (formerly Ethereal) over the command line.</p>
<p>Install Wireshark:</p>
<pre><kbd>yum install wireshark</kbd></pre>
<p>Run a capture:</p>
<pre><kbd>tethereal -i eth1 -w ~/mycapture.pcap</kbd></pre>
<p>This command will run Wireshark/Ethereal, capture on the eth1 interface and output the data to /yourhomedir/mycapture.pcap</p>
<p>Why would you want to do this? If you want to capture packets from a headless or remote Linux PC and analyse the data elsewhere.</p>
<p>Right now I&#8217;m at home, but I have a headless CentOS box at work that&#8217;s running ntop from a mirrored port, in order to look at network traffic flowing over the router. To increase the capability of the CentOS box, I want to use it to capture packets using Wireshark, then download the .pcap file over WinSCP and look at the data on my laptop using Wireshark for Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2008/08/06/install-and-run-wireshark-on-the-command-line-centos-52/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A TV that can play from USB Mass Storage devices</title>
		<link>http://www.twistedethics.com/2008/06/19/a-tv-that-can-play-from-usb-mass-storage-devices/</link>
		<comments>http://www.twistedethics.com/2008/06/19/a-tv-that-can-play-from-usb-mass-storage-devices/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 08:34:18 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[General IT]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/?p=301</guid>
		<description><![CDATA[The more I play video content from a USB stick on the Xbox 360, the more I want a TV that can play content directly from a USB Mass Storage Device.
Surely it can&#8217;t be that hard? I&#8217;m thinking possibly something like a tiny Linux distribution embedded into the TV, something akin to the &#8220;Instant Play&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>The more I play video content from a USB stick on the Xbox 360, the more I want a TV that can play content directly from a USB Mass Storage Device.</p>
<p>Surely it can&#8217;t be that hard? I&#8217;m thinking possibly something like a tiny Linux distribution embedded into the TV, something akin to the &#8220;Instant Play&#8221; feature on many laptops.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2008/06/19/a-tv-that-can-play-from-usb-mass-storage-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$100 laptop is to get a revamp</title>
		<link>http://www.twistedethics.com/2008/05/21/100-laptop-is-to-get-a-revamp/</link>
		<comments>http://www.twistedethics.com/2008/05/21/100-laptop-is-to-get-a-revamp/#comments</comments>
		<pubDate>Wed, 21 May 2008 15:28:04 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[General IT]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/?p=294</guid>
		<description><![CDATA[Seems the OLPC project is going to be revamping their XO laptop. Looks pretty good, and cheaper too!
]]></description>
			<content:encoded><![CDATA[<p>Seems the OLPC project is going to be <a href="http://news.bbc.co.uk/1/hi/technology/7411904.stm">revamping their XO laptop</a>. Looks pretty good, and cheaper too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2008/05/21/100-laptop-is-to-get-a-revamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Control user access to SSH</title>
		<link>http://www.twistedethics.com/2008/03/19/control-user-access-to-ssh/</link>
		<comments>http://www.twistedethics.com/2008/03/19/control-user-access-to-ssh/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 14:25:38 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/2008/03/19/control-user-access-to-ssh/</guid>
		<description><![CDATA[Got a shiny new Linux box on your network but don&#8217;t want all your users connecting to it via SSH? Control access by editing the SSH configuration file and using the AllowUsers directive like so:
AllowUsers joeuser

To add multiple entries, either separate users with a space, or write an entirely new line:
AllowUsers joeuser philwiffen

AllowUsers joeuser
AllowUsers philwiffen

]]></description>
			<content:encoded><![CDATA[<p>Got a shiny new Linux box on your network but don&#8217;t want all your users connecting to it via SSH? Control access by editing the SSH configuration file and using the AllowUsers directive like so:</p>
<pre><code>AllowUsers joeuser
</code></pre>
<p>To add multiple entries, either separate users with a space, or write an entirely new line:</p>
<pre><code>AllowUsers joeuser philwiffen
</code></pre>
<pre><code>AllowUsers joeuser
AllowUsers philwiffen
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2008/03/19/control-user-access-to-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenOffice Save As .doc by default</title>
		<link>http://www.twistedethics.com/2007/09/03/openoffice-save-as-doc-by-default/</link>
		<comments>http://www.twistedethics.com/2007/09/03/openoffice-save-as-doc-by-default/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 18:40:23 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[General IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/2007/09/03/openoffice-save-as-doc-by-default/</guid>
		<description><![CDATA[
To get OpenOffice to Save in Microsoft Word .doc format by default, follow these steps:

Tools > Options
Load/Save > General
In the bottom right of the window, look for &#8220;Always save as&#8221; and pick your poison  

I know that saving in a proprietary format over an open standard is bad practice, but sometimes in Business you [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.twistedethics.com/wp-content/uploads/2007/08/logo-oo.gif' alt='OpenOffice' /></p>
<p>To get <a href="http://www.openoffice.org/">OpenOffice</a> to Save in Microsoft Word .doc format by default, follow these steps:</p>
<ul>
<li>Tools > Options</li>
<li>Load/Save > General</li>
<li>In the bottom right of the window, look for &#8220;Always save as&#8221; and pick your poison <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<p>I know that saving in a proprietary format over an open standard is bad practice, but sometimes in Business you need to maintain interoperability with the de facto standard; in this case: Microsoft Word.</p>
<p><a href='http://www.twistedethics.com/wp-content/uploads/2007/08/openoffice-default-save-as-to-doc.png' title='OpenOffice Save As .doc by default'><img src='http://www.twistedethics.com/wp-content/uploads/2007/08/openoffice-default-save-as-to-doc.thumbnail.png' alt='OpenOffice Save As .doc by default' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/09/03/openoffice-save-as-doc-by-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Calendar functionality to Mozilla Thunderbird</title>
		<link>http://www.twistedethics.com/2007/08/23/adding-calendar-functionality-to-mozilla-thunderbird/</link>
		<comments>http://www.twistedethics.com/2007/08/23/adding-calendar-functionality-to-mozilla-thunderbird/#comments</comments>
		<pubDate>Thu, 23 Aug 2007 11:20:06 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/2007/08/23/adding-calendar-functionality-to-mozilla-thunderbird/</guid>
		<description><![CDATA[In a business environment, people who switch from Microsoft Outlook to Mozilla Thunderbird often miss having the calendar/task features in Outlook. Fortunately, you can add Calendar and Task functionality to Thunderbird with the Lightning add-on.

Go to the Lightning download page
Right click on the download link and Save As&#8230; (If you don&#8217;t, Firefox might try to [...]]]></description>
			<content:encoded><![CDATA[<p>In a business environment, people who switch from Microsoft Outlook to <a href="http://www.mozilla.com/thunderbird/">Mozilla Thunderbird</a> often miss having the calendar/task features in Outlook. Fortunately, you can add Calendar and Task functionality to Thunderbird with the <a href="http://www.mozilla.org/projects/calendar/lightning/">Lightning add-on</a>.</p>
<ul>
<li>Go to the <a href="http://www.mozilla.org/projects/calendar/lightning/download.html">Lightning download page</a></li>
<li>Right click on the download link and Save As&#8230; (If you don&#8217;t, Firefox might try to install the add-on itself.)</li>
<li>Open up Thunderbird and click on Tools > Add-ons</li>
<li>Install the Lightning file you just downloaded</li>
<li>Once you&#8217;re done, restart Thunderbird, and start using your new Calendar feature!</li>
<li>If you need Holiday calendars, you can get them <a href="http://www.mozilla.org/projects/calendar/holidays.html">here</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/08/23/adding-calendar-functionality-to-mozilla-thunderbird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log rotation on Plesk 8</title>
		<link>http://www.twistedethics.com/2007/08/08/log-rotation-on-plesk-8/</link>
		<comments>http://www.twistedethics.com/2007/08/08/log-rotation-on-plesk-8/#comments</comments>
		<pubDate>Wed, 08 Aug 2007 11:17:54 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/2007/08/08/log-rotation-on-plesk-8/</guid>
		<description><![CDATA[A few of our websites receive high traffic and, as a result, the apache log files grow very large, very quickly. By default, Plesk rotates logs every 2,025,139 KB (2GB). This is way too large for a virtualised server such as ours, which provides 10GB of precious disk space. 
To combat this, I set up [...]]]></description>
			<content:encoded><![CDATA[<p>A few of our websites receive high traffic and, as a result, the apache log files grow very large, very quickly. By default, Plesk rotates logs every 2,025,139 KB (2GB). This is way too large for a virtualised server such as ours, which provides 10GB of precious disk space. </p>
<p>To combat this, I set up a regular log rotation in Plesk like so:</p>
<ul>
<li>Log in to Plesk.</li>
<li>Domains > yourdomain.com > Log Manager > Log Rotation</li>
<li>Choose the log rotation condition.</li>
</ul>
<p><a href='http://www.twistedethics.com/wp-content/uploads/2007/08/2007-08-08_115759.png' title='Plesk log rotation'><img src='http://www.twistedethics.com/wp-content/uploads/2007/08/2007-08-08_115759.thumbnail.png' alt='Plesk log rotation' /></a></p>
<p>I choose monthly, but if you&#8217;re rapidly running out of disk space you might want to set a shorter time span, or set a low size limit. Don&#8217;t forget to enable compression to save on disk space!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/08/08/log-rotation-on-plesk-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install smartctl on Ubuntu</title>
		<link>http://www.twistedethics.com/2007/08/06/install-smartctl-on-ubuntu/</link>
		<comments>http://www.twistedethics.com/2007/08/06/install-smartctl-on-ubuntu/#comments</comments>
		<pubDate>Mon, 06 Aug 2007 16:59:40 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/2007/08/06/install-smartctl-on-ubuntu/</guid>
		<description><![CDATA[To install smartctl (and smartd with it):
sudo apt-get install smartmontools
Why would you want SmartMonTools?
The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.) built into most modern ATA and SCSI hard disks. It is derived from the smartsuite package, and [...]]]></description>
			<content:encoded><![CDATA[<p>To install smartctl (and smartd with it):</p>
<pre><code>sudo apt-get install smartmontools</code></pre>
<p>Why would you want SmartMonTools?</p>
<blockquote><p>The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.) built into most modern ATA and SCSI hard disks. It is derived from the smartsuite package, and includes support for ATA/ATAPI-5 disks. It should run on any modern Linux system.</p></blockquote>
<p><cite><a href="http://packages.ubuntu.com/feisty/utils/smartmontools">Ubuntu smartmontools page</a></cite></p>
<p>Very handy; especially as the OS drive just died in the RAID5 box <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  I&#8217;m now taking extra precautions!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/08/06/install-smartctl-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrading Ubuntu Server from 6.10 to 7.04</title>
		<link>http://www.twistedethics.com/2007/07/09/upgrading-ubuntu-server-from-610-to-704/</link>
		<comments>http://www.twistedethics.com/2007/07/09/upgrading-ubuntu-server-from-610-to-704/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 16:50:52 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/2007/07/09/upgrading-ubuntu-server-from-610-to-704/</guid>
		<description><![CDATA[Earlier today I upgraded from Ubuntu Server 6.10 to 7.04 from the command line in just a few simple steps:
Make sure we have the latest updates
Check for updates:
sudo apt-get update
Install any updates:
sudo apt-get upgrade
Now prepare to upgrade to 7.04
Install the latest upgrade manager:
sudo apt-get install update-manager-core
Run the upgrade tool for servers:
sudo do-release-upgrade
And everything went smoothly. [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier today I upgraded from Ubuntu Server 6.10 to 7.04 from the command line in just a few simple steps:</p>
<h3>Make sure we have the latest updates</h3>
<p>Check for updates:</p>
<pre><kbd>sudo apt-get update</kbd></pre>
<p>Install any updates:</p>
<pre><kbd>sudo apt-get upgrade</kbd></pre>
<h3>Now prepare to upgrade to 7.04</h3>
<p>Install the latest upgrade manager:</p>
<pre><kbd>sudo apt-get install update-manager-core</kbd></pre>
<p>Run the upgrade tool for servers:</p>
<pre><kbd>sudo do-release-upgrade</kbd></pre>
<p>And everything went smoothly. The only issue I had, was that I had to install inetd again to get SWAT working (<kbd>sudo apt-get install netkit-inetd</kbd>). Everytime I use Ubuntu I fall more and more in love with it <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/07/09/upgrading-ubuntu-server-from-610-to-704/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to: Setup Kismet in Ubuntu 7.04</title>
		<link>http://www.twistedethics.com/2007/04/25/how-to-setup-kismet-in-ubuntu-704/</link>
		<comments>http://www.twistedethics.com/2007/04/25/how-to-setup-kismet-in-ubuntu-704/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 18:26:46 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wi-Fi]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/2007/04/25/how-to-setup-kismet-in-ubuntu-704/</guid>
		<description><![CDATA[Here&#8217;s how I got Kismet running on Ubuntu on my Asus W3V laptop.

Open up a Terminal: Applications &#62; Accessories &#62; Terminal
sudo apt-get install kismet
sudo gedit /etc/kismet/kismet.conf
 Change
source=none,none,addme
to
source=ipw2200,eth1,wifi

If you don&#8217;t know your relevant network driver, view the Kismet Readme  and scroll down to the section &#8220;12. Capture Sources&#8221;. My driver is ipw2200.
If you don&#8217;t know [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how I got Kismet running on Ubuntu on my Asus W3V laptop.<span id="more-64"></span></p>
<ol>
<li>Open up a Terminal: Applications &gt; Accessories &gt; Terminal<code></code></li>
<li><code>sudo apt-get install kismet</code></li>
<li><code>sudo gedit /etc/kismet/kismet.conf</code></li>
<li> Change<code><br />
source=none,none,addme</code><br />
to<br />
<code>source=ipw2200,eth1,wifi</code></p>
<ul>
<li>If you don&#8217;t know your relevant network driver, view the <a href="http://www.kismetwireless.net/documentation.shtml#readme">Kismet Readme</a>  and scroll down to the section &#8220;12. Capture Sources&#8221;. My driver is ipw2200.</li>
<li>If you don&#8217;t know your interface name, use <code>iwconfig</code> to find your wireless interface (mine is eth1). [<a href="http://www.twistedethics.com/wp-content/uploads/2007/04/ubuntu-704-iwconfig.png" title="iwconfig output on Ubuntu 7.04">screenshot</a>]</li>
</ul>
</li>
<li>Save the file</li>
<li><code>sudo kismet</code> [<a href="http://www.twistedethics.com/wp-content/uploads/2007/04/kismet-running-on-ubuntu-704.png" title="Kismet running on Ubuntu 7.04">screenshot</a>]</li>
</ol>
<p>Any questions? Feel free to leave me a comment below <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=mincir0e-21&#038;o=2&#038;p=13&#038;l=st1&#038;mode=books-uk&#038;search=ubuntu&#038;nou=1&#038;fc1=000000&#038;lt1=_blank&#038;lc1=3366FF&#038;bg1=FFFFFF&#038;f=ifr" marginwidth="0" marginheight="0" width="468" height="60" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/04/25/how-to-setup-kismet-in-ubuntu-704/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>RAID on Linux with USB devices</title>
		<link>http://www.twistedethics.com/2007/03/26/raid-on-linux-with-usb-devices/</link>
		<comments>http://www.twistedethics.com/2007/03/26/raid-on-linux-with-usb-devices/#comments</comments>
		<pubDate>Mon, 26 Mar 2007 19:36:03 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.twistedethics.com/2007/03/26/raid-on-linux-with-usb-devices/</guid>
		<description><![CDATA[Whilst studying for the Linux+ Exam just now, something hit me. If you ever run out of SATA/PATA ports on a system, you could just add more drives on the USB bus. this would be nice for the new RAID5 set up. Granted there&#8217;s the physical space/storage issues, but it&#8217;s still properly accessible storage. I [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst studying for the Linux+ Exam just now, something hit me. If you ever run out of SATA/PATA ports on a system, you could just add more drives on the USB bus. this would be nice for the <a href="http://www.twistedethics.com/2007/03/14/raid-5-in-ubuntu-with-mdadm/">new RAID5 set up</a>. Granted there&#8217;s the physical space/storage issues, but it&#8217;s still properly accessible storage. I wonder if mdadm would support the hot-plugability of USB in a RAID array. Hmmm&#8230; that would be very cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/03/26/raid-on-linux-with-usb-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Enterprise Search</title>
		<link>http://www.twistedethics.com/2007/03/21/free-enterprise-search/</link>
		<comments>http://www.twistedethics.com/2007/03/21/free-enterprise-search/#comments</comments>
		<pubDate>Wed, 21 Mar 2007 12:35:46 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[General IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://twistedethics.com/2007/03/21/free-enterprise-search/</guid>
		<description><![CDATA[If you follow this blog, you&#8217;ll know that I recently setup an Ubuntu box running Samba with a 2.7TB Raid5 array. Its job is to replace one of our 300GB Dell PowerVault 715N NAS boxes which has become full.
Finding files on our previous 300GB PowerVault was nothing short of a nightmare and, with such a [...]]]></description>
			<content:encoded><![CDATA[<p>If you follow this blog, you&#8217;ll know that I recently setup an Ubuntu box running Samba with <a href="http://twistedethics.com/2007/03/14/raid-5-in-ubuntu-with-mdadm/">a 2.7TB Raid5 array</a>. Its job is to replace one of our 300GB Dell PowerVault 715N NAS boxes which has become full.</p>
<p>Finding files on our previous 300GB PowerVault was nothing short of a nightmare and, with such a vast amount of data on the new system, we have to ensure that information won&#8217;t get &#8216;lost&#8217; as easily. Obviously proper structuring of directories  through a bit of Information Architecture will help, but what we really need is a search facility.</p>
<p>As a small company with a limited budget,  the search facility has to be affordable. In addition, it needs to be easily accessible to everyone in the network, preferably without installing extra applications onto client systems&#8230;</p>
<p><span id="more-33"></span></p>
<p>After a bit of digging around, and discounting the costly Google Appliance and Google Desktop Enterprise (Unfortunately, we don&#8217;t run an Active Directory network), I stumbled across <a href="http://omnifind.ibm.yahoo.net/">IBM&#8217;s OmniFind Yahoo! Edition</a>. It&#8217;s a free edition of their OmniFind software &#8211; which retails for thousands of dollars &#8211; and installs on both Linux (with a GUI) and Windows. Key features for us are that:</p>
<ol>
<li>It&#8217;s free.</li>
<li>It&#8217;s simple to setup.</li>
<li>It provides a search interface to users through a browser. (http://hostname:8080/)</li>
</ol>
<p>As my Ubuntu system is purely command line, OmniFind wouldn&#8217;t install, so I&#8217;ll be reusing the old 300GB PowerVault that this 2.7TB Linux system will replace. I&#8217;m playing with it right now and it&#8217;s incredibly easy to use. Setting up indexing is a doddle and there&#8217;s plenty of customisation options for the web interface that users will see when searching, including:</p>
<ul>
<li> Logo replacement, allowing you to re-inforce corporate branding.</li>
<li>Featured links, drawing attention to essential information.</li>
<li>Ranking modification</li>
</ul>
<p>Once it&#8217;s indexed all of our data, I&#8217;ll play with it, see how it performs, and update the blog <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/03/21/free-enterprise-search/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RAID-5 in Ubuntu with mdadm</title>
		<link>http://www.twistedethics.com/2007/03/14/raid-5-in-ubuntu-with-mdadm/</link>
		<comments>http://www.twistedethics.com/2007/03/14/raid-5-in-ubuntu-with-mdadm/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 13:12:55 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://twistedethics.com/?p=29</guid>
		<description><![CDATA[Couldn&#8217;t really find anyone who&#8217;d documented setting up a RAID 5 array with Linux and mdadm, so figured I&#8217;d jot down the method I used in Ubuntu 6.10. It basically boils down to four commands (I am assuming you have a fresh install):
sudo apt-get install mdadm
sudo mdadm --create /dev/md0 --raid-devices=5 /dev/sd[abcde]1 --level=raid5
sudo mke2fs -j /dev/md0
sudo [...]]]></description>
			<content:encoded><![CDATA[<p>Couldn&#8217;t really find anyone who&#8217;d documented setting up a RAID 5 array with Linux and mdadm, so figured I&#8217;d jot down the method I used in Ubuntu 6.10. It basically boils down to four commands (I am assuming you have a fresh install):</p>
<pre>sudo apt-get install mdadm
sudo mdadm --create /dev/md0 --raid-devices=5 /dev/sd[abcde]1 --level=raid5
sudo mke2fs -j /dev/md0
sudo mount /dev/md0 /mnt/raid</pre>
<p>To explain a little:</p>
<p>The first command installs mdadm.</p>
<p>The second command creates the raid array /dev/md0, then sets how many disks &#8211; and their respective locations &#8211; there&#8217;ll be in the array. In my case, we have 5 750GB drives, which are /dev/sda through to /dev/sde. The 1 is the partition identifier. Level sets the raid level, which in this case is raid5.</p>
<p>The third command &#8216;<code>sudo mke2fs -j /dev/md0</code> &#8216; makes an ext3 filesystem on the array.</p>
<p>And finally &#8216;<code>sudo mount /dev/md0 /mnt/raid</code>&#8216; mounts the array to /mnt/raid (you can mount it wherever you like)</p>
<p>Note 1: Make sure you have mdadm installed. If you don&#8217;t: <code>sudo apt-get install mdadm</code></p>
<p>Note 2: If you&#8217;re not using Ubuntu, su to root and run the commands without &#8216;sudo&#8217;</p>
<p>Note 3: If you get an error stating &#8216;mdadm: error opening /dev/md0: No such file or directory&#8217;, you need to bypass udev and use this command instead: <code>sudo mdadm --create /dev/md0 --raid-devices=5 /dev/sd[abcde]1 --level=raid5 --auto=yes</code></p>
<p>Note 4: To view the status of your array: <code>sudo mdadm --detail /dev/md0</code></p>
<p>Note 5: If you need to view a list of your hard drives, try these commands: <code>ls -l /dev/sd*</code> or<code> ls -l /dev/hd*</code></p>
<p>I am certainly no Linux expert. <strong>Corrections, and suggestions on how to improve this method are encouraged</strong> <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Update: There&#8217;s a very thorough guide <a href="http://bfish.xaedalus.net/?p=188">here</a>, but it seems to cover some GUI elements &#8211; which wasn&#8217;t an option for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/03/14/raid-5-in-ubuntu-with-mdadm/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>1and1 dedicated server: change German language to English</title>
		<link>http://www.twistedethics.com/2007/02/27/1and1-dedicated-server-change-german-language-to-english/</link>
		<comments>http://www.twistedethics.com/2007/02/27/1and1-dedicated-server-change-german-language-to-english/#comments</comments>
		<pubDate>Tue, 27 Feb 2007 09:54:30 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://twistedethics.com/?p=28</guid>
		<description><![CDATA[Our 64-bit 1and1 Dedicated Server shipped with German as the default language on the CLI. Dead handy when you&#8217;re trying to troubleshoot&#8230;

See the comments section for a much more elegant solution to this problem.

I thought I&#8217;d found a solution by changing the Bash language but it broke some stuff (including yum) so I went back [...]]]></description>
			<content:encoded><![CDATA[<p>Our 64-bit 1and1 Dedicated Server shipped with German as the default language on the CLI. Dead handy when you&#8217;re trying to troubleshoot&#8230;</p>
<div class="highlight">
See the comments section for a much more elegant solution to this problem.
</div>
<p>I thought I&#8217;d found a solution by <a href="/2006/12/22/change-default-language-in-bash/">changing the Bash language</a> but it broke some stuff (including yum) so I went back to the default and put up with it. By chance, whilst browsing around <a href="http://www.atomicrocketturtle.com/">atomicrocketturtle.com</a>, I found <a href="http://www.atomicrocketturtle.com/Joomla/content/view/156/1/">Scott had fixed the same problem</a> <em>far</em> more elegantly:</p>
<p>Here a quick step-by-step guide for FC4, on the 64-bit systems:</p>
<ol>
<li>Login as root (or su)</li>
<li>Backup your yum.conf file: <code>cp /etc/yum.conf /etc/yum.conf.YYYY-MM-DD</code></li>
<li>Edit your /etc/yum.conf file</li>
<li>Comment out the entries in your yum.conf  which feature &#8216;update.onlinehome-server.info&#8217;. That server doesn&#8217;t work right now, and by commenting them out, yum will resort to the defaults in /etc/yum.repo.d</li>
<li>Save yum.conf</li>
<li>Run: <code>yum install system-config-language</code></li>
<li>You&#8217;ll be asked to confirm. Now, let it install&#8230;</li>
<li>To change the language, run this from the command line: <code>system-config-language</code></li>
<li>Scroll up and choose English (British) (or whatever language you want).</li>
<li>Hit the Tab key to switch to &#8220;OK&#8221;</li>
<li>Hit return.</li>
<li>Ta-da, English language feedback <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
<p>For reference, your yum.conf should look something like this: <a href="/wp-content/uploads/2007/03/yumconf.txt" title="yum.conf.txt">yum.conf.txt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/02/27/1and1-dedicated-server-change-german-language-to-english/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Enable ssh root login on Cobalt RAQs</title>
		<link>http://www.twistedethics.com/2007/01/11/enable-ssh-root-login-on-cobalt-raqs/</link>
		<comments>http://www.twistedethics.com/2007/01/11/enable-ssh-root-login-on-cobalt-raqs/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 11:06:58 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://twistedethics.com/?p=21</guid>
		<description><![CDATA[To enable root logins via SSH on a Cobalt RAQ, edit  /etc/ssh/sshd_config  and change &#8220;PermitRootLogin&#8221; to &#8220;yes&#8221;.
I needed to do this to allow Plesk to login to our old servers during the big migration, as it can&#8217;t login as admin, then su to root  
]]></description>
			<content:encoded><![CDATA[<p>To enable root logins via SSH on a Cobalt RAQ, edit  /etc/ssh/sshd_config  and change &#8220;PermitRootLogin&#8221; to &#8220;yes&#8221;.</p>
<p>I needed to do this to allow Plesk to login to our old servers during the big migration, as it can&#8217;t login as admin, then su to root <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/01/11/enable-ssh-root-login-on-cobalt-raqs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SpamAssassin: Can&#8217;t locate Mail/SPF/Query.pm</title>
		<link>http://www.twistedethics.com/2007/01/11/spamassassin-cant-locate-mailspfquerypm/</link>
		<comments>http://www.twistedethics.com/2007/01/11/spamassassin-cant-locate-mailspfquerypm/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 10:25:48 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SpamAssassin]]></category>

		<guid isPermaLink="false">http://twistedethics.com/?p=20</guid>
		<description><![CDATA[If you have SpamAssassin installed and see &#8220;Can't locate Mail/SPF/Query.pm in @INC...&#8221;           in your error logs, you need to install Mail::SPF::Query. 
SpamAssassin uses SPF to           detect header and email-source forgery &#8211; very important in determining [...]]]></description>
			<content:encoded><![CDATA[<p>If you have SpamAssassin installed and see &#8220;<code>Can't locate Mail/SPF/Query.pm in @INC...</code>&#8221;           in your error logs, you need to install <em>Mail::SPF::Query. </em><span></span></p>
<p><span>SpamAssassin uses SPF to           detect header and email-source forgery &#8211; very important in determining if e-mail is legitimate or not.</span></p>
<p>To install Mail::SPF::Query, run these commands as root:</p>
<p><code>perl -MCPAN -e shell<br />
install Mail::SPF::Query</code></p>
<p>If you haven&#8217;t yet added SPF records to your DNS, you can find out more at the <a href="http://www.openspf.org/">Sender Policy Framework site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/01/11/spamassassin-cant-locate-mailspfquerypm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SpamAssassin: Can’t locate Mail/SPF/Query.pm</title>
		<link>http://www.twistedethics.com/2007/01/11/spamassassin-cant-locate-mailspfquerypm-2/</link>
		<comments>http://www.twistedethics.com/2007/01/11/spamassassin-cant-locate-mailspfquerypm-2/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 10:25:48 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SpamAssassin]]></category>

		<guid isPermaLink="false">http://twistedethics.com/?p=20</guid>
		<description><![CDATA[If you have SpamAssassin installed and see &#8220;Can't locate Mail/SPF/Query.pm in @INC...&#8221;           in your error logs, you need to install Mail::SPF::Query. 
SpamAssassin uses SPF to           detect header and email-source forgery &#8211; very important in determining [...]]]></description>
			<content:encoded><![CDATA[<p>If you have SpamAssassin installed and see &#8220;<code>Can't locate Mail/SPF/Query.pm in @INC...</code>&#8221;           in your error logs, you need to install <em>Mail::SPF::Query. </em><span></span></p>
<p><span>SpamAssassin uses SPF to           detect header and email-source forgery &#8211; very important in determining if e-mail is legitimate or not.</span></p>
<p>To install Mail::SPF::Query, run these commands as root:</p>
<p><code>perl -MCPAN -e shell<br />
install Mail::SPF::Query</code></p>
<p>If you haven&#8217;t yet added SPF records to your DNS, you can find out more at the <a href="http://www.openspf.org/">Sender Policy Framework site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/01/11/spamassassin-cant-locate-mailspfquerypm-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GPG: There is no assurance this key belongs to the named user</title>
		<link>http://www.twistedethics.com/2007/01/09/gpg-there-is-no-assurance-this-key-belongs-to-the-named-user/</link>
		<comments>http://www.twistedethics.com/2007/01/09/gpg-there-is-no-assurance-this-key-belongs-to-the-named-user/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 10:59:28 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://twistedethics.com/?p=19</guid>
		<description><![CDATA[In GnuPG, if you get an error saying &#8220;There is no assurance this key belongs to the named user&#8221; when trying to encrypt, you need to sign the public key.
You can sign the key by typing &#8220;gpg --sign-key user-id&#8221;  at the command prompt.
Footnote: I came across this whilst migrating our e-commerce system to a [...]]]></description>
			<content:encoded><![CDATA[<p>In GnuPG, if you get an error saying &#8220;There is no assurance this key belongs to the named user&#8221; when trying to encrypt, you need to sign the public key.</p>
<p>You can sign the key by typing &#8220;<code>gpg --sign-key <em>user-id</em></code>&#8221;  at the command prompt.</p>
<p>Footnote: I came across this whilst migrating our e-commerce system to a new server. The system uses GnuPG to encrypt the order/credit card information and then emails it to our sales team. I&#8217;m making sure I document the process fully, so that I don&#8217;t have to spend so much time figuring this stuff out again! <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2007/01/09/gpg-there-is-no-assurance-this-key-belongs-to-the-named-user/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Change default language in bash</title>
		<link>http://www.twistedethics.com/2006/12/22/change-default-language-in-bash/</link>
		<comments>http://www.twistedethics.com/2006/12/22/change-default-language-in-bash/#comments</comments>
		<pubDate>Fri, 22 Dec 2006 12:03:48 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://twistedethics.com/?p=18</guid>
		<description><![CDATA[To change the default language in the bash console (shell, terminal, command line &#8211; whatever you want to call it), go to your user home (e.g. /home/username/) edit or make a .bash_profile, and add this line to it:
export LANG=en
For some bizarre reason, our new dedicated server from 1and1 defaults to German feedback, which is really [...]]]></description>
			<content:encoded><![CDATA[<p>To change the default language in the bash console (shell, terminal, command line &#8211; whatever you want to call it), go to your user home (e.g. /home/username/) edit or make a .bash_profile, and add this line to it:</p>
<p>export LANG=en</p>
<p>For some bizarre reason, our new dedicated server from 1and1 defaults to German feedback, which is really handy when you&#8217;re trying to work on the shell!</p>
<p><strong>Update &#8211; 2007-02-27</strong>: If  you have a 1and1 server stuck in German, this solution above doesn&#8217;t work properly (it breaks some stuff). I&#8217;ve written up a much <a href="/2007/02/27/1and1-dedicated-server-change-german-language-to-english/">more elegant solution</a>  which does actually work (thanks to Scott from <a href="http://www.atomicrocketturtle.com/">ART</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2006/12/22/change-default-language-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache &#8211; Redirect all requests to a single page</title>
		<link>http://www.twistedethics.com/2006/12/18/apache-redirect-all-requests-to-a-single-page/</link>
		<comments>http://www.twistedethics.com/2006/12/18/apache-redirect-all-requests-to-a-single-page/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 17:03:28 +0000</pubDate>
		<dc:creator>Phil Wiffen</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://twistedethics.com/?p=17</guid>
		<description><![CDATA[We&#8217;re migrating servers at work, and I needed to show a single &#8220;We&#8217;re moving&#8221; page no matter what URL was requested. Here&#8217;s how to do it permanently, and temporarily:
       RedirectMatch permanent .*       http://yoursite.com/migration.html
       RedirectMatch temp .*  [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re migrating servers at work, and I needed to show a single &#8220;We&#8217;re moving&#8221; page no matter what URL was requested. Here&#8217;s how to do it permanently, and temporarily:</p>
<blockquote><p>       <code>RedirectMatch permanent .*       http://yoursite.com/migration.html</code></p></blockquote>
<blockquote><p>       <code>RedirectMatch temp .*       http://yoursite.com/migration.html</code></p></blockquote>
<p>Make sure you point to a different domain than the one you&#8217;re migrating! <img src='http://www.twistedethics.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedethics.com/2006/12/18/apache-redirect-all-requests-to-a-single-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

