<?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"
	>

<channel>
	<title>cenolan.com</title>
	<atom:link href="http://www.cenolan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cenolan.com</link>
	<description>What you looking at?</description>
	<pubDate>Sat, 15 Nov 2008 11:58:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>RPM installation of Broadcom 802.11 STA wireless driver in Fedora 8/9/10</title>
		<link>http://www.cenolan.com/2008/11/rpm-install-broadcom-wireless-sta-driver-fedora/</link>
		<comments>http://www.cenolan.com/2008/11/rpm-install-broadcom-wireless-sta-driver-fedora/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 11:53:54 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Fedora 8]]></category>

		<category><![CDATA[Fedora 9]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=21</guid>
		<description><![CDATA[RPMs for the Broadcom 802.11 STA Wireless Driver are now available from the rpmfusion.org repos for Fedora 8, 9 and 10.
This is an official-release of Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver for use with Broadcom's BCM4311-, BCM4312-, BCM4321-, and BCM4322-based hardware. This driver also supports the incorrectly identified BCM4328 chipset which is actually a [...]]]></description>
			<content:encoded><![CDATA[<p>RPMs for the Broadcom 802.11 STA Wireless Driver are now available from the <a href="http://rpmfusion.org/">rpmfusion.org</a> repos for Fedora 8, 9 and 10.</p>
<p>This is an official-release of Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver for use with Broadcom's BCM4311-, BCM4312-, BCM4321-, and BCM4322-based hardware. This driver also supports the incorrectly identified BCM4328 chipset which is actually a BCM4321 or BCM4322 chipset.</p>
<p>Previously I explained <a href="http://www.cenolan.com/2008/10/installing-the-broadcom-sta-driver-fedora-9/">how to build the Broadcom STA driver from source</a> but now the installation and updates can all be taken care of using yum and the rpmfusion non-free repository. Just follow these two simple steps:</p>
<p><strong>1) Enable the rpmfusion non-free repository.</strong></p>
<p>The broadcom-wl and wl-kmod RPMs that we need are in the rpmfusion non-free repository. To enable this repo in Fedora simply do this:</p>
<pre><code>su -c 'rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'</code></pre>
<p><strong>2) Update and install the driver package</strong></p>
<p>Now that you have the appropriate repository enabled, to install the driver package we first ensure that we have the latest updates and then install the "broadcom-wl" package which will bring with it the required "kmod-wl" package:</p>
<pre><code>su -
yum update
yum install broadcom-wl</code></pre>
<p>That's all there is to it. At this stage you may need to reboot in order to enable the new driver and any new kernel that was installed during the update.</p>
<p>When future kernels are released a simple "yum update" command should install the new kernel and also pull in the updated Broadcom driver for that new kernel.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/11/rpm-install-broadcom-wireless-sta-driver-fedora/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing the Broadcom 802.11 STA driver in Fedora 9</title>
		<link>http://www.cenolan.com/2008/10/installing-the-broadcom-sta-driver-fedora-9/</link>
		<comments>http://www.cenolan.com/2008/10/installing-the-broadcom-sta-driver-fedora-9/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 22:56:39 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Fedora 9]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[MacBook]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=20</guid>
		<description><![CDATA[Update 15 November 2008: Just a note to mention that I've packaged this up into an RPM and so this driver is now available as an RPM in the rpmfusion repos for Fedora 8, 9 and 10. 
See this post for instructions of how to install using the RPM version (much easier!).
Happy, happy days! At [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>Update 15 November 2008</strong>: Just a note to mention that I've packaged this up into an RPM and so this driver is now available as an RPM in the rpmfusion repos for Fedora 8, 9 and 10. </p>
<p>See <a href="http://www.cenolan.com/2008/11/rpm-install-broadcom-wireless-sta-driver-fedora/">this post for instructions of how to install using the RPM</a> version (much easier!).</p></blockquote>
<p>Happy, happy days! At long last, a Linux <a title="Broadcom 802.11 Linux STA driver" href="http://www.broadcom.com/support/802.11/linux_sta.php">Broadcom driver for the BCM4328</a> chipset that doesn't require ndiswrapper and Windows drivers. For me, this is really, really huge: ndiswrapper has never worked properly with NetworkManager using WPA security but this new Broadcom driver seems bullet-proof. It is even supposed to support 802.11n standard but I can't verify that just yet.</p>
<p>The source packages currently available from Broadcom (version 5.10.27.6) don't build on the current Fedora 9 kernel (2.6.26.5-45) and probably won't compile on any newer kernel either. Digging around a bit I <a title="Broadcom 802.11 Linux STA driver " href="http://forums.fedoraforum.org/showpost.php?p=1097558&amp;postcount=13">found a patch</a> that makes the driver build successfully.</p>
<p>Great, but that's not the whole story: I then found that with the new driver I was unable to SSH or telnet into any remote servers - bummer. However, <a title="wl: telnet/ssh connections blocked when going through NAT to external sites" href="https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/259816">some more digging</a> turned up another patch that fixes this problem. With these two patches in place the new driver really rocks. For the first time in 10 months (since I bought my MacBook) I can actually connect to WPA secured networks using NetworkManager - no more fiddling around with wpa_supplicant scripts for me!</p>
<p>Anyhow, here's a little how-to guide to install the new Broadcom driver in Fedora 9. Note: I'm a little unsure of which Broadcom chipsets this driver actually supports but I can confirm that it works beautifully with the BCM4328 which is standard on MacBook 3,1 and 4,1 versions.</p>
<p><span id="more-20"></span></p>
<p><strong>1) Preparation</strong></p>
<p>Ensure you have the kernel-headers package installed for your current kernel (I presume you already have make and gcc etc installed):</p>
<pre><code>su -
yum install kernel-headers</code></pre>
<p><strong>2) Patching the source yourself</strong></p>
<p>If you want to patch the driver yourself, download the original driver file from the <a title="Broadcom 802.11 Linux STA driver" href="http://www.broadcom.com/support/802.11/linux_sta.php">broadcom website here</a>. Make sure to get the 32 or 64 bit version depending on your installed kernel. I've made the patches available at my <a title="Fedora 9 fixes and files for MacBook 3,1 and 4,1 (Santa Rosa)" href="http://www.cenolan.com/fedora9/">Fedora 9 page</a> so go there and grab the patches then patch the source code.</p>
<p><strong>3) Using my pre-patched source (easier)</strong></p>
<p>If you're not sure how to patch the source code or just can't be bothered, then go grab my ready-patched tarballs from my <a title="Fedora 9 fixes and files for MacBook 3,1 and 4,1 (Santa Rosa)" href="http://www.cenolan.com/fedora9/">Fedora 9 page</a> and untar them. Here's how:</p>
<p>32bit users:</p>
<pre><code>wget http://www.cenolan.com/fedora9/broadcom-patched-x86_32-5.10.27.6.tar.gz
tar zxvf broadcom-patched-x86_32-5.10.27.6.tar.gz
cd broadcom-patched-x86_32-5.10.27.6/</code></pre>
<p>64bit users:</p>
<pre><code>wget http://www.cenolan.com/fedora9/broadcom-patched-x86_64-5.10.27.6.tar.gz
tar zxvf broadcom-patched-x86_64-5.10.27.6.tar.gz
cd broadcom-patched-x86_64-5.10.27.6/</code></pre>
<p><strong>4) Building the driver</strong></p>
<p>Now we've got our patched source building the driver kernel module is easy:</p>
<pre><code>make -C /lib/modules/`uname -r`/build M=`pwd`</code></pre>
<p>This should create a file called wl.ko - this is the magic driver file.</p>
<p><strong>5) Install the new driver</strong></p>
<p>We need to copy the new kernel module to the correct location, add wlan0 as an alias for this driver so that it loads on boot and resolve the module dependencies:</p>
<pre><code>su -c "cp wl.ko /lib/modules/`uname -r`/kernel/net/wireless/
su -
echo "alias wlan0 wl" &gt;&gt; /etc/modprobe.conf
depmod -a</code></pre>
<p><strong>6) Blacklist conflicting drivers</strong></p>
<p>This new driver suffers the same conflicts as the ndiswrapper driver so we need to blacklist the b43, ssb, and bcm43xx drivers, as well as the ndiswrapper driver:</p>
<pre><code>su -
echo "blacklist bcm43xx" &gt;&gt; /etc/modprobe.d/blacklist
echo "blacklist ssb" &gt;&gt; /etc/modprobe.d/blacklist
echo "blacklist b43" &gt;&gt; /etc/modprobe.d/blacklist
echo "blacklist ndiswrapper" &gt;&gt; /etc/modprobe.d/blacklist</code></pre>
<p><strong>7) Remove the old module and activate the new one</strong></p>
<pre><code>su -
rmmod bcm43xx; rmmod b43; rmmod b43legacy; rmmod ndiswrapper
modprobe ieee80211_crypt_tkip; modprobe wl</code></pre>
<p><strong>8) All done!</strong></p>
<p>Reboot, or restart NetworkManager and you've hopefully got the new driver installed.</p>
<p>Say hello to faster and more robust connections, and say goodbye to ndiswrapper and crappy badly supported Windows drivers!</p>
<p><strong>References</strong></p>
<p><a title="Broadcom 802.11 Linux STA driver" href="http://forums.fedoraforum.org/showpost.php?p=1097558&amp;postcount=13">Broadcom 802.11 Linux STA driver at FedoraForum.org</a></p>
<p><a title="Broadcom 802.11 Linux STA driver" href="http://www.broadcom.com/support/802.11/linux_sta.php">Broadcom 802.11 Linux STA driver at broadcom.com</a></p>
<p><a title="*OFFICIAL* Broadcom Linux driver BCM4312 at jomcode.com" href="http://jomcode.com/fadhil/?p=59">*OFFICIAL* Broadcom Linux driver BCM4312 at jomcode.com</a></p>
<p><a title="Broadcom driver for 4328 b/g/n wireless device " href="http://ph.ubuntuforums.com/showthread.php?t=914697">Broadcom driver for 4328 b/g/n wireless device at ubuntuforums.com</a></p>
<p><a href="https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/259816">Bug #259816 wl: telnet/ssh connections blocked when going through NAT to external sites at launchpad.net</a></p>
<p><a href="http://www.cenolan.com/fedora9/">Fedora 9 fixes and files for MacBook 3,1 and 4,1 (Santa Rosa)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/10/installing-the-broadcom-sta-driver-fedora-9/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom build of synaptics for Fedora 8 x86_64 on MacBook</title>
		<link>http://www.cenolan.com/2008/07/custom-build-of-synaptics-for-fedora-8-x86_64-on-macbook/</link>
		<comments>http://www.cenolan.com/2008/07/custom-build-of-synaptics-for-fedora-8-x86_64-on-macbook/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 21:39:41 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Fedora 8]]></category>

		<category><![CDATA[MacBook]]></category>

		<category><![CDATA[fedora]]></category>

		<category><![CDATA[mactel-linux]]></category>

		<category><![CDATA[RPM]]></category>

		<category><![CDATA[synaptics]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=19</guid>
		<description><![CDATA[Based on the patches found in this post over at Ubuntu forums I have created an updated synaptics touchpad driver RPM package for Fedora 8 x86_64.
As the original author notes, this makes it more enjoyable to use the touchpad while using the MacBook. It does two things: 

Adds the option "MultiFingerButton" to synaptics. This allows [...]]]></description>
			<content:encoded><![CDATA[<p>Based on the patches found in <a href="http://ubuntuforums.org/showthread.php?t=790589">this post</a> over at Ubuntu forums I have created an updated synaptics touchpad driver RPM package for Fedora 8 x86_64.</p>
<p>As the original author notes, this makes it more enjoyable to use the touchpad while using the MacBook. It does two things: </p>
<ol>
<li>Adds the option "MultiFingerButton" to synaptics. This allows us to configure the touchpad to right-click and middle-click by placing two or three fingers on the pad and then clicking the button. In my experience this is far more reliable than the "two finger tap" method of right-clicking.</li>
<li> It makes the mouse arrow more stable - I have found this to be a HUGE improvement in usability over the stock synaptics driver. With the original driver, if you put two fingers on the mousepad and release only one, the mouse arrow moves. This is the default behaviour in Linux and Windows, but in MacOSX, the mouse arrow stays put, and in my personal opinion, this is a much better behaviour. This patch makes it behave just like MacOSX. This may not sound much, but you'll find it makes a huge difference to the stability and usability of the touchpad.</li>
</ol>
<p><span id="more-19"></span></p>
<p>Install the RPM from my <a href="http://www.cenolan.com/fedora8">Fedora 8 page</a> and add this option to the InputDevice Section in your xorg.conf, just like this:</p>
<pre><code>	Option		"MultiFingerButton"	"1"</code></pre>
<pre><code>	Option		"MultiFingerButton"	"2"</code></pre>
<p>With the value 1, you get middle-clicking if you click the button while resting two fingers on the mousepad, and right-clicking while resting three fingers.</p>
<p>With the value 2, it reverses, and you get right-clicking if you click while resting two fingers on the mousepad, and middle-clicking while resting three fingers. This is the behaviour in MacOSX.</p>
<p>Try it out, and give your opinion. If you don't like it, you can always revert to the default Fedora package.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/07/custom-build-of-synaptics-for-fedora-8-x86_64-on-macbook/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fedora 8 x86_64 fixes for battery being reported twice error</title>
		<link>http://www.cenolan.com/2008/07/fedora-8-x86_64-fixes-for-battery-being-reported-twice-error/</link>
		<comments>http://www.cenolan.com/2008/07/fedora-8-x86_64-fixes-for-battery-being-reported-twice-error/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 15:03:16 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Fedora 8]]></category>

		<category><![CDATA[fedora]]></category>

		<category><![CDATA[hal]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=18</guid>
		<description><![CDATA[The latest 2.6.25.x Fedora 8 kernels have both ACPI_PROCFS_POWER and ACPI_SYSFS_POWER turned on and this can cause a strange problem with HAL which results in it incorrectly displaying the same battery twice and reporting incorrect charge levels for the "bogus" battery. This in turn creates problems with power management software such as kpowersave and gnome-power-manager. [...]]]></description>
			<content:encoded><![CDATA[<p>The latest 2.6.25.x Fedora 8 kernels have both ACPI_PROCFS_POWER and ACPI_SYSFS_POWER turned on and this can cause a strange problem with HAL which results in it incorrectly displaying the same battery twice and reporting incorrect charge levels for the "bogus" battery. This in turn creates problems with power management software such as kpowersave and gnome-power-manager. </p>
<p>I have only seen this <a href="http://forums.fedoraforum.org/showthread.php?p=1041362">reported</a> on some specific x86_64 machines but it may affect other architectures too.</p>
<p><span id="more-18"></span></p>
<p>The problem has been reported (and fixed) in many other distros and the <a href="http://gitweb.freedesktop.org/?p=hal.git;a=commitdiff_plain;h=4541abd23fd02118a1a7f8b825aed338d2a5d638;hp=e3eb726da49a8cdc9e93905777a6e2d71ae878b3">patch to fix it</a> has been in circulation since January. The patch was even created by someone at RedHat so it's slightly annoying that it hasn't made it yet into the Fedora versions of HAL. I can only assume it is an oversight by the HAL development team or the package maintainers. However, at the very least, a response to the bug report would have been welcome.</p>
<p>The RedHat bug report can be found <a href="https://bugzilla.redhat.com/show_bug.cgi?id=452356">here (Bug #452356)</a> and contains links to various other reports which contain plenty more information.</p>
<p>For anyone suffering from the same problem and impatient for a fix I've created a set of RPMs that include the patch. You can find them over at my <a href="http://www.cenolan.com/fedora8/">Fedora 8 page</a>.</p>
<p>Hope this is useful to someone. Usual disclaimers apply: if it breaks your machine then its not my fault.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/07/fedora-8-x86_64-fixes-for-battery-being-reported-twice-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Banshee 1.0 RPM for Fedora 8 x86_64</title>
		<link>http://www.cenolan.com/2008/07/banshee-10-rpm-for-fedora-8-x86_64/</link>
		<comments>http://www.cenolan.com/2008/07/banshee-10-rpm-for-fedora-8-x86_64/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 14:38:20 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Fedora 8]]></category>

		<category><![CDATA[banshee]]></category>

		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=16</guid>
		<description><![CDATA[Banshee 1.0 was released on June 5 2008. At the time of writing I haven't been able to find an official Fedora 8 RPM build so I have built my own using the Fedora 9 source RPM and made it available here for you to download and install.
For those that don't know, Banshee is a [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://banshee-project.org/'><img src="http://www.cenolan.com/wordpress/wp-content/uploads/2008/07/banshee-logo.png" alt="Banshee Media Player" title="Banshee Media Player" width="300" height="100" class="alignleft size-full wp-image-17" /></a>Banshee 1.0 was released on June 5 2008. At the time of writing I haven't been able to find an official Fedora 8 RPM build so I have built my own using the Fedora 9 source RPM and made it available here for you to download and install.</p>
<p>For those that don't know, Banshee is a great multimedia player for Linux with support for iPod syncing, podcasts, streaming radio, video and lots more. For iPod owners Banshee is one of few viable Linux alternatives to iTunes.</p>
<p><span id="more-16"></span></p>
<p>For Fedora 8 x86_64 users you can install my build of Banshee 1.0 using the following commands:</p>
<pre><code>wget http://www.cenolan.com/fedora8/banshee-1.0.0-1.fc8.x86_64.rpm
yum localinstall banshee-1.0.0-1.fc8.x86_64.rpm --nogpgcheck</code></pre>
<p>Note this a 64 bit build only! If you want to build it for i386 or another architecture then you can do so using the <a href="http://koji.fedoraproject.org/koji/buildinfo?buildID=52056">F9 source RPM available from Koji here</a>.</p>
<p>More files, including the debug and devel packages over at my <a href="http://www.cenolan.com/fedora8/">Fedora 8 page</a>.</p>
<p>Usual disclaimers apply: if it breaks your machine then its not my fault.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/07/banshee-10-rpm-for-fedora-8-x86_64/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Some useful linux commands</title>
		<link>http://www.cenolan.com/2008/06/some-useful-linux-commands/</link>
		<comments>http://www.cenolan.com/2008/06/some-useful-linux-commands/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 12:46:32 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[commands]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=15</guid>
		<description><![CDATA[A few useful linux commands and their explanations.

Recursively find in files...
find . -name \*.php -exec grep -inH discount {} \;
This finds all files ending with .php (-name \*.php) starting in the current path (.) and recurse through all subdirectories, then search (grep) case-insensitive (i) within those files ({}) for the word "discount" and outputs the [...]]]></description>
			<content:encoded><![CDATA[<p>A few useful linux commands and their explanations.</p>
<p><span id="more-15"></span></p>
<p><strong>Recursively find in files...</strong></p>
<pre><code>find . -name \*.php -exec grep -inH discount {} \;</code></pre>
<p>This finds all files ending with .php (-name \*.php) starting in the current path (.) and recurse through all subdirectories, then search (grep) case-insensitive (i) within those files ({}) for the word "discount" and outputs the filename (H), line number (n), and the line for any matches.</p>
<p><strong>Find all files older than 14 days...</strong></p>
<pre><code>find /home/*/Maildir/.Junk/cur -type f -mtime +14 -exec ls {} \;
find /home/*/Maildir/.Trash/cur -type f -mtime +14 -exec ls {} \;</code></pre>
<p>These two commands find files within system users' Maildir .Junk and .Trash folders that are older than 14 days. You could change the "-exec ls" to "-exec rm -rf" to remove the files.</p>
<p><strong>Find top 10 directories using disk space...</strong></p>
<pre><code>du -x --block-size=1024K | sort -nr | head -10</code></pre>
<p>This finds and lists the top 10 directories using disk space in the current path. Useful if you're trying to track down what is filling up your disk.</p>
<p><strong>Create and extracting a tar.gz archive of a directory...</strong></p>
<pre><code>tar -czvf (output filename) (directory to archive)</code></pre>
<p>e.g. tar -czvf myhome.tar.gz /home/myhome/</p>
<p>To extract this archive while preserving permissions, use:</p>
<pre><code>tar --preserve -zxvf (filename)</code></pre>
<p><strong>Change permissions of directories and files...</strong></p>
<pre><code>find . -type d -exec chmod 755 {} \;</code></pre>
<p>This finds all directories (indicated by the -type d) in the current path (.) and then chmods them to 755. If you wanted to recursively chmod files, you could issue this:</p>
<pre><code>find . -type f -exec chmod 644 {} \;</code></pre>
<p>This is really for my own reference, but you may find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/06/some-useful-linux-commands/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Yorkshire Dales three peaks challenge!</title>
		<link>http://www.cenolan.com/2008/06/yorkshire-dales-three-peaks-challenge/</link>
		<comments>http://www.cenolan.com/2008/06/yorkshire-dales-three-peaks-challenge/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 21:12:58 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Leisure]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=14</guid>
		<description><![CDATA[Big thanks to everyone who contributed to my birthday present of a weekend away in the Yorkshire Dales to do the 3 peaks challenge. We had a lovely time and to spare me the pain of telling everyone about it individually I thought I'd write about it here instead. 
We completed the gruelling 25 mile [...]]]></description>
			<content:encoded><![CDATA[<p>Big thanks to everyone who contributed to my birthday present of a weekend away in the Yorkshire Dales to do the 3 peaks challenge. We had a lovely time and to spare me the pain of telling everyone about it individually I thought I'd write about it here instead. </p>
<p>We completed the gruelling 25 mile trek including 1,672 metres ascent in just under 9 hours. The target time is 12 hours so we did pretty well. If you can't be bothered reading then scroll straight to the bottom for a gallery of our photos from the walk.</p>
<p><span id="more-14"></span></p>
<p>We set off from Liverpool at 5pm on Friday and arrived in Horton-in-Ribblesdale just before 9pm. The journey was uneventful apart from a mad dash up the platform at Leeds station just as the guard was blowing the whistle for the last train to Horton to depart... yikes! Fortunately we made it, just, otherwise it would have been a weekend in Leeds.</p>
<div class="ngg-singlepic-wrapper ngg-right"><a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00889.1024.jpg" title="The hotel - possibly the worst decorated building I have ever been in." class="thickbox" rel="singlepic50" ><img class="ngg-singlepic" src="http://www.cenolan.com/wordpress/wp-content/plugins/nextgen-gallery/nggshow.php?pid=50&amp;width=200&amp;height=150&amp;mode=" alt="In the hotel" title="In the hotel" /></a></div>Arriving at the hotel we got our keys, threw our stuff in the room and went to grab some food downstairs. The bar was packed and there was nowhere to sit so we were directed to the "dining room" which looked like it had been taken directly from a Little Britain sketch. If you were being kind you could describe it as quaint but in reality it was just odd: pink walls, green tables, red chairs, brown carpet, curtains from 1970, hundreds of awful paintings on the wall, and most bizarrely a few dozen nodding dogs on top of a piano watching us eat!</p>
<p>Claire had tomato soup which had come straight from a packet and was accompanied by the cheapest doughiest white bread roll you've ever seen. I ordered chicken and chips and was given a deep-fried hunk of chicken with some grey chips that looked like they had been cooked in fat that was as old as the pub. I wouldn't mind if it had been cheap but the prices made you feel you should be getting at least some half-decent "pub grub".</p>
<p>At least it gave us something to moan about!</p>
<div class="ngg-singlepic-wrapper ngg-left"><a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00890.1024.jpg" title="These were in the hotel dining room!" class="thickbox" rel="singlepic51" ><img class="ngg-singlepic" src="http://www.cenolan.com/wordpress/wp-content/plugins/nextgen-gallery/nggshow.php?pid=51&amp;width=200&amp;height=150&amp;mode=" alt="Nodding dogs" title="Nodding dogs" /></a></div>Next morning we got up for breakfast which unsurprisingly was also pretty dreadful. Apparently they think that a "continental breakfast" is a choice of stale cereals. No fruit, nothing. The cooked breakfast was just about edible.</p>
<p>We left the hotel just after 9am and wandered to the local shop to grab some water and to get a butty from the cafe down the road. With our provisions taken care of we started the walk at about 9:20am. Our plan was to do the walk "backwards" going clockwise from Horton: up Ingleborough then Whernside then to Ribblehead where we would decide whether to complete the final leg up Pen-y-ghent or take the train back to the hotel.</p>
<div class="ngg-singlepic-wrapper ngg-left"><a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00846.1024.jpg" title="10:54am - You WILL enjoy yourself!" class="thickbox" rel="singlepic7" ><img class="ngg-singlepic" src="http://www.cenolan.com/wordpress/wp-content/plugins/nextgen-gallery/nggshow.php?pid=7&amp;width=200&amp;height=150&amp;mode=" alt="I&#039;m so happy!" title="I&#039;m so happy!" /></a></div>The first hour or so was just a long haul towards Ingleborough. The weather was dry but overcast and foggy so we couldn't really see much. Climbing Ingleborough from this side was relatively easy and we made it to the top in less than 2 hours. Quite a steep descent led us down then we headed north towards Whernside. The cloud and fog was more patchy lower down and we rewarded with some of our first views of Ribblehead viaduct. I imagine it's quite nice round there when you can actually see something! </p>
<p>The ascent up Whernside was direct but gentle except for one short section where the path became steep and difficult. An easy walk up the broad and gentle ridge brought us to the top of Whernside only 2 hours after the previous summit. Still the weather on the tops was very foggy and we couldn't see anything. We stopped here for lunch and then headed down towards Ribblehead. During this descent we met some 200 or so other walkers who were headed upwards - I've never seen so many people on a mountain!</p>
<div class="ngg-singlepic-wrapper ngg-left"><a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00866.1024.jpg" title="2:06pm - We finally made it to the Ribblehead viaduct!" class="thickbox" rel="singlepic27" ><img class="ngg-singlepic" src="http://www.cenolan.com/wordpress/wp-content/plugins/nextgen-gallery/nggshow.php?pid=27&amp;width=200&amp;height=150&amp;mode=" alt="Ribblehead viaduct" title="Ribblehead viaduct" /></a></div>It seemed to take forever but eventually we made it past the viaduct and into Ribblehead where we stopped again for a quick drink. By this time we had done 14 miles in less than 5 hours and we were both pretty knackered. The thought of walking again in the morning didn't seem appealing and we really wanted to do the challenge in one day so we decided to continue towards Pen-y-ghent. Besides, I wanted to get back to watch the football on Sunday evening.</p>
<p/><div class="ngg-singlepic-wrapper ngg-right"><a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00875.1024.jpg" title="4:13pm - Pen-y-Ghent is still bloody miles away!" class="thickbox" rel="singlepic36" ><img class="ngg-singlepic" src="http://www.cenolan.com/wordpress/wp-content/plugins/nextgen-gallery/nggshow.php?pid=36&amp;width=200&amp;height=150&amp;mode=" alt="Pen-y-ghent long way away" title="Pen-y-ghent long way away" /></a></div>The next section from Ribblehead to Pen-y-ghent was an absolute killer. It wasn't steep, just a long slog, but we had been able to see Pen-y-ghent ever since descending Whernside and it was demoralising because it never seemed to get any closer. To make things worse the ground underfoot was boggy and energy draining to walk on. After 2 1/2 hours we finally reached the bottom of Pen-y-ghent from where it was a short but difficult and energy sapping ascent to the top. We made it to the top at about 5:20pm. Hooray!</p>
<p>A very steep initial descent from Pen-y-ghent gave way to a gentle footpath and then just a short hop across a few fields and back into Horton-in-Ribblesdale. Feet in absolute agony and aching all over we were glad to be back. A short rest and shower then, figuring that the food couldn't be any worse, we walked to the other pub in the village for some well-deserved dinner. They didn't disappoint providing us with monster portions of top quality grub for a fair price. Yum yum!</p>
<p><strong>You can view all our pictures (with commentary) below. Feel free to leave a comment!</strong></p><div class="ngg-galleryoverview" id="ngg-gallery-1"><div id="ngg-image-1" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00840.1024.jpg" title="9:12am - Just before we started. Happy as usual." class="thickbox" rel="three-peaks-2008" ><img title="The start" alt="The start" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00840.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-2" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00841.1024.jpg" title="9:50am - The long slog towards Ingleborough." class="thickbox" rel="three-peaks-2008" ><img title="Long slog" alt="Long slog" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00841.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-3" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00842.1024.jpg" title="10:31am - Great views on the way up Ingleborough." class="thickbox" rel="three-peaks-2008" ><img title="Lovely views" alt="Lovely views" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00842.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-4" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00843.1024.jpg" title="10:32am - A quad bike." class="thickbox" rel="three-peaks-2008" ><img title="Quad bike" alt="Quad bike" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00843.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-5" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00844.1024.jpg" title="10:54am - Top of Ingleborough and we were rewarded with more lovely views." class="thickbox" rel="three-peaks-2008" ><img title="Top of Ingleborough" alt="Top of Ingleborough" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00844.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-6" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00845.1024.jpg" title="10:54am - Claire on the top of Ingleborough." class="thickbox" rel="three-peaks-2008" ><img title="Claire on top of Ingleborough" alt="Claire on top of Ingleborough" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00845.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-7" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00846.1024.jpg" title="10:54am - You WILL enjoy yourself!" class="thickbox" rel="three-peaks-2008" ><img title="I&#039;m so happy!" alt="I&#039;m so happy!" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00846.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-8" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00847.1024.jpg" title="10:55am - More stunning views from the top." class="thickbox" rel="three-peaks-2008" ><img title="More great views" alt="More great views" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00847.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-9" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00848.1024.jpg" title="10:55am - And more." class="thickbox" rel="three-peaks-2008" ><img title="And more" alt="And more" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00848.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-10" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00849.1024.jpg" title="11:09am - A break in the cloud as we descend." class="thickbox" rel="three-peaks-2008" ><img title="Break in the cloud" alt="Break in the cloud" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00849.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-11" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00850.1024.jpg" title="11:32am - Can&#039;t remember why I took this one." class="thickbox" rel="three-peaks-2008" ><img title="Random photo" alt="Random photo" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00850.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-13" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00852.1024.jpg" title="12:00pm - First glimpses of the Ribblehead viaduct." class="thickbox" rel="three-peaks-2008" ><img title="Ribblehead viaduct" alt="Ribblehead viaduct" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00852.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-14" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00853.1024.jpg" title="12:16pm - Another long shot of the viaduct." class="thickbox" rel="three-peaks-2008" ><img title="Another shot of the viaduct" alt="Another shot of the viaduct" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00853.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-15" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00854.1024.jpg" title="12:34pm - Claire being a whally." class="thickbox" rel="three-peaks-2008" ><img title="Claire being a whally" alt="Claire being a whally" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00854.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-16" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00855.1024.jpg" title="12:50pm - Views from the top of Whernside." class="thickbox" rel="three-peaks-2008" ><img title="Top of Whernside" alt="Top of Whernside" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00855.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-18" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00857.1024.jpg" title="12:50pm - Us on the top of Whernside." class="thickbox" rel="three-peaks-2008" ><img title="Us on top of Whernside" alt="Us on top of Whernside" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00857.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-19" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00858.1024.jpg" title="12:57pm - The OS triangulation point on the top of Whernside." class="thickbox" rel="three-peaks-2008" ><img title="Top of Whernside again" alt="Top of Whernside again" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00858.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-20" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00859.1024.jpg" title="1:11pm - Coming down Whernside we met hundreds of walkers!" class="thickbox" rel="three-peaks-2008" ><img title="Hundreds of walkers!" alt="Hundreds of walkers!" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00859.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-22" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00861.1024.jpg" title="1:24pm - Some sheep!" class="thickbox" rel="three-peaks-2008" ><img title="Some sheep" alt="Some sheep" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00861.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-23" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00862.1024.jpg" title="1:38pm - A nice waterfall." class="thickbox" rel="three-peaks-2008" ><img title="A waterfall" alt="A waterfall" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00862.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-24" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00863.1024.jpg" title="1:38pm - Another shot of the waterfall." class="thickbox" rel="three-peaks-2008" ><img title="The same waterfall" alt="The same waterfall" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00863.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-25" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00864.1024.jpg" title="1:38pm - Our first glimpse of the third peak Pen-y-Ghent in the distance." class="thickbox" rel="three-peaks-2008" ><img title="Pen-y-Ghent long shot" alt="Pen-y-Ghent long shot" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00864.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-27" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00866.1024.jpg" title="2:06pm - We finally made it to the Ribblehead viaduct!" class="thickbox" rel="three-peaks-2008" ><img title="Ribblehead viaduct" alt="Ribblehead viaduct" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00866.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-28" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00867.1024.jpg" title="2:08pm - Ribblehead viaduct. It&#039;s amazing that they built this in 1875!" class="thickbox" rel="three-peaks-2008" ><img title="Ribblehead viaduct again" alt="Ribblehead viaduct again" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00867.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-32" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00871.1024.jpg" title="3:34pm - God&#039;s bridge!" class="thickbox" rel="three-peaks-2008" ><img title="God&#039;s bridge" alt="God&#039;s bridge" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00871.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-33" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00872.1024.jpg" title="3:34pm - I&#039;m so happy!" class="thickbox" rel="three-peaks-2008" ><img title="Happy me" alt="Happy me" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00872.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-34" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00873.1024.jpg" title="3:34pm - Hahaha Claire!" class="thickbox" rel="three-peaks-2008" ><img title="Happy Claire" alt="Happy Claire" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00873.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-35" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00874.1024.jpg" title="3:34pm - Both smiling, kind of." class="thickbox" rel="three-peaks-2008" ><img title="Me looking weird" alt="Me looking weird" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00874.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-36" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00875.1024.jpg" title="4:13pm - Pen-y-Ghent is still bloody miles away!" class="thickbox" rel="three-peaks-2008" ><img title="Pen-y-ghent long way away" alt="Pen-y-ghent long way away" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00875.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-37" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00876.1024.jpg" title="4:32pm - It&#039;s not getting any closer!" class="thickbox" rel="three-peaks-2008" ><img title="Pen-y-ghent still miles away" alt="Pen-y-ghent still miles away" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00876.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-39" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00878.1024.jpg" title="5:19pm - Finally on top of Pen-y-ghent!" class="thickbox" rel="three-peaks-2008" ><img title="Top of pen-y-ghent" alt="Top of pen-y-ghent" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00878.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-40" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00879.1024.jpg" title="5:19pm - Totally knackered on the top of Pen-y-ghent." class="thickbox" rel="three-peaks-2008" ><img title="Knackered" alt="Knackered" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00879.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-46" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00885.1024.jpg" title="5:59pm - Happy because we&#039;re nearly back!" class="thickbox" rel="three-peaks-2008" ><img title="Nearly back" alt="Nearly back" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00885.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-47" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00886.1024.jpg" title="6:01pm - The final trek back to Horton-in-Ribblesdale." class="thickbox" rel="three-peaks-2008" ><img title="Final trek" alt="Final trek" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00886.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-49" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00888.1024.jpg" title="6:13pm - Arrived back at the hotel! Hooray!" class="thickbox" rel="three-peaks-2008" ><img title="Back at the hotel" alt="Back at the hotel" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00888.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-50" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00889.1024.jpg" title="The hotel - possibly the worst decorated building I have ever been in." class="thickbox" rel="three-peaks-2008" ><img title="In the hotel" alt="In the hotel" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00889.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-51" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00890.1024.jpg" title="These were in the hotel dining room!" class="thickbox" rel="three-peaks-2008" ><img title="Nodding dogs" alt="Nodding dogs" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00890.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-59" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/dsc00898.1024.jpg" title="Me amusing myself (but not Claire)." class="thickbox" rel="three-peaks-2008" ><img title="Belm" alt="Belm" src="http://www.cenolan.com/wordpress/wp-content/gallery/three-peaks-2008/thumbs/thumbs_dsc00898.1024.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
</div>
<div class='ngg-clear'></div>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/06/yorkshire-dales-three-peaks-challenge/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tip: never flash a BIOS from within Windows!</title>
		<link>http://www.cenolan.com/2008/06/tip-never-flash-a-bios-from-within-windows/</link>
		<comments>http://www.cenolan.com/2008/06/tip-never-flash-a-bios-from-within-windows/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 17:59:04 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[General computing]]></category>

		<category><![CDATA[Acer]]></category>

		<category><![CDATA[BIOS]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=13</guid>
		<description><![CDATA[This much I have learned: never, and I mean *never*, flash your computer's BIOS from within Windows.
I've done it before and never had a problem, but my luck ran out when I recently tried to flash the BIOS of an Acer TravelMate 6410 using the "WinPhlash" tool downloaded from the Acer website. The tool ran, [...]]]></description>
			<content:encoded><![CDATA[<p>This much I have learned: never, and I mean *never*, flash your computer's BIOS from within Windows.</p>
<p>I've done it before and never had a problem, but my luck ran out when I recently tried to flash the BIOS of an Acer TravelMate 6410 using the "WinPhlash" tool downloaded from the Acer website. The tool ran, backed up and erased the old BIOS, then crashed at block 5 of 16 when flashing the new BIOS. Result: a computer that won't even POST, nevermind boot.</p>
<p><span id="more-13"></span></p>
<p>If you really want to flash your PC's BIOS then make a bootable floppy disk containing something like minidos, the tools needed to flash the BIOS from DOS and the BIOS file itself. Then flash the BIOS by booting from this disk and running the BIOS flash tools from the command line. Trust me, its worth the extra hassle, because a failed BIOS flash is a nasty thing to recover from, and could even brick your computer.</p>
<p>As an aside, in my case the Acer was covered by a 3 year extended warranty that includes accidental damage. You'd think that, as the BIOS is a hardware chip, then a broken BIOS would be a hardware problem and therefore covered under the warranty. However, a call to Acer revealed that they believe it is a software problem and therefore not covered. I don't wish to get into semantics, but in my opinion a BIOS is not "software" as it is a physical component of the motherboard. Perhaps the BIOS software itself is best referred to as "firmware" rather than software. Moreover, if a BIOS flash fails due to software that they publish on their own website then I would fully expect them to honour the warranty!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/06/tip-never-flash-a-bios-from-within-windows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mounting an FTP filesystem under Yellow Dog Linux 6</title>
		<link>http://www.cenolan.com/2008/05/mounting-an-ftp-filesystem-on-ydl6/</link>
		<comments>http://www.cenolan.com/2008/05/mounting-an-ftp-filesystem-on-ydl6/#comments</comments>
		<pubDate>Tue, 13 May 2008 15:18:25 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Yellow Dog Linux]]></category>

		<category><![CDATA[ftp]]></category>

		<category><![CDATA[fuse]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[ydl]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=12</guid>
		<description><![CDATA[This guide shows how to use FUSE and CurlFtpFs to mount an FTP filesystem on Yellow Dog Linux 6. This guide presumes that you have already built and installed your own FUSE capable kernel for YDL 6.

Unless otherwise specified, all commands are run as a normal user, NOT root!
1) Install the FUSE userspace tools
wget http://downloads.sourceforge.net/fuse/fuse-2.7.3.tar.gz?modtime=1203456610&#038;big_mirror=0
tar [...]]]></description>
			<content:encoded><![CDATA[<p>This guide shows how to use <a href="http://fuse.sourceforge.net/">FUSE</a> and <a href="http://curlftpfs.sourceforge.net/">CurlFtpFs</a> to mount an FTP filesystem on Yellow Dog Linux 6. This guide presumes that you have already <a href="http://www.cenolan.com/2008/05/building-custom-kernel-rpm-fuse-ydl-6/">built and installed your own FUSE capable kernel</a> for YDL 6.</p>
<p><span id="more-12"></span><br />
Unless otherwise specified, all commands are run as a normal user, NOT root!</p>
<p><strong>1) Install the FUSE userspace tools</strong></p>
<pre><code>wget http://downloads.sourceforge.net/fuse/fuse-2.7.3.tar.gz?modtime=1203456610&#038;big_mirror=0
tar xvzf fuse-2.7.3.tar.gz
cd fuse-2.7.3
./configure
make
su -c "make install"</code></pre>
<p>This should all go smoothly and you should now have the FUSE tools such as "fusermount" installed.</p>
<p><strong>2) Install CurlFtpFs</strong></p>
<pre><code>wget http://downloads.sourceforge.net/curlftpfs/curlftpfs-0.9.1.tar.gz?modtime=1175788159&#038;big_mirror=0
tar zxvf curlftpfs-0.9.1.tar.gz
cd curlftpfs-0.9.1
jm_cv_func_working_malloc=yes
export jm_cv_func_working_malloc
ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_malloc_0_nonnull
jm_cv_func_working_realloc=yes
export jm_cv_func_working_realloc
ac_cv_func_realloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull
./configure
make
su -c "make install"</code></pre>
<p>Again, this should all go smoothly and you should now have the "curlftpfs" program installed.</p>
<p><strong>3) Mounting the FTP server</strong></p>
<p>Mounting procedure is as follows:</p>
<p>mkdir MountPoint (eg: mkdir /backup)<br />
curlftpfs -o user=USERNAME:PASSWORD ftp://FTPHost/ MountPoint/<br />
eg: curlftpfs -o user=testusr:mypass ftp://127.0.0.1/ /backup/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/05/mounting-an-ftp-filesystem-on-ydl6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Building a custom kernel RPM with FUSE support on YDL 6</title>
		<link>http://www.cenolan.com/2008/05/building-custom-kernel-rpm-fuse-ydl-6/</link>
		<comments>http://www.cenolan.com/2008/05/building-custom-kernel-rpm-fuse-ydl-6/#comments</comments>
		<pubDate>Tue, 13 May 2008 13:39:29 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Yellow Dog Linux]]></category>

		<category><![CDATA[fuse]]></category>

		<category><![CDATA[kernel]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[ydl]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=11</guid>
		<description><![CDATA[This guide explains how to build and install a custom kernel RPM with FUSE support on Yellow Dog Linux 6. The guide is written based on my experience with YDL on an Apple XServe G4 using kernel-2.6.23-9 on ppc architecture. If your system is different then adjust the guide as required.

Follow all the commands as [...]]]></description>
			<content:encoded><![CDATA[<p>This guide explains how to build and install a custom kernel RPM with FUSE support on Yellow Dog Linux 6. The guide is written based on my experience with YDL on an Apple XServe G4 using kernel-2.6.23-9 on ppc architecture. If your system is different then adjust the guide as required.</p>
<p><span id="more-11"></span><br />
Follow all the commands as a normal user, NOT root!</p>
<p><strong>1) Create an rpm build environment</strong></p>
<pre><code>cd ~
mkdir ~/rpmbuild
mkdir ~/rpmbuild/BUILD
mkdir ~/rpmbuild/RPMS
mkdir ~/rpmbuild/SOURCES
mkdir ~/rpmbuild/SPECS
mkdir ~/rpmbuild/SRPMS

echo "%_topdir /home/`whoami`/rpmbuild" &gt; ~/.rpmmacros</code></pre>
<p><strong>2) Download and install the source rpm of the current kernel.</strong></p>
<p>Note: this is not the kernel-source rpm!</p>
<pre><code>wget http://www.mirrorservice.org/sites/ftp.yellowdoglinux.com/pub/yellowdog/releases/yellowdog-6.0/SRPMS/kernel-2.6.23-9.ydl6.1.src.rpm
rpm -ivh kernel-2.6.23-9.ydl6.1.src.rpm</code></pre>
<p><strong>3) Prepare the kernel source tree</strong></p>
<pre><code>cd ~/rpmbuild/SPECS
rpmbuild -bp --target=`uname -m` kernel.spec</code></pre>
<p><strong>4) Configure the kernel</strong></p>
<pre><code>cd ~/rpmbuild/BUILD/kernel-2.6.23/linux-2.6.23.9/
cp configs/kernel-2.6.23-ppc.config .config
make oldconfig
make menuconfig</code></pre>
<p>Using the down arrow key navigate to "File systems" then press Enter and then scroll down to "Filesystem in Userspace support" and press "M" to select it as a module. Press Tab to select Exit in the bottom bar, then do it again, then press Y when prompted to save the configuration.</p>
<p>Copy the config file to ~/rpmbuild/SOURCES/:</p>
<pre><code>cp .config ~/rpmbuild/SOURCES/kernel-2.6.23-ppc.config</code></pre>
<p><strong>5) Prepare the build files</strong></p>
<pre><code>cd ~/rpmbuild/SPECS</code></pre>
<p>Open up the kernel.spec file for editing and ensure the kernel has a unique name by changing the following line (line 32)</p>
<pre><code>%define release %{subrev}.ydl6.%{rpmrev}</code></pre>
<p>to</p>
<pre><code>%define release %{subrev}.ydl6fuse.%{rpmrev}</code></pre>
<p><strong>6) Build the new kernel</strong></p>
<pre><code>rpmbuild -bb --with baseonly --without debuginfo --target=`uname -m` kernel.spec</code></pre>
<p>The build process takes a long time to complete. A lot of messages will be printed to the screen. These messages can be ignored, unless the build ends with an error. If the build completes successfully, the new kernel packages in the ~/rpmbuild/RPMS directory.</p>
<p><strong>7) Install the new kernel</strong></p>
<pre><code>cd ~/rpmbuild/RPMS/ppc
su -c "rpm -ivh kernel-2.6.23-9.ydl6fuse.1.ppc.rpm kernel-headers-2.6.23-9.ydl6fuse.1.ppc.rpm --oldpackage"</code></pre>
<p><strong>8) Make the new kernel boot by default</strong></p>
<p>As root, open up /boot/etc/yaboot.conf for editing. You should now see two kernel images listed as boot options. Change the label of the ydl6fuse image to something friendly like "linuxfuse". Now change the "default" line to the same.</p>
<p>For example:</p>
<pre><code>default=linuxfuse
image=/vmlinux-2.6.23-9.ydl6fuse.1
label=linuxfuse
read-only
initrd=/initrd-2.6.23-9.ydl6fuse.1.img
append="root=LABEL=/"

image=/vmlinux-2.6.23-9.ydl6.1
label=linux
read-only
initrd=/initrd-2.6.23-9.ydl6.1.img
append="root=LABEL=/"</code></pre>
<p>Important: Ensure you also have a line that says "delay=5" (or a greater number) so if your new kernel won't boot you can still access the yaboot menu to boot your old kernel!</p>
<p>Save and exit the file.</p>
<p>Now run "ybin" (again, as root) to commit the changes. Reboot!</p>
<p><strong>9) Load the fuse module</strong></p>
<pre><code>su -
modprobe fuse</code></pre>
<p>To make the fuse module load on boot. Create the file /etc/sysconfig/modules/my.modules and give it the following contents:</p>
<pre><code>#!/bin/sh
modprobe fuse &gt;/dev/null 2&gt;&amp;1</code></pre>
<p>Save and exit. Now make it executable:</p>
<pre><code>chmod +x /etc/sysconfig/modules/my.modules</code></pre>
<p><strong>10) Finished!</strong></p>
<p>Your kernel now supports FUSE. Now you can use any of the various userspace tools to mount the various filesystems supported by FUSE.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/05/building-custom-kernel-rpm-fuse-ydl-6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Simple Linux to Amazon S3 backup script</title>
		<link>http://www.cenolan.com/2008/05/simple-linux-to-amazon-s3-backup-script/</link>
		<comments>http://www.cenolan.com/2008/05/simple-linux-to-amazon-s3-backup-script/#comments</comments>
		<pubDate>Mon, 05 May 2008 13:05:53 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Amazon S3]]></category>

		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=10</guid>
		<description><![CDATA[There are many tools available to help backup Linux systems to Amazon S3 but finding the right one to use can be difficult. Jeremy Zawodny made a good list of various S3 backup tools which is very helpful, if a little outdated. I experimented with a few tools, including some of the standard scripts published [...]]]></description>
			<content:encoded><![CDATA[<p>There are many tools available to help backup Linux systems to Amazon S3 but finding the right one to use can be difficult. Jeremy Zawodny made a <a title="S3 backup Tools" href="http://jeremy.zawodny.com/blog/archives/007641.html">good list of various S3 backup tools</a> which is very helpful, if a little outdated. I experimented with a few tools, including some of the standard scripts published by Amazon but I found each had their own shortcomings.</p>
<p>One tool that is very simple to use is <a href="http://s3tools.logix.cz/s3cmd">s3cmd</a> which is a linux command line tool to upload, retrieve, and manage data in Amazon S3. The tool is written in python so should install and run on pretty much any modern linux distro and I have found it works very nicely and seems to be an ideal tool to use if you want to write a basic backup script.</p>
<p><span id="more-10"></span></p>
<p>Once installed you just run "s3cmd --configure" to configure the script with your Amazon S3 access keys. You can then use s3cmd from the command line to manage your S3 buckets and their contents. Full details of the various options can be obtained through running "s3cmd --help".</p>
<p>I have used s3cmd to create automated daily rotated backups of a single directory (e.g. /home) using a simple bash script which I adapted from the <a href="http://sourceforge.net/projects/automysqlbackup/">automysqlbackup</a> script. The script I have used is shown below, and provides rotated backups of the previous 7 days, each day individually archived in a single tar.gz file. This is a fairly limited solution as it only provides a backup of a single directory, does not do incremental backups, and it will break if your tar.gz file exceeds the S3 individual file storage limit of ~6GB. However, if you just need a simple solution to maintain daily backups of a single folder then its a nice tidy option. It will also email you the results, and can optionally include jobs to run pre- and post- backup.</p>
<pre><code>#!/bin/bash
#
# Backup Script
#
#=====================================================================
#=====================================================================
# Set the following variables to your system needs
#=====================================================================</code>

# Directory to save daily tar.gz backup files to e.g /backups
BACKUPDIR="/backups"

# Directory to backup
BACKUPSRCDIR="/home"

# Maximum size of backup files in MB (larger files will be split into separate archives)
# Note: not implemented yet
MAXTARSIZE="1000"

# S3 Settings
# The name of the S3 bucket to upload to e.g. "my_s3_bucket"
S3BUCKET="my_s3_bucket"

# Mail setup
# What would you like to be mailed to you?
# - log   : send only log file
# - files : send log file and tar.gz files as attachments
# - stdout : will simply output the log to the screen if run manually.
# - quiet : Only send logs if an error occurs to the MAILADDR.
MAILCONTENT="log"

# Set the maximum allowed email size in k. (4000 = approx 5MB email [see docs])
MAXATTSIZE="4000"

# Email Address to send mail to? (user@domain.com)
MAILADDR="user@domain.com"

# Command to run before backups (uncomment to use)
#PREBACKUP="/etc/backup-pre"

# Command run after backups (uncomment to use)
#POSTBACKUP="/etc/backup-post"

#=====================================================================
#=====================================================================
#=====================================================================
#
# Should not need to be modified from here down!!
#
#=====================================================================
#=====================================================================
#=====================================================================
PATH=/usr/local/bin:/usr/bin:/bin:
DATE=`date +%Y-%m-%d_%Hh%Mm`                            # Datestamp e.g 2002-09-21
DOW=`date +%A`                                          # Day of the week e.g. Monday
DNOW=`date +%u`                                         # Day number of the week 1 to 7 where 1 represents Monday
DOM=`date +%d`                                          # Date of the Month e.g. 27
M=`date +%B`                                            # Month e.g January
W=`date +%V`                                            # Week Number e.g 37
VER=0.1                                                 # Version Number
HOST=`hostname`                                         # Hostname for LOG information
LOGFILE=$BACKUPDIR/$HOST-`date +%N`.log                 # Logfile Name
LOGERR=$BACKUPDIR/ERRORS_$HOST-`date +%N`.log           # Error log Name
BACKUPFILES=""

# Create required directories
if [ ! -e "$BACKUPDIR" ]                # Check Backup Directory exists.
then
mkdir -p "$BACKUPDIR"
fi

# IO redirection for logging.
touch $LOGFILE
exec 6&gt;&amp;1           # Link file descriptor #6 with stdout.
# Saves stdout.
exec &gt; $LOGFILE     # stdout replaced with file $LOGFILE.
touch $LOGERR
exec 7&gt;&amp;2           # Link file descriptor #7 with stderr.
# Saves stderr.
exec 2&gt; $LOGERR     # stderr replaced with file $LOGERR.

# Functions

# Backup function: removes last weeks archive from S3, creates new tar.gz and sends to S3
SUFFIX=""
dobackup () {
s3cmd ls s3://"$S3BUCKET" | grep s3 | sed "s/.*s3:\/\/$S3BUCKET\//s3:\/\/$S3BUCKET\//" | grep "$DOW" | xargs s3cmd del
tar cfz "$1" "$2"
echo
echo Backup Information for "$1"
gzip -l "$1"
echo
s3cmd put "$1" s3://"$S3BUCKET"
return 0
}

# Run command before we begin
if [ "$PREBACKUP" ]
then
echo ======================================================================
echo "Prebackup command output."
echo
eval $PREBACKUP
echo
echo ======================================================================
echo
fi

echo ======================================================================
echo BackupScript VER $VER
echo http://www.cenolan.com/
echo
echo Backup of Server - $HOST
echo ======================================================================

echo Backup Start Time: `date`
echo ======================================================================
# Daily Backup
echo Daily Backup of Directory \( $BACKUPSRCDIR \)
echo
echo Rotating last weeks Backup...
eval rm -fv "$BACKUPDIR/*.$DOW.tar.gz"
echo
dobackup "$BACKUPDIR/$DATE.$DOW.tar.gz" "$BACKUPSRCDIR"
BACKUPFILES="$BACKUPFILES $BACKUPDIR/$DATE.$DOW.tar.gz"
echo
echo ----------------------------------------------------------------------
echo Backup End Time: `date`
echo ======================================================================
echo Total disk space used for backup storage..
echo Size - Location
echo `du -hs "$BACKUPDIR"`
echo
echo ======================================================================
echo ======================================================================

# Run command when we're done
if [ "$POSTBACKUP" ]
then
echo ======================================================================
echo "Postbackup command output."
echo
eval $POSTBACKUP
echo
echo ======================================================================
fi

#Clean up IO redirection
exec 1&gt;&amp;6 6&gt;&amp;-      # Restore stdout and close file descriptor #6.
exec 1&gt;&amp;7 7&gt;&amp;-      # Restore stdout and close file descriptor #7.

if [ "$MAILCONTENT" = "files" ]
then
if [ -s "$LOGERR" ]
then
# Include error log if is larger than zero.
BACKUPFILES="$BACKUPFILES $LOGERR"
ERRORNOTE="WARNING: Error Reported - "
fi
#Get backup size
ATTSIZE=`du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//`
if [ $MAXATTSIZE -ge $ATTSIZE ]
then
BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments
mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES $MAILADDR &lt; $LOGFILE       #send via mutt
else
cat "$LOGFILE" | mail -s "WARNING! - Backup exceeds set maximum attachment size on $HOST - $DATE" $MAILADDR
fi
elif [ "$MAILCONTENT" = "log" ]
then
cat "$LOGFILE" | mail -s "Backup Log for $HOST - $DATE" $MAILADDR
if [ -s "$LOGERR" ]
then
cat "$LOGERR" | mail -s "ERRORS REPORTED: MySQL Backup error Log for $HOST - $DATE" $MAILADDR
fi
elif [ "$MAILCONTENT" = "quiet" ]
then
if [ -s "$LOGERR" ]
then
cat "$LOGERR" | mail -s "ERRORS REPORTED: Backup error Log for $HOST - $DATE" $MAILADDR
cat "$LOGFILE" | mail -s "Backup Log for $HOST - $DATE" $MAILADDR
fi
else
if [ -s "$LOGERR" ]
then
cat "$LOGFILE"
echo
echo "###### WARNING ######"
echo "Errors reported during Backup execution.. Backup failed"
echo "Error log below.."
cat "$LOGERR"
else
cat "$LOGFILE"
fi
fi

if [ -s "$LOGERR" ]
then
STATUS=1
else
STATUS=0
fi

# Clean up Logfile
eval rm -f "$LOGFILE"
eval rm -f "$LOGERR"

exit $STATUS</pre>
<p>I have posted this largely for my own information but maybe somebody else will find this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/05/simple-linux-to-amazon-s3-backup-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Converting a MySQL database to UTF-8</title>
		<link>http://www.cenolan.com/2008/04/converting-a-mysql-database-to-utf-8/</link>
		<comments>http://www.cenolan.com/2008/04/converting-a-mysql-database-to-utf-8/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 12:57:44 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=8</guid>
		<description><![CDATA[I occasionally need to convert a mysql database to UTF-8. This can be a painful process and if it goes wrong can result in a nightmare of character-set collisions. Some digging around on the lazyweb led me to a nice solution I found over at oscarm.org that shows you how to quickly convert the actual [...]]]></description>
			<content:encoded><![CDATA[<p>I occasionally need to convert a mysql database to UTF-8. This can be a painful process and if it goes wrong can result in a nightmare of character-set collisions. Some digging around on the lazyweb led me to a nice solution I found over at <a title="HOWTO: Convert mysql data to UTF-8 quickly" href="http://oscarm.org/news/detail/1894-howto_convert_mysql_data_to_utf8_quickly">oscarm.org</a> that shows you how to quickly convert the actual data, but I wanted to convert the database too.</p>
<p><span id="more-8"></span><br />
Here's what I did:</p>
<p>1) Dump the database into a sql file using mysqldump:</p>
<pre><code>mysqldump --opt --quote-names -u username -p password my_database &gt; my_database.sql</code></pre>
<p>2) Convert the dumped sql data from the current character set to utf-8, for example:</p>
<pre><code>iconv -f ISO_8859-1 -t UTF-8 my_database.sql &gt; my_database-utf-8.sql</code></pre>
<p>3) Change the CHARSET definitions in the sql file to utf8. You could do this by manually editing the file, but this little perl snippet will do it for you (here we're going from latin1 to utf8 - change to fit your needs):</p>
<pre><code>perl -pi -w -e 's/CHARSET=latin1/CHARSET=utf8/g;' my_database-utf-8.sql</code></pre>
<p>4) Import the database back into mysql:</p>
<pre><code>mysql -u username -p password my_database &lt; my_database-utf-8.sql</code></pre>
<p>Voila. Your database and data is now converted to utf-8.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/04/converting-a-mysql-database-to-utf-8/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fedora kernel fixes and files for MacBook 3,1 (Santa Rosa)</title>
		<link>http://www.cenolan.com/2008/04/fedora-kernel-fixes-and-files-for-macbook/</link>
		<comments>http://www.cenolan.com/2008/04/fedora-kernel-fixes-and-files-for-macbook/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 18:03:00 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Fedora 8]]></category>

		<category><![CDATA[MacBook]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[mactel-linux]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=7</guid>
		<description><![CDATA[Following on from my previous post, I have been making some RPM packages available for Fedora 8 and the MacBook 3,1 Santa Rosa.
The kernel packages are not needed now since Fedora 8 kernel 2.6.24.3-50 (and newer) already contains the MacBook specific fixes. However, at the time of writing the gstreamer packages are still required if [...]]]></description>
			<content:encoded><![CDATA[<p>Following on from my previous post, I have been making some RPM packages available for Fedora 8 and the MacBook 3,1 Santa Rosa.</p>
<p>The kernel packages are not needed now since Fedora 8 kernel 2.6.24.3-50 (and newer) already contains the MacBook specific fixes. However, at the time of writing the gstreamer packages are still required if you want to use gstreamer based applications with the MacBook iSight camera.</p>
<p>Before downloading, please take care of my bandwidth. If you don't need the package, please don't download it.</p>
<p>You can <a title="Fedora 8 kernel fixes and files for MacBook 3,1 (Santa Rosa)" href="http://www.cenolan.com/fedora8/">download the packages here</a>.</p>
<p>There is also <a title=" Guide: Fedora 8 on Macbook 3,1 Santa Rosa" href="http://forums.fedoraforum.org/forum/showthread.php?t=179233">this thread at fedoraforum.org</a> which may be helpful.</p>
<p>If you find any problems or have any suggestions please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/04/fedora-kernel-fixes-and-files-for-macbook/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing Fedora 8 on a MacBook</title>
		<link>http://www.cenolan.com/2008/04/installing-fedora-8-on-a-macbook/</link>
		<comments>http://www.cenolan.com/2008/04/installing-fedora-8-on-a-macbook/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 16:16:18 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Fedora 8]]></category>

		<category><![CDATA[MacBook]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[mactel-linux]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/?p=4</guid>
		<description><![CDATA[The MacBook is great, but OS X is not really my cup of tea and I choose not to use Windows. Luckily Fedora 8 works like a charm on the MacBook and with a bit of configuring you can get all the hardware working properly.
I couldn't find any information on the lazyweb about installing Fedora [...]]]></description>
			<content:encoded><![CDATA[<p>The MacBook is great, but OS X is not really my cup of tea and I choose not to use Windows. Luckily Fedora 8 works like a charm on the MacBook and with a bit of configuring you can get all the hardware working properly.</p>
<p>I couldn't find any information on the lazyweb about installing Fedora 8 on a MacBook so I recorded what I did and made a detailed how-to which is posted in the wiki over at <a title="How to install Fedora 8 on Macbook 3,1" href="http://www.mactel-linux.org/wiki/Fedora8OnMacBookSantaRosa">mactel-linux.org</a>. The guide shows you step-by-step how to install and configure Fedora 8 x86_64 on the MacBook and works with both MacBook version 3,1 (from late 2007) or version 4,1 (from early 2008).</p>
<p>Big up to the guys at Fedora who gave in to my relentless nagging and integrated some of the mactel-linux patches into the latest Fedora kernels. Without them I'd still be spending my weekends rolling kernels!</p>
<p>If you find the guide useful or have any comments or suggestions then let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/04/installing-fedora-8-on-a-macbook/feed/</wfw:commentRss>
		</item>
		<item>
		<title>It&#8217;s about time I had a blog</title>
		<link>http://www.cenolan.com/2008/04/hello-world/</link>
		<comments>http://www.cenolan.com/2008/04/hello-world/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 21:18:15 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Idle chat]]></category>

		<guid isPermaLink="false">http://www.cenolan.com/wordpress/?p=1</guid>
		<description><![CDATA[I've messed with blogging software for years, use MT daily, and have installed WordPress countless times but never actually got around to blogging about anything.
So, for the nth time, here goes again. Maybe I'll even think of something interesting to say.
]]></description>
			<content:encoded><![CDATA[<p>I've messed with blogging software for years, use MT daily, and have installed WordPress countless times but never actually got around to blogging about anything.</p>
<p>So, for the nth time, here goes again. Maybe I'll even think of something interesting to say.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cenolan.com/2008/04/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
