<?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>KrisWillis.com &#187; GNU Linux</title>
	<atom:link href="http://www.kriswillis.com/index.php/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kriswillis.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Sep 2010 14:35:57 +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>ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13)</title>
		<link>http://www.kriswillis.com/index.php/2010/09/09/ps_files_cleanup_dir-opendirvarlibphp5-failed-permission-denied-13/</link>
		<comments>http://www.kriswillis.com/index.php/2010/09/09/ps_files_cleanup_dir-opendirvarlibphp5-failed-permission-denied-13/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 14:35:57 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.kriswillis.com/?p=130</guid>
		<description><![CDATA[When running PHP5 under Ubuntu, every ~100 times you call session_start() the following error is thrown: ps_files_cleanup_dir: opendir&#40;/var/lib/php5&#41; failed: Permission denied &#40;13&#41; in ... By default, session data is stored in /var/lib/php5 which has its permissions set to only allow data to be deleted by it&#8217;s owner (and root). It&#8217;s like this because there is [...]]]></description>
			<content:encoded><![CDATA[<p>When running PHP5 under Ubuntu, every ~100 times you call session_start() the following error is thrown:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ps_files_cleanup_dir: opendir<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #7a0874; font-weight: bold;">&#41;</span> failed: Permission denied <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">13</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> ...</pre></div></div>

<p>By default, session data is stored in /var/lib/php5 which has its permissions set to only allow data to be deleted by it&#8217;s owner (and root). It&#8217;s like this because there is a cron script that periodically clears the session data. To prevent PHP from also trying to do this, switch off the session garbage collection in php.ini (/etc/php5/apache2/php.ini) with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">session.gc_probability = <span style="color: #000000;">0</span></pre></div></div>

<p>It is quite likely to be set to 1 by default. Save changes and restart apache.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2010/09/09/ps_files_cleanup_dir-opendirvarlibphp5-failed-permission-denied-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Revo 3610 HTPC</title>
		<link>http://www.kriswillis.com/index.php/2010/06/27/revo-3610-htpc/</link>
		<comments>http://www.kriswillis.com/index.php/2010/06/27/revo-3610-htpc/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 16:23:55 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[Gadgets]]></category>

		<guid isPermaLink="false">http://www.kriswillis.com/?p=124</guid>
		<description><![CDATA[I store all of my media on a file server (running Ubuntu Server 10.04) which currently contains a 6TB RAID5 array, then stream whatever I want to watch to a client device hooked up to my TV, up until yesterday this was a Popcorn Hour A-110. Although the A-110 plays back almost anything I throw [...]]]></description>
			<content:encoded><![CDATA[<p>I store all of my media on a file server (running Ubuntu Server 10.04) which currently contains a 6TB RAID5 array, then stream whatever I want to watch to a client device hooked up to my TV, up until yesterday this was a Popcorn Hour A-110. Although the A-110 plays back almost anything I throw at it, and generally flawlessly, the navigation is not the best, the UI is not the prettiest to look at and the network functionality is pretty slow. I&#8217;ve had my eye on <a title="Boxee" href="http://boxee.tv" target="_blank">Boxee</a> for a while now and have been patiently waiting for the release of the <a title="Boxee Box" href="http://boxee.tv/box" target="_blank">Boxee Box</a>, but they&#8217;ve recently announced on their blog that it has been delayed until November 2010 for the US release, and no mention of the Europe release. With this in mind, I decided to run Boxee on a low powered HTPC.</p>
<p>A couple of people in both forums and IRC have recommended the Acer Aspire Revo 3610 net-top machine as a candidate for running Boxee, so after a little research I picked on up from eBuyer at a bargain £180 for the N330 / 2GB / 250GB / Linpus configuration, delivered the next day for free. After firing it up for the first time, I spent less than 5 minutes poking around the pre-installed Linpus out of curiosity (the 250GB disk was oddly configured with a single 10GB partition), then promptly wiped it and installed Ubuntu 10.04 (x64) and the latest Boxee release.</p>
<p>Having previously read <a href="http://www.greenhughes.com/content/boxee-and-ubuntu-1004-lts-acer-aspire-revo" target="_blank">Liam Green-Hughes&#8217; website</a>, I was aware that I needed to tweak some settings to get the digital sound working, though there was a slight difference with my Revo in that I have three different S/PDIF levels within alsamixer &#8211; &#8220;S/PDIF&#8221;, &#8220;S/PDIF Default PCM&#8221; and &#8220;S/PDIF 1&#8243;. I un-muted all  of them but have yet to experiment to see what each of them does. I set my output device to &#8220;Digital Stereo (IEC958) Output&#8221; within the Ubuntu sound configuration as I want the audio to be sent to my amp over S/PDIF for decoding; after messing around with a few different combinations of settings within Boxee I was getting sound for files encoded with normal stereo sound, but silence for anything with multiple channels (DD / DTS). After a couple of hours of tinkering and research, it turns out that pulseaudio has a default sample rate of 44.1kHz and <a title="Ubuntu Forums" href="http://ubuntuforums.org/showpost.php?p=7560563&amp;postcount=3" target="_blank">AC3 (Dolby Digital) is signed 16-bit little-endian 2-channel 48kHz PCM data</a>, configuring pulseaudio to run with a sample rate of 48kHz appears to have fixed the issue, as I am now getting DD and DTS passed to my amp for every media file I have tested.</p>
<p>After playing around with the Revo / Boxee combination for about a day, it&#8217;s generally all positive; it plays back 720p/1080p content perfectly by passing the majority of the HD video decoding to the ION chip with the help of VDPAU available within GNU/Linux, the CPU is running at ~10% during all of this while managing perfectly with non-HD content too but with a little more strain on the N330. While &#8220;idling&#8221; on the Boxee home screen, one of the CPU&#8217;s threads is curiously always running at 100% load, though it is possible it is still indexing all of my media with it reporting &#8220;identifying&#8221; next to one of my sources. It has currently successfully identified 99% of my media requiring me to manually identify a handful of files, but this is perfectly acceptable considering the brilliant interface complete with covers and descriptions for all of my movies and TV shows. There is a slightly annoying wait when switching between the different areas of Boxee and sometimes a slight bit of lag when browsing through the media, but this could be down to it still indexing the content.</p>
<p>There appears to be plenty more to play with such as web content and applications, from what I have looked at, Flash video plays back fine in standard definition but HD Flash content is completely unwatchable &#8211; This is likely down to the lack of 64bit Linux support from Adobe. Other web based content such as the video made available within the Revision 3 application plays back perfectly, I&#8217;m pretty sure it&#8217;s HD too, but I couldn&#8217;t find an option to switch between the different encodings of their content.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2010/06/27/revo-3610-htpc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mt-daapd transcoding failed after upgrading to Jaunty</title>
		<link>http://www.kriswillis.com/index.php/2009/07/26/mt-daapd-transcoding-failed-after-upgrading-to-jaunty/</link>
		<comments>http://www.kriswillis.com/index.php/2009/07/26/mt-daapd-transcoding-failed-after-upgrading-to-jaunty/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 17:33:13 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>

		<guid isPermaLink="false">http://kriswillis.com/?p=104</guid>
		<description><![CDATA[After upgrading my media server to Jaunty recently I noticed that I could no longer play FLAC files from within iTunes under OS X. I couldn&#8217;t figure out why this was happening, but to solve it I configured mt-daapd to handle the transcoding with a script rather than with ffmpeg. There are a few small [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading my media server to Jaunty recently I noticed that I could no longer play FLAC files from within iTunes under OS X. I couldn&#8217;t figure out why this was happening, but to solve it I configured mt-daapd to handle the transcoding with a script rather than with ffmpeg.</p>
<p>There are a few small issues that don&#8217;t make this reconfiguration as straight forward as you would hope. First of all, the required script (mt-daapd-ssc.sh) is not installed along with mt-daapd, so I had to pull it from the svn repository and drop it into /usr/bin. Also, mt-daapd-ssc.sh uses wavstreamer to encode the decoded FLAC file, so if that isn&#8217;t available on your system, you&#8217;ll need to install that too. I believe it is built along with the rest of mt-daapd when building from source.</p>
<p>Next up, mt-daapd.conf needs to be modified to change how the transcoding is handled, the following lines need to be uncommented:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ssc_prog = <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mt-daapd-ssc.sh
ssc_codectypes = ogg,flac,alac</pre></div></div>

<p>The following line needs the ssc-ffmpeg.so part removed:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">plugins = rsp.so,ssc-ffmpeg.so</pre></div></div>

<p>At this stage, I thought that this was all that was required, but I still couldn&#8217;t get it working. Upon searching the Ubuntu Forums, someone else had already been through this and pointed out that one component of this set-up (I&#8217;m unsure which) requires an older version of FLAC, so a symlink had to be created.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libFLAC.so.8.2.0 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libFLAC.so.7</pre></div></div>

<p>After restarting mt-daapd, iTunes was again playing FLAC files!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2009/07/26/mt-daapd-transcoding-failed-after-upgrading-to-jaunty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a printer within Ubuntu</title>
		<link>http://www.kriswillis.com/index.php/2009/04/01/adding-a-printer-within-ubuntu/</link>
		<comments>http://www.kriswillis.com/index.php/2009/04/01/adding-a-printer-within-ubuntu/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 10:49:05 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[Gadgets]]></category>

		<guid isPermaLink="false">http://kriswillis.com/?p=100</guid>
		<description><![CDATA[One of our office printers decided to die the other day, a Brother multi-function laser printer, which I recall took quite a lot of messing around to get it printing from Ubuntu and once it was set-up it always took a while to send pages to the printer. Sometimes, it printed just a bunch of [...]]]></description>
			<content:encoded><![CDATA[<p>One of our office printers decided to die the other day, a Brother multi-function laser printer, which I recall took quite a lot of messing around to get it printing from Ubuntu and once it was set-up it always took a while to send pages to the printer. Sometimes, it printed just a bunch of garbage instead of the document I sent too.</p>
<p>Our new printer, an HP 2727nf MFP, was a completely different experience. After hooking it up to the network and selecting to add a new printer within Ubuntu, it searched for printers, found the new HP, fetched and installed the required drivers and <em>just worked</em>! Pages are sent to the printer almost immediatly and have printed perfectly every time, so far.</p>
<p>Also, I set the same printer up on 6 machines in the office, 1 x Ubuntu, 2 x Xubuntu, 1 x OS X, 1 x Vista, 1 x XP Pro. By the time it was set-up on the first Windows machine I had already completed the set-up on all three Linux machines &#8211; Two thumbs up for Ubuntu and HP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2009/04/01/adding-a-printer-within-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SiI-3114 and Ubuntu</title>
		<link>http://www.kriswillis.com/index.php/2008/09/18/sii-3114-and-ubuntu/</link>
		<comments>http://www.kriswillis.com/index.php/2008/09/18/sii-3114-and-ubuntu/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 20:43:44 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[Gadgets]]></category>

		<guid isPermaLink="false">http://kriswillis.com/?p=62</guid>
		<description><![CDATA[My media server was getting to the stage where it required some extra discs, so I purchased another pair of 500GB SATA disks and a SiI-3114 based PCI to 4-port SATA controller card to hook them up to as I was out of spare SATA ports. Upon booting there was no sign of the cards [...]]]></description>
			<content:encoded><![CDATA[<p>My media server was getting to the stage where it required some extra discs, so I purchased another pair of 500GB SATA disks and a SiI-3114 based PCI to 4-port SATA controller card to hook them up to as I was out of spare SATA ports.</p>
<p>Upon booting there was no sign of the cards BIOS during POST and no sign of the disks attached to it either after booting into Ubuntu, though running <em>lspci</em> reported that the card was present. After poking around with a mixture of Google and the Ubuntu forums, a number of people were having issues with the card but no conclusive fix had been found.</p>
<p>So I head on over to the Silicon Image website to check if there are any new BIOS images available, and surprisingly there was! After downloading, and realising that the only flash tool available was DOS based along with my server not having a floppy drive or a CD drive to boot into a DOS shell with I managed to get a USB stick booting into DOS with the flash tool.</p>
<p>To cut the story short &#8211; Flashing the card with the latest non-RAID version of the BIOS fixed my issue. It was now displaying the BIOS upon boot, and the attached disks were visible when running <em>lshw -C disk</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2008/09/18/sii-3114-and-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logitech MX5000 and Ubuntu</title>
		<link>http://www.kriswillis.com/index.php/2008/05/09/logitech-mx5000-and-ubuntu/</link>
		<comments>http://www.kriswillis.com/index.php/2008/05/09/logitech-mx5000-and-ubuntu/#comments</comments>
		<pubDate>Fri, 09 May 2008 19:59:58 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[Logitech]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://kriswillis.com/?p=54</guid>
		<description><![CDATA[Since I first bought my Logitech MX5000 combo it has never worked correctly on Ubuntu (back to 6.06 maybe&#8230;) after booting. The keyboard would work perfectly in the BIOS and even in GRUB, but as soon as I reached the (GUI) log-in screen my MX5000 would become unresponsive until I disconnected the USB Bluetooth receiver [...]]]></description>
			<content:encoded><![CDATA[<p>Since I first bought my Logitech MX5000 combo it has never worked correctly on Ubuntu (back to 6.06 maybe&#8230;) after booting. The keyboard would work perfectly in the BIOS and even in GRUB, but as soon as I reached the (GUI) log-in screen my MX5000 would become unresponsive until I disconnected the USB Bluetooth receiver and plugged it back in. As you could imagine, quite tedious on every boot.</p>
<p>After doing a bit of research, this appears to be a fairly common issue. One suggestion that did work for me was to remove the bluez-* packages, but apparently there is the side effect of other Bluetooth devices no longer working. This isn&#8217;t an issue for me, so it&#8217;ll keep me happy until a real fix is in place.</p>
<p>Drop the following into your CLI if you&#8217;re having the same issue&#8230;<br />
<code>sudo apt-get remove bluez-cups bluez-pcmcia-support bluez-pin bluez-utils</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2008/05/09/logitech-mx5000-and-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serving DivX to the Xbox 360 from Ubuntu</title>
		<link>http://www.kriswillis.com/index.php/2007/12/06/serving-divx-to-the-xbox-360-from-ubuntu/</link>
		<comments>http://www.kriswillis.com/index.php/2007/12/06/serving-divx-to-the-xbox-360-from-ubuntu/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 21:48:24 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[Xbox 360]]></category>
		<category><![CDATA[DivX]]></category>
		<category><![CDATA[media server]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[uPnP]]></category>
		<category><![CDATA[XviD]]></category>

		<guid isPermaLink="false">http://kriswillis.com/index.php/2007/12/06/serving-divx-to-the-xbox-360-from-ubuntu/</guid>
		<description><![CDATA[Microsoft released the fall update for the Xbox 360 on the 4th of December which included support for DivX/Xvid playback. A popular choice for encoding video due to its compression to quality ratio. Could this mean I am now able to free up some space on my A/V rack? Currently I&#8217;m using a hardware-modified Xbox [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kriswillis.com/wp-content/uploads/2007/12/img_3867_xbox360logo.jpg" title="Xbox 360 Logo"><img src="http://kriswillis.com/wp-content/uploads/2007/12/img_3867_xbox360logo.thumbnail.jpg" alt="Xbox 360 Logo" border="0" hspace="10" vspace="10" class="alignright" /></a>Microsoft released the fall update for the Xbox 360 on the 4th of December which included support for DivX/Xvid playback. A popular choice for encoding video due to its compression to quality ratio. Could this mean I am now able to free up some space on my A/V rack? Currently I&#8217;m using a hardware-modified Xbox (original) with the open source Xbox Media Center (XBMC) installed on it, decoding my Divx/Xvid content from a Samba share on my media server.</p>
<p>After a quick poke around I found a package called uShare that serves media over the uPnP protocol that the Xbox 360 utilises.<span id="more-18"></span> Before we go installing uShare, it has a few dependencies: libupnp and libdlna. First up, libupnp&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>dfn.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>pupnp<span style="color: #000000; font-weight: bold;">/</span>libupnp-1.6.1.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xf</span> libupnp-1.6.1.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> libupnp-1.6.1
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>&#8230;and then libdlna&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>libdlna.geexbox.org<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>libdlna-0.2.3.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xf</span> libdlna-0.2.3.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> libdlna-0.2.3
.<span style="color: #000000; font-weight: bold;">/</span>configure</pre></div></div>

<p>This is where I hit my first problem:</p>
<pre>Error, can't find libavformat</pre>
<p>After consulting the almighty Google, it would appear libavformat is a part of ffmpeg, so I then installed ffmpeg, still no luck compiling. I also tried installing libdlna via apt-get, which looked to have worked but I later discovered it didn&#8217;t when configuring uShare.</p>
<p>We can serve content to the Xbox 360 with DLNA disabled so I took that route for now. Lets install uShare&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>ushare.geexbox.org<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>ushare-1.1.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xf</span> ushare-1.1.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> ushare-<span style="color: #000000;">1.1</span>
<span style="color: #c20cb9; font-weight: bold;">nano</span> src<span style="color: #000000; font-weight: bold;">/</span>mime.c</pre></div></div>

<p>You&#8217;ll notice we just opened mime.c for editing, this is because we need to change the following line:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #ff0000;">&quot;avi&quot;</span>,   UPNP_VIDEO, <span style="color: #ff0000;">&quot;http-get:*:video/x-msvideo:&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,</pre></div></div>

<p>To this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #ff0000;">&quot;avi&quot;</span>,   UPNP_VIDEO, <span style="color: #ff0000;">&quot;http-get:*:video/x-ms-wmv:&quot;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>,</pre></div></div>

<p>We have to change this line so that uShare thinks that avi containers are actually wmv as it currently assumes that the Xbox 360 only supports wmv. On with the uShare install, as you can see below we&#8217;re disabling DLNA as I couldn&#8217;t get it to install &#8211; Feel free to try it without that option, you might have managed a successful libdlna install.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--disable-dlna</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Now that we have uShare installed, we can launch it with the following command. I have used two options, -x enables Xbox mode, and the -c is for marking the directory we want to serve to the Xbox 360.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ushare <span style="color: #660033;">-xc</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>tv</pre></div></div>

<p>We can now fire up the Xbox 360, browse to the media blade, select videos, hit the X button to change the source and select uShare to start browsing your shared content.</p>
<p>So, can I demote my original Xbox? No, and here&#8217;s why:</p>
<ul>
<li>The Xbox 360 only decodes DivX that was encoded with version 5.0 or higher. I have a fair number of pre 5.0 files that I don&#8217;t fancy re-encoding.</li>
<li>There is no support for subtitles (.srt) &#8211; I sometimes find myself watching films that have some foreign dialog.</li>
<li>A large number of my encoded films are playing back in a small box using only a quarter of my screen &#8211; I&#8217;m not sure if it was the way I ripped and encoded the files, but I can&#8217;t pinpoint a consistent attribute in those rips that could be causing this. It doesn&#8217;t happen on the Xbox.</li>
<li>There is no support for playing media compressed in archives, which I find myself doing on a regular basis. But to be fair, I wasn&#8217;t expecting to be able to do this anyway!</li>
</ul>
<p>It&#8217;s definitely a start, but also something I can&#8217;t see Microsoft improving on any time soon. It may also be perfect for a lot of people, but just not me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2007/12/06/serving-divx-to-the-xbox-360-from-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[SOLVED] Random crashes in Ubuntu 7.10 (Gutsy)</title>
		<link>http://www.kriswillis.com/index.php/2007/12/06/solved-random-crashes-in-ubuntu-710-gutsy/</link>
		<comments>http://www.kriswillis.com/index.php/2007/12/06/solved-random-crashes-in-ubuntu-710-gutsy/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 14:25:58 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[Drivers]]></category>
		<category><![CDATA[Gutsy]]></category>
		<category><![CDATA[Nvidia]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://kriswillis.com/index.php/2007/12/06/solved-random-crashes-in-ubuntu-710-gutsy/</guid>
		<description><![CDATA[Ever since the upgrade from 7.04 to 7.10 I have been experiencing random crashes. The type of crash varied from full-on lock-up where the only way out was to hit the reset button to mild crashes that could be escaped by restarting X (Ctrl-Alt-Backspace). Sometimes the system would just hang for 30 seconds then come [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kriswillis.com/wp-content/uploads/2007/12/nvidia.jpg" title="Nvidia Logo"><img src="http://kriswillis.com/wp-content/uploads/2007/12/nvidia.thumbnail.jpg" alt="Nvidia Logo" class="alignright" border="0" hspace="10" vspace="10" /></a>Ever since the upgrade from 7.04 to 7.10 I have been experiencing random crashes. The type of crash varied from full-on lock-up where the only way out was to hit the reset button to mild crashes that could be escaped by restarting X (Ctrl-Alt-Backspace). Sometimes the system would just hang for 30 seconds then come back to life.</p>
<p>As you could imagine this was becoming rather irritating, it being my main dev-box and all! I started monitoring my system from another machine on my desk over SSH by running <em>top</em>. It would appear that whenever my machine &#8216;crashed&#8217; Xorg would be the culprit, consuming 100% of my processors cycles.</p>
<p>It turns out that many people were experiencing this problem over at the Ubuntu forums and there seemed to be a trend developing where a large proportion of us were using 64-bit AMD X2 chips and the Nvidia GeForce 7 series cards, namely the 7300.  My fix involved downgrading my video drivers from the proprietary 100.14.19 to the 100.14.09 release, obtainable from <a href="http://www.nvidia.com/object/linux_display_ia32_100.14.09.html" title="100.14.09 Drivers" target="_blank">the Nvidia website</a>. This fix didn&#8217;t work for everyone in the thread at UbuntuForums, but did for some.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2007/12/06/solved-random-crashes-in-ubuntu-710-gutsy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running multiple versions of MSIE on Linux</title>
		<link>http://www.kriswillis.com/index.php/2007/03/25/running-multiple-versions-of-msie-on-linux/</link>
		<comments>http://www.kriswillis.com/index.php/2007/03/25/running-multiple-versions-of-msie-on-linux/#comments</comments>
		<pubDate>Sun, 25 Mar 2007 14:37:02 +0000</pubDate>
		<dc:creator>Kris</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[MSIE]]></category>

		<guid isPermaLink="false">http://wp.kriswillis.com/index.php/2007/03/25/running-multiple-versions-of-msie-on-linux/</guid>
		<description><![CDATA[For those of us that are developing web projects on a Linux box that are fed up with jumping over onto a Windows machine to test their code in Internet Explorer there is a nice and easy script called IEs4Linux that makes the process of installing MSIE 5, 5.5 and 6 onto a Linux box [...]]]></description>
			<content:encoded><![CDATA[<p>For those of us that are developing web projects on a Linux box that are fed up with jumping over onto a Windows machine to test their code in Internet Explorer there is a nice and easy script called IEs4Linux that makes the process of installing MSIE 5, 5.5 and 6 onto a Linux box a breeze.</p>
<p>Although IEs4Linux doesn&#8217;t fully support IE7 yet, there is enough support in their latest beta for testing code on &#8211; It pretty much loads up the IE7 rendering engine into an IE6 GUI, although there are still bugs, it should work well enough for testing.</p>
<p>Check out IEs4Linux <a href="http://www.tatanka.com.br/ies4linux/page/Main_Page" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kriswillis.com/index.php/2007/03/25/running-multiple-versions-of-msie-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
