<?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>hatherly.com blog</title>
	<atom:link href="http://hatherly.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://hatherly.com/blog</link>
	<description>hatherly.com blog</description>
	<lastBuildDate>Sat, 03 Jul 2010 07:20:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Multi-room audio (the easy way)</title>
		<link>http://hatherly.com/blog/?p=64</link>
		<comments>http://hatherly.com/blog/?p=64#comments</comments>
		<pubDate>Sat, 03 Jul 2010 07:16:29 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=64</guid>
		<description><![CDATA[I have a mythtv box in the lounge that I use for playing music and videos, but for a while now I have been looking into ways of extending the audio into additional rooms in the house (primarily the kitchen). I looked into running speaker cables (or a fibre optic cable) across the room but [...]]]></description>
			<content:encoded><![CDATA[<p>I have a mythtv box in the lounge that I use for playing music and videos, but for a while now I have been looking into ways of extending the audio into additional rooms in the house (primarily the kitchen). I looked into running speaker cables (or a fibre optic cable) across the room but didn&#8217;t want to start pulling up the carpet or having unsightly wires everywhere, so I started looking into other options. I looked into software options using my existing powerline or wireless network, but with all of them there were synchronisation issues &#8211; the overhead of network streaming means getting the audio in the lounge and kitchen sychronised was impractical.</p>
<p>Then I stumbled on a much simpler option. I already have a good quality DAB and FM radio in the kitchen. It occurred to me that I could use an FM transmitter like the ones used in cars for mp3 players to transmit audio to the car radio. I found a basic FM transmitter on amazon for £6.99 &#8211; <a href="http://www.amazon.co.uk/LUPO-Portable-Transmitter-Modulator-Channels/dp/B000S0XBE4/ref=sr_1_4?ie=UTF8&#038;s=electronics&#038;qid=1278139896&#038;sr=8-4">link</a>.</p>
<p>I didn&#8217;t want to run it on batteries, and obviously I don&#8217;t have a cigarette lighter socket behind my PC, so I cut the cigarette lighter plug off the end of the cable and replaced it with a USB plug from Maplin for £1.39 &#8211; <a href="http://www.maplin.co.uk/Module.aspx?ModuleNo=22681">link</a>. You can use <a href="http://pinouts.ru/Slots/USB_pinout.shtml">this page</a> to find out which pins provide the 5v output &#8211; the transmitter works fine on 5v.</p>
<p><a href="http://www.amazon.co.uk/LUPO-Portable-Transmitter-Modulator-Channels/dp/B000S0XBE4/ref=sr_1_4?ie=UTF8&#038;s=electronics&#038;qid=1278139896&#038;sr=8-4"><img alt="FM Transmitter" src="http://ecx.images-amazon.com/images/I/41ibdEbCyKL._AA300_.jpg" title="FM Transmitter" class="alignnone" width="300" height="300" /></a></p>
<p>Then, all I had to do was plug a splitter into the audio output from the myth box so it feeds into the speakers in the lounge as well as the FM transmitter. It works like a charm now and the music is perfectly in sync between the lounge and kitchen. Range is pretty good too &#8211; I can even tune in the radios upstairs and listen in there too!</p>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open source desktop search &#8211; and indexing Freemind maps</title>
		<link>http://hatherly.com/blog/?p=55</link>
		<comments>http://hatherly.com/blog/?p=55#comments</comments>
		<pubDate>Fri, 11 Dec 2009 16:23:49 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=55</guid>
		<description><![CDATA[I am always keen to investigate open source solutions to everyday problems I face, and my preference is for apps that run in a JRE. This is for two primary reasons: They don&#8217;t generally require &#8220;installing&#8221; by which I mean I can use them on a windows machine without requiring admin rights or permission to [...]]]></description>
			<content:encoded><![CDATA[<p>I am always keen to investigate open source solutions to everyday problems I face, and my preference is for apps that run in a JRE. This is for two primary reasons:</p>
<ul>
<li>They don&#8217;t generally require &#8220;installing&#8221; by which I mean I can use them on a windows machine without requiring admin rights or permission to update the registry</li>
<li>They are portable, so once I have figured out how to best use them to support my day-to-day tasks, I can easily transfer that solution to my Linux PC or Windows laptop</li>
</ul>
<p>I have been using Freemind for organising all my notes as mindmaps for some time, and I am very pleased with it.</p>
<p>Another area I have been looking into recently is desktop search. The basic offerings in Linux are generally very good, but the Microsoft search solutions are very poor in comparison. I have used Google desktop before &#8211; which is very good, but it doesn&#8217;t meet the criteria above. To that end I did a bit of searching, and came across a nice pure java desktop search application called <a href="http://dynaq.opendfki.de/trac">DynaQ</a>. It uses various other best-of-breed java libraries to do the extraction and indexing, so is a very powerful search tool. It makes use of Catweasel and Aperture to trawl files and extract content, then uses Apache Lucene for indexing.</p>
<p>One problem I did come across however was that DynaQ did not seem to index my Freemind mind maps. After a bit of digging I discovered that this was because when Freemind saves it&#8217;s maps it does not include the standard XML header at the start of the file to identify it as an XML file. As a consequence, when Aperture looks at the file it cannot identify what type of file it is, and does not index it.</p>
<p>There are a few simple steps to remedy the problem:</p>
<ul>
<li>Go to the DynaQ config directory and extract the contents of the apertureMimeConfiguration.xml.jar file</li>
<li>Edit the apertureMimeConfiguration.xml file, and amend the content of the XML section so it looks like this:</li>
<pre>
&lt;description>
  &lt;mimeType>text/xml&lt;/mimeType>
  &lt;extensions>xml,xsl,xslt,wml,mm&lt;/extensions>
  &lt;magicString>&amp;lt;?xml&lt;/magicString>
  &lt;magicString>&amp;lt;map&lt;/magicString>
&lt;/description>
</pre>
<li>Re-add the file to the jar and put it back in the config directory</li>
<li>Re-index the directory containing your Freemind files. NOTE: If the directory had been indexed previously you will probably need to update the timestamps on the files to force the indexer to re-index them</li>
</ul>
<p>You should now be able to search on the contents of your mind maps.</p>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=55</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random Freezing in Amarok, Banshee, Rhythmbox</title>
		<link>http://hatherly.com/blog/?p=39</link>
		<comments>http://hatherly.com/blog/?p=39#comments</comments>
		<pubDate>Fri, 19 Jun 2009 16:38:25 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=39</guid>
		<description><![CDATA[I am a big fan of Amarok &#8211; as a music application I think it is the best there is (much better than iTunes). I have for some time however had problems with it freezing up on a regular basis. It seemed to happen with no particular pattern, even if I opened the application and [...]]]></description>
			<content:encoded><![CDATA[<p>I am a big fan of Amarok &#8211; as a music application I think it is the best there is (much better than iTunes).</p>
<p>I have for some time however had problems with it freezing up on a regular basis. It seemed to happen with no particular pattern, even if I opened the application and left it on screen without playing any music or touching the mouse or keyboard, after a few minutes it would freeze up. It generally didn&#8217;t freeze for very long &#8211; maybe 10 seconds or so, but seemed to be doing it quite regularly every few minutes.</p>
<p>I eventually got so fed up with it that I tried switching to Banshee, but had exactly the same issue. I then tried Rhythmbox and had the same issue yet again, so decided it had to be a common library in Ubuntu rather than the apps themselves.</p>
<p>I have tried various things to get to the bottom of the problem. I stumbled across quite a few posts relating to issues with ESD (Enlightenment Sound Daemon) causing problems in all sorts of applications, but switching to OSS or ALSA didn&#8217;t seem to improve matters.</p>
<p>So, for now I have still not found a solution &#8211; please let me know if you have any suggestions!</p>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=39</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPlayer in MythTV (the Easy Way)</title>
		<link>http://hatherly.com/blog/?p=31</link>
		<comments>http://hatherly.com/blog/?p=31#comments</comments>
		<pubDate>Mon, 01 Dec 2008 09:57:51 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[MythTV]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=31</guid>
		<description><![CDATA[I use MythTV as a media centre in my lounge, not to record TV, but purely for browsing and playing my collection of mp3s, and occasionally playing downloaded video clips. It also allows me to read rss feeds and their linked web pages using a remote from the comfort of my sofa. One of the [...]]]></description>
			<content:encoded><![CDATA[<p>I use MythTV as a media centre in my lounge, not to record TV, but purely for browsing and playing my collection of mp3s, and occasionally playing downloaded video clips. It also allows me to read rss feeds and their linked web pages using a remote from the comfort of my sofa.</p>
<p>One of the things I have wanted to be able to do for a while is use mythtv to watch BBC iPlayer content. There has been some attempts at making mythtv plugins for this purpose, but they have always been rather complicated to set up which has always put me off.</p>
<p>I discovered however, that the BBC has added rss feeds of the iplayer programmes to each of the pages in the iPlayer, so I decided to see if it would be possible to use these to get at the content frmo mythtv. These feeds on the BBC site are actually Atom feeds rather than rss feeds, and unfortunately mythnews (the rss plugin for mythtv) doesn&#8217;t support atom feeds. Luckily I found a handy online utility that will do an on-the-fly conversion from atom to rss: <a href="http://atom2rss.semiologic.com/">http://atom2rss.semiologic.com/</a>  Using that I managed to create some new entries in mythnews that let me see the listings of iPlayer programmes for various channels.</p>
<p>So far so good, but when I select one of the items using the remote, it opens a mythbrowser window, but it gives a message saying that our version of flash is out of date and there is no easy way of upgrading it using the link provided. Luckily some helpful person has solved this one:<a href=" http://www.nabble.com/Re%3A-Mythbrowser-0.21-flash-p16200963s15552.html"> http://www.nabble.com/Re%3A-Mythbrowser-0.21-flash-p16200963s15552.html</a></p>
<p>So now I was able to choose a programme and open a browser window, and the player appears. The next problem is that the programme does not play automaticaly, but you get a &#8220;Click to Play&#8221; prompt, and you need to click play to start the playback. As I am using a simple media centre remote for this, and don&#8217;t want to use a mouse that is a problem.</p>
<p>To solve this one, I had a look at what the other iplayer plugin had done: <a href="http://www.mythtv.org/wiki/index.php/BBC_iPlayer">http://www.mythtv.org/wiki/index.php/BBC_iPlayer</a>. I realised there is a package called xautomation that can be used to script mouse movements and clicks, so I decided to make use of this to click play for me. First, I used synaptic (or apt-get) to get the xautomation package. You can test it by opening a terminal and typing:</p>
<pre>
echo mousemove 10 10 | xte
</pre>
<p>Your mouse pointer should move to the top left of the screen.<br />
So, now I opened the iplayer page in mythbrowser and worked out the x and y co-ordinates of the play button. I then created a small shell script to move to the correct position, click, then move the mouse out of the way:</p>
<pre>
#!/bin/bash
echo mousemove 200 560 | xte
sleep 1
echo mouseclick 1 | xte
sleep 1
echo mousemove 9999 9999 | xte
</pre>
<p>So, now I had a script to click the play button, I needed to associate it with a keypress on my remote control. Rather than so something to mythtv to get it to trap the event, I decided to use irexec which is a simple utility that comes with lirc (the remote control utility). So, I edited my ~/.lircrc file, and added:</p>
<pre>
begin
    remote = mceusb
    prog = irexec
    button = LiveTV
    config = /home/adam/Scripts/iplayerStartPause.sh
    repeat = 0
    delay = 0
end
</pre>
<p>I needed to make sure irexec was running as a daemon when my server starts up (irexec &#8211;daemon). Now, whenever I press the &#8220;LiveTV&#8221; button on my remote (I was not using that button previously) my script gets executed and the mouse moves and clicks in the correct place.</p>
<p>So, now I have the ability to browse iplayer programme listings, select one and play it. I need to do some more work to add the ability to make the video full-screen, alter volume, etc, but for now it is great to be able to watch iplayer programmes from my sofa without having to fire up the laptop or PC <img src='http://hatherly.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=31</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Gnome Application Menu Missing</title>
		<link>http://hatherly.com/blog/?p=17</link>
		<comments>http://hatherly.com/blog/?p=17#comments</comments>
		<pubDate>Mon, 08 Sep 2008 09:01:30 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=17</guid>
		<description><![CDATA[I have had a rather annoying problem on my Ubuntu box for the last few days. Not sure how it happened, but my application menu suddenly stopped working. Whenever I clicked on the menu I just got a tiny grey box with nothing in it where the menu should have been. After a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>I have had a rather annoying problem on my Ubuntu box for the last few days. Not sure how it happened, but my application menu suddenly stopped working. Whenever I clicked on the menu I just got a tiny grey box with nothing in it where the menu should have been.</p>
<p>After a lot of googling with no success, I finally stumbled on a post that mentioned some files in ~/.config/. When I had a look in there, there was a subdirectory called menus which contained a file called applications.menu. I had a look at that file, and sure enough it was empty. After having a quick look at my other Ubuntu box I noticed that box had no applications.menu, so I deleted the empty file and hey presto!</p>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=17</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Handy Shell Commands</title>
		<link>http://hatherly.com/blog/?p=15</link>
		<comments>http://hatherly.com/blog/?p=15#comments</comments>
		<pubDate>Thu, 20 Mar 2008 09:00:48 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=15</guid>
		<description><![CDATA[I thought I would share some commands and small single line bash scripts I have found useful in the past: AWK Output every 50th line from a file into a new file : cat infile.csv &#124; awk ' (NR % 50) == 0 { print $0 } ' > outfile.csv Print the 13th column (space [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I would share some commands and small single line bash scripts I have found useful in the past:</p>
<p><strong>AWK</strong></p>
<p>Output every 50th line from a file into a new file :</p>
<pre>cat infile.csv | awk ' (NR % 50) == 0 { print $0 } ' > outfile.csv</pre>
<p>Print the 13th column (space delimited):</p>
<pre>awk ' { print $13} '</pre>
<p>Print the 13th column (colon delimited):</p>
<pre>awk -F":" '{ print $13 }'</pre>
<p><strong>Find</strong></p>
<p>Recursive Grep (starting from current directory):</p>
<pre>find . -name "*" -exec grep -i "searchValue" {} /dev/null \;</pre>
<p>Compare files in two directories (-N for new files, -a for forcing ASCII, and -r for recursing subdirectories):</p>
<pre>diff -Nuar dir1 dir2</pre>
<p>Find all files under /dir older than 7 days, and delete them:</p>
<pre>find /dir -type f -mtime +7 | xargs rm -f</pre>
<p>Do a global search and replace from &#8220;html&#8221; to &#8220;shtml&#8221; across all html files in the current directory and all subdirectories:</p>
<pre>find . -name "*.html" -exec perl -pi -e 's/\.html/\.shtml/g' {} \;</pre>
<p>Rename all html files to shtml files in the current directory and all subdirectories:</p>
<pre>find . -name "*.html" | while read f
do
mv ./"$f" "${f%html}shtml";
done</pre>
<p>Find the largest files and directories on your hard disc (starting from the current directory):</p>
<pre>du -k * | sort -nr | more</pre>
<p>List Hardware in your machine:</p>
<pre>sudo lshw</pre>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Printers in Linux Without a Linux Driver</title>
		<link>http://hatherly.com/blog/?p=13</link>
		<comments>http://hatherly.com/blog/?p=13#comments</comments>
		<pubDate>Sun, 17 Feb 2008 09:00:11 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=13</guid>
		<description><![CDATA[I recently bought a Lexmark X4550 all-in-one printer, scanner and copier. What I didn&#8217;t realise before I bought it is that Lexmark are horribly bad at providing Linux support for their printers. After speaking to their support people and finding out that the printer really doesn&#8217;t have any linux drivers and is unlikely to have [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bought a Lexmark X4550 all-in-one printer, scanner and copier. What I didn&#8217;t realise before I bought it is that Lexmark are horribly bad at providing Linux support for their printers. After speaking to their support people and finding out that the printer really doesn&#8217;t have any linux drivers and is unlikely to have any in the near future I began looking into ways of getting it to print.</p>
<p>The solution I came up with is a bit nasty, and not something you will probably want to do unless you really really want to get things printing from Linux.</p>
<p>Here&#8217;s how it works:</p>
<p>1) Install Innotek VirtualBox? (or some other virtualisation tool)</p>
<p>2) Create a new Windows virtual machine (I used Windows 2000 &#8211; I had a spare license I got free with an old PC and am not using)</p>
<p>3) Install the printer driver software on your windows virtual machine</p>
<p>4) Install GPL Ghostscript in your Windows VM &#8211; available here: http://sourceforge.net/projects/ghostscript/</p>
<p>5) Install &#8220;PrintFile&#8221; in your Windows VM &#8211; available here: http://hem1.passagen.se/ptlerup/prfile.html</p>
<p>6) Create a network share on your Linux machine and map to it from your Windows VM so it has a drive letter (e.g. K:)</p>
<p>7) Create a directory in this shared directory that you will monitor for new print jobs (e.g. K:\printspool)</p>
<p>8 ) Run PrintFile and configure it as follows:</p>
<p> Set &#8220;enable spooler function&#8221; to ticked<br />
 Click the &#8220;Conversion&#8221; button<br />
 Tick Enable Conversion for PostScript?  Files<br />
 In the program box enter the path of your ghostscript installation<br />
 In the Parameters box enter the following:<br />
  -Ic:\gstools\gs8.61;c:\gstools\gs8.61\fonts -dSAFER -dBATCH -dNOPAUSE<br />
  -sDEVICE=mswinpr2 -dGraphicsAlphaBits=4 -sOutputFile=&#8221;\spool\&#038;p&#8221; &#038;i -c quit<br />
 (All on one line)<br />
 Click OK, then Save and the close the PrintFile </p>
<p>9) Create a new batch file in your Windows VM containing the following:</p>
<p> &#8220;C:\Program Files\PrintFile\prfile32.exe&#8221; /s:K:\printspool\*.ps<br />
 (Where K:\printspool is the spool directory you want to monitor)</p>
<p>10) Run your batch file and it will start monitoring your directory for new jobs to print</p>
<p>11) In your Linux PC you can now print from any application &#8211; in the print dialog tick the &#8220;print to file&#8221; box and save your print job in the shared print spool directory that is being monitored by your windows machine.</p>
<p>Not a neat solution I admit, but it works <img src='http://hatherly.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using RSync to backup from Windows to Linux</title>
		<link>http://hatherly.com/blog/?p=11</link>
		<comments>http://hatherly.com/blog/?p=11#comments</comments>
		<pubDate>Mon, 21 Jan 2008 08:59:25 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=11</guid>
		<description><![CDATA[I have a laptop running Windows Vista and a PC running Ubuntu Linux. When I take photos I generally transfer them to my laptop initially, but I wanted a simple way of keeping a copy of all the photos on the linux box too as a backup. Linux boxes have a great tool for data [...]]]></description>
			<content:encoded><![CDATA[<p>I have a laptop running Windows Vista and a PC running Ubuntu Linux. When I take photos I generally transfer them to my laptop initially, but I wanted a simple way of keeping a copy of all the photos on the linux box too as a backup. Linux boxes have a great tool for data synchronisation called rsync. rsync is a very powerful tool that can copy across only files that have been modified, and is even clever enough only to copy the differences between the files rather than the whole file. It can also compress the file before transferring it and decompress it at the other end seamlessly to improve network performance.</p>
<p>To use rsync to backup from the windows laptop however, I first needed to find a windows rsync server application. Luckily there is a very nice free application called DeltaCopy , which is bascically the linux rsync with a windows wrapper around it (using cygwin). I found it was easy to install and runs as a service in Windows. You can get DeltaCopy from here: http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp</p>
<p>Most versions of linux come with rsync included by default, so the linux end was easy to set up. I created a small script to run the actual synchronisation, and added it to cron so that it runs every hour and checks for new Photos on the laptop. You can see the script below:</p>
<pre>
 #!/bin/bash
 if [ ! -f "/tmp/synchronising" ]
 then
   echo "Running" > /tmp/synchronising
   rsync --verbose --progress --stats --compress --recursive --times 192.168.10.101::Photos /home/adam/Photos > /home/adam/Scripts/synchronisation.log
   rm -f /tmp/synchronising
 fi
</pre>
<p>Another good article on how to use rsync can be found here: http://everythinglinux.org/rsync/ </p>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video Editing in Ubuntu</title>
		<link>http://hatherly.com/blog/?p=10</link>
		<comments>http://hatherly.com/blog/?p=10#comments</comments>
		<pubDate>Thu, 06 Dec 2007 08:58:47 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=10</guid>
		<description><![CDATA[This post is a record of the tools I have used in Ubuntu Linux (7.04, Feisty Fawn) to capture and edit digital video, as well as transcode, author and burn it onto DVD. Software The main pieces of software I used were: DVGrab &#8211; Utility for grabbing digital video from a DV camcorder Kino &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a record of the tools I have used in Ubuntu Linux (7.04, Feisty Fawn) to capture and edit digital video, as well as transcode, author and burn it onto DVD.</p>
<p><strong>Software</strong></p>
<p>The main pieces of software I used were:</p>
<ul>
<li>DVGrab &#8211; Utility for grabbing digital video from a DV camcorder</li>
<li>Kino &#8211; Video calture and editing tool</li>
<li>Kdenlive &#8211; Non-linear video editing tool</li>
<li>Cinelerra &#8211; Another video editing tool. Installation instructions are available here: https://help.ubuntu.com/community/CinelerraOnFeistyAMD64</li>
<li>VLC Media Player &#8211; Very powerful video player, decoder, encoder, streamer, etc.</li>
<li>Tovid &#8211; Very handy tool for transcoding any video format into DVD format. Instructions on how to install this are available here: http://tovid.wikia.com/wiki/Installing_tovid/Ubuntu</li>
<li>mplayer &#8211; Video player and transcoding tool (used by Tovid)</li>
<li>faad &#8211; Audio decoder, useful for working with Divx/XVid files</li>
<li>DVDStyler &#8211; DVD Menu creator and burning tool. I had to compile from source and I also had to get the wxsvg library &#8211; this tutorial helped: http://ubuntuforums.org/showthread.php?t=482761</li>
<li>QDVDAuthor &#8211; A slightly more advanced DVD menu editor, but a bit more difficult to get to grips with than DVDStyler</li>
</ul>
<p><strong>Transcode an mp4 (xvid) video into DVD format</strong></p>
<p>Using tovid (adding subtitles when found):</p>
<p>Widescreen:</p>
<pre>tovid -overwrite -pal -dvd -wide -quality 8 -autosubs -in "Video.mp4" -out "Video.mp4.tovid_encoded"</pre>
<p>Normal:</p>
<pre>tovid -overwrite -pal -dvd -quality 8 -autosubs -in "Video.mp4" -out "Video.mp4.tovid_encoded"</pre>
<p>If the audio extraction fails, extract it separately and re-multiplex as follows:</p>
<pre>
faad -o outputfile.wav Video.mp4
nice -n 0 ffmpeg -i outputfile.wav -vn -ab 224k -ar 48000 -ac 2 -acodec ac3 -y ./Video.mp4.tovid_encoded/audio.ac3
mplex -V -f 8 -o
    ./Video.mp4.tovid_encoded.mpg
    ./Video.mp4.tovid_encoded/video.m2v
    ./Video.mp4.tovid_encoded/audio.ac3</pre>
<p><strong>Transcode a Matroska (mtk) file into DVD format</strong></p>
<p>Do the initial extraction using tovid as per the steps shown above. When I did this the audio extraction failed, so I did it like this (I&#8217;m sure there is a easier way however):<br />
Note &#8211; for the first step you will need to install the mkvtoolnix package from synaptic.</p>
<pre>
mkvextract tracks Video.mkv 2:audio.aac
faad -o outputfile.wav audio.aac
nice -n 0 ffmpeg -i output.wav -vn -ab 224k -ar 48000 -ac 2 -acodec ac3 -y audio.ac3
mplex -V -f 8 -o Video.mpg video.m2v audio.ac3 </pre>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=10</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Ubuntu 7.04</title>
		<link>http://hatherly.com/blog/?p=8</link>
		<comments>http://hatherly.com/blog/?p=8#comments</comments>
		<pubDate>Tue, 27 Nov 2007 08:58:30 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hatherly.com/blog/?p=8</guid>
		<description><![CDATA[This is a record of how I configured Ubuntu Linux 7.04 (Feisty Fawn) to run on my PC. This is purely for my own reference in case I need to reinstall it in the future, but it may be of use to other people who have similar hardware. My hardware is as follows: CPU: AMD [...]]]></description>
			<content:encoded><![CDATA[<p>This is a record of how I configured Ubuntu Linux 7.04 (Feisty Fawn) to run on my PC. This is purely for my own reference in case I need to reinstall it in the future, but it may be of use to other people who have similar hardware.</p>
<p>My hardware is as follows:</p>
<ul>
<li>CPU: AMD Athlon 64 3000+</li>
<li>Graphics: ATI Radeon 9550</li>
<li>Wireless: Belkin 802.11g (Broadcom BCM4306 chipset)</li>
<li>Sound: Realtek AC&#8217;97 (on motherboard)</li>
<li>Video Capture: Conexant BtPCI</li>
<li>Webcam: Logitech Quickcam</li>
<li>Hard Drive: IDE</li>
<li>Other: iPod Nano, USB Memory Stick</li>
<li>Printer: Epson Stylus Photo 915</li>
<li>Printer: Lexmark All-in-one X4550</li>
</ul>
<p><strong>The good news:</strong></p>
<p>The basics were detected fine and worked straight away once I installed Ubuntu. My video card was detected, I got a decent screen resolution, and the sound worked. Also, my memory stick worked, and I could browse the files on my iPod. I could also see files on the NTFS partition of my hard drive, but they were read-only.</p>
<p>Wherever possible I am sticking to versions of apps and libraries in the Ubuntu Feisty Universe (using Synaptic).</p>
<p><strong>The bad news:</strong></p>
<ul>
<li>My wireless card didn&#8217;t work (luckily I had a wireless bridge I was able to borrow to plug into a wired port until I got it working).</li>
<li>The 3D effects (Compiz/Beryl) did&#8217;t work &#8211; no 3d acceleration.</li>
<li>Adobe flash player wouldn&#8217;t work because there is no 64 bit version <img src='http://hatherly.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </li>
</ul>
<p><strong>3D acceleration</strong></p>
<p>To start with there was some acronyms to deal with. ATI offer a Linux driver on their web site, but it is not fully open source. It referred to as the fglrx driver. I didn&#8217;t have much luck with this driver &#8211; after installing it I still couldn&#8217;t get the 3D acceleration to work. There is an open source driver that seems to be referred to as the SGI driver, or just the &#8220;open source driver&#8221; &#8211; in the end this one worked for me.<br />
There are lots of posts in forums that discuss ways of making it work, but it was this forum that had the answer that worked on my system: http://www.howtoforge.com/ubuntu_feisty_beryl_ati_radeon</p>
<p>I do still get a problem when I first start up my PC. I have to manually restart Beryl and the Emerald theme manager by typing:<br />
(beryl &#038;) &#038;<br />
(emerald &#038;) &#038;</p>
<p><strong>Flash Player</strong></p>
<p>To get flash working in firefox, I had to use something called npwrapper to allow a 64bit firefox to run a 32bit plugin. The tutorial that I found worked was this one: http://ubuntuforums.org/showthread.php?t=341727 Make sure you follow the instructions carefully and don&#8217;t skip any steps.</p>
<p><strong>Wireless Network</strong></p>
<p>I struggled to get my Belkin wireless card working before giving up and buying a Netgear card instead <img src='http://hatherly.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The worked fine with the madwifi drivers that come with Ubuntu, but I did have a problem with the link dropping every so often. It appears to be a bug described here: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/64173</p>
<p><strong>Webcam</strong></p>
<p>Haven&#8217;t had a chance to try this out yet.</p>
<p><strong>Printing</strong></p>
<p>My Epson printer was detected and showed up correctly as an Epson Stylus Photo 915, but when I tried to print the colours didn&#8217;t come out correctly. To fix it I installed the gutenprint driver &#8211; http://www.linuxprinting.org/show_driver.cgi?driver=gutenprint&#038;fromprinter=Epson-Stylus_Photo_915</p>
<p>With the Lexmark printer I had more problems &#8211; it seems there is no Linux driver for the X4550. I spoke to the Lexmark technical support people and they apologised but confirmed it is not supported <img src='http://hatherly.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><strong>Other Apps</strong></p>
<p>Some other useful apps I installed:</p>
<ul>
<li>Java &#8211; I had some difficulties with the versions of Java available using Synaptic, so I downloaded the binary installer for Java 6 from the Sun website and that seems to work fine.</li>
<li>IDE: Eclipse &#8211; The version of Eclipse available in Synaptic is 3.2 so not the latest, but seems to work ok.</li>
<li>IDE: Netbeans &#8211; I had a problem running this that it transpires is a problem with all swing apps when using Beryl. The only way around it at present seems to be switching back to another window manager like metacity. I tried the latest daily builds of Java 6 and even Java 7 but they all seem to have the same problem. The only workaround (of sorts) I have found is the rather clever idea of running a nested X session within the current one. Details are available here: http://www.vikrammohan.com/blog/2006/12/31/how-to-make-java-swing-work-on-beryl-with-aiglx/</li>
<li>Instant Messenger: Pidgin &#8211; A slightly newer version of Gaim. I got this one from their website, only Gaim is available in Synaptic. The sound didn&#8217;t work at first but I followed the instructions here to fix it: http://modfree.org/index.php?topic=458.msg5125 . Also, I wanted support for the sametime protocol, which meant that before compiling I had to install the libpurple-meanwhile and libpurple-meanwhile-dev packages.</li>
<li>Password Safe &#8211; This is an app I used to use on Windows and find really useful. I found that it can be run in Wine &#8211; details here: http://appdb.winehq.org/appview.php?iVersionId=8739 . Wine is also not available in Synaptic as far as I can tell, so follow these instructions to add it: http://www.winehq.org/site/download-deb</li>
<li>Browser: Firefox &#8211; Installed by default</li>
<li>Email: Thunderbird &#8211; Available in Synaptic</li>
<li>Launcher: Katapult &#8211; Available in Synaptic</li>
<li>Video Editing &#8211; I will do a separate post on this topic..</li>
<li>Podcasts &#8211; Podnova client &#8211; available from http://www.podnova.com/subscriptions/download/</li>
<li>Photo Management &#8211; Desktop Flickr Organiser. Great tool for viewing and editing your online Flickr photo collection. Available from http://code.google.com/p/dfo/</li>
<li>Album Cover Art &#8211; A clever little script you can use to display your albums in the Nautilus file manager with their cover art: http://ubuntuforums.org/showthread.php?t=486359</li>
<li>Cover Art Downloader &#8211; A handy tool for adding cover art to your music collection: http://www.unrealvoodoo.org/hiteck/projects/albumart/ . An extra step was required to make it work in Feisty: http://ubuntuforums.org/showthread.php?p=2809331</li>
<li>Screenlets &#8211; nifty little widgets to show clocks, CPU meters, calendars etc on the desktop: http://tombuntu.com/index.php/2007/08/24/osx-like-widgets-with-ubuntu-screenlets-and-compiz-fusion/</li>
</ul>
<p><strong>Themes</strong></p>
<p>Once you have switched in the 3d effects in the appearances settings, you then have the option of two different kinds of window decorations (and therefore two different types of themes): GTK or Emerald. Switching between these and configuring them however is a bit of a pain. I came across this page which explains how to install some packages to make it all a lot easier: http://www.linuxquestions.org/questions/fedora-35/cant-get-berylemerald-theme-working-629177/</p>
<p>To get themes I found this site was the best: http://www.gnome-look.org </p>
]]></content:encoded>
			<wfw:commentRss>http://hatherly.com/blog/?feed=rss2&amp;p=8</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
