<?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>Ian Winter &#187; centos</title>
	<atom:link href="http://ianwinter.co.uk/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianwinter.co.uk</link>
	<description>Have you found the instructions yet?</description>
	<lastBuildDate>Wed, 14 Sep 2011 22:16:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A yummy replacement</title>
		<link>http://ianwinter.co.uk/2011/09/14/a-yummy-replacement/</link>
		<comments>http://ianwinter.co.uk/2011/09/14/a-yummy-replacement/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 22:14:59 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://ianwinter.co.uk/?p=1236</guid>
		<description><![CDATA[Had a need to quickly (and easily) replace some yum packages this evening, namely getting mysql5.0 to 5.5 and php5.1 up to 5.3. I wasn&#8217;t looking forward to doing this manually as keeping the dependencies in check is a faff at best. A quick Google however led me to the package yum-plugin-replace. This very easily sorts [...]]]></description>
			<content:encoded><![CDATA[<p>Had a need to quickly (and easily) replace some yum packages this evening, namely getting mysql5.0 to 5.5 and php5.1 up to 5.3. I wasn&#8217;t looking forward to doing this manually as keeping the dependencies in check is a faff at best. A quick Google however led me to the package yum-plugin-replace. This very easily sorts all the plugins out, flips them in out, shakes them all about and quicker than you can say Robert&#8217;s your mother&#8217;s brother sorts it all out.</p>
<p>Getting it going is easy:</p>
<pre>yum install yum-plugin-replace
yum replace mysql --replace-with mysql55</pre>
<p>Do the usual confirmations and you&#8217;re done! Same goes with php to php53. This does of course assume you&#8217;ve already <a title="CentOS/Redhat YUM repositories" href="http://ianwinter.co.uk/2011/01/23/centosredhat-yum-repositories/" target="_blank">installed</a> the <a href="http://fedoraproject.org/wiki/EPEL" target="_blank">EPEL</a> and <a href="http://iuscommunity.org/Repos" target="_blank">IUS</a> channels to get this packages from.</p>
<p>On a side note, if you do mysql don&#8217;t forget to run the upgrade script.</p>
<pre>mysql_upgrade --password</pre>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2011/09/14/a-yummy-replacement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS and Dropbox</title>
		<link>http://ianwinter.co.uk/2011/05/16/centos-and-dropbox/</link>
		<comments>http://ianwinter.co.uk/2011/05/16/centos-and-dropbox/#comments</comments>
		<pubDate>Mon, 16 May 2011 21:21:17 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://ianwinter.co.uk/?p=1216</guid>
		<description><![CDATA[Just because I can really I setup Dropbox syncing on one of my CentOS 5 servers. It&#8217;s a little bit of a faff, but, not that hard. The official guide is online, but, this is a shorten version and might not cover everything but it worked on my headless VM just fine. First up su [...]]]></description>
			<content:encoded><![CDATA[<p>Just because I can really I setup Dropbox syncing on one of my CentOS 5 servers. It&#8217;s a little bit of a faff, but, not that hard. The <a href="http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall">official guide</a> is online, but, this is a shorten version and might not cover everything but it worked on my headless VM just fine.</p>
<p>First up su to whichever user you want to install Dropbox as. You&#8217;ll need two terminal&#8217;s open so fire them both up now. You&#8217;ll also need lynx, gcc and python installed so if you don&#8217;t have, sort that out with yum.</p>
<p>In your home directory grab the correct binary for you (x86 or x86_64).</p>
<pre class="brush: plain; title: ; notranslate">
wget -O dropbox.tar.gz http://www.dropbox.com/download/?plat=lnx.x86
wget -O dropbox.tar.gz http://www.dropbox.com/download/?plat=lnx.x86_64
</pre>
<p>Now unpack it and start it up in your first terminal window.</p>
<pre class="brush: plain; title: ; notranslate">
tar xvfz dropbox.tar.gz
~/.dropbox-dist/dropboxd
</pre>
<p>Now in your second terminal go to http://dropbox.com using lynx (lynx http://dropbox.com) and login, then using the key shortcut &#8220;g&#8221; paste in the URL that your first window should now be prompted you to go to. This is to register the machine with your Dropbox account. You&#8217;ll need to scroll down the page to re-enter your password. Once done the first window should say hello to you and it&#8217;ll quit.</p>
<p>Next up sort out the init.d script. Put the following in /etc/init.d/dropbox and chown 755 it when you&#8217;re done.</p>
<pre class="brush: plain; title: ; notranslate">
# chkconfig: 345 85 15
# description: Startup script for dropbox daemon
#
# processname: dropboxd
# pidfile: /var/run/dropbox.pid
# config: /etc/sysconfig/dropbox
#

### BEGIN INIT INFO
# Provides: dropboxd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the Dropbox file syncing daemon
# Description:       Dropbox is a filesyncing sevice provided by dropbox.com
#                    This service starts up the dropbox daemon.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# To configure, add line with DROPBOX_USERS=&quot;user1 user2&quot; to /etc/sysconfig/dropbox
# Probably should use a dropbox group in /etc/groups instead.

[ -f /etc/sysconfig/dropbox ] &amp;&amp; . /etc/sysconfig/dropbox
prog=dropboxd
lockfile=${LOCKFILE-/var/lock/subsys/$prog}
config=${CONFIG-/etc/sysconfig/dropbox}
RETVAL=0

start() {
    echo -n $&quot;Starting $prog&quot;
    if [ -z $DROPBOX_USERS ] ; then
        echo -n &quot;: unconfigured: $config&quot;
        echo_failure
        echo
        rm -f ${lockfile} ${pidfile}
        RETURN=6
        return $RETVAL
    fi
    for dbuser in $DROPBOX_USERS; do
        daemon --user $dbuser /bin/sh -c &quot;/home/$dbuser/.dropbox-dist/dropboxd&amp;&quot;
    done
    RETVAL=$?
    echo
    [ $RETVAL = 0 ] &amp;&amp; touch ${lockfile}
    return $RETVAL
}

status() {
    for dbuser in $DROPBOX_USERS; do
        dbpid=`pgrep -u $dbuser dropbox | grep -v grep`
        if [ -z $dbpid ] ; then
            echo &quot;dropboxd for USER $dbuser: not running.&quot;
        else
            echo &quot;dropboxd for USER $dbuser: running (pid $dbpid)&quot;
        fi
    done
}

stop() {
    echo -n $&quot;Stopping $prog&quot;
    for dbuser in $DROPBOX_USERS; do
        killproc /home/$dbuser/.dropbox-dist/dropbox
    done
    RETVAL=$?
    echo
    [ $RETVAL = 0 ] &amp;&amp; rm -f ${lockfile} ${pidfile}
}

# See how we were called.
case &quot;$1&quot; in
    start)
        start
        ;;
    status)
        status
        ;;
    stop)
        stop
        ;;
    restart)
        stop
        start
        ;;
    *)
        echo $&quot;Usage: $prog {start|status|stop|restart}&quot;
        RETVAL=3
esac
exit $RETVAL
</pre>
<p>Edit /etc/sysconfig/dropbox and add the following line to match your linux account where you&#8217;ve installed Dropbox.</p>
<pre class="brush: plain; title: ; notranslate">
DROPBOX_USERS=&quot;linux_user_name&quot;
</pre>
<p>Make sure it starts on boot.</p>
<pre class="brush: plain; title: ; notranslate">
chkconfig dropbox on.
</pre>
<p>That&#8217;s it. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2011/05/16/centos-and-dropbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOS/Redhat YUM repositories</title>
		<link>http://ianwinter.co.uk/2011/01/23/centosredhat-yum-repositories/</link>
		<comments>http://ianwinter.co.uk/2011/01/23/centosredhat-yum-repositories/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 21:05:03 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[repositories]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://ianwinter.co.uk/?p=1206</guid>
		<description><![CDATA[There&#8217;s a bunch of stuff that you can&#8217;t always find in the standard CentOS/Redhat repositories. The main repositories I&#8217;ve used are EPEL, IUS, REMI and in a specific case Cloudera&#8217;s. I used the Cloudera one for flume, but, it&#8217;s a quick way to get it installed and the various Hadoop odd&#8217;s and end&#8217;s. The IUS one is good for [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a bunch of stuff that you can&#8217;t always find in the standard CentOS/Redhat repositories. The main repositories I&#8217;ve used are <a href="http://fedoraproject.org/wiki/EPEL/FAQ">EPEL</a>, <a href="http://iuscommunity.org/getting-started/">IUS</a>, <a href="http://blog.famillecollet.com/pages/Config-en">REMI</a> and in a specific case Cloudera&#8217;s. I used the <a href="https://docs.cloudera.com/display/DOC/CDH3+Installation#CDH3Installation-InstallingCDH3onRedHatSystems ">Cloudera</a> one for flume, but, it&#8217;s a quick way to get it installed and the various Hadoop odd&#8217;s and end&#8217;s. The IUS one is good for MySQL 5.1 and Percona builds, also Git 1.7. The EPEL repo has stuff like Redis and also other newer versions.</p>
<p>If you don&#8217;t want to use one you can alias commands to use repos, so, for instance if you have a CentOS build with all the above install you&#8217;d get output from yum repolist something like this:</p>
<pre>addons        CentOS-5 - Addons
base          CentOS-5 - Base
cloudera-cdh3 Cloudera's Distribution for Hadoop, Version 3
epel          Extra Packages for Enterprise Linux 5 - i386
extras        CentOS-5 - Extras
ius           IUS Community Packages for Enterprise Linux 5 - i38 enabled
updates       CentOS-5 - Updates</pre>
<p>If you want to install/search from a specific repo you can either disable them all in the /etc/yum.repos.d/*.repo files and then enable them when you run yum, or, you can leave them all enabled and disable them one by one. Something like this:</p>
<div id="_mcePaste">
<pre class="brush: plain; title: ; notranslate">
alias yum-ius='yum --disablerepo=addons,base,epel,extras,updates,cloudera-cdh3'
alias yum-cloudera='yum --disablerepo=addons,base,epel,extras,updates,ius'
alias yum-epel='yum --disablerepo=addons,base,extras,updates,ius,cloudera-cdh3'
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2011/01/23/centosredhat-yum-repositories/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VirtualBox &amp; CentOS</title>
		<link>http://ianwinter.co.uk/2011/01/23/virtualbox-centos/</link>
		<comments>http://ianwinter.co.uk/2011/01/23/virtualbox-centos/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 20:56:10 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vm]]></category>

		<guid isPermaLink="false">http://ianwinter.co.uk/?p=1204</guid>
		<description><![CDATA[If you&#8217;ve installed CentOS 5.x using Oracle (Sun) VirtualBox then you&#8217;ll have probably had fun getting the guest additions to work. After doing this a few times, each time forgetting which commands I need I&#8217;m going to blog it if for nothing but refence! After you&#8217;ve rebooted you should be good to go, again. If [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve installed CentOS 5.x using Oracle (Sun) VirtualBox then you&#8217;ll have probably had fun getting the guest additions to work. After doing this a few times, each time forgetting which commands I need I&#8217;m going to blog it if for nothing but refence!</p>
<pre class="brush: plain; title: ; notranslate">
sudo yum -y install gcc kernel-devel kernel-headers
</pre>
<p>After you&#8217;ve rebooted you should be good to go, again. If you don&#8217;t have the right kernel it will moan about OpenGL support, but, you don&#8217;t need it.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2011/01/23/virtualbox-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 5.1 on CentOS with yum</title>
		<link>http://ianwinter.co.uk/2010/08/30/mysql-5-1-on-centos-with-yum/</link>
		<comments>http://ianwinter.co.uk/2010/08/30/mysql-5-1-on-centos-with-yum/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 16:43:13 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[remi]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://ianwinter.co.uk/?p=1163</guid>
		<description><![CDATA[Not a particularly exciting first post back after so long with nothing but hopefully it&#8217;s useful none the less. On a CentOS box you can&#8217;t get MySQL 5.1 or PHP 5.3 easily from yum. Luckily a chap known as remi as a handy repo that contains both said packages. To get the repo running you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>Not a particularly exciting first post back after so long with nothing but hopefully it&#8217;s useful none the less. On a CentOS box you can&#8217;t get MySQL 5.1 or PHP 5.3 easily from yum. Luckily a chap known as remi as a handy repo that contains both said packages.</p>
<p>To get the repo running you&#8217;ll need to install a couple of RPM&#8217;s:</p>
<p><a href="http://ianwinter.co.uk/wp-content/uploads/2010/08/epel-release-5-4.noarch.rpm">epel-release-5-4.noarch.rpm</a><br />
<a href="http://ianwinter.co.uk/wp-content/uploads/2010/08/remi-release-5.rpm">remi-release-5.rpm</a></p>
<p>To install them:</p>
<pre>rpm -Uvh epel-release-5*.rpm remi-release-5*.rpm</pre>
<p>After that jump into /etc/yum.repos.d where you should now have a remi.repo file. Edit that and change enabled=0 to enabled=1 and you&#8217;re good to go. Do a yum check-updates and install away.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2010/08/30/mysql-5-1-on-centos-with-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Railo, Resin, Caucho and me</title>
		<link>http://ianwinter.co.uk/2009/06/12/railo-resin-caucho-and-me/</link>
		<comments>http://ianwinter.co.uk/2009/06/12/railo-resin-caucho-and-me/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 22:06:40 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[caucho]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[railo]]></category>
		<category><![CDATA[resin]]></category>

		<guid isPermaLink="false">http://ianwinter.co.uk/?p=1023</guid>
		<description><![CDATA[I&#8217;ve finally got resin, railo and caucho playing together in a nice, no longer ripping each other&#8217;s hair, out kind of way. I have to say my biggest comment (and probably one of the more tricky things to do) is that for Railo to become a big player in trying to take away Adobe&#8217;s CF [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally got resin, railo and caucho playing together in a nice, no longer ripping each other&#8217;s hair, out kind of way. I have to say my biggest comment (and probably one of the more tricky things to do) is that for Railo to become a big player in trying to take away Adobe&#8217;s CF user base installers are going to be essential. That said railo does seem quicker on processing CFML (need to do more tests to verify that).</p>
<p>I&#8217;ve got apache 2.2.3 running on CentOS 5.3. I have railo 3.1.0.015 (not updated to 016 yet) and caucho.</p>
<p>My resin.conf has this addition (multiple times for the different domains):</p>
<p><code>&lt;host id="www.domain.co.uk" root-directory="/home/domain/public_html"&gt;<br />
&lt;host-name&gt;www.domain.co.uk&lt;/host-name&gt;<br />
&lt;host-alias&gt;domain.co.uk&lt;/host-alias&gt;<br />
&lt;web-app id="/" document-directory="."/&gt;<br />
&lt;/host&gt;</code></p>
<p>The apache virtual hosts are just normal vhosts. No extras.</p>
<p>My caucho.conf (in /etc/httpd/conf.d) looks like this:</p>
<p><code>LoadModule caucho_module /usr/lib64/httpd/modules/mod_caucho.so<br />
ResinConfigServer localhost 6800<br />
CauchoConfigCacheDirectory /tmp<br />
CauchoStatus yes<br />
&lt;Location /caucho-status&gt;<br />
SetHandler caucho-status<br />
&lt;/Location&gt;</code></p>
<p>Hopefully that might help someone out. I&#8217;m going to try and do a from scratch CentOS build guide for The Rackspace Cloud sometime next week. I&#8217;ve started migrating some sites over to the cloud server and so far not hit any issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2009/06/12/railo-resin-caucho-and-me/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

