<?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>Bashton Blog &#187; Linux</title>
	<atom:link href="http://blog.bashton.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bashton.com</link>
	<description>Bashton Ltd</description>
	<lastBuildDate>Tue, 13 Apr 2010 05:30:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using a Dell S300 RAID card under Linux</title>
		<link>http://blog.bashton.com/2010/using-a-dell-s300-raid-card-under-linux/</link>
		<comments>http://blog.bashton.com/2010/using-a-dell-s300-raid-card-under-linux/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 17:44:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[fakeraid]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[rhel]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/?p=541</guid>
		<description><![CDATA[For anyone else googling trying to find the answer to this, as I was today, I refer you to the following Red Hat article:
Do the S100 and S300 Software RAID controllers in my Dell PowerEdge Server work with Red Hat Enterprise Linux?
To paraphrase, the solution is to take the RAID card out the server and [...]]]></description>
			<content:encoded><![CDATA[<p>For anyone else googling trying to find the answer to this, as I was today, I refer you to the following Red Hat article:</p>
<p><a href="http://kbase.redhat.com/faq/docs/DOC-19840">Do the S100 and S300 Software RAID controllers in my Dell PowerEdge Server work with Red Hat Enterprise Linux?</a></p>
<p>To paraphrase, the solution is to take the RAID card out the server and throw it in the bin.  The S300 isn&#8217;t a real RAID card, it&#8217;s a <a href="http://en.wikipedia.org/wiki/RAID">fakeraid</a>.  You&#8217;re better off just using Linux software RAID.</p>
<p>Unfortunately, the cabling in the server doesn&#8217;t allow for connecting to the on-board SATA ports, or rather for powering them.  Speaking to Dell support, they initially suggested that just disabling the card in the BIOS would be sufficient; they later admitted it isn&#8217;t, and offered to send out suitable cables.</p>
<p>I seem to remember Dell making a big deal of their entire server line offering full Linux support some time ago, so I&#8217;m surprised to see them making this retrograde step &#8211; particularly as Linux represents a large percentage of the server market.  In Dell&#8217;s defence they do make it reasonably clear that the S300 card isn&#8217;t supported under Linux at the ordering stage.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2010/using-a-dell-s300-raid-card-under-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Want to cut your IT budget without cutting services? Switch to Linux</title>
		<link>http://blog.bashton.com/2009/want-to-cut-your-it-budget-without-cutting-services-switch-to-linux/</link>
		<comments>http://blog.bashton.com/2009/want-to-cut-your-it-budget-without-cutting-services-switch-to-linux/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 16:56:07 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gendarmerie]]></category>
		<category><![CDATA[recession]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2009/want-to-cut-your-it-budget-without-cutting-services-switch-to-linux/</guid>
		<description><![CDATA[For obvious reasons everyone is looking to make cost savings at the moment, and for inspiration you can look to the French Gendarmerie, who have saved millions of Euros as part of a transition to Linux.
 &#8220;A report published by the European Commission&#8217;s Open Source Observatory provides some details from a recent presentation given by Gendarmerie [...]]]></description>
			<content:encoded><![CDATA[<p>For obvious reasons everyone is looking to make cost savings at the moment, and for inspiration you can look to the French Gendarmerie, who have saved millions of Euros as part of a transition to Linux.</p>
<p><em> </em><em>&#8220;A report published by the European Commission&#8217;s Open Source Observatory provides some details from a recent presentation given by Gendarmerie Lieutenant-Colonel Xavier Guimard, who says that the Gendarmerie has been able to reduced its annual IT budget by 70 percent without having to reduce its capabilities.&#8221;</em></p>
<p><a href="http://arstechnica.com/open-source/news/2009/03/french-police-saves-millions-of-euros-by-adopting-ubuntu.ars">Read the full story over at Ars Technica</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2009/want-to-cut-your-it-budget-without-cutting-services-switch-to-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another angle on TCO</title>
		<link>http://blog.bashton.com/2008/another-angle-on-tco/</link>
		<comments>http://blog.bashton.com/2008/another-angle-on-tco/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 08:54:11 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/another-angle-on-tco/</guid>
		<description><![CDATA[One often overlooked issue with regards to calculating the total cost of ownership for an OS: power consumption.
These figures from  http://mjg59.livejournal.com/103511.html:

Idle power draw of Fedora 10: 100W
Idle power draw of Opensolaris 2008-11: 135W

]]></description>
			<content:encoded><![CDATA[<p>One often overlooked issue with regards to calculating the total cost of ownership for an OS: power consumption.</p>
<p>These figures from  <a href="http://mjg59.livejournal.com/103511.html">http://mjg59.livejournal.com/103511.html</a>:</p>
<ul>
<li>Idle power draw of Fedora 10: 100W</li>
<li>Idle power draw of Opensolaris 2008-11: 135W</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/another-angle-on-tco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linus starts to blog</title>
		<link>http://blog.bashton.com/2008/linus-starts-to-blog/</link>
		<comments>http://blog.bashton.com/2008/linus-starts-to-blog/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 13:53:51 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[blogosphere]]></category>
		<category><![CDATA[linus torvalds]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/linus-starts-to-blog/</guid>
		<description><![CDATA[A bit late to the party with this one, as he started whilst I was on holiday, but Linux create Linus Torvalds has started his own blog.
It&#8217;s interestingly entitled &#8216;Torvalds Family Blog&#8217;, although Linus being Linus I&#8217;m sure we&#8217;ll see some excellent highly controversial non-family posts, just like his mailing list postings.
]]></description>
			<content:encoded><![CDATA[<p>A bit late to the party with this one, as he started whilst I was on holiday, but Linux create Linus Torvalds has started <a href="http://torvalds-family.blogspot.com/">his own blog</a>.</p>
<p>It&#8217;s interestingly entitled &#8216;Torvalds Family Blog&#8217;, although Linus being Linus I&#8217;m sure we&#8217;ll see some excellent highly controversial non-family posts, just like his <a href="http://article.gmane.org/gmane.linux.kernel/706950">mailing list postings</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/linus-starts-to-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for Perl slowness on Red Hat/CentOS 5</title>
		<link>http://blog.bashton.com/2008/fix-for-perl-slowness-on-red-hatcentos-5/</link>
		<comments>http://blog.bashton.com/2008/fix-for-perl-slowness-on-red-hatcentos-5/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 07:57:31 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/fix-for-perl-slowness-on-red-hatcentos-5/</guid>
		<description><![CDATA[Some of you may have heard about the kerfuffle surrounding poor Perl performance on Red Hat 5/CentOS 5 &#8211; it got a bit of attention on reddit/digg.  Red Hat had been issuing hot fixes to people who complained, but now Karanbir Singh has created an updated Perl package.
This issue should be fixed in RHEL/CentOS 5.3, [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you may have heard about the <a href="http://blog.vipul.net/2008/08/24/redhat-perl-what-a-tragedy/">kerfuffle surrounding poor Perl performance</a> on Red Hat 5/CentOS 5 &#8211; it got a bit of attention on reddit/digg.  Red Hat had been issuing hot fixes to people who complained, but now <a href="http://www.karan.org/blog/index.php/2008/09/08/slow-perl-on-centos-5-potential-fix">Karanbir Singh has created an updated Perl package</a>.</p>
<p>This issue should be fixed in RHEL/CentOS 5.3, but until then, if you&#8217;re experiencing slowness I&#8217;d advise installing this &#8211; after appropriate testing on staging/UAT servers of course.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/fix-for-perl-slowness-on-red-hatcentos-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RedHat warn of tampered SSH packages</title>
		<link>http://blog.bashton.com/2008/redhat-warn-of-tampered-ssh-packages/</link>
		<comments>http://blog.bashton.com/2008/redhat-warn-of-tampered-ssh-packages/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 16:04:14 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/redhat-warn-of-tampered-ssh-packages/</guid>
		<description><![CDATA[Red Hat have released a security advisory detailing an intrusion on their servers. The attacker apparently managed to sign some compromised OpenSSH packages.
There is a parallel Fedora announcement, and although it seems that Fedora wasn&#8217;t affected they are issuing new package signing keys as a precaution.  Red Hat use a hardware device for signing their [...]]]></description>
			<content:encoded><![CDATA[<p>Red Hat have released <a href="http://www.redhat.com/security/data/openssh-blacklist.html">a security advisory</a> detailing an intrusion on their servers. The attacker apparently managed to sign some compromised OpenSSH packages.</p>
<p>There is a parallel <a href="https://www.redhat.com/archives/fedora-announce-list/2008-August/msg00012.html">Fedora announcement</a>, and although it seems that Fedora wasn&#8217;t affected they are issuing new package signing keys as a precaution.  Red Hat use <a href="http://www.awe.com/mark/blog/200701300906.html">a hardware device for signing their packages</a>, so they can make sure no further compromised packages can be created without having to re-distribute new signing keys.</p>
<p>Red Hat Network wasn&#8217;t compromised, so although the signed packages were created, there is no risk to those whose only means of obtaining packages is via RHN (ie, most Red Hat users).</p>
<p>Whilst there certainly isn&#8217;t any need to panic, this is sure to cause concern amongst those running Red Hat.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/redhat-warn-of-tampered-ssh-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Server Distribution Comparison</title>
		<link>http://blog.bashton.com/2008/linux-server-distribution-comparison/</link>
		<comments>http://blog.bashton.com/2008/linux-server-distribution-comparison/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 08:51:18 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[suse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/linux-server-distribution-comparison/</guid>
		<description><![CDATA[I&#8217;ve just put up an long-ish article I&#8217;ve written comparing five different server distributions.  I fully realise that by doing so I&#8217;m opening myself up to hundreds of flames from outraged fans of &#60;insert OS here&#62;, all complaining that I&#8217;ve treated their pet distro unfairly.
Given that I&#8217;ll probably be accused of bias anyway, I better [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just put up an long-ish article I&#8217;ve written <a href="http://bashton.com/linux-distribution-comparison/" title="Linux distro comparison">comparing five different server distributions</a>.  I fully realise that by doing so I&#8217;m opening myself up to hundreds of flames from outraged fans of &lt;insert OS here&gt;, all complaining that I&#8217;ve treated their pet distro unfairly.</p>
<p>Given that I&#8217;ll probably be accused of bias anyway, I better declare mine: the server that is serving you this page runs Ubuntu, as does the one running the main Bashton site. Many of our internal-facing servers run CentOS. My desktop runs Ubuntu, and my laptop runs Debian. Other staff have their own bias of course (particularly those who are Debian developers..), but as it was just me writing the article I don&#8217;t see that as relevant.</p>
<p>Please make your comments here and hopefully we can start some form of a useful debate, rather than the &#8216;distro X is the best&#8217; discussions these things usually descend into.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/linux-server-distribution-comparison/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Undeleting an open file</title>
		<link>http://blog.bashton.com/2008/undeleting-an-open-file/</link>
		<comments>http://blog.bashton.com/2008/undeleting-an-open-file/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 07:33:18 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/undeleting-an-open-file/</guid>
		<description><![CDATA[Ever deleted a file someone else had open (or had logrotate do the same), and then needed to get it back?
Dag Wieërs has too, and being the kind guy he is, he&#8217;s posted a quick guide to undeleting an open file.
]]></description>
			<content:encoded><![CDATA[<p>Ever deleted a file someone else had open (or had logrotate do the same), and then needed to get it back?</p>
<p>Dag Wieërs has too, and being the kind guy he is, he&#8217;s posted <a href="http://dag.wieers.com/blog/undeleting-an-open-file-by-inode">a quick guide to undeleting an open file</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/undeleting-an-open-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Move a Website Without Downtime</title>
		<link>http://blog.bashton.com/2008/how-to-move-a-website-without-downtime/</link>
		<comments>http://blog.bashton.com/2008/how-to-move-a-website-without-downtime/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 14:46:22 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/how-to-move-a-website-without-downtime/</guid>
		<description><![CDATA[The scenario:
You have a website you need to move to a new web server on a new IP address.  You intend to keep the domain and all URLs the same.
By utilising the Apache module mod_proxy we can make sure that all requests are sent to the correct server, despite any cached DNS entries which [...]]]></description>
			<content:encoded><![CDATA[<h3>The scenario:</h3>
<p>You have a website you need to move to a new web server on a new IP address.  You intend to keep the domain and all URLs the same.</p>
<p>By utilising the Apache module <a href="http://httpd.apache.org/docs/2.0/mod/mod_proxy.html">mod_proxy</a> we can make sure that all requests are sent to the correct server, despite any cached DNS entries which are pointing to the old IP.  Whilst this isn&#8217;t too much of a problem for static web-sites, for modern, database driven sites it is vital that all data is written to the correct location.  One particular benefit feature of this approach is that you can move just a single VirtualHost, where other approaches expect you to be moving everything hosted on that server.<br />
<span id="more-42"></span></p>
<h3>Pre-requisites:</h3>
<ul>
<li>Apache and mod_proxy on the server you are moving from</li>
<li>Access to the Apache configuration files on the server you are moving from</li>
<li>Control over the DNS for your domain</li>
</ul>
<h3>The Science Bit</h3>
<p>Essentially, what we&#8217;re going to do is make the old server into a &#8216;reverse proxy&#8217;, so it will forward all requests on to the new server, then return the reply to the client.  One thing to watch out for is scripts that do checking based on the remote IP address, as this will be seen as the old server&#8217;s IP for proxied connections.</p>
<h3>The Procedure</h3>
<h4>Testing on the new server</h4>
<p>First, I&#8217;d recommend taking a copy of your website and putting it up on the new server to test that everything is OK.  You can view the website on the new server by making an entry in your &#8216;hosts&#8217; file on your local machine(/etc/hosts on Linux/Mac OS X, c:\windows\system32\drivers\etc on Windows).  An example entry is below:</p>
<pre>
  # Temporary entry for www.example.com on the new server

  192.168.0.5   www.example.com</pre>
<p>Once you&#8217;ve ascertained that everything is working correctly on the new server, we can begin the process of moving the website.</p>
<h4>Disable updates</h4>
<p>Firstly, we need to stop any modifications to the site/database, so you might want to put up an &#8216;under maintenance&#8217; page.  Many applications (Wordpress comes to mind) already include this feature, so it could be as simple as ticking a box and hitting save.  An important thing to remember here is that just putting up a page on the front of your site isn&#8217;t going to be enough &#8211; people will be following deep links and/or already using the site.</p>
<h4>Copy the site across</h4>
<p>Take a copy of the site, move it to the new server and disable the &#8216;under maintenance&#8217; page on the server you&#8217;re moving to.  You might want to double-check everything is OK on the new server at this point, as pretty soon we&#8217;re going to hit the point of no (easy) return.</p>
<h4>Edit the hosts file on the server</h4>
<p>Next, add the hosts entry you made on your local machine to the hosts file on the server you&#8217;re moving from.  You need this because we&#8217;re going to be proxying to the new server by hostname &#8211; if the old server still thinks it&#8217;s hosting the domain, we&#8217;re going to get ourselves in an infinite loop.</p>
<h4>Alter the Apache Config</h4>
<p>Now here&#8217;s where the actual proxying part comes in.  In the VirtualHost declaration for the website you want to move, replace the existing config with the following:</p>
<pre>
  ServerName www.example.com  ProxyRequests Off

&lt;Proxy *&gt;

    Order deny,allow

    Allow from all

  &lt;/Proxy&gt;

ProxyPass / http://www.example.com/

  ProxyPassReverse / http://www.example.com/</pre>
<p>It&#8217;s also probably a good idea to leave your log statements intact &#8211; this way you can see how many hits to the old IP you&#8217;re getting.</p>
<p>Now run a config check (<em>apachectl configtest</em>), and reload the Apache configuration.</p>
<p>Remove the entry you made in your local hosts file earlier, and verify that the proxy is indeed working.  If all is well, you should see an entry in your Apache log on your old server, and an entry in the Apache log on the new server showing the IP of the old server a<br />
s the client.</p>
<h4>Move DNS</h4>
<p>Now the proxying is set up and we&#8217;ve verified it all as working, it&#8217;s time to switch the DNS across to the new IP address.  From now on you&#8217;ll gradually get more and more connections directly to the new server.</p>
<p>After a week or two it should be safe to remove the configuration from the old server &#8211; I&#8217;d suggest checking the logs to ascertain when the last connection was received to the previous server.  If it&#8217;s been more than a week, you&#8217;re probably safe.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/how-to-move-a-website-without-downtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome</title>
		<link>http://blog.bashton.com/2008/welcome/</link>
		<comments>http://blog.bashton.com/2008/welcome/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 14:34:04 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[frist post]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[obxkcd]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/welcome/</guid>
		<description><![CDATA[Every blog has to have a first post, and it seems to be convention for it to contain over-optimistic enthusiasm about the number of posts and/or readers, as well as telling everyone to &#8216;watch this space&#8217; for enthralling new postings which generally never arrive, or which are decidedly un-enthralling when they do.
Instead, here&#8217;s that other [...]]]></description>
			<content:encoded><![CDATA[<p>Every blog has to have a first post, and it seems to be convention for it to contain over-optimistic enthusiasm about the number of posts and/or readers, as well as telling everyone to &#8216;watch this space&#8217; for enthralling new postings which generally never arrive, or which are decidedly un-enthralling when they do.</p>
<p>Instead, here&#8217;s that other geek blog staple, an xkcd post:</p>
<p><img src="http://imgs.xkcd.com/comics/cautionary.png" alt="XKCD" width="665" height="277" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/welcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
