<?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>A Million Monkeys</title>
	<atom:link href="http://www.monkeedev.co.uk/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.monkeedev.co.uk/blog</link>
	<description>Surviving life as a sysadmin.</description>
	<lastBuildDate>Mon, 16 May 2011 09:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Hipstamatic taking up too much space?</title>
		<link>http://www.monkeedev.co.uk/blog/2011/03/25/hipstamatic-taking-up-too-much-space/</link>
		<comments>http://www.monkeedev.co.uk/blog/2011/03/25/hipstamatic-taking-up-too-much-space/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 19:48:10 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[hipstamatic]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=222</guid>
		<description><![CDATA[Please see the update at the bottom of this post! As an avid user of the Hipstamatic iPhone app, I soon noticed that it started taking up a lot of disk space. I had a look around the filesystem (my iPhone is jailbroken, so I can access the whole filesystem) and found that inside the [...]]]></description>
			<content:encoded><![CDATA[<p><b>Please see the update at the bottom of this post!</b></p>
<p>As an avid user of the Hipstamatic iPhone app, I soon noticed that it started taking up a lot of disk space. </p>
<p>I had a look around the filesystem (my iPhone is jailbroken, so I can access the whole filesystem) and found that inside the Documents folder for the app, there are 2 folders which hold any photos you take (FilmRoll for the thumbnail images, and HiResPrints for the full sized ones).</p>
<p>When you delete a photo from the film roll, the thumbnail and full size image aren&#8217;t removed from these folders, meaning that after you&#8217;ve taken a lot of photos, you can end up with the app taking up a huge amount of space and have no way of freeing the space up.</p>
<p>If you&#8217;re jailbroken, you can remove old images from the filesystem fairly easily, but you need to take care not to delete ones which havent been deleted from the app.</p>
<p>The file HipstaData.sqlite is a sqlite database holding info about all of the photos which are still in the app, so you could correlate the records in that with what&#8217;s in the folders above to decide what to delete, but it&#8217;s a pain to do and you need a sqlite browser and basic understanding of the filesystem and databases to do.</p>
<p>Rather than the hassle of having to do this manually, I decided to write a shell script to do it for me. I achieved it by doing the following.</p>
<p>1, Locate the hipstamatic app folder on the device (I believe this is different for all installs, so I made the script find the app itself rather than hardcoding it). On a 3GS, this takes a few seconds.</p>
<blockquote><p>DIR_NAME=`find /var/mobile/Applications/ -name &#8220;Hipstamatic.app&#8221; | cut -d \/ -f 5`</p></blockquote>
<p>2, Kill the running hipstamatic process (this might not be needed, but it&#8217;s safer to not have the app running while you&#8217;re editing the contents of its Documents folder).</p>
<blockquote><p>killall -v Hipstamatic</p></blockquote>
<p>3, Loop through all files in the FilmRoll directory (I assume that every file in this directory will have a corresponding entry in HiResPrints). For each file, query the sqlite database and if the filename exists in the ZRECENTPRINT table then it&#8217;s still part of the film roll inside the app so needs to be kept.</p>
<p>The full script is available here (removed). To use it, copy it to your device using something like cyberduck or i-funbox, then make it executable and run it through ssh&#8230;</p>
<blockquote><p>mv hipsta.txt hipsta.sh<br />
chmod +x hipsta.sh<br />
./hipsta.sh</p></blockquote>
<p><b>Now a quick disclaimer!</b> This script works for me. I&#8217;ve only used it myself on my own iPhone so whilst I think it will work correctly, I can&#8217;t guarantee that it won&#8217;t brick your device and empty your bank accounts. Please make sure you have a backup (I&#8217;d recommend AppBackup or Chronus) before you attempt to use it. Also, I&#8217;m not an expert at shell scripting so if anyone who reads this is and notices any issues then please let me know and I&#8217;ll fix it as soon as possible. I don&#8217;t want anyone to suffer any data loss because of my script!</p>
<p><b>Update 14th May 2011 &#8211; It appears that this problem has been fixed as of Hipstamatic v210, so this script isn&#8217;t needed any more!</b></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2011%2F03%2F25%2Fhipstamatic-taking-up-too-much-space%2F&amp;title=Hipstamatic+taking+up+too+much+space%3F" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2011%2F03%2F25%2Fhipstamatic-taking-up-too-much-space%2F&amp;title=Hipstamatic+taking+up+too+much+space%3F" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2011%2F03%2F25%2Fhipstamatic-taking-up-too-much-space%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2011%2F03%2F25%2Fhipstamatic-taking-up-too-much-space%2F&amp;title=Hipstamatic+taking+up+too+much+space%3F" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2011%2F03%2F25%2Fhipstamatic-taking-up-too-much-space%2F&amp;title=Hipstamatic+taking+up+too+much+space%3F" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2011%2F03%2F25%2Fhipstamatic-taking-up-too-much-space%2F&amp;title=Hipstamatic+taking+up+too+much+space%3F" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2011%2F03%2F25%2Fhipstamatic-taking-up-too-much-space%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Hipstamatic+taking+up+too+much+space%3F+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2011%2F03%2F25%2Fhipstamatic-taking-up-too-much-space%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2011/03/25/hipstamatic-taking-up-too-much-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downgrade PHP to 5.2 in Ubuntu 10.04</title>
		<link>http://www.monkeedev.co.uk/blog/2010/09/14/downgrade-php-to-5-2-in-ubuntu-10-04/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/09/14/downgrade-php-to-5-2-in-ubuntu-10-04/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 19:35:10 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[5.2]]></category>
		<category><![CDATA[5.3]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[downgrade]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lucid lynx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=203</guid>
		<description><![CDATA[I installed Ubuntu 10.04 on a few servers a while back, and instantly noticed a lot of problems with a few of our sites (that&#8217;s usually what happens when you do a major upgrade without reading any release notes!). I fairly quickly found out that the cause was that in Ubuntu 10.04, PHP is now [...]]]></description>
			<content:encoded><![CDATA[<p>I installed Ubuntu 10.04 on a few servers a while back, and instantly noticed a lot of problems with a few of our sites (that&#8217;s usually what happens when you do a major upgrade without reading any release notes!). I fairly quickly found out that the cause was that in Ubuntu 10.04, PHP is now running version 5.3 (it was 5.2 in previous releases).</p>
<p>Unfortunately, PHP 5.3 deprecates a few common features (see <a title="php.net changelog for 5.3" href="http://php.net/ChangeLog-5.php" target="_blank">here</a> for more info) which causes a lot of sites to just stop working, or act strangely.</p>
<p>I found that the best way to move forward was to downgrade PHP back to 5.2 while we could work out what the problem was with our sites (as is always the case in a fast moving development cycle, this was months ago and we haven&#8217;t got around to it yet). I found a really useful step by step guide to do this, and within 10 minutes the server was running 5.2 using the Ubuntu Karmic sources.</p>
<p>The guide can be found at <a href="http://mrkandy.wordpress.com/2010/04/16/install-php-5-2-x-in-ubuntu-10-04-lucid/" target="_blank">http://mrkandy.wordpress.com/2010/04/16/install-php-5-2-x-in-ubuntu-10-04-lucid/</a> and I have to give all credit to the writer of that article. None of this was my own work, I just stumbled across the post above and it fixed all my problems (I&#8217;m hoping that it&#8217;ll help out some of my readers as well).</p>
<p>Anyway, here are the steps. It basically does the following: Remove all PHP packages, pin all PHP packages to karmic, add karmic to sources, and then reinstall the PHP packages which were previously installed.</p>
<pre class="brush:bash">php_installed=`dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`

# remove all php packge
sudo aptitude purge $php_installed

# use karmic for php pakage
# pin-params:  a (archive), c (components), v (version), o (origin) and l (label).
echo -e "Package: php5\nPin: release a=karmic\nPin-Priority: 991\n"  | sudo tee /etc/apt/preferences.d/php > /dev/null
apt-cache search php5-|grep php5-|awk '{print "Package:", $1,"\nPin: release a=karmic\nPin-Priority: 991\n"}'|sudo tee -a /etc/apt/preferences.d/php > /dev/null
apt-cache search -n libapache2-mod-php5 |awk '{print "Package:", $1,"\nPin: release a=karmic\nPin-Priority: 991\n"}'| sudo tee -a /etc/apt/preferences.d/php > /dev/null
echo -e "Package: php-pear\nPin: release a=karmic\nPin-Priority: 991\n"  | sudo tee -a /etc/apt/preferences.d/php > /dev/null

# add karmic to source list
egrep '(main restricted|universe|multiverse)' /etc/apt/sources.list|grep -v "#"| sed s/lucid/karmic/g | sudo tee /etc/apt/sources.list.d/karmic.list > /dev/null

# update package database (use apt-get if aptitude crash)
sudo apt-get update

# install php
sudo apt-get install $php_installed
# or sudo aptitude install -t karmic php5-cli php5-cgi //for fcgi
# or  sudo apt-get install -t karmic  libapache2-mod-php5 //for apache module

sudo aptitude hold `dpkg -l | grep php5| awk '{print $2}' |tr "\n" " "`
#done</pre>
<p>And that&#8217;s it. As I said previously, all credit should go to the author of <a href="http://mrkandy.wordpress.com/2010/04/16/install-php-5-2-x-in-ubuntu-10-04-lucid/">this post</a>.</p>
<p><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.monkeedev.co.uk/blog/2010/09/14/downgrade-php-to-5-2-in-ubuntu-10-04/&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F09%2F14%2Fdowngrade-php-to-5-2-in-ubuntu-10-04%2F&amp;title=Downgrade+PHP+to+5.2+in+Ubuntu+10.04" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F09%2F14%2Fdowngrade-php-to-5-2-in-ubuntu-10-04%2F&amp;title=Downgrade+PHP+to+5.2+in+Ubuntu+10.04" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F09%2F14%2Fdowngrade-php-to-5-2-in-ubuntu-10-04%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F09%2F14%2Fdowngrade-php-to-5-2-in-ubuntu-10-04%2F&amp;title=Downgrade+PHP+to+5.2+in+Ubuntu+10.04" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F09%2F14%2Fdowngrade-php-to-5-2-in-ubuntu-10-04%2F&amp;title=Downgrade+PHP+to+5.2+in+Ubuntu+10.04" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F09%2F14%2Fdowngrade-php-to-5-2-in-ubuntu-10-04%2F&amp;title=Downgrade+PHP+to+5.2+in+Ubuntu+10.04" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F09%2F14%2Fdowngrade-php-to-5-2-in-ubuntu-10-04%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Downgrade+PHP+to+5.2+in+Ubuntu+10.04+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F09%2F14%2Fdowngrade-php-to-5-2-in-ubuntu-10-04%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/09/14/downgrade-php-to-5-2-in-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data network broken in iOS4? Here&#8217;s how to fix it!</title>
		<link>http://www.monkeedev.co.uk/blog/2010/06/22/data-network-broken-in-ios4-heres-how-to-fix/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/06/22/data-network-broken-in-ios4-heres-how-to-fix/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 08:55:56 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iOS4]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[jailbreak]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[solved]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=195</guid>
		<description><![CDATA[Just a quick post explaining a problem I found when upgrading my jailbroken (using spirit) 3.1.3 iPhone 3GS to iOS4. I did the upgrade last night, and noticed this morning that my data network didn&#8217;t work at all. WiFi was working fine, but network data wasn&#8217;t at all. After a bit of googling, I came [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick post explaining a problem I found when upgrading my jailbroken (using spirit) 3.1.3 iPhone 3GS to iOS4.</p>
<p>I did the upgrade last night, and noticed this morning that my data network didn&#8217;t work at all. WiFi was working fine, but network data wasn&#8217;t at all.</p>
<p>After a bit of googling, I came across <a href="http://forums.macrumors.com/showpost.php?p=10248642&amp;postcount=7" target="_blank">this post</a> which states that it is due to the jailbreak <img src='http://www.monkeedev.co.uk/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>So, to anyone running 3.1.3 jailbroken, here&#8217;s how to upgrade</p>
<p>First, do a restore rather than an upgrade (click restore in itunes and it will basically do a clean install of iOS4 then resync everything) &#8211; you won&#8217;t lose any data. This should work fine and you won&#8217;t have any data issues.</p>
<p>If you did a normal upgrade rather than a restore, you must have a backup pre iOS4 to be able to get it working again. In this instance, simply restore the device and then restore the backup pre iOS4. For more information on how to save multiple backups at any time, check out <a href="http://www.monkeedev.co.uk/blog/2010/03/11/managing-multiple-iphone-backups-through-itunes/" target="_blank">my earlier blog post.</a></p>
<p>If you did an &#8216;upgrade&#8217; and don&#8217;t have a backup pre iOS4 any more, it looks like you&#8217;re going to have to do a clean restore and not use a backup. You can get some of your data (SMS etc..) back by using the advice in the link above.</p>
<p>Good Luck!</p>
<p><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.monkeedev.co.uk/blog/2010/06/22/data-network-broken-in-ios4-heres-how-to-fix/&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F06%2F22%2Fdata-network-broken-in-ios4-heres-how-to-fix%2F&amp;title=Data+network+broken+in+iOS4%3F+Here%26%238217%3Bs+how+to+fix+it%21" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F06%2F22%2Fdata-network-broken-in-ios4-heres-how-to-fix%2F&amp;title=Data+network+broken+in+iOS4%3F+Here%26%238217%3Bs+how+to+fix+it%21" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F06%2F22%2Fdata-network-broken-in-ios4-heres-how-to-fix%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F06%2F22%2Fdata-network-broken-in-ios4-heres-how-to-fix%2F&amp;title=Data+network+broken+in+iOS4%3F+Here%26%238217%3Bs+how+to+fix+it%21" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F06%2F22%2Fdata-network-broken-in-ios4-heres-how-to-fix%2F&amp;title=Data+network+broken+in+iOS4%3F+Here%26%238217%3Bs+how+to+fix+it%21" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F06%2F22%2Fdata-network-broken-in-ios4-heres-how-to-fix%2F&amp;title=Data+network+broken+in+iOS4%3F+Here%26%238217%3Bs+how+to+fix+it%21" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F06%2F22%2Fdata-network-broken-in-ios4-heres-how-to-fix%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Data+network+broken+in+iOS4%3F+Here%26%238217%3Bs+how+to+fix+it%21+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F06%2F22%2Fdata-network-broken-in-ios4-heres-how-to-fix%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/06/22/data-network-broken-in-ios4-heres-how-to-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows 7 Media Center &#8211; CoreAVC and AC3Filter, and some useful plugins</title>
		<link>http://www.monkeedev.co.uk/blog/2010/03/28/windows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/03/28/windows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 20:35:06 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[ac3filter]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[coreavc]]></category>
		<category><![CDATA[ffdshow]]></category>
		<category><![CDATA[k-lite]]></category>
		<category><![CDATA[media center]]></category>
		<category><![CDATA[media foundation]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=190</guid>
		<description><![CDATA[This is a guide to setting up Windows 7 Media Center, and configuring it to use 3rd party codecs such as CoreAVC and AC3Filter. I&#8217;ve been using an old Vista machine as a media center for a long time. It&#8217;s not great spec, so I use CoreAVC to playback HD content. Firstly, here&#8217;s a little [...]]]></description>
			<content:encoded><![CDATA[<p>This is a guide to setting up Windows 7 Media Center, and configuring it to use 3rd party codecs such as CoreAVC and AC3Filter.</p>
<p>I&#8217;ve been using an old Vista machine as a media center for a long time. It&#8217;s not great spec, so I use CoreAVC to playback HD content. Firstly, here&#8217;s a little background on the setup:</p>
<p>AMD Athlon FX57 processor (2.8ghz)<br />
2GB RAM<br />
ATI Radeon x850<br />
1TB external drive with all my content</p>
<p>I plug it into my TV using a VGA cable and stereo audio (my TV is a Samsung LCD) as the graphics card doesn&#8217;t support HDMI sound bridging. I decided that I&#8217;d upgrade to Windows 7 to hopefully get a bit more performance and get the latest version of windows media center. I know that as this is a &#8216;linux&#8217; blog, I should probably go for MythTV or XBMC on linux, but as the pc is used to play back things for my wife and 2 year old daughter, I wanted it to be as easy as possible.</p>
<p>So, I&#8217;d expected the windows 7 set up to be easy &#8211; I know a bit about codecs etc.. and usually just install the K-Lite pack (say what you want about codec packs, I&#8217;ve heard it all before and know what I&#8217;m doing &#8211; it works!) and then CoreAVC, and set ffdshow to not decode HD streams and leave it to coreavc. This works fine in Vista, so I expected it to work just as easily in Win7 &#8211; I was wrong!</p>
<p>Installing windows 7 was easy, it was a clean install. I then made sure I had drivers for everything, and installed all my usual &#8216;media oriented&#8217; apps.</p>
<p>I know that Windows 7 includes decoders for h264 ,xvid, divx etc.. so decided firstly to give it a try and see if it would work without any extra codecs. Normal avi&#8217;s (xvid) worked flawlessley and I was happy to see that Win7 media center is capable of rewinding and fastforwarding them! I went to play an HD file to be told that the file type isn&#8217;t supported!</p>
<p>It seems that whilst h264 does natively work, a splitter is needed to play mkv files. I installed <a title="Haali" href="http://haali.su/mkv/" target="_blank">haali </a>for this purpose and tried again. HD playback dropped frames and was choppy, even on 720p.</p>
<p>Now, I know that Windows 7 likes to lock playback down to the native decoders and doesn&#8217;t play nicely with CoreAVC. I found a brilliant guide to tweak the registry to force CoreAVC to be the preferred decoder <a href="http://www.timothevs.net/2009/07/29/coreavc-with-windows-7-rtm-take-2/" target="_blank">here</a>. This is a direct cut and paste of the steps to get CoreAVC to be set as the preferred decoder:</p>
<blockquote><p>1. Open REGEDIT as an Administrator<br />
2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectShow\Preferred<br />
3. Right click on ‘Preferred’ and select ‘Permissions’.<br />
4. Click on ‘Advanced’ -&gt; ‘Owner’ tab. ‘Administrators’ , check ‘Replace Owner on subcontainers and objects’ checkbox, OK.<br />
5. Now back to the first window – click ‘Administrators’ and check ‘Full Control’. Press OK.<br />
6. In the left pane look for {e06d8026-db46-11cf-b4d1-00805f6cbbea}<br />
{31435641-0000-0010-8000-00AA00389B71}.<br />
7. Edit these entries with a double click and replace the value data entry with that for CoreAVC – {09571A4B-F1FE-4C60-9760-DE6D310C7C31}.<br />
8. Reboot. This is important.</p></blockquote>
<p>That&#8217;s it, now windows media player and media center will use CoreAVC as the decoder for mkv&#8217;s. Everything worked fine until I noticed that some of my media didn&#8217;t have any sound. I tested it in media player and had no sound so realised it was obviously a codec issue. I opened the file with GSpot and found that the audio codec on the silent files was DTS. As I hadn&#8217;t installed K-Lite on this install, I decided to install <a title="AC3Filter" href="http://ac3filter.net/" target="_blank">AC3Filter </a>and as soon as it was installed, everything worked fine. Windows 7 also had &#8216;real&#8217; support for my TV (automatically setting the desktop to the native resolution and in device manager it shows as a Samsung LCD), and has noticably better picture quality, especially on HD. I&#8217;d always found VGA to be a bit washed out on Vista and just assumed it was because I was using VGA instead of a digital connection. On Windows 7, the quality is comparable to Sky+HD over HDMI.</p>
<p>Now that it&#8217;s all working, I&#8217;ll recommend a few useful addons for media center:</p>
<p style="text-align: left;"><a title="Media Center Studio" href="http://www.adventmediacenter.com/" target="_blank">Media Center Studio</a> &#8211; Allows you to customise the interface, including the ability to add/remove icons.<br />
<a title="iPlayer" href="http://www.neowin.net/news/main/09/11/26/how-to-bbc-iplayer-in-windows-7-media-center-uk" target="_blank">BBC iPlayer addon</a> &#8211; Lets you watch iPlayer content, and it looks like a native media center app.<br />
<a title="Heatwave" href="http://www.hack7mc.com/2009/01/adding-weather-to-media-center.html" target="_blank">Heatwave </a>- I haven&#8217;t actually used this, but I&#8217;ve been recommended it, and it looks like a great weather app.<br />
<a title="My Movies" href="http://www.mymovies.dk/" target="_blank">My Movies</a> &#8211; The best movie catalogue app for media center, bar none!</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F28%2Fwindows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins%2F&amp;title=Windows+7+Media+Center+%26%238211%3B+CoreAVC+and+AC3Filter%2C+and+some+useful+plugins" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F28%2Fwindows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins%2F&amp;title=Windows+7+Media+Center+%26%238211%3B+CoreAVC+and+AC3Filter%2C+and+some+useful+plugins" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F28%2Fwindows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F28%2Fwindows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins%2F&amp;title=Windows+7+Media+Center+%26%238211%3B+CoreAVC+and+AC3Filter%2C+and+some+useful+plugins" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F28%2Fwindows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins%2F&amp;title=Windows+7+Media+Center+%26%238211%3B+CoreAVC+and+AC3Filter%2C+and+some+useful+plugins" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F28%2Fwindows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins%2F&amp;title=Windows+7+Media+Center+%26%238211%3B+CoreAVC+and+AC3Filter%2C+and+some+useful+plugins" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F28%2Fwindows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Windows+7+Media+Center+%26%238211%3B+CoreAVC+and+AC3Filter%2C+and+some+useful+plugins+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F28%2Fwindows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/03/28/windows-7-media-center-coreavc-and-ac3filter-and-some-useful-plugins/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Managing multiple iPhone backups through iTunes</title>
		<link>http://www.monkeedev.co.uk/blog/2010/03/11/managing-multiple-iphone-backups-through-itunes/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/03/11/managing-multiple-iphone-backups-through-itunes/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 21:18:29 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=185</guid>
		<description><![CDATA[One thing I found slightly irritating about the way iTunes backs up iPhones is the fact that it only keeps the most recent backup. This means that if you accidently delete a text, photo, or something else that&#8217;s backed up and only realise after you&#8217;ve backed up again, it&#8217;s too late. Also, the fact that [...]]]></description>
			<content:encoded><![CDATA[<p>One thing I found slightly irritating about the way iTunes backs up iPhones is the fact that it only keeps the most recent backup. This means that if you accidently delete a text, photo, or something else that&#8217;s backed up and only realise after you&#8217;ve backed up again, it&#8217;s too late.</p>
<p>Also, the fact that iTunes backs up as soon as you plug the phone in is annoying. If you plug in to restore something you&#8217;ve removed and aren&#8217;t quick enough to &#8216;slide to cancel&#8217;, a new backup will be created and overwrite your old one.</p>
<p>It&#8217;s actually fairly easy to keep old backups &#8211; it&#8217;s not something you can do automatically, but is worth knowing. All you need to do is make a copy of your current back up, and rename it to something else in the filesystem. You can also change the description of it so that it shows a more friendly name when you attempt a restore.</p>
<p>First, browse to the folder containing the most recent backup:</p>
<p>Windows XP:<br />
C:\Documents and Settings\USERNAME\Application Data\Apple  Computer\MobileSync\Backup</p>
<p>Windows 7 and Vista:<br />
C:\Users\YOURUSERNAME\AppData\Roaming\Apple Computer\MobileSync\Backup</p>
<p>Mac OSX:<br />
~/Library/Application Support/MobileSync/Backup/</p>
<p>Inside this folder, you will see another folder with a long string of numbers and letters, something like&#8230;</p>
<p><img src="/blog/wp-content/uploads/2010/03/backupfolder.png" alt="" /></p>
<p>To keep this backup, all you need to do is make a copy of the folder, and rename it to something like &#8217;20100311 &#8211; 8deabb43&#8230;&#8230;&#8217;.</p>
<p>Next, enter this folder, and open the file &#8216;Info.plist&#8217; in your favourite text editor. To give the backup a meaningful name, you need to find the key &#8216;Display Name&#8217; and change the &lt;string&gt; tag to anything you want.</p>
<p><img src="/blog/wp-content/uploads/2010/03/plist.png" alt="" /></p>
<p>Once this is done, open up iTunes and plug your phone in. Now, in the future when you want to restore one of your previously saved backups, just right click the iPhone in iTunes and click &#8216;Restore from Backup&#8217;.<br />
Now you will notice that you have multiple backups to choose from, and can restore back to any of the backups which you&#8217;ve saved. Note that the display name I edited above is the one which shows in the drop down list.</p>
<p><img src="/blog/wp-content/uploads/2010/03/restore.jpg" alt="" /></p>
<p>Apologies for this last one being a photo rather than a screenshot, but I&#8217;m writing this on a macbook pro (running windows 7!) and there&#8217;s no print screen key, and when trying to use snipping tool, the drop down box closes when it loses focus.</p>
<p>There you go, that&#8217;s all you need to be able to manage multiple backups on an iPhone. I assume this will work for iPods as well but I don&#8217;t have one to test it on.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fmanaging-multiple-iphone-backups-through-itunes%2F&amp;title=Managing+multiple+iPhone+backups+through+iTunes" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fmanaging-multiple-iphone-backups-through-itunes%2F&amp;title=Managing+multiple+iPhone+backups+through+iTunes" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fmanaging-multiple-iphone-backups-through-itunes%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fmanaging-multiple-iphone-backups-through-itunes%2F&amp;title=Managing+multiple+iPhone+backups+through+iTunes" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fmanaging-multiple-iphone-backups-through-itunes%2F&amp;title=Managing+multiple+iPhone+backups+through+iTunes" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fmanaging-multiple-iphone-backups-through-itunes%2F&amp;title=Managing+multiple+iPhone+backups+through+iTunes" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fmanaging-multiple-iphone-backups-through-itunes%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Managing+multiple+iPhone+backups+through+iTunes+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fmanaging-multiple-iphone-backups-through-itunes%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/03/11/managing-multiple-iphone-backups-through-itunes/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Using iTunes for iPhone music if you aren&#8217;t an iTunes user</title>
		<link>http://www.monkeedev.co.uk/blog/2010/03/11/using-itunes-for-iphone-music-if-you-arent-an-itunes-user/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/03/11/using-itunes-for-iphone-music-if-you-arent-an-itunes-user/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 20:40:11 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=182</guid>
		<description><![CDATA[I recently changed from Windows Mobile to an iPhone, after getting tired of Windows Mobiles sluggishness and general lack of innovation. I don&#8217;t like iTunes, and generally prefer to manage my music manually in explorer, and use winamp to play songs/albums. I know of alternatives like SharePod which allow you to manage music on your [...]]]></description>
			<content:encoded><![CDATA[<p>I recently changed from Windows Mobile to an iPhone, after getting tired of Windows Mobiles sluggishness and general lack of innovation.</p>
<p>I don&#8217;t like iTunes, and generally prefer to manage my music manually in explorer, and use winamp to play songs/albums. I know of alternatives like <a title="SharePod" href="http://www.getsharepod.com" target="_blank">SharePod</a> which allow you to manage music on your iPhone or iPod, but you still need to use iTunes for things like backing up etc..</p>
<p>The way I get around this is fairly simple, I still do everything in iTunes but manage my music manually. Firstly, I use a great free app called <a href="http://www.mp3tag.de/en/" target="_blank">mp3tag</a> to make sure that the music has the correct id3 tags, album art etc..</p>
<p>Then it&#8217;s just a case of putting the music I want on my iPhone into iTunes, and nothing else. First, set iTunes to sync all music with the iPhone, and then simply drag and drop folders or individual songs from explorer into iTunes and sync with the iPhone. To remove music, just delete it from iTunes and sync again.</p>
<p>I find this an easy way to make sure that I don&#8217;t have to use iTunes to actually listen to music or manage my collection, but I can keep my phone happy by using iTunes to sync music to it. It&#8217;s much easier than having all your music in iTunes and telling it to only sync certain artists/playlists.</p>
<p>I have some friends who either use the &#8216;selective sync&#8217; option, or just use alternatives like SharePod or Media Monkey to copy music, but after I show them the simplicity of this method, they make the switch. Hopefully a couple of others will find this useful.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fusing-itunes-for-iphone-music-if-you-arent-an-itunes-user%2F&amp;title=Using+iTunes+for+iPhone+music+if+you+aren%26%238217%3Bt+an+iTunes+user" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fusing-itunes-for-iphone-music-if-you-arent-an-itunes-user%2F&amp;title=Using+iTunes+for+iPhone+music+if+you+aren%26%238217%3Bt+an+iTunes+user" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fusing-itunes-for-iphone-music-if-you-arent-an-itunes-user%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fusing-itunes-for-iphone-music-if-you-arent-an-itunes-user%2F&amp;title=Using+iTunes+for+iPhone+music+if+you+aren%26%238217%3Bt+an+iTunes+user" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fusing-itunes-for-iphone-music-if-you-arent-an-itunes-user%2F&amp;title=Using+iTunes+for+iPhone+music+if+you+aren%26%238217%3Bt+an+iTunes+user" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fusing-itunes-for-iphone-music-if-you-arent-an-itunes-user%2F&amp;title=Using+iTunes+for+iPhone+music+if+you+aren%26%238217%3Bt+an+iTunes+user" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fusing-itunes-for-iphone-music-if-you-arent-an-itunes-user%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Using+iTunes+for+iPhone+music+if+you+aren%26%238217%3Bt+an+iTunes+user+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F11%2Fusing-itunes-for-iphone-music-if-you-arent-an-itunes-user%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/03/11/using-itunes-for-iphone-music-if-you-arent-an-itunes-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up servers onto a linux box</title>
		<link>http://www.monkeedev.co.uk/blog/2010/03/08/backing-up-servers-onto-a-linux-box/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/03/08/backing-up-servers-onto-a-linux-box/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 21:10:44 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bind dns]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=177</guid>
		<description><![CDATA[Having been bitten a few times by not backing data up, I&#8217;m now pretty anal about making sure my servers are backed up. First, a little bit of background. My network consists of a large number of linux boxes (mostly debian and ubuntu), and various windows servers running anything from XP, to 2000 and 2003. [...]]]></description>
			<content:encoded><![CDATA[<p>Having been bitten a few times by not backing data up, I&#8217;m now pretty anal about making sure my servers are backed up.</p>
<p>First, a little bit of background. My network consists of a large number of linux boxes (mostly debian and ubuntu), and various windows servers running anything from XP, to 2000 and 2003. I have one dedicated linux machine which is a backup server running debian. Some backups are &#8216;put&#8217; onto the backup server at predefined intervals over samba, nfs, and ftp, and others are &#8216;retrieved&#8217; by scripts on the backup server. Every day these backups are copied to 2 usb drives (both encrypted with truecrypt) and taken off site.</p>
<p>As rebuilding a server is a fairly quick task (especially ubuntu, which can be installed and configured from scratch in under 20 minutes), I only back up the necessary configuration files and data, as doing full images of every server would need a huge amount of storage.</p>
<p>Firstly, the backup server itself needs to be configured to run samba, nfs, and ftpd. Setting these up is fairly trivial and won&#8217;t be covered here but I will write guides to setting these up in the very near future. As a side note, we have recently switched from a backup &#8216;server&#8217; to a QNAS network storage device. As this runs linux it&#8217;s more than capable of running the necessary cron jobs for the &#8216;get&#8217; server backups. Plus it also comes preconfigured with samba, nfs, timecapsule, and ftp.</p>
<p>So, on to the backing up. All of my windows machines are part of the &#8216;get&#8217; backups, where the backup server itself connects to the client and fetches the backup. To achieve this, I simply create network shares on the client machines, then do something similar to the following:</p>
<blockquote><p>mount -t smbfs //svr2/share /mnt/backup<br />
tar -zcvf /home/backups/svr2.tgz /mnt/backup/* -R<br />
umount /mnt/backup</p></blockquote>
<p>I have this saved as a shell script which runs every night to fetch a backup of the necessary data from the windows machine. Note that this method can be used for any windows server where the necessary data is shared on the network, or any linux server where the data is shared over samba. I have a number of these shell scripts, all of which connect to different servers and save their vital data.</p>
<p>Second, onto backing up our client machines which are all running windows XP. We&#8217;ve &#8216;trained&#8217; all our users to store their important documents inside the &#8216;My Documents&#8217; folder. I then have samba shares on the backup server for each user, and re-map their &#8216;My Documents&#8217; folder to the network drive. To achieve this, I map the drive on their machine, and then right click on &#8216;My Documents&#8217;, and change the location it points to.</p>
<p>To backup these folders, all I need to do is create a tar archive of each of the samba shares.</p>
<p>Finally, backing up the linux servers. As I said above, some of these are backed up by just making a tar archive of their samba shares. For servers which don&#8217;t have samba shares, I run cron jobs on each machine which creates a local backup and then copies it to the backup server through ftp.</p>
<p>An example of how to back up a standard debian/ubuntu apache install:</p>
<blockquote><p>tar -zcvf /home/backups/apache_configs.tgz /etc/apache2/* -R<br />
tar -zcvf /home/backups/website_data.tgz /var/www/* -R</p></blockquote>
<p>An example of how to back up a MySQL server. There are 2 ways to do this. The simple way to back up all data is to make a tar archive of the entire MySQL data directory. This is fine for many small sites but may not be suitable for sites where the data is constantly changing, or the tables are using innodb (innodb doesn&#8217;t always backup 100% successfully by simply copying the data files). For a standard debian/ubuntu install, this can be achieved by:</p>
<blockquote><p>tar -zcvf /home/backups/mysql_data.tgz /var/lib/mysql/* -R</p></blockquote>
<p>Another method of backing up mysql is to use the &#8216;mysqldump&#8217; command line utility, which will create a dump of the database as a .sql file, and can be re imported at a later date. This is seen as a more secure backup because the sql files can usually be imported across mysql versions easily, but has the downside of a slower backup, slower restore, and occasionally you will need to manually edit the dump files to get them to reimport properly. A mysqldump can be created by running a command similar to the following:</p>
<blockquote><p>mysqldump -uUSER -pPASSWORD -hHOST DB_NAME &gt; /home/backups/file.sql<br />
mysqldump -uUSER -pPASSWORD -hHOST ANOTHER_DB_NAME &gt; /home/backups/file2.sql<br />
tar -zcvf /home/backups/databases.tgz /home/backups/*.sql</p></blockquote>
<p>Backing up a DNS server is also very simple, and can be done in much the same way as the apache backup above, making sure that the directory including the configs, and zonefiles are included in the archive.</p>
<p>Mail servers can be a bit more tricky since they rely on configs for different services which are usually found in different locations. Also, all user email must be backed up. The way I achieve this is to have the shell script create a tar file for all user email, and then manually copy the important configs into a directory before creating a tar file containing them all.</p>
<p>Once you&#8217;ve backed up the data for the servers, you will need to move it to the backup server for safe keeping. I usually do this over FTP, by adding something similar to the following to the bottom of the backup shell script:</p>
<blockquote><p># FTP to backup server</p>
<p>HOST=&#8217;backup_ip&#8217;<br />
USER=&#8217;backup&#8217;<br />
PASS=&#8217;password&#8217;<br />
cd /home/backups/</p>
<p>ftp -n $HOST &lt;&lt;END_SCRIPT<br />
quote USER $USER<br />
quote PASS $PASS<br />
binary<br />
quote CWD backup/SERVER_NAME/<br />
put backup_file.tgz<br />
quit<br />
END_SCRIPT</p></blockquote>
<p>That&#8217;s about all there is to know. It&#8217;s all fairly simple to do, but ensures that you have backups of all your important data. If you wish to perform incremental backups then it&#8217;s advisable to look into rsync.</p>
<p>Once all of the servers have been backed up, I have a script on the &#8216;backup server&#8217;, which does some tidying up, and copies all of the daily backups to a directory with todays date. This means I can store backups for as long as I wish without accidently overwriting them.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F08%2Fbacking-up-servers-onto-a-linux-box%2F&amp;title=Backing+up+servers+onto+a+linux+box" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F08%2Fbacking-up-servers-onto-a-linux-box%2F&amp;title=Backing+up+servers+onto+a+linux+box" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F08%2Fbacking-up-servers-onto-a-linux-box%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F08%2Fbacking-up-servers-onto-a-linux-box%2F&amp;title=Backing+up+servers+onto+a+linux+box" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F08%2Fbacking-up-servers-onto-a-linux-box%2F&amp;title=Backing+up+servers+onto+a+linux+box" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F08%2Fbacking-up-servers-onto-a-linux-box%2F&amp;title=Backing+up+servers+onto+a+linux+box" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F08%2Fbacking-up-servers-onto-a-linux-box%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Backing+up+servers+onto+a+linux+box+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F03%2F08%2Fbacking-up-servers-onto-a-linux-box%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/03/08/backing-up-servers-onto-a-linux-box/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The best ways to copy large amounts of data between servers</title>
		<link>http://www.monkeedev.co.uk/blog/2010/02/23/the-best-ways-to-copy-large-amounts-of-data-between-servers/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/02/23/the-best-ways-to-copy-large-amounts-of-data-between-servers/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 15:20:03 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netcat]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=166</guid>
		<description><![CDATA[As a sysadmin, I often have to copy large amounts of data between servers, and there are a few ways of doing this (each with their own pros and cons). I&#8217;ll try to explain the most common methods here, and give examples and benchmarks. 1, Simple compression and encrypted transmission This is probably the most [...]]]></description>
			<content:encoded><![CDATA[<p>As a sysadmin, I often have to copy large amounts of data between servers, and there are a few ways of doing this (each with their own pros and cons).</p>
<p>I&#8217;ll try to explain the most common methods here, and give examples and benchmarks.</p>
<p><strong>1, Simple compression and encrypted transmission</strong></p>
<p>This is probably the most common way to copy data, and it&#8217;s simply tar and gzip the data and then send it to another machine over scp:</p>
<blockquote><p>machine1$ tar -zcvf backup.tgz /home/backupdata/<br />
machine1$ scp backup.tgz root@machine2:/home/backups/</p>
<p>machine2$ tar -zxvf backup.tgz</p></blockquote>
<p>The problem with this method is that disk reads and writes can be intensive because you need to read from machine1&#8242;s hard drive and then write to it during the gzip process, then read from it and write to machine2&#8242;s hard drive during the scp. This can slow down the process. Also you&#8217;re required to log in to machine2 and unzip the resulting file.</p>
<p><strong>2, rsync</strong></p>
<p>rsync is good for syncing data between two machines, and for incremental copying (ie if a copy is interrupted, it can resume). I won&#8217;t go into the actual details here because there are many ways of using rsync and this article is mainly aimed at one shot copying of data. It&#8217;s definitely worth checking &#8216;man rsync&#8217; to see if it will be relevant for your needs though.</p>
<p>I tend to use rsync for backups where I want to keep an exact copy of a directory on another server, and keep it up to date. rsync is useful here because any time I run the rsync command it will only copy changes over between the servers. An example of this usage is:</p>
<blockquote><p>machine1$ rsync -Ravr &#8211;delete &#8211;delete-after ./backupdata/ root@machine2:/home/backups/</p></blockquote>
<p>The flags I&#8217;ve passed are: <strong>R</strong> &#8211; relative, <strong>r</strong> &#8211; recursive, <strong>a</strong> &#8211; archive mode, <strong>v</strong> &#8211; verbose.</p>
<p><strong>3, Gzip and SCP in one command</strong></p>
<p>This will usually perform better than option 1 simply because you aren&#8217;t writing the gzip data to the disk on machine1 before sending it to machine2. Basically, this is the commands from option 1 in one line, so the data is gzipped and piped to ssh on machine2 rather than writing to the disk on machine1 and then copying over.</p>
<blockquote><p>machine1$ tar -zcvf &#8211; /home/backupdata/* | ssh root@machine2 &#8220;cd /home/backups/; tar -zxvf -&#8221;</p></blockquote>
<p><strong>4, Netcat</strong></p>
<p>In theory, this should be the best solution because the data isn&#8217;t encrypted or decrypted as it is in ssh/scp (a little less cpu overhead), and there isn&#8217;t any needless IO activity as in option 1. First you will need to tell machine2 to &#8216;listen&#8217; on a specific port (98765 in this example), and uncompress anything which arrives on that port:</p>
<blockquote><p>machine2$ nc -l -p 98765 | tar -zxvf -</p></blockquote>
<p>Then gzip and send the data from machine1 to the specified port on machine2:</p>
<blockquote><p>machine1$ tar -zcvf &#8211; /home/backupdata/ | nc -q 1 machine2 98765</p></blockquote>
<p>As we&#8217;re using the verbose (-v) option in tar, you will see the output on both machines. I find netcat more convenient if I need to send a lot of data from one server to another as I can just leave netcat running on machine2 and send data to it multiple times from server1 (or any other server).</p>
<p><strong>5, SMB or NFS</strong></p>
<p>These are also decent alternatives, and if you already have NFS or SMB shares set up then it may be worth just compressing the data and copying it to a mounted share using &#8216;cp&#8217;. An example would be (assuming the share name is &#8216;backups&#8217;).</p>
<blockquote><p>machine1$ tar -zcvf backup.tgz /home/backupdata/<br />
<strong>(SMB) </strong>machine1$ mount -t smbfs //machine2/backups /mnt/machine2<br />
<strong>(NFS) </strong>machine1$ mount machine2:/home/backups /mnt/machine2<br />
machine1$ cp backup.tgz /mnt/machine2/</p></blockquote>
<p><strong>Benchmarks</strong></p>
<p>For my tests, I&#8217;m using 2 servers with the following basic specs:<br />
Dual CPU Intel E5520<br />
16gb RAM<br />
Hardware RAID1.</p>
<p>I&#8217;ll be sending a few log files which total 7GB of data.</p>
<p>1 &#8211; The initial gzip took 114 seconds and scp took 6 seconds for a total of 120 seconds.<br />
2 &#8211; This took a total of around 140 seconds, so was the slowest in this test. You would notice the benefits of rsync when doing incremental backups so only differences are copied over rather than redoing the whole copy.<br />
3 &#8211; Total of 119 seconds (so not really any faster but you don&#8217;t need to log in to machine2 to unzip).<br />
4 &#8211; Total of 109  seconds, so this is the fastest option but not by a huge margin.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F02%2F23%2Fthe-best-ways-to-copy-large-amounts-of-data-between-servers%2F&amp;title=The+best+ways+to+copy+large+amounts+of+data+between+servers" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F02%2F23%2Fthe-best-ways-to-copy-large-amounts-of-data-between-servers%2F&amp;title=The+best+ways+to+copy+large+amounts+of+data+between+servers" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F02%2F23%2Fthe-best-ways-to-copy-large-amounts-of-data-between-servers%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F02%2F23%2Fthe-best-ways-to-copy-large-amounts-of-data-between-servers%2F&amp;title=The+best+ways+to+copy+large+amounts+of+data+between+servers" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F02%2F23%2Fthe-best-ways-to-copy-large-amounts-of-data-between-servers%2F&amp;title=The+best+ways+to+copy+large+amounts+of+data+between+servers" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F02%2F23%2Fthe-best-ways-to-copy-large-amounts-of-data-between-servers%2F&amp;title=The+best+ways+to+copy+large+amounts+of+data+between+servers" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F02%2F23%2Fthe-best-ways-to-copy-large-amounts-of-data-between-servers%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+The+best+ways+to+copy+large+amounts+of+data+between+servers+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F02%2F23%2Fthe-best-ways-to-copy-large-amounts-of-data-between-servers%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/02/23/the-best-ways-to-copy-large-amounts-of-data-between-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom text on a Dell Poweredge LCD display</title>
		<link>http://www.monkeedev.co.uk/blog/2010/01/27/custom-text-on-a-dell-poweredge-lcd-display/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/01/27/custom-text-on-a-dell-poweredge-lcd-display/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 09:56:22 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[poweredge]]></category>
		<category><![CDATA[r410]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=157</guid>
		<description><![CDATA[We recently got some Dell Poweredge R410 servers, and I thought it would be quite useful to change the LCD text to something meaningful. Unfortunately, this turned out to be a bit more of a pain than I was expecting, but I have it working, and a PHP script to update the display. First, you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>We recently got some Dell Poweredge R410 servers, and I thought it would be quite useful to change the LCD text to something meaningful. Unfortunately, this turned out to be a bit more of a pain than I was expecting, but I have it working, and a PHP script to update the display.</p>
<p>First, you&#8217;ll need to go into the BIOS and change the display to &#8216;custom&#8217;.</p>
<p>The updates will be done using &#8216;ipmitool&#8217;, so we need to install it and add the necessary modules to /etc/modules</p>
<blockquote><p>apt-get install ipmitool<br />
echo &#8220;ipmi_devintf&#8221; &gt;&gt; /etc/modules<br />
echo &#8220;ipmi_si&#8221; &gt;&gt; /etc/modules<br />
echo &#8220;ipmi_msghandler&#8221; &gt;&gt; /etc/modules</p></blockquote>
<p>You should now be able to view the contents of the LCD by running:</p>
<blockquote><p>ipmitool delloem lcd</p></blockquote>
<p>I didn&#8217;t get anywhere trying to write new values to the LCD using the delloem command, so resorted to sending raw commands to ipmitool.</p>
<p>I wrote the following php script, which can be used by first making it executable, then running it from the shell</p>
<blockquote><p>chmod +x updateLCD.php<br />
./updateLCD.php &#8220;test string&#8221;</p></blockquote>
<p>The php script is pretty simple and can be found <a title="Dell Poweredge LCD Update" href="http://www.monkeedev.co.uk/blog/wp-content/uploads/2010/01/updateLCD.phps" target="_blank">here</a></p>
<p>It&#8217;s also fairly easy to extend this script to update the LCD to display stats such as disk usage, server load, cpu usage etc..</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fcustom-text-on-a-dell-poweredge-lcd-display%2F&amp;title=Custom+text+on+a+Dell+Poweredge+LCD+display" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fcustom-text-on-a-dell-poweredge-lcd-display%2F&amp;title=Custom+text+on+a+Dell+Poweredge+LCD+display" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fcustom-text-on-a-dell-poweredge-lcd-display%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fcustom-text-on-a-dell-poweredge-lcd-display%2F&amp;title=Custom+text+on+a+Dell+Poweredge+LCD+display" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fcustom-text-on-a-dell-poweredge-lcd-display%2F&amp;title=Custom+text+on+a+Dell+Poweredge+LCD+display" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fcustom-text-on-a-dell-poweredge-lcd-display%2F&amp;title=Custom+text+on+a+Dell+Poweredge+LCD+display" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fcustom-text-on-a-dell-poweredge-lcd-display%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Custom+text+on+a+Dell+Poweredge+LCD+display+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fcustom-text-on-a-dell-poweredge-lcd-display%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/01/27/custom-text-on-a-dell-poweredge-lcd-display/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Monitoring a Dell PERC 6/i RAID Controller in Ubuntu and Debian</title>
		<link>http://www.monkeedev.co.uk/blog/2010/01/27/monitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian/</link>
		<comments>http://www.monkeedev.co.uk/blog/2010/01/27/monitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 09:17:09 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[megaraid]]></category>
		<category><![CDATA[omreport]]></category>
		<category><![CDATA[omsa]]></category>
		<category><![CDATA[perc]]></category>
		<category><![CDATA[poweredge]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.monkeedev.co.uk/blog/?p=153</guid>
		<description><![CDATA[This is something which took me quite a while to figure out, but it can be done fairly easily in a few minutes. This guide will install Dell OMSA and use omreport to view the status of the RAID. First, add the following line to /etc/apt/sources.list: deb ftp://ftp.sara.nl/pub/sara-omsa dell sara Then, if you try &#8216;apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>This is something which took me quite a while to figure out, but it can be done fairly easily in a few minutes. This guide will install Dell OMSA and use omreport to view the status of the RAID.</p>
<p>First, add the following line to /etc/apt/sources.list:</p>
<blockquote><p>deb ftp://ftp.sara.nl/pub/sara-omsa dell sara</p></blockquote>
<p>Then, if you try &#8216;apt-get update&#8217;, you will get a key error, so do the following:</p>
<blockquote><p>wget -O &#8211; http://ftp.sara.nl/debian_sara.asc | apt-key add  -<br />
apt-get update<br />
apt-get install dellomsa</p></blockquote>
<p>To use omreport, you need to install libstdc++5 to fix the dependancy problems:</p>
<blockquote><p><strong>For 32 bit systems:<br />
</strong>cd /tmp/<br />
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb<br />
dpkg -i libstdc++5_3.3.6-17ubuntu1_i386.deb</p>
<p><strong>For 64 bit systems (you will need the 32 bit version as well):</strong><br />
cd /tmp/<br />
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb<br />
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_amd64.deb<br />
dpkg -i libstdc++5_3.3.6-17ubuntu1_amd64.deb<br />
dpkg-deb -x libstdc++5_3.3.6-17ubuntu1_i386.deb ./extracts<br />
cp ./extracts/usr/lib/* /usr/lib32/<br />
rm -rf ./extracts</p></blockquote>
<p>Now start the dataeng service:</p>
<blockquote><p>/etc/init.d/dataeng start</p></blockquote>
<p>And you should be able to view information about the RAID using omreport:</p>
<blockquote><p>omreport system summary<br />
omreport storage connector controller=0<br />
omreport storage pdisk controller=0<br />
omreport storage vdisk controller=0</p></blockquote>
<p>You can then make a simple shell/php/perl script cron which checks the status of the RAID every x minutes and notifies you of any problems.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fmonitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian%2F&amp;title=Monitoring+a+Dell+PERC+6%2Fi+RAID+Controller+in+Ubuntu+and+Debian" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fmonitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian%2F&amp;title=Monitoring+a+Dell+PERC+6%2Fi+RAID+Controller+in+Ubuntu+and+Debian" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fmonitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fmonitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian%2F&amp;title=Monitoring+a+Dell+PERC+6%2Fi+RAID+Controller+in+Ubuntu+and+Debian" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fmonitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian%2F&amp;title=Monitoring+a+Dell+PERC+6%2Fi+RAID+Controller+in+Ubuntu+and+Debian" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fmonitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian%2F&amp;title=Monitoring+a+Dell+PERC+6%2Fi+RAID+Controller+in+Ubuntu+and+Debian" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fmonitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Monitoring+a+Dell+PERC+6%2Fi+RAID+Controller+in+Ubuntu+and+Debian+@+http%3A%2F%2Fwww.monkeedev.co.uk%2Fblog%2F2010%2F01%2F27%2Fmonitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.monkeedev.co.uk/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.monkeedev.co.uk/blog/2010/01/27/monitoring-a-dell-perc-6i-raid-controller-in-ubuntu-and-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

