<?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>According to Kris &#187; Linux</title>
	<atom:link href="http://accordingtokris.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://accordingtokris.com</link>
	<description>Yeah I said it - but that don't make it true!</description>
	<lastBuildDate>Tue, 22 Dec 2009 06:06:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Adventures into stop motion</title>
		<link>http://accordingtokris.com/200905/stop-motion/</link>
		<comments>http://accordingtokris.com/200905/stop-motion/#comments</comments>
		<pubDate>Sun, 17 May 2009 08:31:41 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://accordingtokris.com/?p=53</guid>
		<description><![CDATA[Everyone seems to be getting into time-lapse as a means of creating video from photographs, but because the scene is fundamentally static, there needs to be significant activity/action in order for it not to be boring. Alternatively I&#8217;ve been looking at creating video using stop-motion. Before you see my example below, here are my steps [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone seems to be getting into time-lapse as a means of creating video from photographs, but because the scene is fundamentally static, there needs to be significant activity/action in order for it not to be boring.</p>
<p>Alternatively I&#8217;ve been looking at creating video using stop-motion. Before you see my example below, here are my steps (and settings):</p>
<p><strong>1. Take pics</strong></p>
<blockquote><p><strong>*</strong> ISO 100<br />
<strong>*</strong> AV Mode; Aperture f/11<br />
<strong>*</strong> Manual focus on infinity<br />
<strong>*</strong> Burst mode</p></blockquote>
<p><strong>2. Resize</strong><br />
Use mogrify (from the ImageMagick suite)</p>
<blockquote><p>$ mogrify -resize 640&#215;480 *.JPG</p></blockquote>
<p><strong>3. Convert to flash video</strong><br />
Use avidemux (or simply ffmpeg if you are hardcore)</p>
<p><em>NOTE: Image files should be alphabetically/numerically sequential</em></p>
<blockquote><p><strong>*</strong> File -&gt; Open : Select first jpeg<br />
<strong>*</strong> Video -&gt; Frame Rate : Specifiy desired frame rate (such as 15 fps)<br />
<strong>*</strong> From Video dropdown : Select FLV1 (lavc)<br />
<strong>*</strong> From Format dropdown : Select FLV</p></blockquote>
<p>- optional add audio -</p>
<blockquote><p><strong>*</strong> Audio -&gt; Main Track</p>
<p style="padding-left: 30px;"><strong>+</strong> Audio Source : External WAV/MP3<br />
<strong>+</strong> External File : Browse to MP3</p>
<p><strong>*</strong> From Audio dropdown : Select MP3 (LAME)</p></blockquote>
<p>- generate video -</p>
<blockquote><p><strong>*</strong> File -&gt; Save -&gt; Save Video (Ctrl-S) : Give it a name</p></blockquote>
<p>And then you can end up with something like (or hopefully better than) this:</p>
<p><object type="application/x-shockwave-flash" width="640" height="427" data="http://www.flickr.com/apps/video/stewart.swf?v=71377" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="flashvars" value="intl_lang=en-us&#038;photo_secret=74265cceb6&#038;photo_id=3537642165"></param><param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=71377"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=71377" bgcolor="#000000" allowfullscreen="true" flashvars="intl_lang=en-us&#038;photo_secret=74265cceb6&#038;photo_id=3537642165" height="427" width="640"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://accordingtokris.com/200905/stop-motion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moonlight coming of age</title>
		<link>http://accordingtokris.com/200905/moonlight-coming-of-age/</link>
		<comments>http://accordingtokris.com/200905/moonlight-coming-of-age/#comments</comments>
		<pubDate>Sun, 10 May 2009 10:32:21 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://accordingtokris.com/?p=57</guid>
		<description><![CDATA[As Moonlight 2.0 enters it&#8217;s preview release stage, the dream of Linux being able to enjoy the rich user experience and multimedia functionality (not to mention the cool eye candy) that was previously excluded from such 2nd-class citizens as us is looking suspiciously like becoming a reality. Unfortunately we still can&#8217;t actually create a photosynth, [...]]]></description>
			<content:encoded><![CDATA[<p>As Moonlight 2.0 enters it&#8217;s preview release stage, the dream of Linux being able to enjoy the rich user experience and multimedia functionality (not to mention the cool eye candy) that was previously excluded from such 2nd-class citizens as us is looking suspiciously like becoming a reality.</p>
<p>Unfortunately we still can&#8217;t actually create a photosynth, but at least we can view them, take advantage of adaptive video streaming, and finally enjoy the deepzoom glory of sites like <a href="http://memorabilia.hardrock.com">Hard Rock Cafe Memorabilia</a> and (more importantly) <a href="http://playboy.covertocover.com">the Playboy Archive</a>.</p>
<p>While the team was at it, they thought they may as well throw in a couple of the 3.0 features so you can also expect (amongst other things) out-of-browser support and the pluggable media pipeline.</p>
<p>See Miguel de Icaza&#8217;s <a href="http://tirania.org/blog/archive/2009/May-04.html">announcement</a> for more details, or grab it for yourself at <a href="http://go-mono.com/moonlight-preview/">http://go-mono.com/moonlight-preview/</a> and see what you&#8217;ve been missing.</p>
]]></content:encoded>
			<wfw:commentRss>http://accordingtokris.com/200905/moonlight-coming-of-age/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hosts Begone!</title>
		<link>http://accordingtokris.com/200703/hosts-begone/</link>
		<comments>http://accordingtokris.com/200703/hosts-begone/#comments</comments>
		<pubDate>Mon, 05 Mar 2007 06:58:20 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://accordingtokris.com/200703/hosts-begone/</guid>
		<description><![CDATA[With my move to virtualisation and seemingly non-stop addition of net-enabled appliances, the hosts file I have on all machines has grown to over 20 entries. I thought it was about time I centralised this configuration and ran a local DNS server. You always hear how the most common DNS server &#8211; bind - is [...]]]></description>
			<content:encoded><![CDATA[<p>With my move to virtualisation and seemingly non-stop addition of net-enabled appliances, the hosts file I have on all machines has grown to over 20 entries. I thought it was about time I centralised this configuration and ran a local DNS server.</p>
<p>You always hear how the most common DNS server &#8211; <a href="http://en.wikipedia.org/wiki/BIND">bind </a>- is a monolithic beast, but if you have reasonably moderate requirements, the implementation is quite simple.</p>
<p>The setup I wanted to achieve was probably very common for a home network. All machines/devices have static IP addresses and are all part of the same class C subnet. All DNS requests (for both local and remote addresses) should be cached by the local DNS server to improve lookup performance. All external DNS requests should be forwarded to my ISP&#8217;s DNS server(s). Adding a machine or changing an IP address should require no more the an update on the actual device holding the IP address in question, and an update to the local DNS server. All other machines should then be able to resolve the new hostname.</p>
<p>If this sounds like something you would be interested in (thanks <a href="http://www.hbo.com/entourage/">Entourage</a> &#8211; or more <a href="http://www.imdb.com/title/tt0804723/">specifically</a>) see the installation and configuration on the <a href="http://wiki.accordingtokris.com/index.php?title=Local_DNS_with_Bind">wiki</a> and say hosts file &#8211; begone!.</p>
<p>The next obvious step would be to run a DHCP server too, but that is a story for another day.</p>
]]></content:encoded>
			<wfw:commentRss>http://accordingtokris.com/200703/hosts-begone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Virtual Bandwagon</title>
		<link>http://accordingtokris.com/200612/the-virtual-bandwagon/</link>
		<comments>http://accordingtokris.com/200612/the-virtual-bandwagon/#comments</comments>
		<pubDate>Tue, 19 Dec 2006 00:50:16 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://accordingtokris.com/200612/the-virtual-bandwagon/</guid>
		<description><![CDATA[It seems that everyone is jumping on the virtualisation bandwagon. Reasons such as server consolidation and improved management seem to be pretty compelling to system administrators, and features such as live migration could be the icing on the cake. Can virtualisation save me too? The three biggest headaches I have are resource management (e.g. continuously [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that everyone is  jumping on the virtualisation bandwagon. Reasons such as server consolidation and improved management seem to be pretty compelling to system administrators, and features such as live migration could be the icing on the cake. Can virtualisation save me too?</p>
<p>The three biggest headaches I have are resource management (e.g. continuously running out of disk space on /), service immobility, and keeping the system current. Regarding the last point, there&#8217;s a primal urge to respond when your system status script notifies you that your tar-1.16.r1 has be superseded with 1.16.r2. Who can resist this call to action? Not I! But every time I update installed components I find myself backing up all the configuration files (despite the fact that they haven&#8217;t changed since the last update and are included and backed up in my configuration file subversion repository), silently crossing my fingers, and hoping for the best. In addition, my experience/paranoia with hard disks compel me to run the system in a RAID-1 configuration (backup? bah!) which results in the system incurring a non-trivial overhead &#8211;  particularly with regard to write performance.</p>
<p>Dynamic disk allocation could be achieved with LVM, or  &#8211; you guessed it &#8211; virtualisation.<br />
System portability is by definition a feature of virtualisation, so service separation into different VMs seems to be a reasonable solution to start uncoupling services from physical machines.</p>
<p>With the ability to checkpoint and clone VMs, virtualisation can be used to perform &#8220;test updates&#8221; &#8211; item 3: check!</p>
<p>Now that my spare room has appeared to morph into a data centre, what virtualisation technology is right for me?</p>
<p>There&#8217;s <em>Virtual Machines</em> (<a target="_blank" href="http://www.vmware.com/">VMware</a>, <a target="_blank" href="http://www.microsoft.com/windowsserversystem/virtualserver/default.mspx">Microsoft Virtual Server</a>, <a target="_blank" href="http://www.parallels.com/">Parallels</a>) which emulate all the hardware. It is the most flexible option as you can &#8220;pretend&#8221; to be running any hardware as far as the  guest VMs are concerned, but it&#8217;s also most resource intensive. In addition to being isolated from each other, the VMs are isolated from the host machine.</p>
<p>Then there&#8217;s <em>Paravirtualisation</em> (<a target="_blank" href="http://www.cl.cam.ac.uk/research/srg/netos/xen/">Xen</a>) which uses a hypervisor to manage and isolate the VMs either by hardware (using Intel&#8217;s VT-x or AMD&#8217;s SVM CPU level virtualisation found in recent chipsets) or by loading customised versions of the host OS which has been modified to be aware and behave for the hypervisor. The guest VMs are executing their code natively (albeit under the control of the hypervisor), which means you can only run software targeted for the hardware you are running it on, and if you don&#8217;t have a new whiz bang CPU, this limits your guest OS choices to pretty much Linux only. This performs considerably better than the previous option.</p>
<p>Finally there is OS level virtualisation (<a target="_blank" href="http://www.sun.com/bigadmin/content/zones/">Solaris Zones</a>, <a target="_blank" href="http://linux-vserver.org/">Linux-VServer</a>, <a target="_blank" href="http://www.swsoft.com/en/products/virtuozzo">Virtuozzo</a>/<a target="_blank" href="http://openvz.org/">OpenVZ</a>) which adds a virtualisation layer to the host OS. This is the most limited option, as all your guest VMs need to be the same as your host (although in the case of Linux, not the same distro), but also has the smallest overhead (only 1-2% of resources are spent on virtualisation). Each VM is essentially a chrooted/jailed full file system that is mounted by the host and share the (patched) host kernel (gross simplification &#8211; but it is essentially the how it appears to the administrator). What this gives you is full access to the file system of each VM from the host, regardless if it&#8217;s running or not.</p>
<p>So where does this leave me? On account of me only running Linux (on the server at least), OS flexibility (or inflexibility) was not a factor. More important was performance &#8211; particularly on older hardware, and price. The choice looked between Xen and OpenVZ. When ever I&#8217;m faced with a choice, I invariably choose the simplest option (at least initially) and in this case it clearly seemed to be OpenVZ.</p>
<p>Two weeks on and I&#8217;m loving it! I can run a debian-based webserver, MySQL under centos, and all my custom services from a gentoo server. I can bind a mount point to each VM (or VE &#8211; Virtual Environment &#8211; in OpenVZ-speak) to allow the virtual machines share disk which is great both for general storage and things like a portage tree. From the host (or HN &#8211; Hardware Node) I can monitor and tune a multitude of resource allocations for each VE which are reflected immediately.</p>
<p>The only area lacking in this solution would appear to be a good monitoring/management interface &#8211; but I&#8217;m working on it. Stay tuned for further virtual adventures!</p>
]]></content:encoded>
			<wfw:commentRss>http://accordingtokris.com/200612/the-virtual-bandwagon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WoW Linux!</title>
		<link>http://accordingtokris.com/200612/wow-linux/</link>
		<comments>http://accordingtokris.com/200612/wow-linux/#comments</comments>
		<pubDate>Tue, 05 Dec 2006 02:35:35 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://accordingtokris.com/200612/wow-linux/</guid>
		<description><![CDATA[With the latest beta release (6.0.0 beta 3) of CodeWeaver&#8217;s CrossOver Linux (formally CrossOver Office) I am finally able to install and run World of Warcraft flawlessly on Linux. In fact, it seems to run better than under Windows XP on my laptop! I tried Cedega and Wine, but neither was as simple and functional [...]]]></description>
			<content:encoded><![CDATA[<p>With the latest beta release (<a target="_blank" href="http://www.codeweavers.com/beta/cxlinux/">6.0.0 beta 3</a>) of <a target="_blank" href="http://www.codeweavers.com/">CodeWeaver&#8217;s</a> <a target="_blank" href="http://www.codeweavers.com/products/cxoffice/">CrossOver Linux</a> (formally CrossOver Office) I am finally able to install and run World of Warcraft flawlessly on Linux. In fact, it seems to run better than under Windows XP on my laptop! I tried <a target="_blank" href="http://www.transgaming.com/index.php?module=ContentExpress&#038;file=index&#038;func=display&#038;ceid=29">Cedega</a> and <a target="_blank" href="http://www.winehq.com/">Wine</a>, but neither was as simple and functional as cxlinux.<br />
Although I haven&#8217;t used either in quite a while, I&#8217;m still concerned about being able to run Adobe Photoshop and Premier, so this may not be the silver bullet to allow me to fully get rid of Windows &#8211; but I am definitely getting close. And one 10GB partition out of 4 PC&#8217;s and 1.5 TB of disk is a manageable ratio.<br />
People seem to have positive experiences running Photoshop under cxlinux and I&#8217;ll be sure to try it out when the need arises.<br />
It it worth the asking US$39.95? HELL YES! Even though I believe pretty much all the code updates are passed upstream to the Wine group, and generally I&#8217;m more a DIY person (computer-wise that is), the simplicity of the pre-configured settings for specific applications can not be undervalued.</p>
<p>I can&#8217;t wait for the official release!</p>
]]></content:encoded>
			<wfw:commentRss>http://accordingtokris.com/200612/wow-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The cost of small pleasures</title>
		<link>http://accordingtokris.com/200608/the-cost-of-small-pleasures/</link>
		<comments>http://accordingtokris.com/200608/the-cost-of-small-pleasures/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 08:16:08 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://accordingtokris.com/200608/the-cost-of-small-pleasures/</guid>
		<description><![CDATA[After reading this article linked to from slashdot (and popular enough to be backslashed), I realised that I too would be happy spending a number of hours reconfiguring my home network just to screw with anyone who had the poor judgement to try and use my wifi. This as an alternative to leaving my network [...]]]></description>
			<content:encoded><![CDATA[<p>After reading <a href="http://www.ex-parrot.com/~pete/upside-down-ternet.html">this article</a> linked to from <a href="http://it.slashdot.org/article.pl?sid=06/07/27/1456253">slashdot</a> (and popular enough to be <a href="http://backslash.slashdot.org/article.pl?sid=06/07/28/187219">backslashed</a>), I realised that I too would be happy spending a number of hours reconfiguring my home network just to screw with anyone who had the poor judgement to try and use my wifi.</p>
<p>This as an alternative to leaving my network managed by my routers and its wifi secured with WPA seems like a good use of my time. Sure I need to reconfigure my whole network into multiple segments, install and configure a DHCP server, and setup rules for iptables &#8211; but dude &#8211; upside down images!</p>
<p>What is it that causes the (admittedly small) pleasures achieved by messing with people &#8211; regardless of whether or not you are able to see the effects directly &#8211; have such a high personal value that pretty much any effort seems well worth the time and cost it involves?</p>
<p>Maybe it&#8217;s just me.</p>
]]></content:encoded>
			<wfw:commentRss>http://accordingtokris.com/200608/the-cost-of-small-pleasures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back it up!</title>
		<link>http://accordingtokris.com/200607/back-it-up/</link>
		<comments>http://accordingtokris.com/200607/back-it-up/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 12:38:26 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://accordingtokris.com/200607/back-it-up/</guid>
		<description><![CDATA[Are you one of the many people against backing up your data/database? Is it because of lazyness? If you are running linux these simple scripts that can take away all your excuses.]]></description>
			<content:encoded><![CDATA[<p>Why are people (including myself) so lazy about backing up their data?</p>
<p>Do we assume the &#8220;managed&#8221; in the $4.95/month managed server takes care of this for us? Do we think the risk of failure is so small that it will only happen to other people? Do we think it will require a large and ongoing effort? Do we just not know where to start?</p>
<p>With the cost of hard disks being so low these days, these seems to be no reason not to have a copy of at least your most important databases and files on a separate disk to ease the pain when that dark day that you will forever call &#8220;the hard disk crash of {insert year here}&#8221; comes.</p>
<p>A combination of this thought and the inherent laziness that most programmers have prompted me to look into what this actually would entail. I believe that the end result was  simplified by the fact that I run mostly Linux, but I&#8217;m sure with <a href="http://www.cygwin.com/">cygwin</a> or something similar, the same can be pretty much achieved on windows.</p>
<p>The end result is a set of scripts for backing up MySQL and transferring data (both the MySQL backups, and other data such as my websites) to a remote server. If I create a new database that needs to be backed up, I just have to grant access to it for the backup user and restore user and it will automatically be included in the backup routine. If I want to backup a new folder, I need to add it to my backup script and it will be synced according to the next schedule. Alternatively, I could create a symlink for all top level folders needing backup inside a common &#8220;backup&#8221; folder and only need to backup that folder, but this reduces the flexibility of being able to backup my websites to machine1 and audio (for example) to machine2. Once a month each backup will be restored to a scrap table for verification. Finally, due to the magical default behaviour of cron, anytime an error is encountered, I will be notified via email.</p>
<p>Information including all scripts for the MySQL backup can be found on the wiki: <a href="http://wiki.accordingtokris.com/index.php?title=MySQL_Backup">http://wiki.accordingtokris.com/index.php?title=MySQL_Backup</a></p>
<p>Information including scripts for content backup can also be found on the wiki: <a href="http://wiki.accordingtokris.com/index.php?title=System_Rsync_Backup">http://wiki.accordingtokris.com/index.php?title=System_Rsync_Backup</a></p>
<p>Enjoy &#8211; and no more excuses <strike>if</strike> when you have a disk failure!</p>
]]></content:encoded>
			<wfw:commentRss>http://accordingtokris.com/200607/back-it-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

