<?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>The HyRax Macrocosm &#187; Jaunty</title>
	<atom:link href="http://www.serenux.com/tag/jaunty/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serenux.com</link>
	<description>Life, the Universe and Ubuntu.</description>
	<lastBuildDate>Mon, 21 Jun 2010 10:45:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>HowTo: Fix a missing eth0 adapter after moving Ubuntu Server from one box to another.</title>
		<link>http://www.serenux.com/2009/11/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another/</link>
		<comments>http://www.serenux.com/2009/11/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 01:49:06 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=642</guid>
		<description><![CDATA[Scenario: You have a box running Ubuntu Server. Something happens to the box and you decide to move the hard-drive to another physical machine to get the server back up and running. The hardware is identical on the other machine, so there shouldn&#8217;t be any issues at all, right? The machine starts up fine, but [...]]]></description>
			<content:encoded><![CDATA[<p>Scenario: You have a box running Ubuntu Server. Something happens to the box and you decide to move the hard-drive to another physical machine to get the server back up and running. The hardware is identical on the other machine, so there shouldn&#8217;t be any issues at all, right?</p>
<p>The machine starts up fine, but when you try and hit the network, you can&#8217;t. Closer inspection using the <em>ifconfig</em> command reveals that there is no &#8220;eth0&#8243; adapter configured. Why?</p>
<p>Here&#8217;s how to fix it.</p>
<p><span id="more-642"></span></p>
<p><img title="More..." src="http://www.serenux.com/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" />Ubuntu Server keeps tabs on the MAC address of the configured ethernet adapter. Unlike Ubuntu Desktop, you can&#8217;t simply change network cards willy nilly &#8211; while Ubuntu Server does detect and automatically setup new cards, it won&#8217;t automatically replace any adapter already configured as eth0 with another one, so you need to tell Ubuntu Server that you no longer need the old adapter.</p>
<p>This problem can also appear if you have a virtual machine such as one from Virtualbox, and you move or copy it from one host to another without ensuring that the MAC address configured for that VM&#8217;s ethernet adapter is 100% identical to the previous one.</p>
<p>These instructions were done with Ubuntu Server 9.04 Jaunty Jackalope in mind, but should apply to just about any release.</p>
<ol>
<li>Since you can&#8217;t SSH in, you will need to login directly on the Ubuntu Server console as an appropriate user with sudo rights.<br />
.</li>
<li>Once logged in, type in the following and hit Enter:
<pre><span style="color: #000080;">$ sudo nano /etc/udev/rules.d/70-persistent-net.rules</span></pre>
</li>
<li>You are now presented with the Nano text editor and some info that looks similar to the following:
<pre><span style="color: #000080;"># This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x1004 (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="0a:03:27:c2:b4:eb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"</span></pre>
</li>
<li>Delete the last two lines or simply comment out the SUBSYSTEM line on the end. This is a rule defining what MAC address should be explicitly assigned to &#8220;eth0&#8243;. Since you no longer have an ethernet card with the specified MAC address in this machine (it&#8217;s on the old PC, remember), Ubuntu Server effectively ignores your new ethernet adapter because its MAC address does not match the defined rule for &#8220;eth0&#8243;.<br />
.</li>
<li>Once you&#8217;ve made your changes, press CTRL + X and then Y and then Enter to save your changes.<br />
.</li>
<li>Now reboot your box with:
<pre><span style="color: #000080;">$ sudo reboot</span></pre>
</li>
<li>Upon reboot, Ubuntu Server will detect the &#8220;new&#8221; ethernet adapter in your PC and will automatically write a new rule into the <em>/etc/udev/rules.d/70-persistent-net.rules</em> file, thus enabling networking over eth0 for your server.<br />
.</li>
<li>To verify that the new adapter is working, type in:
<pre><span style="color: #000080;">$ ifconfig</span></pre>
<p>&#8230;and you should see eth0 now listed with your defined IP address.<br />
.</li>
<li>Test remote connectivity to the server and if all is well, then pat yourself on the back. You&#8217;re done.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/11/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo: Configure Ubuntu to be able to use and respond to NetBIOS hostname queries like Windows does</title>
		<link>http://www.serenux.com/2009/09/howto-configure-ubuntu-to-be-able-to-use-and-respond-to-netbios-hostname-queries-like-windows-does/</link>
		<comments>http://www.serenux.com/2009/09/howto-configure-ubuntu-to-be-able-to-use-and-respond-to-netbios-hostname-queries-like-windows-does/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 13:24:07 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=616</guid>
		<description><![CDATA[Users in the Windows world are very used to referencing PC&#8217;s via their NetBIOS names instead of their IP address. If your PC has a dynamic IP address (DHCP-assigned) of 192.168.0.12 and its hostname (computer name) is &#8220;gordon&#8221;, Windows users can happily jump into a command line or an Explorer window and ping the name [...]]]></description>
			<content:encoded><![CDATA[<p>Users in the Windows world are very used to referencing PC&#8217;s via their NetBIOS names instead of their IP address. If your PC has a dynamic IP address (DHCP-assigned) of 192.168.0.12 and its hostname (computer name) is &#8220;gordon&#8221;, Windows users can happily jump into a command line or an Explorer window and ping the name &#8220;gordon&#8221; which will magically resolve to 192.168.0.12.</p>
<p>If your host is not configured with a Hosts file entry on your local PC or a DNS entry to associate a name with an IP address, Ubuntu can only use the IP address of that PC to communicate with it which means you have to remember what that IP address is with your feeble grey-matter in your head. Likewise, Ubuntu will not respond to a Windows PC pinging its NetBIOS name because Ubuntu does not use NetBIOS at all by default and so it will ignore such requests.</p>
<p>So how do we get Ubuntu to resolve NetBIOS names like Windows? And how can we allow Windows to ping Ubuntu like another Windows PC? Read on&#8230;</p>
<p><span id="more-616"></span></p>
<p>Let&#8217;s illustrate the problem first. You&#8217;ll need a Windows PC on your network to test this. For this article, the Ubuntu PC will be called &#8220;gordon&#8221; and the Windows PC will be called &#8220;alyx&#8221;.</p>
<p>On either PC, if you open a terminal or Command Line window and ping the opposing machine, eg:</p>
<pre><span style="color: #000080;">$ ping alyx</span></pre>
<p>or</p>
<pre><span style="color: #000080;">C:\&gt; ping gordon</span></pre>
<p>You get an error stating that the host cannot be found. Now in the case of Windows, if you were to ping another Windows PC instead of an Ubuntu PC, you can ping its name with no problem.</p>
<p>Let&#8217;s sort this out, shall we?</p>
<p><span style="color: #0000ff;"><em><strong>Allowing Ubuntu to ping Windows NetBIOS names</strong></em></span></p>
<p>Ubuntu is setup for Linux use, not Windows use, so we need to install a package that will allow Ubuntu to more readily mix in with Windows networks and use NetBIOS. This package is called &#8220;winbind&#8221;.</p>
<ol>
<li>Open a terminal and type in the following at the terminal prompt:
<pre><span style="color: #000080;">$ sudo apt-get install winbind</span></pre>
</li>
<li>Once installed, we need to tell Ubuntu to use WINS (as provided by winbind) to resolve host names. Type in:
<pre><span style="color: #000080;">$ sudo gedit /etc/nsswitch.conf</span></pre>
<p>&#8230;which will open the file into the Gnome Editor.<br />
.</li>
<li>Scroll down to the line that starts with &#8220;hosts:&#8221;. In Ubuntu Jaunty, it looks similar to this:
<pre><span style="color: #000080;">hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4</span></pre>
</li>
<li>Add the word &#8220;wins&#8221; on the end of this line such that is now looks like:
<pre><span style="color: #000080;">hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4 wins</span></pre>
</li>
<li>Save and exit the editor.<br />
.</li>
<li>Now let&#8217;s ping the name of our Windows box again.
<pre><span style="color: #000080;">$ ping alyx</span></pre>
<p>&#8230;and it now resolves!<br />
.</li>
<li>Pat yourself on the back.</li>
</ol>
<p><span style="color: #0000ff;"><em><strong>Allowing Windows to ping Ubuntu NetBIOS names</strong></em></span></p>
<p>This is just one half of the equation. We now need to allow Windows to be able to ping Ubuntu PC&#8217;s using its NetBIOS name. This requires Ubuntu to recognise and respond to that request. We need to setup a server daemon to do this. In Ubuntu, this particular server daemon is called Samba.</p>
<ol>
<li>Installing Samba is simplicity itself. Open a terminal and type in:
<pre><span style="color: #000080;">$ sudo apt-get install samba</span></pre>
</li>
<li>Once that has finished, your Ubuntu PC will automagically respond to all NetBIOS queries for its hostname straight away, and that&#8217;s not just from Windows machines, but other Ubuntu machines (configured with the &#8220;winbind&#8221; package) as well.<br />
.</li>
<li>Pat yourself on the back again. <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/09/howto-configure-ubuntu-to-be-able-to-use-and-respond-to-netbios-hostname-queries-like-windows-does/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Deal with BD+ copy protection when ripping Blu-ray titles using Ubuntu</title>
		<link>http://www.serenux.com/2009/09/howto-deal-with-bd-copy-protection-when-ripping-blu-ray-titles-using-ubuntu/</link>
		<comments>http://www.serenux.com/2009/09/howto-deal-with-bd-copy-protection-when-ripping-blu-ray-titles-using-ubuntu/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 23:18:25 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Blu-ray]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[High-Definition]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[LG]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=568</guid>
		<description><![CDATA[A fair while back now, I wrote an article detailing how to decode Blu-ray titles using Ubuntu and an LG GGC-H20L Blu-ray optical drive. This article detailed how to decrypt just about every movie under the sun except for a newer type of protection called &#8220;BD+&#8221; which I never got around to supplementing my original [...]]]></description>
			<content:encoded><![CDATA[<p>A fair while back now, I wrote an article detailing <a title="HowTo: Rip a Blu-ray movie using an LG GGC-H20L Blu-ray drive with Ubuntu" href="http://www.serenux.com/2009/01/howto-rip-a-blu-ray-movie-using-an-lg-ggc-h20l-blu-ray-drive-with-ubuntu/" target="_blank">how to decode Blu-ray titles using Ubuntu and an LG GGC-H20L Blu-ray optical drive</a>.</p>
<p>This article detailed how to decrypt just about every movie under the sun except for a newer type of protection called &#8220;BD+&#8221; which I never got around to supplementing my original article with.</p>
<p>What is &#8220;BD+&#8221; protection? Well in short, it&#8217;s the deliberate corruption of random parts of the video track of the movie (well, OK &#8211; that is a highly simplified definition as BD+ protection can do a lot more than that, but the end result is the same &#8211; to prevent unauthorised playback which includes ripping). The idea BD+ is that when you rip the title, you can still watch the movie, but with some or all of the screen corrupt at various stages in the movie which well and truely ruins the movie-watching experience, especially since you paid good money for it and should not be forced to buy a dedicated consumer Blu-ray player when you&#8217;ve got a perfectly good PC that can do the same task.</p>
<p>But hang on, if the movie is deliberately corrupt, then how come it plays fine in a stand-alone consumer Blu-ray player or PlayStation3 console?</p>
<p>Well, let me tell you about that and how to get around it yourself.</p>
<p><span id="more-568"></span>I have to give credit to the movie studios for this one. It&#8217;s a simple, and annoying, method of protection. But as with anything, it was eventually reverse-engineered and broken, and neat little tools were developed to allow us consumer types to backup, or watch in our preferred way, our movies bought with our hard-earned cash.</p>
<p>So what&#8217;s this BD+ thing all about? Basically after the movie is mastered and just before being pressed to discs, an extra step is taken where by random parts of the movie data stream are deliberately exchanged with random data or removed altogether, thus corrupting the video stream. A record is kept, however, of what parts of the movie have been changed &#8211; a table listing where, when and what data needs to be put back into the movie stream in order to watch the movie back in its original uncorrupted format. This table is called a &#8220;conversion table&#8221;, and it is processed by your Blu-ray player while you watch the movie, with the correct data substituted back into the video stream before the image hits your screen, thus resulting in a proper uncorrupted picture.</p>
<p style="text-align: center;">
<div id="attachment_575" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/BDCorruptStream.jpg"><img class="size-medium wp-image-575" title="BD Corrupt Stream" src="http://www.serenux.com/wp-content/uploads/2009/09/BDCorruptStream-300x168.jpg" alt="An example of a corrupted video stream. Click for full size." width="300" height="168" /></a><p class="wp-caption-text">An example of a corrupted video stream showing the BD+ Protection in full effect. Click for full size.</p></div>
<div id="attachment_576" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/BDNotCorruptStream.jpg"><img class="size-medium wp-image-576" title="BD Not Corrupt Stream" src="http://www.serenux.com/wp-content/uploads/2009/09/BDNotCorruptStream-300x168.jpg" alt="An example of the repaired video stream. Click for full size." width="300" height="168" /></a><p class="wp-caption-text">An example of the repaired video stream using the Conversion Table. Click for full size.</p></div>
<p>So how do we get around BD+? Well, all we have to do is follow this conversion table ourselves and correct the corrupted data as the title is decrypted.</p>
<p>As I showed in my previous article, the DumpHD application is brilliant and it has been extended by the author KenD00 to allow the &#8220;plugging in&#8221; of another program called the &#8220;BD VM Debugger&#8221;. What this program does is simple &#8211; it executes the Java Virtual Machine that runs the conversion table in concert with the normal decrypting process which happens when the disc is played in your normal BD player, patching up the stream as it goes. The end result is a clean decryption with no corrupt video stream.</p>
<p>This tutorial was written using Ubuntu Jaunty but should work with Intrepid and should definitely work with Karmic and beyond as well.</p>
<p><em>DISCLAIMER: This article describes decrypting BD titles using an Intel or AMD based PC with Ubuntu Linux. At this time of writing you <strong>cannot</strong> use Ubuntu installed on a PlayStation3 console to deal with BD+ copy protection because the BD VM Debugger and AACS Keys applications are not available for the PPC processor used by the PS3.</em></p>
<p>So let&#8217;s set this up, but first &#8211; since my last article, <a title="The DumpHD homepage on the Doom9 forums" href="http://forum.doom9.org/showthread.php?t=123111" target="_blank">DumpHD</a> has been updated to 0.61 so let&#8217;s upgrade this first. <a title="Download the DumpHD app" href="http://rapidshare.com/files/240557737/dumphd-0.61.tar.gz" target="_blank">Go and download yourself a copy</a>.</p>
<ol>
<li>Extract the archive out by either double-clicking on it or via the terminal. You should get a &#8220;dumphd-0.61&#8243; directory.<br />
.</li>
<li>If you are upgrading from an older version of DumpHD, copy over the &#8220;KEYDB.cfg&#8221; file, overwriting the archive copy. No point losing your collection of keys accumulated thus far. <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
.</li>
<li>You&#8217;re done for this bit.</li>
</ol>
<p>The AACSKeys program (which extracts the decryption key for the Blu-ray title and can automatically update your &#8220;KEYDB.cfg&#8221; file for you when you insert a new Blu-ray title) has also been updated to 0.4.0c since my last article, so <a title="Download the AACSKeys app" href="http://rapidshare.com/files/273476005/aacskeys-0.4.0c.tar.gz" target="_blank">go download yourself a copy of that as well</a>.</p>
<ol>
<li>Extract the archive out by either double-clicking on it or via a terminal. You should get a &#8220;aacskeys-0.4.0c&#8221;.<br />
.</li>
<li>Copy the &#8220;ProcessingDeviceKeysSimple.txt&#8221; and &#8220;HostKeyCertificate.txt&#8221; into the &#8220;dumphd-0.61&#8243; directory.<br />
.</li>
<li>Copy over the &#8220;libaacskeys.so&#8221; file located in the &#8220;/lib/linux32/&#8221; OR &#8220;/lib/linux64/&#8221; directories (depending on which architecture you&#8217;re using) to the &#8220;dumphd-0.61&#8243; directory. Do NOT copy or create the &#8220;/lib/linux32&#8243; or &#8220;/lib/linux64&#8243; directories themselves. Copy the library file only.<br />
.</li>
<li>You&#8217;re done for this bit.</li>
</ol>
<p>Right, let&#8217;s get the BD VM Debugger installed. As of this writing, the current version is 0.1.5. <a title="Download the BD VM Debugger" href="http://uploaded.to/?id=xcco6l" target="_blank">Go and download yourself a copy</a>.</p>
<ol>
<li>This archive is provided as a 7zip file. Ubuntu does not have out-of-the-box support for this archive format, so install it first with:
<pre><span style="color: #000080;">$ sudo apt-get install p7zip-full</span></pre>
<p>.</li>
<li>Once installed, extract the archive either by double-clicking on it like any normal archive, or via the terminal as follows:
<pre><span style="color: #000080;">$ 7z e bdvmdbg-0.1.5.7z</span></pre>
<p>.</li>
<li>Copy over the everything into the &#8220;dumphd-0.61&#8243; directory except the &#8220;changelog.txt&#8221;, &#8220;readme.txt&#8221; and &#8220;debugger.sh&#8221; files since you don&#8217;t really need them, but there&#8217;s no harm copying them anyway.<br />
.</li>
<li>That&#8217;s it!</li>
</ol>
<p>You should now have a total of at least of 17 files and two directories inside the &#8220;dumphd-0.61&#8243; directory (if you are setting up these tools for the first time, you will only have 15 files instead, as two of them  &#8211; <em>conv_tab.bin</em> &amp; <em>hash_db.bin</em> &#8211; are generated by DumpHD in conjunction with the BD VM Debugger).</p>
<p style="text-align: center;">
<div id="attachment_579" class="wp-caption aligncenter" style="width: 404px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/DumpHD061Folder.jpg"><img class="size-full wp-image-579" title="DumpHD-0.61 Folder" src="http://www.serenux.com/wp-content/uploads/2009/09/DumpHD061Folder.jpg" alt="The prepared DumpHD folder with the tools we need. Click for full size." width="394" height="359" /></a><p class="wp-caption-text">The prepared DumpHD folder with the tools we need. Click for full size.</p></div>
<p>Now let&#8217;s try decrypting a BD+ protected Blu-ray title. In this example, I will use the Australian release of &#8220;Day Watch&#8221;, the sequel to the Russian epic &#8220;Night Watch&#8221;.</p>
<p style="text-align: center;">
<div id="attachment_574" class="wp-caption aligncenter" style="width: 378px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/DayWatchBox.jpg"><img class="size-large wp-image-574" title="Day Watch Blu-ray Title" src="http://www.serenux.com/wp-content/uploads/2009/09/DayWatchBox-1024x768.jpg" alt="The BD+ Protected &quot;Day Watch&quot; Blu-ray title I am ripping. Click for full size." width="368" height="277" /></a><p class="wp-caption-text">The BD+ Protected &quot;Day Watch&quot; Blu-ray title I am ripping. Click for full size.</p></div>
<p><em>NOTE: Your ability to decrypt a given Blu-ray title, BD+ protected or not, will ultimately depend on the MKB version of the disc. As of this writing, DumpHD can only decrypt up to MKB version 10. Newer discs using version 11 or later can only be decrypted once suitable decryption keys are uncovered and added to the &#8220;ProcessingDeviceKeysSimple.txt&#8221; file in the &#8220;dumphd-0.61&#8243; directory.</em></p>
<p><em>The obtaining of the decryption key of the Blu-ray title also requires the player authentication mechanism of your Blu-ray drive to be bypassed, or through use of a drive that deliberately does not have this feature such as some imported drives from China. In the case of my LG GGC-H20L drive, I used a <a title="My first review of ripping a Blu-ray title with this drive contains information about applying modified firmware." href="http://www.serenux.com/2009/01/howto-rip-a-blu-ray-movie-using-an-lg-ggc-h20l-blu-ray-drive-with-ubuntu/" target="_blank">modified firmware</a> so that the drive always gave up the disc&#8217;s decryption key regardless of what player certificate I used &#8211; blacklisted or not.</em></p>
<ol>
<li>Start the DumpHD program by double-clicking on the &#8220;dumphd.sh&#8221; icon. You will be asked if you want to run the script file. Click on the &#8220;Run&#8221; button.<br />
.</p>
<div id="attachment_583" class="wp-caption aligncenter" style="width: 312px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/StartingDumpHD.jpg"><img class="size-full wp-image-583" title="Starting DumpHD" src="http://www.serenux.com/wp-content/uploads/2009/09/StartingDumpHD.jpg" alt="Starting DumpHD" width="302" height="110" /></a><p class="wp-caption-text">Starting the DumpHD application. Click for full size.</p></div></li>
<li>When the DumpHD GUI appears, make a note of the messages in the bottom pane to ensure that AACSKeys and the BD VM Debugger was found and loaded OK. You should see the following information:
<pre><span style="color: #000080;">DumpHD 0.61 by KenD00

Opening Key Data File... OK
Initializing AACS... OK
Loading aacskeys library... OK
aacskeys library 0.4.0 by arnezami, KenD00
Loading BDVM... OK
BDVM 0.1.5</span></pre>
<p><div id="attachment_582" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/DumpHDStarted.jpg"><img class="size-full wp-image-582" title="DumpHD Started" src="http://www.serenux.com/wp-content/uploads/2009/09/DumpHDStarted.jpg" alt="DumpHD Started" width="480" height="360" /></a><p class="wp-caption-text">The DumpHD Interface. Click for full size.</p></div>
<p style="text-align: center;">.</p>
</li>
<li>Insert the Blu-ray title into your Blu-ray drive.<br />
.</li>
<li>Next to the &#8220;Source&#8221; section at the top-right of the DumpHD window is a &#8220;Browse&#8221; button. Click on it.<br />
.</li>
<li>Navigate to the path of your Blu-ray drive (generally &#8220;/media/cdrom&#8221; will work fine). and hit the OK button.
<div id="attachment_580" class="wp-caption aligncenter" style="width: 272px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/DumpHDBrowseSource.jpg"><img class="size-full wp-image-580" title="DumpHD Browse Source" src="http://www.serenux.com/wp-content/uploads/2009/09/DumpHDBrowseSource.jpg" alt="DumpHD Browse Source" width="262" height="271" /></a><p class="wp-caption-text">Choosing a source to rip from. Click for full size.</p></div></li>
<li>DumpHD will read the disc and will pass it through AACSKeys to identify the title&#8217;s descryption key. If it is successful, it will output some data about the disc in the lower pane. In the case of my <em>Day Watch</em> title, it shows the following:
<pre><span style="color: #000080;">Initializing source...
Disc type found: Blu-Ray BDMV
Collecting input files...
Source initialized
Identifying disc... OK
DiscID : 73886D08811073F45AD8C75012689097E17EBD3C
Searching disc in key database...
Disc found in key database</span></pre>
<p><div id="attachment_581" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/DumpHDDiscIdentified.jpg"><img class="size-full wp-image-581" title="DumpHD Disc Identified" src="http://www.serenux.com/wp-content/uploads/2009/09/DumpHDDiscIdentified.jpg" alt="DumpHD Disc Identified" width="480" height="360" /></a><p class="wp-caption-text">Identifying the disc and getting the decryption keys to rip with. Click for full size.</p></div>
<p style="text-align: center;">.</p>
</li>
<li>This is good. We can decrypt this. If the title is not one you have ripped before, you have the option to click on the &#8220;Title&#8221; button at the top-left of the DumpHD window to give the movie a name in your Key Database.<br />
.</li>
<li>In the &#8220;Destination&#8221; section on the right, click on the &#8220;Browse&#8221; button.<br />
.</li>
<li>Choose a place to dump the decrypted disc to. Note that most titles will dump at least 20GB worth of data and in some cases 50GB. Ensure that you have enough hard-drive space in the location you choose to dump to.<br />
.</li>
<li>We&#8217;re ready to rock and/or roll. Click on the &#8220;Dump&#8221; button and decryption will begin, automatically executing the BD VM and applying the Conversion Table to correct the deliberate corruption in the video stream. Here&#8217;s a small extract of what you will see in the lower pane of the DumpHD window:
<pre><span style="color: #000080;">AACS data processed
Initializing the BDVM... OK
Executing the BDVM... OK
Parsing the Conversion Table... OK
Processing: BDMV/BACKUP/CLIPINF/00000.clpi
Processing: BDMV/BACKUP/CLIPINF/00001.clpi
Processing: BDMV/BACKUP/CLIPINF/00002.clpi
etc...</span></pre>
<div id="attachment_578" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/BDRipStart.jpg"><img class="size-full wp-image-578" title="BD Rip Start" src="http://www.serenux.com/wp-content/uploads/2009/09/BDRipStart.jpg" alt="BD Rip Start" width="480" height="341" /></a><p class="wp-caption-text">Beginning the ripping process. Click for full size.</p></div>
<p style="text-align: center;">.</p>
</li>
<li>And after awhile it will finish with something like:
<pre><span style="color: #000080;">Processing: BDMV/STREAM/00211.m2ts
Searching CPS Unit Key... #1
0x0000000000 Decryption enabled
Processing: BDMV/STREAM/00212.m2ts
Searching CPS Unit Key... #1
0x0000000000 Decryption enabled
Processing: BDMV/index.bdmv
Disc set processed</span></pre>
<div id="attachment_577" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.serenux.com/wp-content/uploads/2009/09/BDRipDone.jpg"><img class="size-full wp-image-577" title="BD Rip Done" src="http://www.serenux.com/wp-content/uploads/2009/09/BDRipDone.jpg" alt="BD Rip Done" width="480" height="341" /></a><p class="wp-caption-text">Finished decrypting the Blu-ray title. Click for full size.</p></div>
<p style="text-align: center;">.</p>
</li>
<li>That&#8217;s it! You&#8217;ve successfully decrypted the disc and fixed up the corrupted video track. Identify and playback the actual movie M2TS file using a player like MPlayer or VLC, and you should now find that it contains no corruption whatsoever. In the case of <em>Day Watch</em>, the movie file was under <em>BDMV/STREAM/00012.m2ts</em> identifiable simply because it was the largest file in the directory. Using MPlayer, you can play this file with:
<pre><span style="color: #000080;">$ mplayer -fs BDMV/STREAM/00012.mt2s</span></pre>
<p>Thankfully this title does not have the movie broken up into multiple files (I&#8217;ll be writing another article soon showing you how to deal with multi-part movies).</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/09/howto-deal-with-bd-copy-protection-when-ripping-blu-ray-titles-using-ubuntu/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>HowTo: Pair your Bluetooth mobile phone with Ubuntu Jaunty for file transfers etc.</title>
		<link>http://www.serenux.com/2009/08/howto-pair-your-bluetooth-mobile-phone-with-ubuntu-jaunty-for-file-transfers-etc/</link>
		<comments>http://www.serenux.com/2009/08/howto-pair-your-bluetooth-mobile-phone-with-ubuntu-jaunty-for-file-transfers-etc/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 01:53:19 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=556</guid>
		<description><![CDATA[Following up my previous article of how to pair your Bluetooth mobile phone with Ubuntu Intrepid, I present this updated article for pairing your mobile phone using the updated version of the Bluez Bluetooth stack and the newer and better Blueman applet for Jaunty which greatly simplifies the process of pairing Bluetooth devices and transferring [...]]]></description>
			<content:encoded><![CDATA[<p>Following up my <a title="HowTo: Pair your Bluetooth mobile phone with Ubuntu Intrepid for file transfers, etc." href="http://www.serenux.com/2008/12/howto-pair-your-bluetooth-mobile-phone-with-ubuntu-intrepid-for-file-transfers-etc/" target="_blank">previous article of how to pair your Bluetooth mobile phone with Ubuntu Intrepid</a>, I present this updated article for pairing your mobile phone using the updated version of the Bluez Bluetooth stack and the newer and better Blueman applet for Jaunty which greatly simplifies the process of pairing Bluetooth devices and transferring files to your mobile phone.</p>
<p><span id="more-556"></span>First up, you need to follow the first 15 steps of my guide on <a title="HowTo: Setup a Nokia N95 as a Mobile Broadband Device in Ubuntu Jaunty" href="http://www.serenux.com/2009/08/howto-setup-your-nokia-n95-mobile-phone-as-a-mobile-broadband-device-via-bluetooth-in-ubuntu-jaunty/" target="_blank">how to seutp a Nokia N95 mobile phone as a Mobile Broadband Device</a> because we need to update the version of the Bluez Bluetooth stack and pair your mobile phone. Once you get to step 15 where it asks about connecting the phone as a dial-up networking device, you can either choose to continue setting that up all the way through to Step 22 (after all, you might find DUN to be of genuine use to you if you&#8217;re a Mobile Internet kind of guy), or choose &#8220;Don&#8217;t connect&#8221; instead and just finish at Step 15 and continue on with this article.</p>
<p>Once you&#8217;re Bluetooth stack is updated and your mobile phone is paired, transfrerring files is simplicity itself:</p>
<ol>
<li>Do a left-mouse click on the Bluetooth icon in your system tray. The Bluetooth Devices window will appear showing you your available or previously paired devices. Your mobile phone will be one of them.<br />
.<br />
<img class="aligncenter size-full wp-image-540" title="BTApplet" src="http://www.serenux.com/wp-content/uploads/2009/08/BTApplet.jpg" alt="BTApplet" width="265" height="62" />.</li>
<li>Do a right-mouse click on your mobile phone and choose &#8220;Browse&#8221; from the menu that appears (or select the mobile phone with the left-mouse button and then click on the &#8220;Browse&#8221; button in the toolbar).<br />
.<br />
<img class="aligncenter size-full wp-image-558" title="BTDevicesBrowseDevice" src="http://www.serenux.com/wp-content/uploads/2009/08/BTDevicesBrowseDevice.jpg" alt="BTDevicesBrowseDevice" width="512" height="392" />.<br />
<em>NOTE: If you get a &#8220;Could not display &#8216;obex://[xx:xx:xx:xx:xx:xx]/&#8217;.&#8221; error when trying to browse, it means that the Bluetooth connection has not re-established itself between your PC and your phone after a previous pairing (ie: &#8220;Host is down&#8221;). To fix this, click on the &#8220;Search&#8221; button in the toolbar which will &#8220;awaken&#8221; your phone&#8217;s Bluetooth awareness and then choose &#8220;Browse device&#8221; again. You should also set your PC and phone to be &#8220;trusted&#8221; or &#8220;authorised&#8221; on both sides to prevent timeouts caused by either end asking you for permission to establish the connection.</em><br />
.</li>
<li>If your PC is setup as being &#8220;trusted&#8221; or &#8220;authorised&#8221; on your phone, within a second or so a Nautilus window should appear showing you the content of your mobile phone, or in the case of my Nokia N95, two Windows-like folders named &#8220;C:&#8221; and &#8220;E:&#8221; which represent the phone&#8217;s internal memory and my 8GB SD card in the phone. You can browse them like any ordinary folders including copying and pasting files. An icon for the phone will also appear on the desktop (I&#8217;m using a custom icon here).<br />
.<br />
<img class="aligncenter size-full wp-image-560" title="BrowsingNokiaN95viaBluetooth" src="http://www.serenux.com/wp-content/uploads/2009/08/BrowsingNokiaN95viaBluetooth.jpg" alt="BrowsingNokiaN95viaBluetooth" width="733" height="465" />.</li>
<li>When you have finished dealing with the files on your phone, you need to cleanly disconnect the phone and end the Bluetooth session. You can do this one of two ways. Either click on the &#8220;Eject&#8221; triangle icon next to your phone&#8217;s name in the Places list of the Nautilus window, or in the Bluetooth Devices window, do a right-mouse click and choose &#8220;Disconnect Device&#8221; from the menu.<br />
.<br />
<img class="aligncenter size-full wp-image-565" title="BTDevicesDisconnectFromPhone" src="http://www.serenux.com/wp-content/uploads/2009/08/BTDevicesDisconnectFromPhone.jpg" alt="BTDevicesDisconnectFromPhone" width="514" height="392" />.</li>
<li>That&#8217;s it! Happy file transfers! <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/08/howto-pair-your-bluetooth-mobile-phone-with-ubuntu-jaunty-for-file-transfers-etc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HowTo: Setup your Nokia N95 mobile phone as a Mobile Broadband Device via Bluetooth in Ubuntu Jaunty</title>
		<link>http://www.serenux.com/2009/08/howto-setup-your-nokia-n95-mobile-phone-as-a-mobile-broadband-device-via-bluetooth-in-ubuntu-jaunty/</link>
		<comments>http://www.serenux.com/2009/08/howto-setup-your-nokia-n95-mobile-phone-as-a-mobile-broadband-device-via-bluetooth-in-ubuntu-jaunty/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 12:54:10 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[Broadband]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=546</guid>
		<description><![CDATA[Following up my article of how to setup a Nokia N95 as a mobile broadband device using a USB cable, we&#8217;ve been waiting for the Network Manager and/or Bluetooth stack to be updated so we could do the same thing via Bluetooth &#8211; damn those pesky cables to hell! Well, it&#8217;s finally happened. While Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>Following up my article of <a title="HowTo: Setup a Nokia N95 as a Broadband Device in Ubuntu Intrepid (via a USB cable)" href="http://www.serenux.com/2008/11/howto-setup-your-nokia-n95-mobile-phone-as-a-mobile-broadband-device-in-ubuntu-intrepid/" target="_blank">how to setup a Nokia N95 as a mobile broadband device using a USB cable</a>, we&#8217;ve been waiting for the Network Manager and/or Bluetooth stack to be updated so we could do the same thing via Bluetooth &#8211; damn those pesky cables to hell!</p>
<p>Well, it&#8217;s finally happened. While Ubuntu itself hasn&#8217;t been updated yet, the Bluetooth package that Ubuntu uses has been updated by the parent Blueman Project.</p>
<p>So here&#8217;s a guide on how to update your Ubuntu Jaunty installation to the latest version of the Bluez Bluetooth stack, pair your Nokia N95 and how to setup a Broadband connection to go through it.</p>
<p><span id="more-546"></span>If you&#8217;ve already updated your Bluetooth stack to the latest and greatest version, then you can immediately skip to Step 10.</p>
<p><img title="More..." src="http://www.serenux.com/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>
<ol>
<li>First we need to add the Blueman Project&#8217;s PPA to your Ubuntu Jaunty installation. Open a terminal and type in:
<pre><span style="color: #000080;">$ sudo gedit /etc/apt/sources.list.d/blueman.list</span></pre>
</li>
<li>You will be presented with a blank text editor. Type or copy &amp; paste the following lines in:
<pre><span style="color: #000080;">deb http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main</span></pre>
</li>
<li>Save your changes and exit the editor.<br />
.</li>
<li>Now update your package lists with:
<pre><span style="color: #000080;">$ sudo apt-get update</span></pre>
</li>
<li>At the end you will see a NO_PUBKEY error because your setup does not yet have the GPG key for the Blueman repository to authenticate the packages with. To fix this, import the key with:
<pre><span style="color: #000080;">$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B15AB91951DC1E2</span></pre>
</li>
<li>Update your package lists again as per Step 4 and you should find the NO_PUBKEY error is gone now.<br />
.</li>
<li>By now your system is probably prompting you that there are updates to the Bluetooth stack available to install. We may as well stay at the terminal and do the updates there:
<pre><span style="color: #000080;">$ sudo apt-get upgrade</span></pre>
</li>
<li>Once that completes, the Bluetooth stack is now up to date, but we now need to install the Blueman applet to replace the Gnome version of it:
<pre><span style="color: #000080;">$ sudo apt-get install blueman</span></pre>
<p>(this will automatically uninstall the <em>bluez-gnome</em> package as we don&#8217;t want it anymore)</li>
<li>Once that completes, logout and log back in again so that the new applet loads up to replace the old one.<br />
.</li>
<li>Do a right-mouse-click on the Bluetooth icon in your system tray and choose &#8220;Setup new device&#8221; from the menu that appears. The Bloetooth Assistant Wizard will appear.<br />
.<br />
<img class="aligncenter size-full wp-image-540" title="BTApplet" src="http://www.serenux.com/wp-content/uploads/2009/08/BTApplet.jpg" alt="BTApplet" width="265" height="62" />.</li>
<li>At the welcome page, click the &#8220;Next&#8221; button.<br />
.</li>
<li>You are shown a list of detected Bluetooth devices which should include your Nokia N95 and any other nearby Bluetooth devices. Choose your Nokia N95 from the list and then click on the Forward button.<br />
.<br />
<img class="aligncenter size-full wp-image-547" title="ChooseBTDeviceToPair" src="http://www.serenux.com/wp-content/uploads/2009/08/ChooseBTDeviceToPair.jpg" alt="ChooseBTDeviceToPair" width="388" height="455" />.</li>
<li>You are then asked how to do the pairing. Choose to &#8220;Use a Random Passkey&#8221; and then click the Forward button.<br />
.<br />
<img class="aligncenter size-full wp-image-551" title="GeneratePINNumber" src="http://www.serenux.com/wp-content/uploads/2009/08/GeneratePINNumber.jpg" alt="GeneratePINNumber" width="388" height="455" />.</li>
<li>You will be shown a generated PIN number and your Nokia N95 will prompt you for it. Type the number into your phone and click OK on the phone.<br />
.<br />
<img class="aligncenter size-full wp-image-550" title="EnterPINNumber" src="http://www.serenux.com/wp-content/uploads/2009/08/EnterPINNumber.jpg" alt="EnterPINNumber" width="388" height="455" />.</li>
<li>When your phone accepts the PIN, the Wizard will then ask you how you want to treat the device as. Choose &#8220;Dialup Networking (DUN)&#8221; and then click the Forward button.<br />
.<br />
<img class="aligncenter size-full wp-image-548" title="ChooseConnectionType" src="http://www.serenux.com/wp-content/uploads/2009/08/ChooseConnectionType.jpg" alt="ChooseConnectionType" width="388" height="455" />.</li>
<li>After a brief delay, you will be prompted for your password so a DUN adapter can be setup. Type it in and hit Enter or OK.<br />
.</li>
<li>When the connection has finished, you will be told that the device was added and connected as a DUN unit successfully.<br />
.<br />
<img class="aligncenter size-full wp-image-549" title="ConnectedSuccessfully" src="http://www.serenux.com/wp-content/uploads/2009/08/ConnectedSuccessfully.jpg" alt="ConnectedSuccessfully" width="388" height="455" />.</li>
<li>Within a couple of seconds of finishing, if you haven&#8217;t already got a Broadband Connection setup in the Network Manager, the &#8220;New Mobile Broadband Connection&#8221; wizard will appear. This part is really straight-forward, so I haven&#8217;t bothered doing any screenshots for it. Click on the Forward button.<br />
.</li>
<li>Choose your Country and Provider from the list shown, then click the Forward button.<br />
.</li>
<li>Finally, in the Summary, you are given the option to provide a custom name for the Broadband connection. When you&#8217;re happy, click the Apply button. The Wizard will finish and close.<br />
.</li>
<li>You can now do a left-mouse click on your Network icon in the system tray and you will see your chosen Provider&#8217;s name (or custom name if you chose something else) listed in the menu.<br />
.</li>
<li>Choose your provider name from the menu and after a brief moment, you will be connected!</li>
</ol>
<p>Happy surfing! <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/08/howto-setup-your-nokia-n95-mobile-phone-as-a-mobile-broadband-device-via-bluetooth-in-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>HowTo: Get a Microsoft Bluetooth Notebook 5000 mouse working under Ubuntu Jaunty.</title>
		<link>http://www.serenux.com/2009/08/howto-get-a-microsoft-bluetooth-notebook-5000-mouse-working-under-ubuntu-jaunty/</link>
		<comments>http://www.serenux.com/2009/08/howto-get-a-microsoft-bluetooth-notebook-5000-mouse-working-under-ubuntu-jaunty/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 10:49:04 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=533</guid>
		<description><![CDATA[The Microsoft Bluetooth Notebook 5000 mouse is an affordable, compact mouse that worked really well under Ubuntu up until Jaunty 9.04 when the Bluetooth stack changed so drastically that the mouse would not pair or work anymore. While the Ubuntu-provided Bluetooth stack has not been updated to correct this problem yet, the Blueman Project that [...]]]></description>
			<content:encoded><![CDATA[<p>The <a title="Mini-Review: The Microsoft Bluetooth Notebook 5000 mouse" href="http://www.serenux.com/2008/12/mini-review-microsoft-bluetooth-notebook-mouse-5000/" target="_blank">Microsoft Bluetooth Notebook 5000 mouse</a> is an affordable, compact mouse that worked really well under Ubuntu up until Jaunty 9.04 when the Bluetooth stack changed so drastically that the mouse would not pair or work anymore.</p>
<p>While the Ubuntu-provided Bluetooth stack has not been updated to correct this problem yet, the Blueman Project that Ubuntu uses keeps marching on in development and the latest version of of the Bluez stack and Blueman applet finally corrects this problem.</p>
<p>Here&#8217;s how to employ it on your own setup.</p>
<p><span id="more-533"></span></p>
<p><strong><em>EDIT October 2009: I have tested and found that the Microsoft Bluetooth Notebook 5000 mouse pairs and resumes successfully with the Ubuntu 9.10 Karmic Koala Beta release without any changes or upgrades required to the Bluetooth software. This HowTo therefore only applies to Ubuntu 9.04 Jaunty Jackalope.</em></strong></p>
<ol>
<li>First we need to add the Blueman Project&#8217;s PPA to your Ubuntu Jaunty installation. Open a terminal and type in:
<pre><span style="color: #000080;">$ sudo gedit /etc/apt/sources.list.d/blueman.list</span></pre>
</li>
<li>You will be presented with a blank text editor. Type or copy &amp; paste the following lines in:
<pre><span style="color: #000080;">deb http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main</span></pre>
</li>
<li>Save your changes and exit the editor.<br />
.</li>
<li>Now update your package lists with:
<pre><span style="color: #000080;">$ sudo apt-get update</span></pre>
</li>
<li>At the end you will see a NO_PUBKEY error because your setup does not yet have the GPG key for the Blueman repository to authenticate the packages with. To fix this, import the key with:
<pre><span style="color: #000080;">$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B15AB91951DC1E2</span></pre>
</li>
<li>Update your package lists again as per Step 4 and you should find the NO_PUBKEY error is gone now.<br />
.</li>
<li>By now your system is probably prompting you that there are updates to the Bluetooth stack available to install. We may as well stay at the terminal and do the updates there:
<pre><span style="color: #000080;">$ sudo apt-get upgrade</span></pre>
</li>
<li>Once that completes, the Bluetooth stack is now up to date, but we now need to install the Blueman applet to replace the Gnome version of it:
<pre><span style="color: #000080;">$ sudo apt-get install blueman</span></pre>
<p>(this will automatically uninstall the <em>bluez-gnome</em> package as we don&#8217;t want it anymore)</li>
<li>Once that completes, logout and log back in again so that the new applet loads up to replace the old one.<br />
.</li>
<li>Now, switch the mouse into paring mode by holding down the pairing button on the base of the mouse until the LED on top of the mouse starts to alternate between red and green illumination.<br />
.</li>
<li>Now do a left-click on the Bluetooth icon in the system tray. The Bluetooth Devices window should appear. Within a few seconds of that window opening, you should see your mouse and any other nearby Bluetooth devices listed in the window.<br />
.</p>
<p><img class="aligncenter size-full wp-image-540" title="BTApplet" src="http://www.serenux.com/wp-content/uploads/2009/08/BTApplet.jpg" alt="BTApplet" width="265" height="62" /><br />
<img class="aligncenter size-full wp-image-539" title="BTDevicesNotPairedYet" src="http://www.serenux.com/wp-content/uploads/2009/08/BTDevicesNotPairedYet.jpg" alt="BTDevicesNotPairedYet" width="502" height="382" />.</li>
<li>Do a right-mouse click on the Microsoft Mouse entry and choose &#8220;Bond&#8221; (or ensure the Microsoft Mouse entry is selected and click on the &#8220;Bond&#8221; button in the toolbar).<br />
.<img class="aligncenter size-full wp-image-535" title="BTDevicesBeginBonding" src="http://www.serenux.com/wp-content/uploads/2009/08/BTDevicesBeginBonding.jpg" alt="BTDevicesBeginBonding" width="512" height="392" /><br />
.</li>
<li>You will be prompted for the PIN number of the mouse. Like most accessory items, this is just &#8220;0000&#8243;, so type that in and hit Enter, or press OK.<br />
.</p>
<p><img class="aligncenter size-full wp-image-538" title="BTDevicesEnterPIN" src="http://www.serenux.com/wp-content/uploads/2009/08/BTDevicesEnterPIN.jpg" alt="BTDevicesEnterPIN" width="388" height="251" /><br />
.</li>
<li>Once the mouse is bonded, you will see some signal coloured bars appear next to the Microsoft Mouse entry in the Bluetooth Devices window (which represent the Received Signal Strength, Link Quality and the Transmit Power Level). But you can&#8217;t use the mouse just yet.<br />
.</p>
<p><img class="aligncenter size-full wp-image-536" title="BTDevicesBondedMouse" src="http://www.serenux.com/wp-content/uploads/2009/08/BTDevicesBondedMouse.jpg" alt="BTDevicesBondedMouse" width="502" height="382" /><br />
.</li>
<li>Click on the &#8220;Trust&#8221; button in the toolbar. This will allow your mouse to reconnect without prompting you for permission when you turn it off and back on again (or when you reboot).<br />
.</li>
<li>Now do a right-mouse click on the Microsoft Mouse entry again and choose &#8220;Connect to Input Service&#8221; (or click on the &#8220;Setup&#8221; button in the toolbar and follow the Wizard). After a brief delay, you should now find that your mouse now moves the mouse pointer!<br />
.<br />
<img class="aligncenter size-full wp-image-537" title="BTDevicesConnectInputService" src="http://www.serenux.com/wp-content/uploads/2009/08/BTDevicesConnectInputService.jpg" alt="BTDevicesConnectInputService" width="512" height="392" /><br />
.</li>
<li>You can now close the Bluetooth Devices window. Pat yourself on the back. You&#8217;re done.</li>
</ol>
<p>Your mouse should automatically reconnect upon reboot, PC or Mouse power saving events (such as suspend), and if you turn on the mouse after booting up your system.</p>
<p><span style="text-decoration: line-through;">I haven&#8217;t played with the Ubuntu Karmic Alpha yet to know if a more recent version of the Bluez Bluetooth stack is included. One presumes it will be, but if not, these instructions will probably work for Karmic as well.</span></p>
<p><em>EDIT October 2009: I have tested this mouse with the Ubuntu 9.10 Karmic Koala Beta release and it pairs first time perfectly and also resumes perfectly. There will be no need to use this HowTo with Karmic.</em></p>
<p><span style="text-decoration: line-through;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/08/howto-get-a-microsoft-bluetooth-notebook-5000-mouse-working-under-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>HowTo: Flash your BIOS without a boot floppy disk using Ubuntu</title>
		<link>http://www.serenux.com/2009/08/howto-flash-your-bios-without-a-boot-floppy-disk-using-ubuntu/</link>
		<comments>http://www.serenux.com/2009/08/howto-flash-your-bios-without-a-boot-floppy-disk-using-ubuntu/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 13:28:05 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Booting]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=530</guid>
		<description><![CDATA[All current &#8220;IBM-Compatible&#8221; PC&#8217;s use a Basic Input/Output System also known as a BIOS. It&#8217;s a program that tells the PC how to start up when you switch it on, raises any critical faults with the system and then passes control to an operating system on a boot medium. As time goes on, like any [...]]]></description>
			<content:encoded><![CDATA[<p>All current &#8220;IBM-Compatible&#8221; PC&#8217;s use a Basic Input/Output System also known as a BIOS. It&#8217;s a program that tells the PC how to start up when you switch it on, raises any critical faults with the system and then passes control to an operating system on a boot medium.</p>
<p>As time goes on, like any program, bugs are found, improvements are made, and the manufacturer of your PC&#8217;s motherboard will provide updates to the BIOS, usually supplied as a small downloadable file. Normally it is usually intended that you reboot your PC onto a DOS-compatible boot floppy disk and run the BIOS update program to install the new BIOS firmware. These days this process has been a bit simplified what with Windows users generally being able to do this from within Windows itself and even more recently, from the BIOS itself or even though starting the system on a FAT16-formatted USB stick.</p>
<p>This is all well and good, but what if you have an older system that cannot be flashed from Windows? What if you don&#8217;t even have Windows? What about a system that still relies on booting from a floppy disk to flash the BIOS? I don&#8217;t know about you, but I highly doubt any of the remaining floppy disks in my garage work anymore, and besides that, there&#8217;s a good chance that the floppy drive itself on older PC&#8217;s probably doesn&#8217;t work anymore.</p>
<p>So what can you do?</p>
<p>Well, we can utilise a floppy disk <em>image</em> that ultimately boots from your hard-drive, but acts and operates exactly like a DOS floppy disk would.</p>
<p><span id="more-530"></span><span style="text-decoration: underline;"><strong>Pre-requisites:</strong></span></p>
<ul>
<li>A boot floppy disk image. You can grab from from the <a title="FreeDOS boot disks" href="http://www.fdos.org/bootdisks" target="_blank">FreeDOS</a> project. FreeDOS is a compatible open source re-invention of Microsoft or IBM DOS. For our needs, we will use the 1.44MB OEM floppy which has just enough on it to boot the disk and that&#8217;s it. The filename is called FDOEM.144.gz.</li>
<li>Some free space under /boot. This won&#8217;t be a concern for most users, but some people, including myself, choose to partition off space for /boot rather than include it as part of the root filesystem partition. You will need about 2MB of space.</li>
<li>Some floppy disk image manipulation tools. We will be using MTools for the task, available in the Ubuntu repositories.</li>
<li>The new BIOS file for your motherboard.</li>
<li>The DOS-based BIOS flashing program executable.</li>
<li>OPTIONAL: Wine may be required if the BIOS file is provided as a self-extracting Windows executable. In most cases, the flashing program is usually included in the same archive.</li>
</ul>
<p>These instructions were written with Ubuntu Jaunty in mind but should work on any version of Ubuntu.</p>
<p><span style="text-decoration: underline;"><strong>Process:</strong></span></p>
<ol>
<li>First up, download the FDOEM.144.gz file from the <a title="FreeDOS Bootdisks" href="http://www.fdos.org/bootdisks" target="_blank">FreeDOS</a> website.<br />
.</li>
<li>Extract the image file from the archive either using Ubuntu&#8217;s archive manager, or at a terminal use the command:
<pre><span style="color: #000080;">$ zcat FDOEM.144.gz &gt;dosfloppy.img</span></pre>
</li>
<li>Now we need to install some tools so we can manipulate the image (note that you may already have these tools installed):
<pre><span style="color: #000080;">$ sudo apt-get install syslinux mtools</span></pre>
</li>
<li>Extract your BIOS file from the archive you downloaded from your motherboard&#8217;s manufacturer. If the file was called &#8220;bios123.zip&#8221;, unzip it with the following command:
<pre><span style="color: #000080;">$ unzip bios123.zip
</span></pre>
<p><em>NOTE: If your BIOS<span style="color: #000000;"> </span> file is a self-extracting executable (eg: &#8220;bios123.exe&#8221;), then install WINE with:</em></p>
<pre><span style="color: #000080;"></span><span style="color: #000080;">$ sudo apt-get install wine</span></pre>
<p>&#8230;and then execute the Windows binary via Wine with:</p>
<pre><span style="color: #000080;">$ wine bios123.exe</span></pre>
<p>&#8230;then let the self-extractor extract the files. Retrieve the BIOS file (and if available, the BIOS flashing program executable) from what was extracted.</p>
<pre><span style="color: #000080;"> </span></pre>
</li>
<li>Let&#8217;s copy the BIOS file and the flashing program onto the boot floppy image. In this example, the BIOS file is called &#8220;bios123.bin&#8221; and the flashing program is called &#8220;flash.exe&#8221;:
<pre><span style="color: #000080;">$ mcopy -i dosfloppy.img bios123.bin flash.exe ::</span></pre>
</li>
<li>Now let&#8217;s list the contents of the floppy image to confirm that the files were copied:
<pre><span style="color: #000080;">$ mdir -i dosfloppy.img ::
Volume in drive : is FREEDOS    
 Volume Serial Number is 188F-6C25
Directory for ::/

COMMAND  COM     66090 2003-12-10   7:49
sys      com      9221 2005-07-18  19:58
AUTOEXEC BAT        67 2004-02-22  10:16
CONFIG   SYS        52 2004-02-22  10:17
README            1486 2004-02-22  12:50
BIOS123  BIN   1048576 2009-08-11  22:34
FLASH    EXE     26351 2009-08-11  22:34
 7 files           1 151 843 bytes
 258 048 bytes free
$</span></pre>
</li>
<li>The floppy disk is ready! Now to set it up so we can boot it.
<pre><span style="color: #000080;">$ sudo mkdir /boot/biosflash
$ sudo cp dosfloppy.img /usr/lib/syslinux/memdisk /boot/biosflash/</span></pre>
</li>
<li>Now we need to make an entry in the GRUB boot menu for it so we can choose it as a boot option when we start the PC. First open the GRUB menu.lst file in your favourite editor:
<pre><span style="color: #000080;">$ sudo gedit /boot/grub/menu.lst</span></pre>
</li>
<li>Scroll right down to the very bottom of the file and add the following lines:
<pre><span style="color: #000080;">title Boot floppy for BIOS flashing
kernel /boot/biosflash/memdisk
initrd /boot/biosflash/dosfloppy.img
boot
</span></pre>
<p><span style="color: #000080;"><span style="color: #000000;"><em>NOTE: If your /boot directory is on its own partition (like how I have it on my own system), you need to omit the &#8220;/boot&#8221; bit from all lines above, thus:</em><br />
</span></span></p>
<pre><span style="color: #000080;">title Boot floppy for BIOS flashing
kernel /biosflash/memdisk
initrd /biosflash/dosfloppy.img
boot</span></pre>
<p><span style="color: #000080;"> </span></li>
<li>Save your changes and quit the editor.<br />
.</li>
<li>You are now ready to boot! Shutdown and restart your system. When your GRUB menu appears, you will see an entry called &#8220;BIOS floppy for BIOS flashing&#8221; at the bottom of the menu. Select it and you should very quickly be presented with the familiar A:\&gt; prompt. You can now launch your BIOS flashing program and flash your BIOS!<br />
.</li>
<li>When you are done with the floppy environment, just press CTRL + ALT + DEL to reset your PC (or after a BIOS flash you should ideally physically switch off and then back on instead).</li>
</ol>
<p>You&#8217;re done! <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class='wp_likes' id='wp_likes_post-530'><a class='like' href="javascript:wp_likes.like(530);" title='' ><img src="http://www.serenux.com/wp-content/plugins/wp-likes/images/like.gif" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(530);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/08/howto-flash-your-bios-without-a-boot-floppy-disk-using-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HowTo: Make use of Ubuntu PPA repositories</title>
		<link>http://www.serenux.com/2009/07/howto-make-use-of-ubuntu-ppa-repositories/</link>
		<comments>http://www.serenux.com/2009/07/howto-make-use-of-ubuntu-ppa-repositories/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 04:58:07 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Repository]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=509</guid>
		<description><![CDATA[What is a PPA repository? A PPA is a Personal Package Archive hosted by the ubuntu.com servers that contains binaries and/or source related to a project. The project can be anything from a new application to a backport of an existing one. A good example is the easy availability of OpenOffice.org 3.0.1 to Intrepid users [...]]]></description>
			<content:encoded><![CDATA[<p>What is a PPA repository?</p>
<p>A PPA is a <em>Personal Package Archive</em> hosted by the ubuntu.com servers that contains binaries and/or source related to a project. The project can be anything from a new application to a backport of an existing one. A good example is the easy availability of <a title="OpenOffice.org 3.0.1 for Intrepid users" href="http://www.serenux.com/?p=397" target="_blank">OpenOffice.org 3.0.1 to Intrepid users</a> before Jaunty came out rather than having to deal with the mess of packages from Sun&#8217;s own website.</p>
<p>PPA&#8217;s can be wholly personal to you or may be open to the public. In particular it is very useful for providing Ubuntu packaged versions of a given application instead of dealing with tarballs or converting RPM packages.</p>
<p>So how does one make use of a pre-defined PPA and are there any things to be wary about? Read on.</p>
<p><span id="more-509"></span>PPA&#8217;s are great for getting the latest versions of a given piece of software instead of waiting for the official Ubuntu repository versions to be updated, though you will of course open yourself to any potential bugs in that software. Classic examples include getting Pidgin&#8217;s 2.5.8 update with the included new authentication method for Yahoo Messenger, or getting the latest version of the Deluge BitTorrent client/daemon.</p>
<p>In this HowTo, we are going to grab the latest version of Deluge to install on an Ubuntu Jaunty 9.04 system using the unofficial Ubuntu PPA, but this guide should apply to just about any version of Ubuntu or other Debian-based distribution.</p>
<p><em>NOTE: Ubuntu has now further simplified the PPA process by introducing a new way of adding PPA repositories and the GPG key in one hit from Ubuntu Karmic 9.10 onwards. While you can still use the process outlined below, please see the note at the end of this article for the simplified way.</em></p>
<ol>
<li>First up, we need to create a sources.list file for the PPA repository we want to add to our system. In the case of Deluge, the PPA is at <a title="Deluge Ubuntu PPA" href="https://launchpad.net/~deluge-team/+archive/ppa" target="_blank">https://launchpad.net/~deluge-team/+archive/ppa</a> so go there first.</li>
<li>Under the &#8220;Install packages&#8221; section is a box with two lines in it:
<pre><span style="color: #000080;">deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/deluge-team/ppa/ubuntu jaunty main</span></pre>
</li>
<li>Highlight and copy these two lines to your clipboard.</li>
<li>Now open a terminal and create a new file in your favourite text editor (in this case, GEdit) by typing in:
<pre><span style="color: #000080;">$ sudo gedit /etc/apt/sources.list.d/deluge.list</span></pre>
</li>
<li>This creates a new file under /etc/apt/sources.list.d called deluge.list. You are presented with a blank page. Paste the content of the clipboard down so you have the two lines you copied earlier.</li>
<li>Save and close the file.</li>
<li>Now, in the terminal, type in:
<pre><span style="color: #000080;">$ sudo apt-get update</span></pre>
</li>
<li>When the update completes, you should see a warning error at the end similar to the following:
<pre><span style="color: #000080;">W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C5E6A5ED249AD24C
W: You may want to run apt-get update to correct these problems</span></pre>
</li>
<li>What this means is that apt-get has processed all your package lists and found that for the newly added Deluge source list, it does not have a GPG key to authenticate any of the files from it. This doesn&#8217;t stop you from installing Deluge or other files from it, but it does prevent Ubuntu from proving whether or not these files are untampered with, so it will pester you with warnings until you can provide it that GPG public key. Providing it is simple. Make note of the hexadecimal value provided after NO_PUBKEY and then type in the following:
<pre><span style="color: #000080;">$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C5E6A5ED249AD24C
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys C5E6A5ED249AD24C
gpg: requesting key 249AD24C from hkp server keyserver.ubuntu.com
gpg: key 249AD24C: public key "Launchpad PPA for Deluge Team" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
$</span></pre>
</li>
<li>This fetches the GPG public key from the Keyserver at ubuntu.com and adds it to your GPG keyring. Now if you run:
<pre><span style="color: #000080;">$ sudo apt-get update</span></pre>
<p>&#8230;again, you will see no errors output this time, which means you can safely install applications from it now without Apt warning you about being unable to authenticate them.</li>
<li>To prove this, let&#8217;s try and install Deluge now:
<pre><span style="color: #000080;">$ sudo apt-get install deluge</span></pre>
<p>&#8230;and it should install like any other ordinary Ubuntu applications with no fuss, no worries and no error messages.</li>
<li>Pat yourself on the back.</li>
</ol>
<p><span style="text-decoration: underline;"><span style="color: #0000ff;"><em><strong>I get an &#8220;HTTP fetch&#8221; error when I try to import a GPG public key!</strong></em></span></span></p>
<p>If at step 9, you get the following error:</p>
<pre><span style="color: #000080;">$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C5E6A5ED249AD24C
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys C5E6A5ED249AD24C
gpg: requesting key 249AD24C from hkp server keyserver.ubuntu.com
<strong>gpgkeys: HTTP fetch error 7: couldn't connect to host</strong>
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
$</span></pre>
<p>It is because your firewall is blocking access to the Keyserver. Keyservers use port 11371 to communicate, not port 80 which is the normal HTTP port, so open 11371 as an outbound port on your firewall and re-run the command and it will work fine.</p>
<p><span style="color: #0000ff;"><em><span style="text-decoration: underline;"><strong>The simplified way of adding PPA&#8217;s using Ubuntu Karmic 9.10 or later.<br />
</strong></span></em></span></p>
<p>Ubuntu 9.10 introduced a new, simpler way to add PPA&#8217;s to your system. Using the above Deluge example, you now only have to type in:</p>
<pre><span style="color: #000080;">$ sudo add-apt-repository ppa:deluge-team/ppa</span></pre>
<p>&#8230;and that&#8217;s it. This will do the whole sources.list creation and GPG key for you in one hit. That now simply leaves you to update your package lists with:</p>
<pre><span style="color: #000080;">$ sudo apt-get update</span></pre>
<p>&#8230;and then you can install Deluge with:</p>
<pre><span style="color: #000080;">$ sudo apt-get install deluge</span></pre>
<p>As you can see, it&#8217;s a far simpler method. You can, of course, still use the original method if you prefer.</p>
<p><span style="color: #0000ff;"><em><span style="text-decoration: underline;"><strong>Hey these PPA things are cool &#8211; can I create one of my own?</strong></span></em></span></p>
<p>You certainly can. Refer to the <a title="Ubuntu PPA Help Page" href="https://help.launchpad.net/Packaging/PPA" target="_blank">Personal Package Archives for Ubuntu Help Page</a> for everything you need to know, however please do not use a PPA as your own personal off-site backup for personal data. It is intended to help individuals and small groups who develop new software and do not have the resources to host their software for easy distribution by providing them a place where the masses can gain access to their project. To help curb the potential for abuse, PPA&#8217;s are limited to 1GB of storage and you are bound by the <a title="Ubuntu Community Code of Conduct" href="https://help.launchpad.net/BecomingAnUbuntero" target="_blank">Ubuntu Community Code of Conduct</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/07/howto-make-use-of-ubuntu-ppa-repositories/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HowTo: Build a MythTV box from scratch using Ubuntu Jaunty 9.04</title>
		<link>http://www.serenux.com/2009/06/howto-build-a-mythtv-box-from-scratch-using-ubuntu-jaunty-904/</link>
		<comments>http://www.serenux.com/2009/06/howto-build-a-mythtv-box-from-scratch-using-ubuntu-jaunty-904/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 15:26:01 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[High-Definition]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=492</guid>
		<description><![CDATA[MythTV is a project that brings analogue and digital television to your Ubuntu-powered PC. It primarily functions as your television and personal video recorder (PVR), but can be made to do many other things (refer to the official MythTV site for more information), however one thing that can catch people is actually building a MythTV [...]]]></description>
			<content:encoded><![CDATA[<p>MythTV is a project that brings analogue and digital television to your Ubuntu-powered PC. It primarily functions as your television and personal video recorder (PVR), but can be made to do many other things (refer to the official MythTV site for more information), however one thing that can catch people is actually building a MythTV box from scratch. Over the years, MythTV has been one of the largest causes of baldness in users who have torn out their hair in frustration.</p>
<p>Nowadays, tailored distributions such as Mythbuntu make the task pretty much trivial, but not everyone likes to use the tailor-made distributions. For one, Mythbuntu has a lot of its own branding across it which I personally don&#8217;t really like, and I&#8217;d prefer not to have it install all of that plus XFCE as the default desktop and then have to undo it all just to get back to a regular Ubuntu desktop.</p>
<p>Since I recently built a MythTV server for my folks, and on top of that connected it to their aging CRT television rather than the latest in visual technology, this makes for a perfect tutorial on how to take a vanilla Ubuntu Jaunty 9.04 installation and turn it into a simple, functional MythTV server without all the branding. We are going to just install only the components required to get MythTV up and running. Anything else you add is purely up to you.</p>
<p><span id="more-492"></span><em><strong>Note: This tutorial covers installation of MythTV 0.21 as supplied with Ubuntu Jauty 9.04. It does not apply to the forthcoming 0.22 release which will sport a vastly different interface. It is not known yet whether Ubuntu Karmic 9.10 will still have 0.21 supplied or if 0.22 will be ready for release by then.</strong></em></p>
<p>The system I built for my folks comprised of the following hardware:</p>
<ul>
<li>Silverstone LC17 case (just to match the lounge gear, but you can use pretty much any case)</li>
<li>Gigabyte 500w PSU</li>
<li>2GB of Kingston DDR2/800 RAM (should have bought two sticks instead of a single stick, so I could run it in dual-channel mode &#8211; ah well, it&#8217;s not really a performance killer for MythTV)</li>
<li>A Gigabyte S-Series EG41M-S2H motherboard (which has built-in optical out and HDMI based on an Intel gfx chipset)</li>
<li>An MSI NX8400GS (NVidia GeForce 8400GS) PCI-E graphics card (because it&#8217;s passively cooled for no noise and has Composite/S-Video output as well as VGA and DVI)</li>
<li>An Intel E5300 Pentium Dual-Core CPU</li>
<li>A Seagate 1TB hard-drive</li>
<li>LG SATA DVD-RW optical drive (for playing DVD movie discs)</li>
<li>Two Asus MyCinema-U3100-Mini DVB-T digital-only TV tuners</li>
<li>Digitech &#8220;generic&#8221; Windows Media Centre Compatible remote control and USB infra-red receiver (cheaper than the real thing and doesn&#8217;t have any Windows or Microsoft branding on it)</li>
</ul>
<p>I won&#8217;t detail the hardware build process since it&#8217;s an ordinary PC at the end of the day, but here is how it looks in my folks&#8217; AV cabinet (it&#8217;s on the bottom shelf):</p>
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/pics/MythTV/FinishedMythTVServer.jpg" target="_blank"><img title="Finished MythTV combined Backend &amp; Frontend server" src="http://www.serenux.com/~hyrax/pics/MythTV/FinishedMythTVServer_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (126K)</p>
<p>I performed a vanilla Ubuntu Jaunty 9.04 with the following partition layout:</p>
<ul>
<li>100MB for /boot formatted as EXT2</li>
<li>1GB for swap formatted as SWAP</li>
<li>8GB for / (root) formatted as EXT4</li>
<li>Remainder of drive for /home formatted as EXT4</li>
</ul>
<p>Since I also installed a UPS, I do not foresee any issues with the EXT4 file system and power-loss-related data corruption. I used EXT2 for /boot because, frankly, it doesn&#8217;t need journalling there. You&#8217;ll only ever write to that partition when you do a kernal update and having as a separate partition will make any future system recovery easier.</p>
<p>My folks are still using an old standard-definition widescreen CRT television. It comes equipped with SCART inputs which can accept Composite, S-Video and Amiga-style RGB signals, but not Component ability. I elected to connect the PC using S-Video, and it looks pretty sharp for what it is &#8211; certainly far more readable than Composite.</p>
<p>I came across a strange issue when I started the Ubuntu installation process &#8211; it couldn&#8217;t start X. Basically put, it cannot detect the &#8220;monitor&#8221; and thus cannot setup a suitable screenmode. I decided to do the initial installation via a traditional VGA monitor and once the NVidia drivers were installed, I&#8217;d switch back to the TV only.</p>
<p>I configured the primary login account, password and machine name to all be &#8220;htpc&#8221; and set it to auto-login. Once installation was complete and rebooted for the first time, I quickly installed the NVidia Binary driver and updated the system with any outstanding general system updates.</p>
<p><span style="color: #0000ff;"><em><span style="text-decoration: underline;"><strong>Setting up the TV</strong></span></em></span></p>
<p>Once rebooted for the second time, I physically disconnected the VGA monitor and left only the TV connected. Ubuntu appeared quite cheerfully, though annoyingly it had switched to NTSC 60Hz mode, and I wanted PAL in 50Hz.</p>
<p>I opened up the xorg.conf configuration file into GEdit as follows:</p>
<pre><span style="color: #000080;">$ sudo gedit /etc/X11/xorg.conf</span></pre>
<p>&#8230;and located the &#8220;Screen&#8221; section which describes what the X screen to be used is. It looks something like this:</p>
<pre><span style="color: #000080;">Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "TV-0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection</span></pre>
<p>I added the following two lines into that section:</p>
<pre><span style="color: #000080;">    Option         "TVOutFormat" "SVIDEO"
</span><span style="color: #000080;">    Option         "TVStandard" "PAL-B"</span></pre>
<p>&#8230;so now the Screen section looked like this:</p>
<pre><span style="color: #000080;">Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "TV-0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    Option         "TVOutFormat" "SVIDEO"
    Option         "TVStandard" "PAL-B"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection</span></pre>
<p>This ultimately outputted a 1024&#215;768 display on the TV, stretched horizontally (a 4:3 screenmode stretched to fit a physical 16:9 display). If your Ubuntu desktop is larger than the screen, just adjust your TV&#8217;s picture size until everything fits in. In my case, only the top and bottom panels got slightly chopped off which was fixed with a minor vertical size adjustment on the TV.</p>
<p><em><span style="text-decoration: underline;"><strong><span style="color: #0000ff;">Installing MythTV</span></strong></span></em></p>
<p>First we need to enable the system to access the Multiverse repository. Do this by going to <em>System-&gt;Administration-&gt;Software Sources</em> and place a check mark against all five boxes, click OK and acknowledge the prompt to reload your package lists.</p>
<p>We now set about installing the extra software I required to turn this box into a MythTV server (which was going to run both Backend and Frontend):</p>
<pre><span style="color: #000080;">$ sudo apt-get install mythtv</span></pre>
<p>That&#8217;s all you need to get the main MythTV stuff working &#8211; the &#8220;mythtv&#8221; metapackage installs the MythTV Frontend, MythTV Backend, MySQL Server, MySQL Client, MythTV database configuration, all the default MythTV themes, etc. In my case, however I also installed the following for extra video/audio codecs (such as MP3 for listening to music files or watching movie rips), Java, Flash, the Microsoft Fonts, the Compiz Configuration manager for doing desktop eye-candy, the SSH server daemon to remote control the box when my folks call for help, and finally the MythWeb add-on that allows you to look at the MythTV server&#8217;s TV guide and schedule programs to record using a web browser interface:</p>
<pre><span style="color: #000080;">$ sudo apt-get install mythtv ubuntu-restricted-extras compizconfig-settings-manager ssh mythweb</span></pre>
<p>&#8230;and from the <a title="Medibuntu Home Page" href="http://www.medibuntu.org" target="_blank">Medibuntu repository</a>, I installed the following for extra codecs and DVD decrypting/playback:</p>
<pre><span style="color: #000080;">$ sudo apt-get install non-free-codecs libdvdcss2 mplayer mencoder</span></pre>
<p><em>Note: I did not need to install lirc for the remote control because the Digitech remote is actually a USB keyboard in disguise, not a &#8220;proper&#8221; infra-red remote.</em></p>
<p>During the installation of these packages, you will be prompted for a few things, namely:</p>
<ol>
<li>Create a password for the root MySQL account. If this MythTV installation is purely for in-house use only, then just go with something simple like &#8220;password&#8221;. Many suggest leaving it blank, but I&#8217;ve personally seen this create authentication problems later on.</li>
<li>Create the MySQL database. When prompted for the MythTV server address, change the default &#8220;localhost&#8221; to the IP address of the PC you are installing the Backend on. If the Backend Server has an IP address of 192.168.0.10, then type in 192.168.0.10 in place of &#8220;localhost&#8221;. If you only intend to run one machine only for everything, then you can leave &#8220;localhost&#8221; as is.</li>
<li>When prompted for the name of the MySQL database, leave it as the default &#8220;mythconverg&#8221;.</li>
<li>Make note of the password generated for the MythTV database. You will need this to configure your MythTV Frontend.</li>
<li>Indicate whether or not you intend to have more than one Frontend client connect to your Backend server.</li>
<li>If you elected to install MythWeb, then you will be asked a question as to whether or not you want your MythWeb site password protected.</li>
<li>Acknowledge other prompts that tell you about creating the &#8220;MythTV&#8221; groups etc.</li>
<li>Your PC now has a user and Home directory called /home/mythtv and we need to ensure that the &#8220;mythtv&#8221; group can write to it as well as the owner, so at a terminal, type in:
<pre><span style="color: #000080;">$ sudo chmod -R g+w /home/mythtv</span></pre>
<p>&#8230;and hit Enter.</li>
<li>Finally, if you intend more than one Frontend to access your Backend machine, we need to tell MySQL to allow other PC&#8217;s on your network to access the database, or those Frontends (other than the one on the Backend server) will not be able to start. To do this, type the following at the $ prompt. Everyone else can skip to Step 12.
<pre><span style="color: #000080;">$ mysql mythconverg -u root -p</span></pre>
</li>
<li>When prompted, enter in the root MySQL password you specified earlier.</li>
<li>You will then be shown a MySQL prompt. If your local network&#8217;s IP topology is 192.168.0.x, and the password that was generated for MythTV&#8217;s database was &#8220;8tSpxGiM&#8221; then type the following to grant access to all PC&#8217;s on your local network to the MythTV MySQL database, at the &#8220;mysql&gt;&#8221; prompt:
<pre><span style="color: #000080;">mysql&gt; grant all on mythconverg.* to mythtv@"192.168.0.%" identified by "8tSpxGiM";
mysql&gt; flush privileges;
mysql&gt; quit
</span></pre>
<p>&#8230;this will allow all PC&#8217;s with IP addresses starting with 192.168.0.x to access the MythTV database. If you are paranoid and only want to allow specific PC&#8217;s to access the database, then simply issue the &#8220;grant all&#8221; line for all explicit IP addresses only, by replacing the &#8220;%&#8221; wildcard character with the explicit IP address you want to allow, ie: to allow just 192.168.0.67 in, replace &#8220;192.168.0.%&#8221; with &#8220;192.168.0.67&#8243;. Repeat for all specific IP&#8217;s to allow. You only have to issue the &#8220;flush&#8221; command once at the end to make your changes take effect.</li>
<li>Confirm that you can access the MythTV database as the MythTV user at the $ terminal prompt. If you are only using one machine, do this on the Backend server. If you are using multiple Frontends, test this on the remote PC&#8217;s that will be running the Frontend software (obviously replace the IP address with the actual IP address your Backend machine is using):
<pre><span style="color: #000080;">$ mysql mythconverg -h 192.168.0.10 -u mythtv -p</span></pre>
<p>&#8230;when prompted, enter the MythTV password that was generated earlier. If successful, you should be looking at a &#8220;mysql&gt;&#8221; prompt. If not, you will get an error, probably along the lines of &#8220;access denied&#8221;.<em> NOTE: If you configured &#8220;localhost&#8221; to be the Backend Server in Step 2, then you <span style="text-decoration: underline;">must</span> use the name &#8220;localhost&#8221; to connect to MySQL. Using &#8220;127.0.0.1&#8243; instead will not work because you have not configured &#8220;127.0.0.1&#8243; to have access to the mythconverg database. If you wanted these permissions, you would modify Step 11 to be the following commands:<br />
</em></p>
<pre><span style="color: #000080;">mysql&gt; grant all on mythconverg.* to mythtv@"192.168.0.%" identified by "8tSpxGiM";
mysql&gt; grant all on mythconverg.* to mythtv@"127.0.0.1" identified by "8tSpxGiM";
mysql&gt; grant all on mythconverg.* to mythtv@"localhost" identified by "8tSpxGiM";
mysql&gt; flush privileges;
mysql&gt; quit
</span></pre>
<p>&#8230;which will allow the &#8220;mythtv&#8221; user to connect from any IP on the 192.168.0.x network, from 127.0.0.1 and any host called &#8220;localhost&#8221;, all using the specified password.</p>
<pre><span style="color: #000080;"> </span></pre>
</li>
<li>Quit the MySQL client by typing &#8220;quit&#8221; at the &#8220;mysql&gt;&#8221; prompt:
<pre><span style="color: #000080;">mysql&gt; quit</span></pre>
</li>
</ol>
<p><span style="text-decoration: underline;"><span style="color: #0000ff;"><em><strong>Configuring MythTV &#8211; the Backend</strong></em></span></span></p>
<p>At this point, make sure your TV tuners are connected. In my case, the Asus U3100&#8242;s are connected into two free USB ports at the rear of the PC and have automatically been detected as Ubuntu carries full support for the U3100 already.</p>
<p>Now we need to start MythTV Backend Setup for the first time. Go to System-&gt;Administration-&gt;MythTV Backend Setup. When you do so, it will prompt you that your user (in my case &#8220;htpc&#8221;) needs to be added to the &#8220;mythtv&#8221; group. Acknowledge this and then accept being logged out for the change to take effect. Log yourself back in. Once logged back in, restart the MythTV Backend Setup again. You will be reminded that the MythTV Backend needs to be stopped before you can continue. Click OK.</p>
<p>You are presented with several options. Choose &#8220;General&#8221; (if you are using a remote, you should find the basic Up/Down and OK buttons work here already).</p>
<ol>
<li>Change the &#8220;Local backend&#8221; and &#8220;Master backend&#8221; addresses to be &#8220;localhost&#8221; (in lower case and one word). Leave all the &#8220;port&#8221; numerical figures alone.</li>
<li>Click on &#8220;Next&#8221;. If you&#8217;re only using a keyboard, then press ALT + N to proceed. The screen content will change.</li>
<li>Change the &#8220;TV format&#8221; to suit your local country. In my case, this is &#8220;PAL&#8221;. If you are in America or Japan, you&#8217;ll use &#8220;NTSC&#8221;. Check your local TV standards if you are not sure.</li>
<li>Change the channel frequency table option to your local country. In my case, this is &#8220;australia&#8221;.</li>
<li>The timezone for your guide XML data will ultimately depend on how you get your guide data. In my case, I just use Auto.</li>
<li>Click on &#8220;Next&#8221; or ALT + N on the keyboard.</li>
<li>We don&#8217;t need to change anything on this screen or the five screens that follow it, so click on &#8220;Next&#8221; again until you get to the last page where the button now says &#8220;Finish&#8221;.</li>
<li>Click on the &#8220;Finish&#8221; button or press ALT + F on the keyboard. You will be returned back to the main menu.</li>
</ol>
<p>Now choose the &#8220;Capture cards&#8221; option.</p>
<ol>
<li>Choose the &#8220;New capture card&#8221; option from the list.</li>
<li>What you choose here will be dependent on what your tuner hardware is. In my case, I change the &#8220;Card type&#8221; until it says &#8220;DVB DTV Capture Card (v3.x)&#8221; and you will see that the &#8220;Frontend ID&#8221; will show &#8220;DiBcom 7000PC&#8221; and the &#8220;Subtype&#8221; will be &#8220;DVB-T&#8221; indicating a &#8220;Digital Video Broadcast &#8211; Terrestrial&#8221; device was found.</li>
<li>Click on the &#8220;Recording Options&#8221; button and ensure that the &#8220;Max recordings&#8221; option is set to &#8220;2&#8243; (most digital tuners can record two channels at once from the same network, thus two physical tuners effectively become four usable tuners within MythTV).</li>
<li>Go back to the previous screen by clicking on Finish and then click on Finish again. You will be returned to the Capture card list and you will now see a new line for the card you just setup.</li>
<li>Since I have two tuners, I repeat this whole process again &#8211; the system will pick up the second tuner and label it accordingly &#8211; you can&#8217;t setup a card more than once accidentally. In my case now I have two cards called <em>DVB:0</em> and <em>DVB:1</em> listed.</li>
<li>Press ESC to return back to the main menu.</li>
</ol>
<p>Now choose the &#8220;Video sources&#8221; option.</p>
<ol>
<li>Choose the &#8220;New video source&#8221; option from the list.</li>
<li>Give your video source a name, eg: &#8220;Digital Free-to-Air&#8221;. This can be anything you want.</li>
<li>For your Settings Grabber, just choose the &#8220;Transmitted guide only (EIT)&#8221; or &#8220;No grabber&#8221; option for now. If you already have a preferred grabber, then choose it here now.</li>
<li>Click on Finish.</li>
<li>We only need one source for both tuners, so we&#8217;re done here. Press ESC to return back to the main menu.</li>
</ol>
<p>Now choose the &#8220;Input Connections&#8221; option. This is where we tie our source to the tuners.</p>
<ol>
<li>Choose the first tuner in your list. In my case I have &#8220;DVB: 0 (DVBInput) -&gt; (None)&#8221;.</li>
<li>Change the &#8220;Display Name (optional)&#8221; to be something that describes the tuner, eg: &#8220;Digital tuner 1&#8243;. This can be anything you want and will serve to highlight what tuner you are using to watch or record a particular show.</li>
<li>Change &#8220;Video source&#8221; to the one you created in the &#8220;Video sources&#8221; earlier. In my case, I choose the only option I have &#8211; &#8220;Digital Free-to-Air&#8221;.</li>
<li>Now press the &#8220;Scan for channels&#8221; button.</li>
<li>Ensure that &#8220;Scan Type&#8221; is set to &#8220;Full Scan&#8221; and that your Country is correct.</li>
<li>Make sure that your TV aerial is securely connected to your TV tuner and then click on &#8220;Next&#8221;. The tuner will begin looking for TV channels. This can take several minutes to complete. Do not interrupt the process, even if it looks like it has gotten stuck &#8211; it will finish eventually. Any channels found will be listed in the status window at the back.</li>
<li>Once finished, press &#8220;Finish&#8221;.</li>
<li>Now press &#8220;Next&#8221;. Don&#8217;t change anything here.</li>
<li>Press &#8220;Finish&#8221;. You will be returned to the &#8220;Input Connections&#8221; list.</li>
<li>Repeat steps 1 to 3 only for any additional tuners you have (in my case, I had to repeat for the second tuner). We don&#8217;t need to re-scan for channels because the tuners are using the same source and we&#8217;ve already populated it with channels in the first run. In this instance, once you have done steps 1 to 3, just click on &#8220;Next&#8221; and then &#8220;Finish&#8221;.</li>
<li>Press ESC to return back to the main menu.</li>
</ol>
<p>Now choose the &#8220;Channel Editor&#8221; option and review all the channels that were picked up in the scan. Optionally, you may also have MythTV automatically download what it believes are the correct network icons for those channels from the Internet using the &#8220;Download icons&#8221; button. Delete any channels you don&#8217;t want to review. Eg: in my case, I also picked up some digital radio channels. I&#8217;m not interested in those, so I could delete those if I so choose.</p>
<p>Press ESC to go back to the main menu.</p>
<p>Now choose the &#8220;Storage Directories&#8221; option. This is where we tell MythTV where to put all our TV recordings.</p>
<ol>
<li>Choose &#8220;Default&#8221; from the list.</li>
<li>Choose the &#8220;/var/lib/mythtv/recordings&#8221; path already defined and change it to &#8220;/home/mythtv&#8221; (or whatever you prefer).</li>
<li>Click the &#8220;OK&#8221; button.</li>
<li>If you want to add more directories from other devices such as secondary hard-disks or network drives, just &#8220;Add directory&#8221; and specify them accordingly.</li>
<li>Once done, press ESC to return back to the main menu.</li>
</ol>
<p>We&#8217;re now done configuring the Backend, so press ESC again to close the MythTV Backend Setup application. If you get an error, review it and see if you can fix it based on the information provided. In particular, if it tells you that it couldn&#8217;t write a &#8220;.test&#8221; file to /home/mythtv, then you did not grant the &#8220;mythtv&#8221; group writer permissions to &#8220;/home/mythtv&#8221; (See Step 8 in &#8220;Installing MythTV&#8221; earlier in this article).</p>
<p>Upon exiting, after a couple of seconds a dialog box will appear asking if you wish to run &#8220;mythfilldatabase&#8221;. Say YES. Once this is done, the MythTV Backend should automatically restart in the background briefly and then its output window should disappear.</p>
<p><span style="text-decoration: underline;"><span style="color: #0000ff;"><em><strong>Configuring MythTV &#8211; the Frontend</strong></em></span></span></p>
<p>We&#8217;re nearly there! Now to configure the Frontend! Go to Applications-&gt;Sound &amp; Video-&gt;MythTV Frontend. After a brief delay, you will see the default MythTV menu.</p>
<ol>
<li>Choose &#8220;Utilities/Setup&#8221; from the menu.</li>
<li>Now choose &#8220;Setup&#8221; in the next menu.</li>
<li>Now choose &#8220;General&#8221; in the next menu.</li>
<li>If the PC you are on now is the Backend server, then this should already show that the&#8221;Database Server Settings&#8221; hostname is &#8220;localhost&#8221;. If you are installing a laptop/desktop that is NOT the Frontend, then you need to have the IP or hostname of the Backend machine here instead so that Frontend client knows who to talk to. In the case of your installation example, I&#8217;m using 192.168.0.10.</li>
<li>The port number can be left empty. It will use the MythTV default automatically.</li>
<li>The database name should already be &#8220;mythconverg&#8221;.</li>
<li>The user name should already be &#8220;mythtv&#8221;.</li>
<li>The password should already be the one that was randomly generated during the installation process.</li>
<li>Press &#8220;Next&#8221;.</li>
<li>Nothing to change on this screen, so press &#8220;Next&#8221; again.</li>
<li>Change the audio settings to suit your own configuration. If you are using an ordinary stereo setup, you can leave pretty much all of this unchanged, however I&#8217;d recommend adjusting the &#8220;Master Mixer Volume&#8221; to 100 and the &#8220;PCM Mixer Volume&#8221; to 80 or 90 (don&#8217;t set PCM to 100 as some motherboards will output scratchy/distorted audio depending on the quality of your on-board sound hardware).</li>
<li>Press &#8220;Next&#8221; through the next four screens.</li>
<li>Press &#8220;Finish&#8221;. You will be returned to the Setup menu.</li>
</ol>
<p><em>Special setup: Configuring your MythTV Frontend to output digital audio via SP/DIF on the PC&#8217;s motherboard.</em></p>
<ol>
<li>By default, motherboards with on-board SP/DIF out generally have their output muted, and as a result you will not see any laser light from any toslink cable connected to the motherboard. Unless you&#8217;re lucky, 9 times out of 10, the SP/DIF controls will <em>not</em> appear in the graphical Volume Control applet. To get around this, open a terminal.<br />
.</li>
<li>Now type in &#8220;alsamixer&#8221; and you will be presented with a terminal version of the Volume Control applet.<a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/AlsaMixer1.jpg" target="_blank"><br />
<img title="Alsa Mixer initial screen" src="http://www.serenux.com/~hyrax/snaps/AlsaMixer1_thumb.jpg" alt="Click for full size" /><br />
</a>Click for full size (56K)<a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/AlsaMixer1.jpg" target="_blank"><br />
</a>.<a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/AlsaMixer1.jpg" target="_blank"></a></li>
<li>Now press the right-arrow key until you come across any &#8220;IEC958&#8243; related options. There will generally be two or three entries. You will probably find they have &#8220;MM&#8221; above them which means they are Muted.<br />
<a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/AlsaMixer2.jpg" target="_blank"><img title="Alsa Mixer - SPDIF output muted" src="http://www.serenux.com/~hyrax/snaps/AlsaMixer2_thumb.jpg" alt="Click for full size" /><br />
</a> Click for full size (50K)<a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/AlsaMixer2.jpg" target="_blank"><br />
</a>.<a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/AlsaMixer2.jpg" target="_blank"><br />
</a></li>
<li>Press the M key on your keyboard to toggle the Mute status of that option so that it now shows &#8220;OO&#8221; instead. This means it is no longer muted.<br />
<a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/AlsaMixer3.jpg" target="_blank"><img title="Alsa Mixer - SPDIF output unmuted" src="http://www.serenux.com/~hyrax/snaps/AlsaMixer3_thumb.jpg" alt="Click for full size" /><br />
</a> Click for full size (51K)<a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/AlsaMixer3.jpg" target="_blank"><br />
</a>.</li>
<li>If you&#8217;re looking at your toslink cable, you should now see the fibre optic line in it light up with red laser light as you unmute it. You&#8217;re done, so press ESC to close the Alsa Mixer interface.</li>
<p style="text-align: center;">
</ol>
<p>Now choose &#8220;Appearance&#8221; from the menu.</p>
<ol>
<li>You can now choose a different theme from here which makes the interface look more attractive than the default theme. My personal favourite is &#8220;Blootube&#8221; and &#8220;Blootube Wide&#8221;.</li>
<li>If you are using 3D-enabled video drivers such as the NVidia binary drivers, you can elect to change the Paint Engine to OpenGL which will do nice crossfade transitions from one menu to another (note that there are <em>no</em> 3D transitions).</li>
<li>I also change the &#8220;Menu theme&#8221; here to &#8220;classic&#8221; as I believe it provides a more intuitive menu tree within MythTV. I encourage you to explore these options and choose what works best for you.</li>
<li>Page the &#8220;Next&#8221; button until you get to the end and then click &#8220;Finish&#8221;.</li>
<li>If you&#8217;ve chosen a new theme, it will now be scaled appropriately for your display and switched over.</li>
</ol>
<p>You are now ready to begin watching TV, but you may want to quickly duck back into Setup-&gt;Playback OSD and change the theme there to &#8220;Blootube&#8221; or whatever you prefer as well as the On-Screen-Display when watching TV has a separate theme setting to the menus.</p>
<p>To watch TV, simply choose &#8220;TV&#8221; and then &#8220;Watch TV&#8221; from the MythTV menu. Use the up and down arrow keys and Enter to change channels.</p>
<p>Examples of the Blootube-themed main menu and TV OSD (on a full high definition display):</p>
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/MythTVInterface1.jpg" target="_blank"><img title="The main MythTV menu for watching TV, using the Blootube theme" src="http://www.serenux.com/~hyrax/snaps/MythTVInterface1_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (135K)</p>
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/MythTVInterface2.jpg" target="_blank"><img title="The Blootube theme OSD watching live HDTV" src="http://www.serenux.com/~hyrax/snaps/MythTVInterface2_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (384K)</p>
<p><span style="color: #0000ff;"><em><strong><span style="text-decoration: underline;">Using MythWeb</span></strong></em></span></p>
<p>MythWeb is completely automatically configured. Using our installation example Backend host IP of 192.168.0.10, you can access it by opening your web browser and surfing over to <em>http://192.168.0.10/mythweb</em> and you will be presented with the main menu of MythWeb.</p>
<p>Being a web site, MythWeb is obscenely easy and self-explanatory to get around, so I won&#8217;t detail any of its most common functions here. I encourage you to explore the interface.</p>
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/MythWebWelcome.jpg" target="_blank"><img title="The MythWeb home page" src="http://www.serenux.com/~hyrax/snaps/MythWebWelcome_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (99K)</p>
<p>One particularly useful feature of MythWeb is in getting the Digitech generic remote to work. Out of the box, I only found the direction and OK buttons to work right away. All the other buttons generate keyboard presses that do not coincide with MythTV&#8217;s default keys. For example, the Play/Pause key on the remote generates &#8220;CTRL + P&#8221; instead of just &#8220;P&#8221;, hence MythTV doesn&#8217;t act on the button press.</p>
<ol>
<li>To reconfigure key binds, all you have to do is click on the &#8220;Settings&#8221; option on the main menu.<br />
.</li>
<li>Now click on &#8220;Key Bindings&#8221; in the presented options.</li>
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/MythKeybinds1.jpg" target="_blank"><img title="MythWeb Key Bindings menu option" src="http://www.serenux.com/~hyrax/snaps/MythKeybinds1_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (116K)<br />
.</p>
<li>You are presented with all the available keybinds for various areas of MythTV. Scroll down the list until you find the keys pertaining to &#8220;TV Frontend&#8221; (first column).<br />
.</li>
<li>Now locate the key bind related to &#8220;PLAYBACK &#8211; Play Program&#8221; (second and third columns). You will notice that the key assigned (in the fourth column) already is &#8220;P&#8221;.</li>
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/MythKeybinds2.jpg" target="_blank"><img title="Locating and changing a key binding for MythTV" src="http://www.serenux.com/~hyrax/snaps/MythKeybinds2_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (135K)<br />
.</p>
<li>To add the CTRL + P key combination without erasing the original &#8220;P&#8221; key, simply change the text box to read &#8220;P, Ctrl+P&#8221;. This binds both the P and CTRL + P key combinations to the Playback command.</li>
<li>Change all the other keys you need to change or add.</li>
<li>When done, scroll right to the very bottom of the key binds page and click on the &#8220;Save&#8221; button.</li>
<li>Restart the Frontend to read in your new changes and test the remote.</li>
</ol>
<p>This is what the Digitech generic MCE remote looks like:</p>
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/pics/MythTV/DigitechRemote.jpg" target="_blank"><img title="The Digital Generic MCE remote control and USB receiver" src="http://www.serenux.com/~hyrax/pics/MythTV/DigitechRemote_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (116K)</p>
<p><span style="color: #0000ff;"><span style="text-decoration: underline;"><em><strong>OPTIONAL: Setting up the Shepherd Electronic Program Guide (EPG)<br />
</strong></em></span></span></p>
<p>Shepherd is an amazing Perl script that enhances and keeps your EPG data up to date in Myth, always providing better information about programs than the networks themselves do. A typical example of a poor network-supplied program description might be <em>&#8220;Late Movie: 10:30pm &#8211; Pirates of the Carribean starring Johnny Depp&#8221;</em> and&#8230; that&#8217;s it. How boring! Shepherd will use a grading system as well as sourcing categories of data from different sites in order to provide you a comprehensive description of all your programs instead. In the case of the above example, it would go to the IMDB and get the official movie blurb to use instead.</p>
<p><em><strong>NOTE: Shepherd is geared towards Australian MythTV users only. This is due to long-running (and petty) legal disputes over EPG supply and copyright in this country. If you are outside of Australia, you most likely already have a proper EPG provided for you and you should use that instead.</strong></em></p>
<p>Setting up Shepherd is trivial (Shepherd was up to version 1.3.39 at the time of this writing &#8211; refer to the <a title="Official Shepherd Installation Page" href="http://svn.whuffy.com/index.cgi/wiki/Installation" target="_blank">official installation page</a> for any changes made to the installation process since).</p>
<ol>
<li>Open a terminal and type in the following:
<pre><span style="color: #000080;">$ wget http://www.whuffy.com/shepherd/shepherd</span></pre>
<p>&#8230;and press Enter. This will grab the latest version of the Shepherd Perl script.<br />
.</li>
<li>Before we run it, we need to install some dependencies:
<pre><span style="color: #000080;">$ sudo apt-get install xmltv libxml-simple-perl libjavascript-perl \
libalgorithm-diff-perl libgetopt-mixed-perl libcompress-zlib-perl \
libdata-dumper-simple-perl libdate-manip-perl liblist-compare-perl \
libdatetime-format-strptime-perl libhtml-parser-perl libxml-dom-perl \
libgd-gd2-perl libdigest-sha1-perl libarchive-zip-perl \
libio-string-perl libdbi-perl</span></pre>
<p>&#8230;and hit Enter.<br />
.</li>
<li>Once all that is installed, now run the Shepherd setup script with the command:
<pre><span style="color: #000080;">$ perl shepherd</span></pre>
<p>&#8230;and hit Enter.<br />
.</li>
<li>Shepherd will initially re-install itself into the &#8220;mythtv&#8221; user&#8217;s home directory, ie: /home/mythtv, and re-run itself.</li>
<li>Shepherd will then begin checking itself to ensure all its data grabbers are the latest versions and download any that are missing. It will then prompt you through the rest of the installation process, which is generally straight forward, but we&#8217;ll step through it here:</li>
<li>First you are asked for a region code and are shown a giant list. Type in the number relevant to you and hit Enter. Eg: if you lived in Melbourne, Victoria, you would type in &#8220;94&#8243; as the code associated with that region. If you were in Sydney, you&#8217;d type in &#8220;73&#8243; instead.</li>
<li>Next you are asked if you would like Guided Channel Selection. Say YES (or just hit Enter as the default response is yes anyway).</li>
<li>You will then be asked if you have High-Definition TV. If you do use HDTV channels, you should say YES to this.</li>
<li>You are then asked if you have PayTV. If you are only configuring MythTV for Free-to-Air TV, say NO to this.</li>
<li>Now MythTV will ask you to match the known channels for your region to the channels that are setup in your MythTV installation. It will prompt you for each channel one by one. Simply enter the number corresponding to the guide data source you believe belongs to the currently displayed channel, eg: in some country areas, Channel Nine is known as WIN, so any references to &#8220;Channel Nine&#8221; you would tell Shepherd to use guide data provided by WIN. Repeat this until all channels have been prompted for. You may come across some doubled-up channels. This is normal.</li>
<li>When finished, Shepherd will list all your selections so you can verify them. When you are happy, respond YES.</li>
<li>You will then be asked about transitioning from an old grabber. Since this is a fresh installation, choose the zero (&#8220;do not transition&#8221;) option.</li>
<li>You will be given one more review and will then be asked if you&#8217;d like Shepherd to create a configuration file and update MythTV. Say YES.</li>
<li>When prompted about allowing Shepherd to auto-configure MythTV, say YES.</li>
<li>When prompted for Shepherd to create a symbolic link, say YES.</li>
<li>When prompted about the cron job Shepherd sets up, say YES.</li>
<li>Respond YES to the review question.</li>
<li>Shepherd will then begin testing its components and will eventually ask if you would like to install channel icons. This is not necessary (though you can complete it if you really like), so say NO to this.</li>
<li>Shepherd will finish.</li>
<li>Now we need to populate the EPG using Shepherd for the first time. Note that the initial run can take potentially an hour or more to run depending on your connection and quantity of channels in MythTV to find data for. Once finished, however, each subsequent run (once per hour, 24 hours) should be much faster. To run it for the first time manually, simply type in:
<pre><span style="color: #000080;">$ mythfilldatabase</span></pre>
<p>&#8230;and hit Enter.<br />
.</li>
<li>Depending on the minute that Shepherd setup for the cron job, you may find that as you try to run it manually, Shepherd advises that &#8220;another instance is running&#8221; and will abort itself. That&#8217;s fine &#8211; the job&#8217;s already started then automatically.</li>
<li>When Shepherd has completed its run, you will find that your EPG within MythTV is now nicely populated with highly descriptive blurbs and will remain so for at least 7-8 days ahead as long as the PC has a connection to the Internet.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/06/howto-build-a-mythtv-box-from-scratch-using-ubuntu-jaunty-904/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>HowTo: Fix MythTV&#8217;s Frontend not going full-screen in Ubuntu Jaunty.</title>
		<link>http://www.serenux.com/2009/04/howto-fix-mythtvs-frontend-not-going-full-screen-in-ubuntu-jaunty/</link>
		<comments>http://www.serenux.com/2009/04/howto-fix-mythtvs-frontend-not-going-full-screen-in-ubuntu-jaunty/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 11:36:43 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Display]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=485</guid>
		<description><![CDATA[The next version of Ubuntu is here &#8211; 9.04 aka &#8220;Jaunty Jackalope&#8221;. Along with a wealth of new features comes a wealth of new minor bugs to fix. Not enough to be show-stoppers, but enough to annoy the heck out of you, and here&#8217;s a doozy. If, like most people, you have Compiz enabled and [...]]]></description>
			<content:encoded><![CDATA[<p>The next version of Ubuntu is here &#8211; 9.04 aka &#8220;Jaunty Jackalope&#8221;. Along with a wealth of new features comes a wealth of new minor bugs to fix. Not enough to be show-stoppers, but enough to annoy the heck out of you, and here&#8217;s a doozy.</p>
<p>If, like most people, you have Compiz enabled and you start the MythTV Frontend, you will notice that rather than go full-screen, Myth will start as a window, essentially, even if your settings within Myth say to go full-screen.</p>
<p>In a single-screen scenario, the MythTV window will start just underneath the upper Gnome panel and the lower Gnome panel will sit over the top of the Myth window, obscuring part of the display. Proof that it&#8217;s a window can be found by holding down the ALT key and then dragging the MythTV display around with your mouse.</p>
<p>If you&#8217;re like me and use two displays with Myth being run on the second screen, you will see a gap at the top of the screen that is the same height as the upper Gnome panel and you will see your wallpaper showing through there, as shown in the illustration below.</p>
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/MythTVJauntyCompizGap.jpg" target="_blank"><img title="Gap in the MythTV display" src="http://www.serenux.com/~hyrax/snaps/MythTVJauntyCompizGap_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (520K)</p>
<p>Here&#8217;s how to fix this problem.</p>
<p><em><strong>EDIT June 2010: This problem still plagues Ubuntu 9.10 and 10.04, and  this fix will work for those releases as well.</strong></em></p>
<p><span id="more-485"></span></p>
<p>The simplest fix is to disable Compiz altogether and MythTV will suddenly go full-screen, but that&#8217;s not really a solution &#8211; you want to keep your eye-candy! So follow the next few steps instead:</p>
<ol>
<li>Go to System-&gt;Preferences-&gt;CompizConfig Settings Manager. If you do not have this option in your Preferences, then you need to add it. Quickly jump into a terminal and type in at the $ prompt:
<pre><span style="color: #000080;">$ sudo apt-get install compizconfig-settings-manager</span></pre>
<p>&#8230;and hit Enter. Once installed, go back into the Preferences menu and bring it up.</li>
<li>Scroll down until you get to the &#8220;Utility&#8221; section and then click on &#8220;Workarounds&#8221;. It should alredy be selected as enabled, but if not, also make sure the checkbox next to it is enabled too.
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/CompizWorkaroundSettings1.jpg" target="_blank"><img title="Compiz Workarounds" src="http://www.serenux.com/~hyrax/snaps/CompizWorkaroundSettings1_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (81K)<br />
.</p>
</li>
<li>The window changes to show you the Workaround options. The very first option is &#8220;Legacy Fullscreen Support&#8221;. This is unchecked by default. Click on the checkbox so that it IS checked, and then click on the Back button, then close the window.
<p style="text-align: center;"><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/CompizWorkaroundSettings2.jpg" target="_blank"><img title="Compiz Workarounds" src="http://www.serenux.com/~hyrax/snaps/CompizWorkaroundSettings2_thumb.jpg" alt="Click for full size" /></a><br />
Click for full size (71K)<br />
.</p>
</li>
<li>Quit the MythTV Frontend if you had it open already and then restart it. You will now find that the gap has disappeared, and that the MythTV display is now appearing full-screen properly instead of just being a window.<br />
.</li>
<li>Pat yourself on the back.</li>
</ol>
<p>Happy viewing! <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>Please note: This workaround is just that &#8211; a workaround. One minor problem that arises with it is that you may get occasional screen &#8220;flashing&#8221; or a flash of the background wallpaper appearing when a DBus message is displayed, or if you scroll a window or terminal on the same or other screen in a multi-screen setup. This does not occur often, however, and so may not bother you at all! The bug has been reported, and no doubt will be fixed in due course. When it is fixed, this workaround should be reversed.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/04/howto-fix-mythtvs-frontend-not-going-full-screen-in-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
