<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alex's Adventures on the Infobahn - linux</title><link href="https://www.bennee.com/~alex/" rel="alternate"></link><link href="https://www.bennee.com/~alex/blog/tag/linux/feed" rel="self"></link><id>https://www.bennee.com/~alex/</id><updated>2011-04-18T13:43:00+01:00</updated><subtitle>the wanderings of a supposed digital native</subtitle><entry><title>Playing Blu-Ray under Linux</title><link href="https://www.bennee.com/~alex/blog/2011/04/18/playing-blu-ray-under-linux/" rel="alternate"></link><published>2011-04-18T13:43:00+01:00</published><updated>2011-04-18T13:43:00+01:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2011-04-18:/~alex/blog/2011/04/18/playing-blu-ray-under-linux/</id><summary type="html">&lt;p&gt;One of the many deficiencies of &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Digital_rights_management"&gt;Digital Restrictions Management&lt;/a&gt; is the fact it makes doing legal authorised things hard for paying customers. For example my brother still can't play Blu-Ray disks on his laptop despite it having the requisite a) drive, b) power and c) display resolution. Because the OS …&lt;/p&gt;</summary><content type="html">&lt;p&gt;One of the many deficiencies of &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Digital_rights_management"&gt;Digital Restrictions Management&lt;/a&gt; is the fact it makes doing legal authorised things hard for paying customers. For example my brother still can't play Blu-Ray disks on his laptop despite it having the requisite a) drive, b) power and c) display resolution. Because the OS on his machine (Vista?) can't see a verifiable encrypted path to his big screen display it refuses to play his legally purchased disks.&lt;/p&gt;
&lt;p&gt;This is one reason why I haven't brought any Blu-Ray disks since the couple I got with my PS3 (to test the Hi-Def goodness). I refuse to buy them while I have no devices under my control* that can play them. Still the conversation with my brother and the fact I had a Blu-Ray drive in my desktop prompted me to see if it was indeed now possible.&lt;/p&gt;
&lt;p&gt;My desktop system runs &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Gentoo_Linux"&gt;Gentoo&lt;/a&gt; which makes running bleeding edge code very easy. I duly enabled the &amp;quot;bluray&amp;quot; and &amp;quot;aacs&amp;quot; &lt;a class="reference external" href="http://www.gentoo.org/dyn/use-index.xml"&gt;use flags&lt;/a&gt; and recompiled mplayer. This brought in libbluray and the command line utility aacskeys. Unfortunately mplayer was still unable to play the disk, complaining the disk was still encrypted.&lt;/p&gt;
&lt;p&gt;After a bunch of searching the interwebs and drawing blanks on finding any explicit &amp;quot;HOWTO&amp;quot; instructions I resorted to running mplayer through a debugger (one advantage of an Open Source system is there are no &amp;quot;black boxes&amp;quot; to reverse engineer) to see how libbluray was being invoked. It turned out it attempts to &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Dynamic_loading"&gt;dlopen&lt;/a&gt; another library &lt;a class="reference external" href="http://www.videolan.org/developers/libaacs.html"&gt;libaacs&lt;/a&gt; which wasn't on my system. Once I added its &lt;a class="reference external" href="http://bugs.gentoo.org/show_bug.cgi?id=352031"&gt;ebuild&lt;/a&gt; to my overlay I was one step closer.&lt;/p&gt;
&lt;p&gt;Unlike the libdecss (which works around the rather anaemic crypto on plain old DVDs) the libaacs library doesn't crack the considerably stronger keys used on BluRay. It relies on a database of Volume keys which can be placed in &lt;em&gt;~/.config/aacs/KEYDB.CFG&lt;/em&gt; which are used to calculate the final decryption keys for the content. Confusingly the format is different from the key databases &lt;a class="reference external" href="http://www.google.co.uk/search?q=KEYDB.CFG"&gt;you may find searching&lt;/a&gt; the internet. However the &lt;a class="reference external" href="https://code.videolan.org/videolan/libaacs/-/blob/master/KEYDB.cfg?ref_type=heads"&gt;libaacs file format documentation&lt;/a&gt; provides instruction on convert the old format into a new format file.&lt;/p&gt;
&lt;p&gt;With all of this in-place I was finally able to play my legally owned copy of Black Hawk Down. Yay!&lt;/p&gt;
&lt;p&gt;Of course this does require having the appropriate keys for the disc you want to play in your key database. This is where aacskeys comes in. This program allows you to extract the appropriate volume ID key from the disc you want to play. However there are some potential caveats. For starters the program is a little unfriendly to use as it requires certain files to be in the directory your running from. Also some BluRay drive firmwares will refuse to supply the needed keys if the disks are a newer generation than the drive (due to the AACS key revocation model). I'm not sure if a drive will self revoke under Linux if presented with a newer disk but this is the reason there are patched drive firmwares out there.&lt;/p&gt;
&lt;p&gt;In the event I was able to verify that aacskeys generates the same volume ID for my copy of Blackhawk Down as was in the KEYDB.CFG database so I know it works for now.&lt;/p&gt;
&lt;p&gt;In summary this does show it is possible to play a Blu-Ray disk on a Linux system however there was a fair bit of hoop jumping involved. If I can find a source repository for aacskeys I might start by cleaning it up and making the process of updating the key database a little less painful. I doubt I'll be buying any more Blu-Ray disks until the process of playback is a lot simpler.&lt;/p&gt;
&lt;p&gt;* My PS3 is very much Sony's device, a Faustian bargain I accept because I like playing games every now and again. Witness the removal of &lt;a class="reference external" href="http://en.wikipedia.org/wiki/OtherOS"&gt;OtherOS&lt;/a&gt; from working systems in the wild by a mandatory firmware update.&lt;/p&gt;
</content><category term="geek"></category><category term="blu-ray"></category><category term="defective-by-design"></category><category term="drm"></category><category term="gentoo"></category><category term="linux"></category></entry><entry><title>Its a kind of Magic</title><link href="https://www.bennee.com/~alex/blog/2004/09/29/its-a-kind-of-magic/" rel="alternate"></link><published>2004-09-29T12:20:00+01:00</published><updated>2004-09-29T12:20:00+01:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2004-09-29:/~alex/blog/2004/09/29/its-a-kind-of-magic/</id><summary type="html">&lt;p&gt;I &lt;a class="reference external" href="http://www.bennee.com/~alex/news.php?wl_mode=more&amp;amp;wl_eid=26"&gt;went to New Orleans&lt;/a&gt; last year and took a load of photos. unfortunately when I got back I found I could not read my cameras flash card because the crappy FAT filesystem it uses had gotten corrupted. I was very annoyed with this because visiting New Orleans was one …&lt;/p&gt;</summary><content type="html">&lt;p&gt;I &lt;a class="reference external" href="http://www.bennee.com/~alex/news.php?wl_mode=more&amp;amp;wl_eid=26"&gt;went to New Orleans&lt;/a&gt; last year and took a load of photos. unfortunately when I got back I found I could not read my cameras flash card because the crappy FAT filesystem it uses had gotten corrupted. I was very annoyed with this because visiting New Orleans was one of those &amp;quot;once in a lifetime&amp;quot; type things I'd really like to have a record of. One thing I did do however was take a bit-copy of the flash card (i.e. a copy of the device regardless of if the filesystem on it was hosed).&lt;/p&gt;
&lt;div class="line-block"&gt;
&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class="line"&gt;Yesterday in a spare moment I decided to browse &lt;a class="reference external" href="http://freshmeat.net/"&gt;Freshmeat&lt;/a&gt; to see if there were any FAT recovery tools. I did not hold out much hope as FAT isn't really a native Linux file format and is only really supported so people can duel boot or read floppies. However I did find a tool called &lt;a class="reference external" href="http://www.itu.dk/people/jobr/magicrescue/"&gt;Magic Rescue&lt;/a&gt; which is a file system agnostic rescue tool that takes advantage of the fact that files have a) magic numbers and b) generally made out of contiguous blocks. The result is I've rescued all the pictures from New Orleans and found my set from &lt;a class="reference external" href="http://www.bennee.com/~alex/mig/index.php?pageType=folder&amp;amp;currDir=./LRP/Sea%20Elf%20Special%20July%202003"&gt;the
2003 Sea Elf Special&lt;/a&gt; and some pictures from (one of) Anne's graduations. I'll try and get them up on the server by the end of the week.&lt;/div&gt;
&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="line-block"&gt;
&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class="line"&gt;I spent a most pleasant evening chatting to fellow &lt;a class="reference external" href="http://www.hbo.com/sixfeetunder/"&gt;Six Feet Under&lt;/a&gt; fan &lt;img alt="[info]" src="http://stat.livejournal.com/img/userinfo.gif" style="width: 17px; height: 17px;" /&gt;&lt;a class="reference external" href="http://www.livejournal.com/users/kmazzy/"&gt;KMazzy&lt;/a&gt; before and after the show. Our general conclusion seemed to be they were teasing us with the promises of hot lesbian action between Claire and Edie that was ultimately unfulfilled (at least on screen). Luckily I can watch the next episode on E4 on Thursday :-)&lt;/div&gt;
&lt;div class="line"&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><category term="geek"></category><category term="linux"></category><category term="photos"></category><category term="rescue"></category><category term="tools"></category></entry><entry><title>The Rules according to SCO</title><link href="https://www.bennee.com/~alex/blog/2003/11/21/the-rules-according-to-sco/" rel="alternate"></link><published>2003-11-21T14:00:00+00:00</published><updated>2003-11-21T14:00:00+00:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2003-11-21:/~alex/blog/2003/11/21/the-rules-according-to-sco/</id><summary type="html">&lt;div class="line-block"&gt;
&lt;div class="line"&gt;This anonymous light-hearted moment of unbridled sarcasm is licensed under&lt;/div&gt;
&lt;div class="line"&gt;Creative Commons. Please feel free to publish this and contribute&lt;/div&gt;
&lt;div class="line"&gt;additions or corrections.&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="sco-rules-of-the-game"&gt;
&lt;h2&gt;SCO rules of the game.&lt;/h2&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;Only SCO is allowed to bully and intimidate. No one may bully or intimidate SCO or its partners.&lt;/li&gt;
&lt;li&gt;If anyone claims SCO …&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</summary><content type="html">&lt;div class="line-block"&gt;
&lt;div class="line"&gt;This anonymous light-hearted moment of unbridled sarcasm is licensed under&lt;/div&gt;
&lt;div class="line"&gt;Creative Commons. Please feel free to publish this and contribute&lt;/div&gt;
&lt;div class="line"&gt;additions or corrections.&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="sco-rules-of-the-game"&gt;
&lt;h2&gt;SCO rules of the game.&lt;/h2&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;Only SCO is allowed to bully and intimidate. No one may bully or intimidate SCO or its partners.&lt;/li&gt;
&lt;li&gt;If anyone claims SCO has broken any laws, those laws are automatically one or more of the following: invalid, unenforcible, unconstitutional, violate export laws. If SCO claims IBM, Linux users or anyone else has broken any laws, they are automatically guilty and no evidence is necessary. Only unsubstantiated claims are necessary to prove guilt of others.&lt;/li&gt;
&lt;li&gt;SCO is free to change its story as many times and as frequently as it deems necessary. There is no such thing as lying, inconsistency, hypocrisy or self-contradiction.&lt;/li&gt;
&lt;li&gt;The most effective legal strategy is to mimic our opponent's every move. Taking the initiative is not necessary.&lt;/li&gt;
&lt;li&gt;Hype and sensationalism in the media are all that is necessary to prove that many people owe us money. Waiting quietly for our day in court is not acceptable.&lt;/li&gt;
&lt;li&gt;SCO will easily survive for the next 2 years waiting for the IBM and Red Hat trials to begin and then more years for the appeals process. SCO is a highly respected member of the Unix and Linux community and sells many high quality products and services and has a profitable, growing business.&lt;/li&gt;
&lt;li&gt;SCO has the moral high ground.&lt;/li&gt;
&lt;li&gt;SCO has the silent majority supporting its claims.&lt;/li&gt;
&lt;li&gt;SCO executives are entitled to make enough money to own a second house.&lt;/li&gt;
&lt;li&gt;Only SCO is allowed to have a &amp;quot;don't ask, don't tell&amp;quot; policy.&lt;/li&gt;
&lt;li&gt;Novell, Red Hat, Eric Raymond, Bruce Perens and the entire open source community are illegally conspiring against SCO because IBM is paying them to do it.&lt;/li&gt;
&lt;li&gt;SCO is free to use the terms &amp;quot;our valuable IP&amp;quot; and &amp;quot;our valuable intellectual property,&amp;quot; even in court, even though they are vage, nebulous terma. SCO does not ever need to specifically state what type of rights, such as copyrights,
trade secrets, patents or trademarks.&lt;/li&gt;
&lt;li&gt;The claims against Linux are part of a wider debate about intellectual property rights in a digital age. We are not aggrandizing the issues or trying to use smoke and mirrors to prevent you from discovering the emperor has no clothes. SCO and/or its executives are not trying to make themselves look and feel more important than they really are.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><category term="geek"></category><category term="linux"></category><category term="sco"></category></entry></feed>