<?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>SickBiscuit &#187; Linux</title>
	<atom:link href="http://sickbiscuit.com/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://sickbiscuit.com/blog</link>
	<description>The personal blog of Steven Wilkin</description>
	<lastBuildDate>Sun, 20 May 2012 01:11:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing RMagick on Debian Lenny</title>
		<link>http://sickbiscuit.com/blog/2010/12/25/installing-rmagick-on-debian-lenny/</link>
		<comments>http://sickbiscuit.com/blog/2010/12/25/installing-rmagick-on-debian-lenny/#comments</comments>
		<pubDate>Sat, 25 Dec 2010 01:39:16 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=520</guid>
		<description><![CDATA[Just a quick reminder to myself on how I installed RMagick on a Debian 5.0.4 &#8220;lenny&#8221; VPS. All commands to be run as root.
Build ImageMagick from source
curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz -C /usr/src/
cd /usr/src/ImageMagick-6.6.6-6/
./configure
make
make install
Install the RMagick Gem
gem install rmagick
Bingo!
As an interesting aside, ImageMagick handles a lot of image formats via delegate libraries. I previously [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick reminder to myself on how I installed RMagick on a Debian 5.0.4 &#8220;lenny&#8221; VPS. All commands to be run as root.</p>
<h2>Build ImageMagick from source</h2>
<pre>curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz -C /usr/src/
cd /usr/src/ImageMagick-6.6.6-6/
./configure
make
make install</pre>
<h2>Install the RMagick Gem</h2>
<pre>gem install rmagick</pre>
<p>Bingo!</p>
<p>As an interesting aside, ImageMagick handles a lot of image formats via delegate libraries. I previously installed RMagick on a CentOS box and had to seperately install TrueType fonts which were necessary for the project in question. These had to be installed <strong>before</strong> ImageMagick and were accessible through <em>yum</em> and the <em>xorg-x11-fonts-truetype</em> package.</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2010/12/25/installing-rmagick-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minder &#8211; a simple web-app monitoring tool written in Ruby</title>
		<link>http://sickbiscuit.com/blog/2010/12/13/minder-a-simple-web-app-monitoring-tool-written-in-ruby/</link>
		<comments>http://sickbiscuit.com/blog/2010/12/13/minder-a-simple-web-app-monitoring-tool-written-in-ruby/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 23:00:38 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=502</guid>
		<description><![CDATA[Background
A few months ago I was tasked with migrating and maintaining a bunch of legacy Rails apps and a couple of them were misbehaving. Requests were hanging which was tying-up the front-end Apache child processes and resulting in all the web-apps on the server becoming unresponsive
At the time I didn&#8217;t know what was causing the [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>A few months ago I was tasked with migrating and maintaining a bunch of legacy Rails apps and a couple of them were misbehaving. Requests were hanging which was tying-up the front-end Apache child processes and resulting in all the web-apps on the server becoming unresponsive</p>
<p>At the time I didn&#8217;t know what was causing the hanging requests, it wasn&#8217;t happening in a predictable manner and on the surface I had all the apps dependencies in place.</p>
<p>Seeing as this was a job I was doing on the side I had very limited time to investigate the underlying issue and decided I would have to make do with just knowing when the apps went down so I could ssh in and manually kill off the offending processes.</p>
<p>My initial thought was to use Nagios for monitoring but it seemed excessively heavy-weight for the task at hand so I seized the opportunity to quickly develop a tool perfectly tailored to my needs.</p>
<p>The resulting script, minder, checks a list of domains and if the root of each can&#8217;t be read within 10 seconds a notication is sent via XMPP. Nothing more, nothing less. Simple.</p>
<p>Minder proved effective and I was bombarded with instant messages whenever any of the apps went under. Thankfully I found to bit more time to investigate more thoroughly and tracked the issue down to a missing TrueType font used by ImageMagick.</p>
<p>The first iteration of minder was very simple but I thought I&#8217;d put a bit of extra effort in to make it easier to customise and share it with the internet-at-large, hopefully someone will get some use out of it.</p>
<h2>Prerequisties</h2>
<ul>
<li>
<p>Two XMPP accounts:</p>
<ul>
<li>one to send notifications from, and</li>
<li>a second to receive notifications</li>
</ul>
<p>Google Talk or any regular Jabber/XMPP accounts will suffice
</li>
<li>
<p><a href="http://twitter.com/Blaine">Blaine</a>&#8217;s <a href="http://github.com/blaine/xmpp4r-simple">xmpp4r-simple</a> gem must be installed:</p>
<pre><code>sudo gem install xmpp4r-simple
</code></pre>
</li>
</ul>
<h2>Usage</h2>
<ul>
<li>copy minder.yaml.sample to minder.yaml</li>
<li>edit minder.yaml to specify the username and password of the sending XMPP account</li>
<li>specify your own personal XMPP account (xmpp_to)</li>
<li>modify the list of domains to monitor</li>
<li>run the script
<pre><code>$ ./minder.rb
</code></pre>
</li>
<li>
<p>Optionally run the script from a Cron job, the following will run every hour:</p>
<pre><code>0 * * * * /path/to/minder.rb &gt; /dev/null 2&gt;&amp;1
</code></pre>
</li>
</ul>
<h2>Get the code</h2>
<p>Clone the repo from <a href="https://github.com/stevenwilkin/minder">GitHub</a>. Fire any queries to <a href="http://twitter.com/stevebiscuit">@stevebiscuit</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2010/12/13/minder-a-simple-web-app-monitoring-tool-written-in-ruby/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySQL database backup with remote storage</title>
		<link>http://sickbiscuit.com/blog/2010/01/04/mysql-database-backup-with-remote-storage/</link>
		<comments>http://sickbiscuit.com/blog/2010/01/04/mysql-database-backup-with-remote-storage/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 15:37:28 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=418</guid>
		<description><![CDATA[Prevent a disaster
After reading Jeff Atwood&#8217;s backup failure last month I decided to finally get around to doing something I&#8217;d been intending to do &#8220;one of these days&#8221; but had in actual fact been putting off for years.
Here&#8217;s the steps I took to ensure the databases on my webserver were backed up every night and [...]]]></description>
			<content:encoded><![CDATA[<h3>Prevent a disaster</h3>
<p>After reading <a href="http://www.codinghorror.com/blog/archives/001315.html">Jeff Atwood&#8217;s backup failure</a> last month I decided to finally get around to doing something I&#8217;d been intending to do &#8220;one of these days&#8221; but had in actual fact been putting off for <em>years</em>.</p>
<p>Here&#8217;s the steps I took to ensure the databases on my webserver were backed up every night and copies of the dumps stored remotely.</p>
<h3>On the remote storage machine</h3>
<p>Generate an ssh key pair with and empty password and put the public key on the remote server. This will give our script access to the server without requiring you to enter a password each time:<br />
<code><br />
$ ssh-keygen -t rsa -f /home/steve/code/db_backup/id_rsa<br />
$ scp /home/steve/code/db_backup/id_rsa.pub REMOTEHOST:<br />
</code></p>
<p>This script will fetch all the backups, logging in as the <em>rsync</em> user and using the private key just generated. It&#8217;s located at <em>/home/steve/code/db_backup/sync_backups.sh</em>:</p>
<pre class="bash"><span style="color: #666666; font-style: italic;">#!/usr/bin/env bash</span>
rsync -e <span style="color: #ff0000;">&quot;ssh -l rsync -i /home/steve/code/db_backup/id_rsa&quot;</span> -avz REMOTEHOST:mysql<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>primary<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span></pre>
<p>Have this happen automatically daily at 12:20am:<br />
<code><br />
$ crontab -l<br />
# m h  dom mon dow   command<br />
20	0	*	*	*	/home/steve/code/db_backup/sync_backups.sh<br />
$<br />
</code></p>
<h3>On the machine to be backed up</h3>
<p>Create a new user and allow ssh access with the previously generated key:<br />
<code><br />
# adduser rsync<br />
# mkdir ~rsync/.ssh<br />
# mv ~steve/id_rsa.pub ~rsync/.ssh/authorized_keys<br />
# chown rsync:rsync ~rsync/.ssh/authorized_keys<br />
# chmod 400 ~rsync/.ssh/authorized_keys<br />
</code></p>
<p>This script will dump all available databases and is located at <em>/root/bin/backup_databases.sh</em>:</p>
<pre class="bash"><span style="color: #666666; font-style: italic;">#!/usr/bin/env bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># dump all available databases</span>
<span style="color: #666666; font-style: italic;"># SJW</span>
&nbsp;
<span style="color: #007800;">AUTH=</span><span style="color: #ff0000;">'-uroot -pROOTPASSWORD'</span>
<span style="color: #007800;">DBS=</span><span style="color: #000000; font-weight: bold;">`</span>mysql <span style="color: #007800;">$AUTH</span> --skip-column-names -e <span style="color: #ff0000;">'SHOW DATABASES;'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">BACKUPS=</span><span style="color: #ff0000;">'/home/rsync/mysql/'</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> DB <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$DBS</span>
<span style="color: #000000; font-weight: bold;">do</span>
	mysqldump <span style="color: #007800;">$AUTH</span> <span style="color: #007800;">$DB</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$BACKUPS</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">%</span>H<span style="color: #000000; font-weight: bold;">%</span>M<span style="color: #000000; font-weight: bold;">`</span>_<span style="color: #007800;">$DB</span>.sql
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># delete backups older than 5 days</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #007800;">$BACKUPS</span> -mtime <span style="color: #000000;">+5</span> -type f <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print &quot;rm &quot;$1}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sh</span></pre>
<p>Have the script run nightly at 12:10am via cron:<br />
<code><br />
# crontab -l<br />
# m h  dom mon dow   command<br />
10  0 * * * /root/bin/backup_databases.sh<br />
#<br />
</code></p>
<h3>Closing thoughts</h3>
<p>This approach is realtively straight forward, everything happens automatically and it could easily be extended to cover mailboxes, source code repositories, uploaded content etc. However, for mission-critical databases <a href="http://dev.mysql.com/doc/refman/5.0/en/replication.html">master-slave replication</a> may be more appropriate. For further reading you may enjoy <a href="http://jwz.livejournal.com/801607.html">JWZ&#8217;s thoughts on backups</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2010/01/04/mysql-database-backup-with-remote-storage/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title># shutdown -h now</title>
		<link>http://sickbiscuit.com/blog/2008/07/27/shutdown-h-now/</link>
		<comments>http://sickbiscuit.com/blog/2008/07/27/shutdown-h-now/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 18:54:12 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=251</guid>
		<description><![CDATA[I&#8217;ve just shutdown the beige box that was home to this blog for just over a year and a half until I started renting a VPS.
I had intended to shutdown this machine since the start of the year but never got around to it and after a techie chat on IM with Dave Dripps earlier [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just shutdown the beige box that <a href="/blog/2006/05/24/and-so-the-legend-grows/">was home to this blog</a> for just over a year and a half until <a href="/blog/2008/01/04/site-migration/">I started renting a VPS</a>.</p>
<p>I had intended to shutdown this machine since the start of the year but never got around to it and after a techie chat on IM with <a href="http://www.redfurredbear.com/">Dave Dripps</a> earlier in the day decided to just &#8220;pull the finger out&#8221; and do the needful.</p>
<p>I archived the contents of <code>/var/www/htdocs</code> and my home directory for safe keeping, copying them over to my file server, and dumped all the MySQL databases I still hadn&#8217;t migrated.</p>
<p>Self-hosting a site was a great learning opportunity but not something a business could be built up upon and comparing the energy cost of running a machine 24&#215;7 versus renting a VPS priced in American Dollars the choice wasn&#8217;t hard to make, it&#8217;s just a shame it took me half a year to finally flick the switch.</p>
<p>Goodnight <code>substance</code>!</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/07/27/shutdown-h-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Belfast Linux meetings restarted on last Wednesday of month</title>
		<link>http://sickbiscuit.com/blog/2008/06/25/belfast-linux-meetings-restarted-on-last-wednesday-of-month/</link>
		<comments>http://sickbiscuit.com/blog/2008/06/25/belfast-linux-meetings-restarted-on-last-wednesday-of-month/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 08:33:51 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=243</guid>
		<description><![CDATA[Johnny has kicked the wheel off and BLUG meetings are starting up again on the last Wednesday of the month, starting this evening at 6pm in The Tap House, Lower Crescent, just off Botanic Avenue, Belfast.
Some additional information is available on the BLUG Facebook group and on the Belfast Linux newsgroup.
See you  there!
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.earth.li/~noodles/blog/">Johnny</a> has kicked the wheel off and <a href="http://www.belfastlinux.org/wiki/Meetings">BLUG meetings</a> are starting up again on the last Wednesday of the month, starting this evening at <strong>6pm</strong> in <strong>The Tap House</strong>, Lower Crescent, just off Botanic Avenue, Belfast.</p>
<p>Some additional information is available on the <a href="http://www.facebook.com/group.php?gid=2381674342">BLUG Facebook group</a> and on the <a href="http://groups.google.com/group/belfastlinux/browse_thread/thread/ac8fa41e40e63418">Belfast Linux newsgroup</a>.</p>
<p>See you  there!</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/06/25/belfast-linux-meetings-restarted-on-last-wednesday-of-month/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>command line history &#8211; me too</title>
		<link>http://sickbiscuit.com/blog/2008/04/16/command-line-history-me-too/</link>
		<comments>http://sickbiscuit.com/blog/2008/04/16/command-line-history-me-too/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 08:49:30 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Distractions]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=228</guid>
		<description><![CDATA[I&#8217;ve seen this on a couple of blogs recently so I thought I&#8217;d give it a go on the VPS this site is hosted on:
steve@decaf:~$ history &#124; awk '{a[$2]++} END {for(i in a)print a[i] &#34; &#34; i}' &#124; sort -rn &#124; head -10
190 ls
80 cd
24 cp
22 sudo
19 rm
14 svn
12 history
11 tar
10 wget
10 vi
And as root:
172 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen this on <a href="http://fredemmott.co.uk/blog_148">a couple</a> <a href="http://diveintomark.org/archives/2008/04/15/history-meme">of blogs</a> recently so I thought I&#8217;d give it a go on the VPS this site is hosted on:</p>
<pre class="bash">steve<span style="color: #000000; font-weight: bold;">@</span>decaf:~$ <span style="color: #7a0874; font-weight: bold;">history</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{a[$2]++} END {for(i in a)print a[i] &quot; &quot; i}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> -rn <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #000000;">-10</span>
<span style="color: #000000;">190</span> <span style="color: #c20cb9; font-weight: bold;">ls</span>
<span style="color: #000000;">80</span> <span style="color: #7a0874; font-weight: bold;">cd</span>
<span style="color: #000000;">24</span> <span style="color: #c20cb9; font-weight: bold;">cp</span>
<span style="color: #000000;">22</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span>
<span style="color: #000000;">19</span> <span style="color: #c20cb9; font-weight: bold;">rm</span>
<span style="color: #000000;">14</span> svn
<span style="color: #000000;">12</span> <span style="color: #7a0874; font-weight: bold;">history</span>
<span style="color: #000000;">11</span> <span style="color: #c20cb9; font-weight: bold;">tar</span>
<span style="color: #000000;">10</span> <span style="color: #c20cb9; font-weight: bold;">wget</span>
<span style="color: #000000;">10</span> vi</pre>
<p>And as root:</p>
<pre class="bash"><span style="color: #000000;">172</span> <span style="color: #c20cb9; font-weight: bold;">ls</span>
<span style="color: #000000;">59</span> vi
<span style="color: #000000;">56</span> <span style="color: #7a0874; font-weight: bold;">cd</span>
<span style="color: #000000;">22</span> apt-get
<span style="color: #000000;">20</span> <span style="color: #c20cb9; font-weight: bold;">less</span>
<span style="color: #000000;">20</span> apache2ctl
<span style="color: #000000;">17</span> apt-cache
<span style="color: #000000;">15</span> <span style="color: #c20cb9; font-weight: bold;">cp</span>
<span style="color: #000000;">10</span> <span style="color: #7a0874; font-weight: bold;">pwd</span>
<span style="color: #000000;">10</span> <span style="color: #c20cb9; font-weight: bold;">ps</span></pre>
<p>I&#8217;m kinda suprised that <code>ls</code> comes out on top each time <img src='http://sickbiscuit.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I wonder which commands <a href="http://cimota.com/blog/">Matt</a>, <a href="http://godswearhats.com/">Aidan</a> and <a href="http://www.homeofserendipity.com/">Philip</a> have been using most?</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/04/16/command-line-history-me-too/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Updating WordPress via Subversion: it works!</title>
		<link>http://sickbiscuit.com/blog/2008/04/01/updating-wordpress-via-subversion-it-works/</link>
		<comments>http://sickbiscuit.com/blog/2008/04/01/updating-wordpress-via-subversion-it-works/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 09:48:25 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=225</guid>
		<description><![CDATA[The last time a new version was released I decided to update my WordPress installation with Subversion with the idea being that this would make future updates easier.
Well, the good news is that this technique works  
All it took was 3 simple  steps:

$ cd /var/www/sickbiscuit.com/blog
$ svn switch http://svn.automattic.com/wordpress/tags/2.5/ .
launch wp-admin/upgrade.php via web-browser

To be [...]]]></description>
			<content:encoded><![CDATA[<p>The last time a new version was released I decided to <a href="/blog/2008/03/05/updating-wordpress-via-subversion/">update my WordPress installation with Subversion</a> with the idea being that this would make future updates easier.</p>
<p>Well, the good news is that this technique works <img src='http://sickbiscuit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>All it took was 3 simple  steps:</p>
<ol>
<li><code>$ cd /var/www/sickbiscuit.com/blog</code></li>
<li><code>$ svn switch http://svn.automattic.com/wordpress/tags/2.5/ .</code></li>
<li>launch <code>wp-admin/upgrade.php</code> via web-browser</li>
</ol>
<p>To be safe I backed up the database prior to the update and so far everything seems good, job&#8217;s a good &#8216;un!</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/04/01/updating-wordpress-via-subversion-it-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating WordPress via Subversion</title>
		<link>http://sickbiscuit.com/blog/2008/03/05/updating-wordpress-via-subversion/</link>
		<comments>http://sickbiscuit.com/blog/2008/03/05/updating-wordpress-via-subversion/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 15:39:35 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2008/03/05/updating-wordpress-via-subversion/</guid>
		<description><![CDATA[I read a few months back that Stuart Langridge was using Subversion to keep his WordPress up-to-date and I thought: &#8220;that&#8217;s clever&#8221; and didn&#8217;t do anything about it.
Today I was talking to Matt and he mentioned updating one of his WordPress installations and I noticed I was due an update myself. I downloaded the latest [...]]]></description>
			<content:encoded><![CDATA[<p>I read a few months back that <a href="http://www.kryogenix.org/days/2007/11/23/wordpress-through-subversion">Stuart Langridge was using Subversion to keep his WordPress up-to-date</a> and I thought: &#8220;that&#8217;s clever&#8221; and didn&#8217;t do anything about it.</p>
<p>Today I was talking to <a href="http://cimota.com/blog">Matt</a> and he mentioned updating one of his WordPress installations and I noticed I was due an update myself. I downloaded the latest release and was having a quick skim through the <a href="http://codex.wordpress.org/Upgrading_WordPress">upgrade procedure</a> to make sure I wasn&#8217;t forgetting about anything and I spotted a link to the <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">Subversion update instructions</a>&#8230; I&#8217;m off work sick today and have the time so I decided to give it a go.</p>
<p>I <a href="http://www.ilfilosofo.com/blog/wp-db-backup/">backed up my database</a> and checked out the latest stable version:</p>
<p><code>steve@decaf~$ cd /var/www/sickbiscuit.com<br />
steve@decaf:/var/www/sickbiscuit.com$ svn co http://svn.automattic.com/wordpress/tags/2.3.3/</code></p>
<p>I copied over my database config file, theme, plugins and uploads and ran the <code>wp-admin/upgrade.php</code> script via my browser. The final act was to modify the symlink pointing to the WordPress directory and it worked first time. Profit!</p>
<p>Hopefully whenever I need to update in the future all I&#8217;ll have to do is use the following:</p>
<p><code>svn sw http://svn.automattic.com/wordpress/tags/NEW_VERSION/</code></p>
<p>followed by running the database upgrade script again. Quick and painless.</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/03/05/updating-wordpress-via-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site migration</title>
		<link>http://sickbiscuit.com/blog/2008/01/04/site-migration/</link>
		<comments>http://sickbiscuit.com/blog/2008/01/04/site-migration/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 15:07:35 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2008/01/04/site-migration/</guid>
		<description><![CDATA[I&#8217;ve just finished migrating sickbiscuit.com from my home development machine to my new VPS.
DNS records have been updated and decaf is now handling mail and web traffic for the domain allow the only thing I&#8217;ve copied over is this blog.
Hopefully this will give me the motivation needed to spruce things up a bit as the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished migrating sickbiscuit.com from my home development machine to my new VPS.</p>
<p>DNS records have been updated and <code>decaf</code> is now handling mail and web traffic for the domain allow the only thing I&#8217;ve copied over is this blog.</p>
<p>Hopefully this will give me the motivation needed to spruce things up a bit as the last iteration of sickbiscuit.com looked like it was designed by a programmer <img src='http://sickbiscuit.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/01/04/site-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ISP style mail server on Debian VPS</title>
		<link>http://sickbiscuit.com/blog/2008/01/01/isp-style-mail-server-on-debian-vps/</link>
		<comments>http://sickbiscuit.com/blog/2008/01/01/isp-style-mail-server-on-debian-vps/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 12:15:24 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2008/01/01/isp-style-mail-server-on-debian-vps/</guid>
		<description><![CDATA[Last month I decided to invest in a VPS from VPSLink.
I had been considering this for a while, especially after my experience using an Ubuntu VPS with Infurious and after 2 power failures within as many weeks due to building work nearby to my home, my hand was forced. No more hosting on a Linux [...]]]></description>
			<content:encoded><![CDATA[<p>Last month I decided to invest in a VPS from <a href="http://vpslink.com/">VPSLink</a>.</p>
<p>I had been considering this for a while, especially after my experience using an Ubuntu VPS with Infurious and after 2 power failures within as many weeks due to building work nearby to my home, my hand was forced. No more hosting on a Linux box on the end of a DSL connection for me!</p>
<p>I opted for a <a href="http://en.wikipedia.org/wiki/Xen">XEN</a> based VPS running Debian Etch. I&apos;ve really come to love <a href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool">APT</a> based distros after running <a href="/blog/2006/09/13/first-post-from-kubuntu/">Kubuntu on my desktop</a> before I was <a href="/blog/2007/10/27/back-in-mac/">endowed with a Mac</a> and with the relative ease of setting up all the Infurious services on Ubuntu. So I decided to go upstream and it&apos;s a far cry from my past experiences with Slackware <img src='http://sickbiscuit.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My first priority was getting my LAMP stack up and running and I spent my free time over the past few days following <a href="http://workaround.org/articles/ispmail-etch/">this excellent tutorial</a>.</p>
<p>Just like many other things in the FLOSS world: you get the instructions, follow those instructions and it Just Works. This instance was no different and all I really had to so was copy and paste commands &amp; configuration settings and I probably spent more time doing background reading, testing each part as I went along and keeping track of all the changes I made on my personal wiki.</p>
<p>The result is I can now host email accounts for as many domains I wish, provide access to those accounts over IMAPS and perform server-side virus scanning and spam filtering.</p>
<p>I&apos;ve said it before and I&apos;ll say it again: I love free software!</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/01/01/isp-style-mail-server-on-debian-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

