<?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; centos</title>
	<atom:link href="http://blog.bashton.com/tag/centos/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>Running an Ubuntu Hardy Xen domU under a CentOS dom0</title>
		<link>http://blog.bashton.com/2008/running-an-ubuntu-hardy-xen-domu-under-a-centos-dom0/</link>
		<comments>http://blog.bashton.com/2008/running-an-ubuntu-hardy-xen-domu-under-a-centos-dom0/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 08:10:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/running-an-ubuntu-hardy-xen-domu-under-a-centos-dom0/</guid>
		<description><![CDATA[As pretty much always with Linux there&#8217;s more than one way to do this, but here&#8217;s how I got a nicely working para-virtualized Ubuntu Hardy domU running under a CentOS 5.2 dom0:

Install hardy under an HVM using the standard ISO
Boot into your new hardy install and run sudo apt-get install linux-image-xen  (make sure you [...]]]></description>
			<content:encoded><![CDATA[<p>As pretty much always with Linux there&#8217;s more than one way to do this, but here&#8217;s how I got a nicely working para-virtualized Ubuntu Hardy domU running under a CentOS 5.2 dom0:</p>
<ul>
<li>Install hardy under an HVM using the standard ISO</li>
<li>Boot into your new hardy install and run <code>sudo apt-get install linux-image-xen </code> (make sure you have universe enabled)</li>
<li>Add appropriate settings to your /boot/grub/menu.lst &#8211; here&#8217;s what I added:</li>
</ul>
<p><code><br />
title           Ubuntu 8.04.1, kernel 2.6.24-19-xen<br />
root            (hd0,0)<br />
kernel          /vmlinuz-2.6.24-19-xen root=/dev/mapper/dsk-root ro<br />
initrd          /initrd.img-2.6.24-19-xen</code></p>
<ul>
<li>Add a console on xvc0: <code>sed -e 's/tty1/xvc0/' /etc/event.d/tty1 | sudo tee /etc/event.d/xvc0</code></li>
<li>Power off your Ubuntu VM</li>
<li>On your CentOS dom0, alter the Xen VM configuration file to boot using pygrub, very basic example below:</li>
</ul>
<p><code><br />
bootloader = '/usr/bin/pygrub'<br />
memory = 1024<br />
name = "ubuntu-test"<br />
vif = [ '' ]<br />
disk = [ 'phy:/dev/san1/ubuntu-test,xvda1,w']</code></p>
<ul>
<li>Restart your Hardy VM and enjoy massively improved performance</li>
</ul>
<p><strike>One thing missing from the para-virtualized VM is VNC support &#8211; you have to use the console via the &#8216;xm console&#8217; command.</strike></p>
<p>The procedure should be similar for Citrix XenServer, although it will involve some messing with the xe vm-param-set command rather than editing the config file.  When I have a chance I&#8217;ll document this too.</p>
<p><strong>Update, 30/9/08:</strong></p>
<p>To enable a VNC console, do the following as well as the above:</p>
<ul>
<li>Add the framebuffer drivers into the initramfs</li>
</ul>
<p><code>echo "fbcon" | sudo tee -a /etc/initramfs-tools/modules<br />
echo "vga16fb" | sudo tee -a /etc/initramfs-tools/modules<br />
sudo sed -ie 's/^blacklist vga16fb$/#&#038;/' /etc/modprobe.d/blacklist-framebuffer</code></p>
<ul>
<li>Re-generate the initramfs</li>
</ul>
<p><code>sudo update-initramfs -u -k all</code></p>
<ul>
<li>Alter your grub menu.lst to include the boot options console=tty1 vga=normal (best done via the defoptions line, I tend to remove <em>quiet</em> and <em>splash</em> from here too)</li>
</ul>
<p>Reboot, and you can now use a VNC console as well as the Xen <em>xm console</em> command.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/running-an-ubuntu-hardy-xen-domu-under-a-centos-dom0/feed/</wfw:commentRss>
		<slash:comments>1</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>Django 1.0 Released</title>
		<link>http://blog.bashton.com/2008/django-10-released/</link>
		<comments>http://blog.bashton.com/2008/django-10-released/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 08:49:02 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[RPM]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/django-10-released/</guid>
		<description><![CDATA[The final version of Django 1.0 has been released.  Debian packages are available from the unstable repository and these should install cleanly on Ubuntu too.
As I noted previously with the Alpha releases, an RPM for RHEL5/Centos can be built by doing:
python setup.py bdist_rpm
Note you&#8217;ll need an updated MySQL-python library installed, which can be found below.
MySQL-python-1.2.2-1.x86_64.rpm
If [...]]]></description>
			<content:encoded><![CDATA[<p>The final version of Django 1.0 <a href="http://www.djangoproject.com/">has been released</a>.  Debian packages are available from the <a href="http://packages.debian.org/search?keywords=django&amp;searchon=names&amp;suite=unstable&amp;section=all">unstable repository</a> and these should install cleanly on Ubuntu too.</p>
<p>As I <a href="http://blog.bashton.com/2008/django-10-alpha-rpms-for-centosrhel-5/">noted previously with the Alpha releases</a>, an RPM for RHEL5/Centos can be built by doing:</p>
<pre>python setup.py bdist_rpm</pre>
<p>Note you&#8217;ll need an updated MySQL-python library installed, which can be found below.</p>
<p><a href="http://bashton.com/downloads/rpm/mysql-python/MySQL-python-1.2.2-1.x86_64.rpm">MySQL-python-1.2.2-1.x86_64.rpm</a></p>
<p>If you’re not using a 64bit server, you can download this source RPM and rebuild via rpmbuild –rebuild:</p>
<p><a href="http://bashton.com/downloads/rpm/mysql-python/MySQL-python-1.2.2-1.src.rpm">MySQL-python-1.2.2-1.src.rpm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/django-10-released/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>Python 2.5 RPMs for RHEL 5 / Centos 5</title>
		<link>http://blog.bashton.com/2008/python-25-rpms-for-rhel-5-centos-5/</link>
		<comments>http://blog.bashton.com/2008/python-25-rpms-for-rhel-5-centos-5/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:08:28 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[RPM]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/python-25-rpms-for-rhel-5-centos-5/</guid>
		<description><![CDATA[Red Hat Enterprise 5 ships with Python 2.4.  As it uses this for the majority if its inbuilt scripts, it&#8217;s probably not such a good idea to just change it.
With this in mind, I built the following Python 2.5 RPMs, which create the python executable as /usr/bin/python25.  This means that where necessary, you can use [...]]]></description>
			<content:encoded><![CDATA[<p>Red Hat Enterprise 5 ships with Python 2.4.  As it uses this for the majority if its inbuilt scripts, it&#8217;s probably not such a good idea to just change it.</p>
<p>With this in mind, I built the following Python 2.5 RPMs, which create the python executable as /usr/bin/python25.  This means that where necessary, you can use Python 2.5, but the system scripts will continue to use 2.4.  If you do want to use Python 2.5 by default, by all means make /usr/bin/python a symlink to this &#8211; but don&#8217;t complain to me if &#8216;bad things&#8217; happen.</p>
<p>64-bit RPMs:</p>
<p><a href="http://bashton.com/downloads/rpm/python/python25-2.5.1-bashton1.x86_64.rpm">python25-2.5.1-bashton1.x86_64.rpm</a><br />
<a href="http://bashton.com/downloads/rpm/python/python25-devel-2.5.1-bashton1.x86_64.rpm">python25-devel-2.5.1-bashton1.x86_64.rpm</a><br />
<a href="http://bashton.com/downloads/rpm/python/python25-libs-2.5.1-bashton1.x86_64.rpm">python25-libs-2.5.1-bashton1.x86_64.rpm</a><br />
<a href="http://bashton.com/downloads/rpm/python/python25-test-2.5.1-bashton1.x86_64.rpm">python25-test-2.5.1-bashton1.x86_64.rpm</a><br />
<a href="http://bashton.com/downloads/rpm/python/python25-tools-2.5.1-bashton1.x86_64.rpm">python25-tools-2.5.1-bashton1.x86_64.rpm</a></p>
<p>Source RPM:</p>
<p><a href="http://bashton.com/downloads/rpm/python/python25-2.5.1-bashton1.src.rpm">python25-2.5.1-bashton1.src.rpm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/python-25-rpms-for-rhel-5-centos-5/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Django 1.0-alpha RPMs for Centos/RHEL 5</title>
		<link>http://blog.bashton.com/2008/django-10-alpha-rpms-for-centosrhel-5/</link>
		<comments>http://blog.bashton.com/2008/django-10-alpha-rpms-for-centosrhel-5/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 12:58:42 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[RPM]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://blog.bashton.com/2008/django-10-alpha-rpms-for-centosrhel-5/</guid>
		<description><![CDATA[We&#8217;ve been using Django a lot for some internal projects, and for various reasons we&#8217;re using CentOS 5 on the servers running them.
One nice feature of the Python build system I didn&#8217;t know about until today is the ability to make RPMs using the setup.py script.  To build yourself some Django RPMs, just run:
python setup.py [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been using Django a lot for some internal projects, and for various reasons we&#8217;re using CentOS 5 on the servers running them.</p>
<p>One nice feature of the Python build system I didn&#8217;t know about until today is the ability to make RPMs using the setup.py script.  To build yourself some Django RPMs, just run:</p>
<pre>python setup.py bdist_rpm</pre>
<p>Unfortunately, this feature seems a bit hit and miss.  Django needs a newer version of MySQL-python than ships with EL5, but unfortunately the bdist_rpm for this doesn&#8217;t work.</p>
<p>As such, here&#8217;s a link to an updated MySQL-python RPM I&#8217;ve built:</p>
<p><a href="http://bashton.com/downloads/rpm/mysql-python/MySQL-python-1.2.2-1.x86_64.rpm">MySQL-python-1.2.2-1.x86_64.rpm</a></p>
<p>If you&#8217;re not using a 64bit server, you can download this source RPM and rebuild via rpmbuild &#8211;rebuild:</p>
<p><a href="http://bashton.com/downloads/rpm/mysql-python/MySQL-python-1.2.2-1.src.rpm">MySQL-python-1.2.2-1.src.rpm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bashton.com/2008/django-10-alpha-rpms-for-centosrhel-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
