<?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>[fzn]</title>
	<atom:link href="http://www.foamz.za.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.foamz.za.net</link>
	<description>Welcome to the wooorld of tomorrow!</description>
	<lastBuildDate>Thu, 24 Jun 2010 11:04:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Local ISO storage on XenServer</title>
		<link>http://www.foamz.za.net/?p=252</link>
		<comments>http://www.foamz.za.net/?p=252#comments</comments>
		<pubDate>Thu, 24 Jun 2010 11:04:23 +0000</pubDate>
		<dc:creator>foamz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.foamz.za.net/?p=252</guid>
		<description><![CDATA[Please ignore my previous post, titled &#8220;Path for ISO’s on XenServer 5.5&#8243;. That was typed in such rush. For those of you wanting to store your ISO&#8217;s on the Xen server itself and not some remote location on NFS (I find it odd how Citrix is really pushing that method to the extreme), this is [...]]]></description>
			<content:encoded><![CDATA[<p>Please ignore my previous post, titled &#8220;Path for ISO’s on XenServer 5.5&#8243;. That was typed in such rush.</p>
<p>For those of you wanting to store your ISO&#8217;s on the Xen server itself and not some remote location on NFS (I find it odd how Citrix is really pushing that method to the extreme), this is what works for me:</p>
<p>Simply scp your ISO&#8217;s to &#8220;/var/opt/xen/iso_import&#8221; on the Xen server.<br />
From googling around, I see most people resort to restarting their server or detach/retach the storage to have XenCenter show those newly uploaded ISO&#8217;s. If you can&#8217;t afford having it restarted, then read on&#8230;<br />
After you uploaded your ISO&#8217;s, do:</p>
<pre lang=bash>
xe sr-list
</pre>
<p>This will list all your storage devices. Look for the one that is your local storage and copy the uuid from it. Next do:</p>
<pre lang=bash>
xe sr-scan uuid=YOUR_UUID_HERE
</pre>
<p>This will rescan your local storage.</p>
<p>Now check XenCenter and you will see your new ISO&#8217;s there ready to be used.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foamz.za.net/?feed=rss2&amp;p=252</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Damn linux admins&#8230;</title>
		<link>http://www.foamz.za.net/?p=247</link>
		<comments>http://www.foamz.za.net/?p=247#comments</comments>
		<pubDate>Sun, 30 May 2010 07:33:55 +0000</pubDate>
		<dc:creator>foamz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.foamz.za.net/?p=247</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://linux5150.com/?p=152"><img alt="" src="http://linux5150.com/wp-content/uploads/2010/04/1486.strip_.gif" title="damn linux admins" class="alignnone" width="480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.foamz.za.net/?feed=rss2&amp;p=247</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XBMC</title>
		<link>http://www.foamz.za.net/?p=244</link>
		<comments>http://www.foamz.za.net/?p=244#comments</comments>
		<pubDate>Tue, 11 May 2010 10:48:54 +0000</pubDate>
		<dc:creator>foamz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mediacenter]]></category>

		<guid isPermaLink="false">http://www.foamz.za.net/?p=244</guid>
		<description><![CDATA[Checkout xbmc.org Its a MUCH better media center than Enna. Have been using it for almost 2 months now and I&#8217;m completely loving it.]]></description>
			<content:encoded><![CDATA[<p>Checkout <a href="http://xbmc.org/">xbmc.org</a><br />
Its a MUCH better media center than Enna. Have been using it for almost 2 months now and I&#8217;m completely loving it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foamz.za.net/?feed=rss2&amp;p=244</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enna MediaCenter &#8211; better than MythTV</title>
		<link>http://www.foamz.za.net/?p=241</link>
		<comments>http://www.foamz.za.net/?p=241#comments</comments>
		<pubDate>Mon, 08 Mar 2010 20:55:08 +0000</pubDate>
		<dc:creator>foamz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[enna]]></category>
		<category><![CDATA[mediacenter]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://www.foamz.za.net/?p=241</guid>
		<description><![CDATA[I recently looked into setting up a media center at home. I installed Mythbuntu, purely because I wanted things to be as easy as possible, but still it was not easy enough. MythTV seems good for PVR or normal TV usage, but I just wanted to play media stored on my external hard drives, something [...]]]></description>
			<content:encoded><![CDATA[<p>I recently looked into setting up a media center at home. I installed <a href="http://www.mythbuntu.org/">Mythbuntu</a>, purely because I wanted things to be as easy as possible, but still it was not easy enough. <a href="http://www.mythtv.org/">MythTV</a> seems good for PVR or normal TV usage, but I just wanted to play media stored on my external hard drives, something MythTV doesn&#8217;t like that much.</p>
<p>I started looking for something else, even looked at <a href="http://www.freevo.org/">Freevo</a>, but ended up with <a href="http://enna.geexbox.org/index.html">Enna</a>.</p>
<p>I went into the Mythbuntu control center and disabled the front and backend for mythtv and also disabled the autostart for mythtv. Added the Enna repo and installed it.</p>
<p>Not only does the default skin for Enna look amazing, the flow of things are much better than mythtv.<br />
There is a config file for Enna, but there&#8217;s no need to configure things like storage paths. Simply start Enna and start browsing to wherever you want to be.</p>
<p>It also fetches data automatically for your series and movies, which is a great plus, because I wasn&#8217;t going to do that myself and its pretty to look at.</p>
<p>Next thing I&#8217;ll look at is GeexBox when I get a tv/dvb card. Its the alternative to MythTV, also being able to watch tv and record and it still uses the great looking interface from Enna.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foamz.za.net/?feed=rss2&amp;p=241</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Path for ISO&#8217;s on XenServer 5.5</title>
		<link>http://www.foamz.za.net/?p=235</link>
		<comments>http://www.foamz.za.net/?p=235#comments</comments>
		<pubDate>Tue, 02 Mar 2010 12:29:57 +0000</pubDate>
		<dc:creator>foamz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[citrix]]></category>
		<category><![CDATA[xenserver]]></category>

		<guid isPermaLink="false">http://www.foamz.za.net/?p=235</guid>
		<description><![CDATA[So&#8230; for reasons unbeknowning to mankind, trying to find the path where you can store your ISO&#8217;s on XenServer is amazingly difficult. After trying various combos on google and Citrix&#8217;s own site, I eventually found a site pointing it out: http://www.tillett.info/2009/09/23/adding-iso-repository-under-xenserver-5-5/ The path is at: /var/opt/xen/iso_import BTW, slocate isn&#8217;t installed and when I tried using [...]]]></description>
			<content:encoded><![CDATA[<p>So&#8230; for reasons unbeknowning to mankind, trying to find the path where you can store your ISO&#8217;s on XenServer is amazingly difficult. After trying various combos on google and Citrix&#8217;s own site, I eventually found a site pointing it out: http://www.tillett.info/2009/09/23/adding-iso-repository-under-xenserver-5-5/</p>
<p>The path is at: /var/opt/xen/iso_import</p>
<p>BTW, slocate isn&#8217;t installed and when I tried using find, that path didn&#8217;t pop up&#8230; probably because I was searching for XenServer.iso thinking it would work in the same folder&#8230;</p>
<p>Also check here: http://docs.vmd.citrix.com/XenServer/5.0.0/1.0/en_gb/guest.html#iso_windows-where_to_put_it</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foamz.za.net/?feed=rss2&amp;p=235</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick MySQL backup and email</title>
		<link>http://www.foamz.za.net/?p=227</link>
		<comments>http://www.foamz.za.net/?p=227#comments</comments>
		<pubDate>Mon, 01 Feb 2010 09:53:08 +0000</pubDate>
		<dc:creator>foamz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.foamz.za.net/?p=227</guid>
		<description><![CDATA[Its been a while since I posted anything. My new baby is keeping me pretty busy when I&#8217;m not working. Anyway, I was doing some simple maintenance today and thought I&#8217;d share it, while at the same time do something useful with my blog. This is just a quick rundown on how I&#8217;m backing up [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a while since I posted anything. My new baby is keeping me pretty busy when I&#8217;m not working.</p>
<p>Anyway, I was doing some simple maintenance today and thought I&#8217;d share it, while at the same time do something useful with my blog. This is just a quick rundown on how I&#8217;m backing up a database every day automatically and have it email to myself.</p>
<p>I start off by editing the crontab, since I want this to run automatically every day:<br />
$ crontab -e</p>
<pre lang=bash>
10 01 * * * /usr/bin/mysqldump -pSOMEPASSWD DBNAME | gzip > /root/sqlbackups/DBNAME.`date +"%Y%m%d"`.sql.gz
</pre>
<p>That line tells it to run 1:10am every day. You need to replace &#8220;SOMEPASSWD&#8221; and &#8220;DBNAME&#8221; with your password and database name. &#8220;%Y%m%d&#8221; will display the date as &#8220;year month day&#8221;, for eg:<br />
DBNAME.20100201.sql.gz<br />
Note that I&#8217;m saving it in the /root/sqlbackups/ path, so make sure it exists. </p>
<p>Next line:</p>
<pre lang=bash>
15 01 * * * /bin/echo | /usr/bin/mutt -s "MySQL backup `date +"%F"`" YOUR@EMAILADDRESS -a /root/sqlbackups/DBNAME.`date +"%Y%m%d"`.sql.gz
</pre>
<p>This job will run 5 minutes later. You will need Mutt installed on your system.</p>
<p>Next line, cleanup:</p>
<pre lang=bash>
20 01 * * * /usr/bin/find /root/sqlbackups/DBNAME* -mtime +14 -exec rm {} \;
</pre>
<p>This will check if any of the backups are older than 14 days and delete them. You can change the amount of days to whatever you like.</p>
<p>There you have it! Quick and simple MySQL database backup solution.<br />
Note that I was using the root user. It is probably safer using a user other than root.</p>
<p>&#8211; EDIT &#8211;</p>
<p>This crap above wont work if you put it into cron like that because of the quotes. Rather put them in a script, chmod +x it and then add it into cron.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foamz.za.net/?feed=rss2&amp;p=227</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
