<?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>Whomwah.com &#187; centos</title>
	<atom:link href="http://whomwah.com/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://whomwah.com</link>
	<description>The website of Duncan Robertson, currently working for the BBC in London, Uk</description>
	<lastBuildDate>Thu, 29 Jul 2010 19:51:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing daemontools on CentOS5 x86_64</title>
		<link>http://whomwah.com/2008/11/04/installing-daemontools-on-centos5-x86_64/</link>
		<comments>http://whomwah.com/2008/11/04/installing-daemontools-on-centos5-x86_64/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 20:43:36 +0000</pubDate>
		<dc:creator>Duncan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[daemontools]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[slicehost]]></category>

		<guid isPermaLink="false">http://whomwah.com/?p=719</guid>
		<description><![CDATA[[UPDATE] It turns out you need to apply the patch below on any recent Linux distribution, not just 64 bit architectures, if that helps anyone. More head scratching, web searching, friend asking, and huzzah, finally solved. How to actually install daemonstools on my SliceHost CentOS5 slice. The catch for me was that it wouldn&#8217;t compile [...]]]></description>
			<content:encoded><![CDATA[<p class="update">[UPDATE] It turns out you need to apply the patch below on any recent Linux distribution, not just 64 bit architectures, if that helps anyone.</a></p>
<p>More head scratching, web searching, friend asking, and huzzah, finally solved. How to actually install <a href="http://cr.yp.to/daemontools.html">daemonstools</a> on my <a href="http://slicehost.com">SliceHost</a> CentOS5 slice. The catch for me was that it wouldn&#8217;t compile because &#8216;it required <a href="http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch">a patch</a>&#8216;. Who&#8217;d of known? So here&#8217;s my notes:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ sudo mkdir -p /package
$ sudo chmod 1755 /package/
$ cd /package/
$ sudo wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
$ sudo tar xzf daemontools-0.76.tar.gz
$ sudo wget http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
$ cd admin/daemontools-0.76
$ sudo patch -p1 &lt; ../../daemontools-0.76.errno.patch
$ sudo rm ../../daemontools-0.76.errno.patch ../../daemontools-0.76.tar.gz
$ sudo ./package/install
...
...
Adding svscanboot to inittab...
init should start svscan now.</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://whomwah.com/2008/11/04/installing-daemontools-on-centos5-x86_64/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Python&#8217;s Twisted on CentOS5 x86_64</title>
		<link>http://whomwah.com/2008/10/26/installing-pythons-twisted-on-centos5-x86_64/</link>
		<comments>http://whomwah.com/2008/10/26/installing-pythons-twisted-on-centos5-x86_64/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 09:43:45 +0000</pubDate>
		<dc:creator>Duncan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://whomwah.com/?p=657</guid>
		<description><![CDATA[I had to do a bit of searching to find the correct way to install Twisted on a 64 bit CentOS 5 machine, like the one I have via virtual hosting with SliceHost. But once I had the answers it was very actually very simple, so this should save you the same headache. I was [...]]]></description>
			<content:encoded><![CDATA[<p>I had to do a bit of searching to find the correct way to install <a href="http://twistedmatrix.com/trac/">Twisted</a> on a 64 bit <a href="http://www.centos.org">CentOS</a> 5 machine, like the one I have via virtual hosting with <a href="http://www.slicehost.com">SliceHost</a>. But once I had the answers it was very actually very simple, so this should save you the same headache.</p>
<p>I was having an import problem with Twisted&#8217;s subpackages, and was also initially having a problem building the lib from source. The first problem was caused by the fact that 64 bit CentOS installs things in both /usr/lib and /usr/lib64 which confuses Twisted, as it expects things in the same directory. The final problems was due to me trying to compile Twisted without the python-devel lib and the <a href="http://twistedmatrix.com/projects/core/documentation/upgrades/2.0/components.html">Twisted Zope Interfaces which is a dependancy</a>.</p>
<p>So to install, run these commands:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ sudo yum install python-devel python-crypto pyOpenSSL zope
$ mkdir src;cd src
$ wget http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2
$ tar jxvf Twisted-8.1.0.tar.bz2
$ cd Twisted-8.1.0
$ sudo python setup.py install --install-lib /usr/lib64/python2.4</pre></div></div>

<p>Bingo, and you should now be able to test with:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">$ python
...
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #ff7700;font-weight:bold;">import</span> twisted
<span style="color: #66cc66;">&gt;&gt;&gt;</span> <span style="color: #ff7700;font-weight:bold;">import</span> twisted.<span style="color: black;">web</span></pre></div></div>

<p>The lines above should give you no output.</p>
]]></content:encoded>
			<wfw:commentRss>http://whomwah.com/2008/10/26/installing-pythons-twisted-on-centos5-x86_64/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing MySQL gem on CentOS</title>
		<link>http://whomwah.com/2008/10/13/installing-mysql-gem-on-centos/</link>
		<comments>http://whomwah.com/2008/10/13/installing-mysql-gem-on-centos/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 09:20:24 +0000</pubDate>
		<dc:creator>Duncan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://whomwah.com/?p=649</guid>
		<description><![CDATA[Old news, but you&#8217;d be surprised how many times the same: Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. ... error brings everything to a halt. Well on Centos the way to install the MySQL gem is: $ sudo yum install mysql mysql-devel gcc ... &#160; # 32 [...]]]></description>
			<content:encoded><![CDATA[<p>Old news, but you&#8217;d be surprised how many times the same:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">Could <span style="color:#9966CC; font-weight:bold;">not</span> create Makefile due to some reason, probably lack of
necessary libraries <span style="color:#9966CC; font-weight:bold;">and</span><span style="color:#006600; font-weight:bold;">/</span><span style="color:#9966CC; font-weight:bold;">or</span> headers.
...</pre></div></div>

<p>error brings everything to a halt. Well on <a href="http://www.centos.org">Centos</a> the way to install the <a href="http://www.tmtm.org/en/mysql/ruby/">MySQL gem</a> is:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">$ sudo yum install mysql mysql<span style="color:#006600; font-weight:bold;">-</span>devel gcc
...
&nbsp;
<span style="color:#008000; font-style:italic;"># 32 bit machine</span>
$ sudo gem install mysql <span style="color:#006600; font-weight:bold;">--</span> \
<span style="color:#006600; font-weight:bold;">&gt;</span> <span style="color:#006600; font-weight:bold;">--</span>with<span style="color:#006600; font-weight:bold;">-</span>mysql<span style="color:#006600; font-weight:bold;">-</span><span style="color:#9966CC; font-weight:bold;">include</span>=<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mysql \
<span style="color:#006600; font-weight:bold;">&gt;</span> <span style="color:#006600; font-weight:bold;">--</span>with<span style="color:#006600; font-weight:bold;">-</span>mysql<span style="color:#006600; font-weight:bold;">-</span>lib=<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>lib<span style="color:#006600; font-weight:bold;">/</span>mysql
&nbsp;
<span style="color:#008000; font-style:italic;"># or 64 bit like they are on SliceHost</span>
$ sudo gem install mysql <span style="color:#006600; font-weight:bold;">--</span> \
<span style="color:#006600; font-weight:bold;">&gt;</span> <span style="color:#006600; font-weight:bold;">--</span>with<span style="color:#006600; font-weight:bold;">-</span>mysql<span style="color:#006600; font-weight:bold;">-</span><span style="color:#9966CC; font-weight:bold;">include</span>=<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>bin<span style="color:#006600; font-weight:bold;">/</span>mysql \
<span style="color:#006600; font-weight:bold;">&gt;</span> <span style="color:#006600; font-weight:bold;">--</span>with<span style="color:#006600; font-weight:bold;">-</span>mysql<span style="color:#006600; font-weight:bold;">-</span>lib=<span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>lib64<span style="color:#006600; font-weight:bold;">/</span>mysq
&nbsp;
Building native extensions.  <span style="color:#9900CC;">This</span> could take a <span style="color:#9966CC; font-weight:bold;">while</span>...
<span style="color:#9900CC;">Successfully</span> installed mysql<span style="color:#006600; font-weight:bold;">-</span><span style="color:#006666;">2.7</span>
<span style="color:#006666;">1</span> gem installed
...</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://whomwah.com/2008/10/13/installing-mysql-gem-on-centos/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Setting the timezone on CentOS</title>
		<link>http://whomwah.com/2008/10/01/setting-the-timezone-on-centos/</link>
		<comments>http://whomwah.com/2008/10/01/setting-the-timezone-on-centos/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 11:51:29 +0000</pubDate>
		<dc:creator>Duncan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://whomwah.com/?p=582</guid>
		<description><![CDATA[I forget this pretty much all the time, even though it&#8217;s a fairly simple operation. There are loads of timezone data files stored in: /usr/share/zoneinfo So for my CentOS install, to set my machine to London time, I use: # # this is not correct for me # $ date Wed Oct 1 07:43:58 CDT [...]]]></description>
			<content:encoded><![CDATA[<p>I forget this pretty much all the time, even though it&#8217;s a fairly simple operation. There are loads of timezone data files stored in:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">/usr/share/zoneinfo</pre></div></div>

<p>So for my <a href="http://www.centos.org/">CentOS</a> install, to set my machine to London time, I use:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;">#</span>
<span style="color:#008000; font-style:italic;"># this is not correct for me</span>
<span style="color:#008000; font-style:italic;">#</span>
$ date
Wed Oct  <span style="color:#006666;">1</span> 07:<span style="color:#006666;">43</span>:<span style="color:#006666;">58</span> CDT <span style="color:#006666;">2008</span>
<span style="color:#008000; font-style:italic;">#</span>
<span style="color:#008000; font-style:italic;"># to fix it</span>
<span style="color:#008000; font-style:italic;">#</span>
$ sudo rm <span style="color:#006600; font-weight:bold;">/</span>etc<span style="color:#006600; font-weight:bold;">/</span>localtime
$ sudo ln <span style="color:#006600; font-weight:bold;">-</span>s <span style="color:#006600; font-weight:bold;">/</span>usr<span style="color:#006600; font-weight:bold;">/</span>share<span style="color:#006600; font-weight:bold;">/</span>zoneinfo<span style="color:#006600; font-weight:bold;">/</span>Europe<span style="color:#006600; font-weight:bold;">/</span>London <span style="color:#006600; font-weight:bold;">/</span>etc<span style="color:#006600; font-weight:bold;">/</span>localtime
<span style="color:#008000; font-style:italic;">#</span>
<span style="color:#008000; font-style:italic;"># now check it's ok</span>
<span style="color:#008000; font-style:italic;">#</span>
$ date
Wed Oct  <span style="color:#006666;">1</span> <span style="color:#006666;">12</span>:<span style="color:#006666;">42</span>:<span style="color:#006666;">33</span> GMT <span style="color:#006666;">2008</span></pre></div></div>

<p>I imagine this works on <a href="http://www.redhat.com/">Redhat</a> and <a href="http://fedoraproject.org/">Fedora</a> as well, but I can&#8217;t be sure on other Linux distros.</p>
]]></content:encoded>
			<wfw:commentRss>http://whomwah.com/2008/10/01/setting-the-timezone-on-centos/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
