<?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 Troll-Range &#187; Linux</title>
	<atom:link href="http://blog.trollgod.org.uk/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.trollgod.org.uk</link>
	<description>Ghworg&#039;s wibblings and geek projects.</description>
	<lastBuildDate>Mon, 26 Apr 2010 19:31:11 +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>Backporting new code to Debian packages</title>
		<link>http://blog.trollgod.org.uk/2009/11/backporting-new-code-to-debian-packages/</link>
		<comments>http://blog.trollgod.org.uk/2009/11/backporting-new-code-to-debian-packages/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:30:23 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[packaging]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=374</guid>
		<description><![CDATA[<p>I like Linux distros packaging systems, especially Debian&#8217;s. It makes it trivial to install, remove and change to different versions of programs. The only problem is that sometimes there is a delay in packaging the latest version of an app.</p> <p>Never fear though, if you are willing to do a little bit of work <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/11/backporting-new-code-to-debian-packages/">Backporting new code to Debian packages</a></span>]]></description>
			<content:encoded><![CDATA[<p>I like Linux distros packaging systems, especially Debian&#8217;s.  It makes it trivial to install, remove and change to different versions of programs.  The only problem is that sometimes there is a delay in packaging the latest version of an app.</p>
<p>Never fear though, if you are willing to do a little bit of work you can shoehorn the latest code into a package yourself without needing any special knowledge of how to create packages.  Note this will only work with programs that already have been packaged since it re-uses the old packaging info with the new code.</p>
<p>I refer to Debian, but the exact same procedure will work on any deb based distro, such as Ubuntu.</p>
<p>Before starting make sure you have the devscripts and build-essential packages installed.  These will install all the tools needed to build debian packages.</p>
<p>First download the source package of the old version.</p>
<pre>apt-get source $NAME</pre>
<p>Then, as a sanity check cd into the created directory and run</p>
<pre>debuild -i -us -uc</pre>
<p>This will probably complain about missing packages needed for building, so go ahead and install them with apt-get or aptitude or whatever.  Then re-run the build command.  Assuming that works you should end up with some .deb files in the parent dir.</p>
<p>Now grab the code for the latest version from its website.  If it is not already in a tarball you&#8217;ll want to make one from it with</p>
<pre>tar czf application_version-1.orig.tar.gz applicationdir</pre>
<p>If it is a tarball already then just rename it to match the formatting application_version-1.orig.tar.gz.  For example when backporting mesa I name the tarball mesa_7.7.0-1.orig.tar.gz.</p>
<p>Next copy the debian dir from the old application directory to the new one.</p>
<pre>cp -a application-debianversion/debian application-newversion/</pre>
<p>Then cd into the new directory and run</p>
<pre>debchange -v version-1 "Updated code to latest version"</pre>
<p>It is vital that the version number used in this command matches the naming of the .orig.tar.gz file you created earlier.  For example for mesa I use 7.7.0-1.  This is the magic that will make everything work.</p>
<p>The final step is to build the new package.</p>
<pre>debuild -i -us -uc</pre>
<p>and tada!  With a bit of luck your shiny new version should be packaged up and ready to be installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/11/backporting-new-code-to-debian-packages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox 3.5 startup problem (solved)</title>
		<link>http://blog.trollgod.org.uk/2009/09/firefox-3-5-startup-problem-solved/</link>
		<comments>http://blog.trollgod.org.uk/2009/09/firefox-3-5-startup-problem-solved/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 15:06:28 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[iceweasel]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=358</guid>
		<description><![CDATA[<p>Firefox[1] 3.5 has been out for a while now, but I&#8217;ve only recently managed to switch due to the program not starting up unless I use a weird command line hack.</p> <p>By using the strace command I found it was hanging on a futex call, starting in safe-mode and even deleting .mozilla didn&#8217;t fix <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/09/firefox-3-5-startup-problem-solved/">Firefox 3.5 startup problem (solved)</a></span>]]></description>
			<content:encoded><![CDATA[<p>Firefox<sup>[<a name="id394062" href="#ftn.id394062">1</a>]</sup> 3.5 has been out for a while now, but I&#8217;ve only recently managed to switch due to the program not starting up unless I use a weird command line hack.</p>
<p>By using the strace command I found it was hanging on a futex call, starting in safe-mode and even deleting .mozilla didn&#8217;t fix it.  I found a <a href="http://support.mozilla.com/tiki-view_forum_thread.php?comments_parentId=379151&#038;forumId=1">forum thread</a> on the mozilla forum that shows I&#8217;m not the only one to come across this.  There was a fix described in a post linked from there, but it only worked by editing the launch command, and I&#8217;m not prepared to dig through the OS and replace every instance of the launcher to make it work.</p>
<p>Yesterday though I found the real culprit, it was padsp!  A long time ago I had set Firefox to use padsp in order to get flash sound to work correctly with pulseaudio.  I had totally forgotten I had done this, because I had made the change in /etc not in my home folder.</p>
<p>So if you find Firefox 3.5 won&#8217;t start on linux even though 3.0 works fine then check if you have a FIREFOX_DSP (or ICEWEASEL_DSP if on Debian) set somewhere.  For me the fix was this:</p>
<p>In file /etc/iceweasel/iceweaselrc:</p>
<pre>
# which /dev/dsp wrapper to use
ICEWEASEL_DSP="padsp"
</pre>
<p>See the ICEWEASEL_DSP line, delete it or comment it out and Iceweasel starts working.  If you are using vanilla Firefox then obviously replace every instance of the word iceweasel with firefox to implement the fix on your system.</p>
<p>Hope this helps someone.  Oh and flash now works fine with pulseaudio without the padsp thing too.</p>
<div class="footnote">
<p>
<sup>[<a name="ftn.id394062" href="#id394062">1</a>]</sup> I&#8217;m actually using <a href="http://packages.debian.org/experimental/iceweasel">Iceweasel</a> but it is Firefox in all but name so I&#8217;ll call it that here</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/09/firefox-3-5-startup-problem-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Control your Music player via bluetooth</title>
		<link>http://blog.trollgod.org.uk/2009/05/control-your-music-player-via-bluetooth/</link>
		<comments>http://blog.trollgod.org.uk/2009/05/control-your-music-player-via-bluetooth/#comments</comments>
		<pubDate>Fri, 15 May 2009 22:36:28 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[phone]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=341</guid>
		<description><![CDATA[<p>I don&#8217;t need no steenking iphone with its fancy apps. I have a fairly low end phone, a Motorola RIZR Z3 but it can run Java J2ME apps. The other day I found an awesome one that lets me control my music player MPD via bluetooth, with a nice little GUI and everything (it <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/05/control-your-music-player-via-bluetooth/">Control your Music player via bluetooth</a></span>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t need no steenking iphone with its fancy apps.  I have a fairly low end phone, a <a href="http://reviews.cnet.com/2300-6454_7-6555165-1.html?s=0&#038;o=6555165&#038;tag=mncol;page">Motorola RIZR Z3</a> but it can run Java J2ME apps.  The other day I found an awesome one that lets me control my music player <a href="http://sourceforge.net/projects/musicpd">MPD</a> via bluetooth, with a nice little GUI and everything (it also apparently works for XMMS and Winamp).</p>
<p>I was going to twitter about it, but it is so frickin awesome that it deserves more than 140 characters about it.  The app is called <a href="http://jamse.sourceforge.net/">JAM SE</a> and it looks like it will run on just about any phone that supports J2ME and has bluetooth.</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/yjoWYBUWZrM&#038;hl=en&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/yjoWYBUWZrM&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>There is a <a href="http://debian-multimedia.org/dists/unstable/main/binary-i386/package/bemused-mpc.php">Debian package</a> for the computer-side which makes installing on Debian/Ubuntu a doddle.  For others you can grab the program from its own site <a href="http://arton.cunst.net/mpd/">Bemused-MPD bridge</a>.</p>
<p>With a little bit of extra work I can even get it to control the other music playing computers in the house (all running MPD), <a href="http://kitenet.net/~joey/blog/entry/mpd_proxy/">mpdproxy</a> on the laptop with the bluetooth connection will redirect all MPD clients to my currently active server.</p>
<p>It is so cool to be able to control my music playback from anywhere in the house just by whipping out my phone, geektastic. <img src='http://blog.trollgod.org.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/05/control-your-music-player-via-bluetooth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virgin Media are petty scumbags</title>
		<link>http://blog.trollgod.org.uk/2009/04/virgin-media-are-petty-scumbags/</link>
		<comments>http://blog.trollgod.org.uk/2009/04/virgin-media-are-petty-scumbags/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 18:27:56 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[cablemodem]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=150</guid>
		<description><![CDATA[<p>For a few days now I&#8217;ve been working (a few minutes at a time) on writing a post about how to monitor your bandwidth usage using munin by directly querying your cable-modem. Today however, when I checked my nice munin graph I found it had stopped working at about 8AM. Some further diagnostic procedures <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/04/virgin-media-are-petty-scumbags/">Virgin Media are petty scumbags</a></span>]]></description>
			<content:encoded><![CDATA[<p>For a few days now I&#8217;ve been working (a few minutes at a time) on writing a post about how to monitor your bandwidth usage using <a href="http://munin.projects.linpro.no/">munin</a> by directly querying your cable-modem.  Today however, when I checked my nice munin graph I found it had stopped working at about 8AM.  Some further diagnostic procedures revealed that the cable modem was no longer responding to <a href="http://en.wikipedia.org/wiki/Simple_Network_Management_Protocol">SNMP</a> requests.</p>
<p>After a bit of googling I discovered the reason for this is that my ISP, Virgin Media, have deliberately disabled SNMP access.  Reports vary on the reasons for this, some claim &#8220;performance&#8221; others &#8220;security&#8221;, but both are utterly bogus reasons.  All this does is deny customers basic information about their connection like bandwidth usage, and I can only conclude that Virgin Media want to make it more difficult for people to dispute their figures.</p>
<p>This isn&#8217;t enough to make me ditch VM, but it has pissed me off, and the next time I move house VM are going to be waaay down the list of providers I&#8217;ll look at.</p>
<p>PS.  My router doesn&#8217;t support SNMP either so I can&#8217;t use that.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/04/virgin-media-are-petty-scumbags/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Who-T: Synaptics 1.1 and what your touchpad can do now</title>
		<link>http://blog.trollgod.org.uk/2009/04/who-t-synaptics-11-and-what-your-touchpad-can-do-now/</link>
		<comments>http://blog.trollgod.org.uk/2009/04/who-t-synaptics-11-and-what-your-touchpad-can-do-now/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 23:00:15 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[synaptics]]></category>
		<category><![CDATA[touchpad]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=317</guid>
		<description><![CDATA[<p>The synaptics driver. So, here&#8217;s a list of things that have changed recently with version 1.0 and 1.1.</p> <p>Perhaps the most important changes have to to with auto-scaling. Synaptics obtains the touchpad dimensions from the kernel and adjusts speed, acceleration, the edges and more depending on these dimensions.</p> <p>via Who-T: Synaptics 1.1 and what <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/04/who-t-synaptics-11-and-what-your-touchpad-can-do-now/">Who-T: Synaptics 1.1 and what your touchpad can do now</a></span>]]></description>
			<content:encoded><![CDATA[<p>The synaptics driver. So, here&#8217;s a list of things that have changed recently with version 1.0 and 1.1.</p>
<p>Perhaps the most important changes have to to with auto-scaling. Synaptics obtains the touchpad dimensions from the kernel and adjusts speed, acceleration, the edges and more depending on these dimensions.</p>
<p>via <a href="http://who-t.blogspot.com/2009/04/synaptics-11-and-what-your-touchpad-can.html">Who-T: Synaptics 1.1 and what your touchpad can do now</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/04/who-t-synaptics-11-and-what-your-touchpad-can-do-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let my kernel be Free</title>
		<link>http://blog.trollgod.org.uk/2009/04/let-my-kernel-be-free/</link>
		<comments>http://blog.trollgod.org.uk/2009/04/let-my-kernel-be-free/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 23:00:24 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[freesoftware]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[radeon]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=319</guid>
		<description><![CDATA[<p class="wp-caption-text">Playing a movie using Free driver</p> <p>There has been some interesting progress on the open-source drivers for ATI graphics cards recently. It has long been a goal of mine to have a completely Free kernel, it&#8217;s why I bought this laptop rather than an NVidia-based one. I want better 3D performance than Intel <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/04/let-my-kernel-be-free/">Let my kernel be Free</a></span>]]></description>
			<content:encoded><![CDATA[<div id="attachment_322" class="wp-caption alignnone" style="width: 650px"><a href="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/desktop1.png"><img src="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/desktop1.png" alt="Playing a movie using Free driver" title="KDE_3.5_Desktop" width="640" height="400" class="size-full wp-image-322" /></a><p class="wp-caption-text">Playing a movie using Free driver</p></div>
<p>There has been some <a href="http://www.phoronix.com/scan.php?page=article&#038;item=kernel_modesetting&#038;num=1">interesting</a> <a href="http://www.phoronix.com/scan.php?page=article&#038;item=amd_r700_oss_3d&#038;num=1">progress</a> on the open-source drivers for ATI graphics cards recently.  It has long been a goal of mine to have a completely <a href="http://www.fsf.org/licensing/essays/free-sw.html">Free</a> kernel, it&#8217;s why I bought this laptop rather than an NVidia-based one.  I want better 3D performance than Intel can offer and was originally going to go NVidia because their Linux support was better.  Then ATI released the first load of specs for their cards and I switched my preference.  In the end I bought a Toshiba laptop with a Radeon Mobility 2600 graphics chip (also known as an M76 chip).</p>
<p>I&#8217;m not a zealot when it comes to Free software, I am a pragmatist, I use whatever works best for me.  But experience has taught me that when it comes to Linux kernel code the non-free stuff is always problematic.  Practically every kernel crash I&#8217;ve ever had can be traced back to some non-free driver I had in there.  Who is to blame for this I&#8217;m not going to go into, there are arguments on both sides, but the fact is that if you want a completely stable Linux system you are better off keeping the kernel Free.</p>
<p>Of course it takes time to write drivers for something as complex as a graphics card, so up till now I&#8217;ve been using the proprietary <a href="http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx?type=2.4.1&#038;product=2.4.1.3.2&#038;lang=English">fglrx drivers</a> from ATI.  A necessary compromise, since when I first installed Debian they were the only thing that would get X to even run.  It works well enough once you learn to avoid doing the things that cause it to crash (like logging out of KDE), but it adds a hassle to upgrades (having to recompile a kernel module, which often fails and needs custom patches) and is rather finicky about its settings.  I&#8217;ve periodically tested the state of the Free drivers, both <a href="http://www.x.org/wiki/radeon">radeon</a> and <a href="http://www.x.org/wiki/radeonhd">radeonhd</a>, and seen steady progress.</p>
<p>Today I found that they have finally reached the <em>good-enough</em> point where I can switch.  The <em>must-have</em> feature for me is tear-free video playback that doesn&#8217;t cause my CPU usage to skyrocket (and hence kick the fan up to unacceptable noise levels).  This means the driver needs accelerated 2D and <a href="http://en.wikipedia.org/wiki/X_video_extension">xv</a> support, which has now been achieved.</p>
<p>One quick point for anyone else wanting to switch to the Free driver from fglrx.  It won&#8217;t work unless you uninstall fglrx, if you just install them side-by-side and tell X to use the Free driver it will show a corrupted image or a black screen then hang.  I thought there had been a major regression until I tried removing fglrx, after which both free drivers worked perfectly.</p>
<p>I&#8217;m using the <a href="http://packages.debian.org/sid/xserver-xorg-video-radeon">xserver-xorg-video-radeon</a> driver from Debian sid, along with a custom kernel to get the required <a href="http://dri.freedesktop.org/wiki/DRM">DRM</a> support.  The latest (2.6.29) kernel in sid doesn&#8217;t have the right versions of radeon.ko and drm.ko that are needed for the 2D acceleration to work.  There are two ways to get these, you can either compile a new kernel using the drm-rawhide branch of Dave Arlie&#8217;s kernel <a href="http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=summary">http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=summary</a>.  Or you can just use the <a href="http://wiki.x.org/wiki/radeonhd%3Ar6xx_r7xx_branch">instructions on the X wiki</a> to just compile new versions of those two modules.</p>
<p>I&#8217;m using a whole new kernel because I also want to experiment with <a href="https://fedoraproject.org/wiki/Features/KernelModesetting">kernel mode setting</a>.  Since radeonfb has never worked on this hardware and the best resolution vesafb can give me is 1024&#215;768 (native res of the LCD is 1280&#215;800), KMS is the only hope I have of getting a <a href="http://en.wikipedia.org/wiki/Virtual_console_(computer_user-interface)">VT</a> at the proper resolution.</p>
<p>There is no 3D support in the version of the driver I&#8217;m using, but support for that is being written as I type so I&#8217;m hopeful I won&#8217;t have to do without for long.  It isn&#8217;t a huge loss for me since I only use it for playing KotOR under wine and if I get desperate I can reinstall it in Windows (I dual-boot the laptop).  3D would be good for when I switch to KDE4 but again, I can live without it for a while.  I&#8217;m happy with what I have for now, and it won&#8217;t be that long before full 3D support comes along (and I won&#8217;t have to fiddle with code to get it, just aptitude upgrade).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/04/let-my-kernel-be-free/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>KDE4 will rock</title>
		<link>http://blog.trollgod.org.uk/2009/04/kde4-will-rock/</link>
		<comments>http://blog.trollgod.org.uk/2009/04/kde4-will-rock/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 02:12:00 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=273</guid>
		<description><![CDATA[<p>I&#8217;ve been playing some more with KDE4 v4.2 mainly Debian unstable in a VirtualBox VM, but also a Fedora 11 beta livecd on my main laptop and installed on my EeePC. The most important thing, stability, is definitely there now, it hasn&#8217;t crashed on me at all. I really could pull the trigger on <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/04/kde4-will-rock/">KDE4 will rock</a></span>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing some more with KDE4 v4.2 mainly Debian unstable in a <a href="http://www.virtualbox.org/">VirtualBox</a> VM, but also a <a href="http://torrent.fedoraproject.org/">Fedora 11 beta livecd</a> on my main laptop and installed on my EeePC.  The most important thing, stability, is definitely there now, it hasn&#8217;t crashed on me at all.  I really could pull the trigger on the switch-over today if I had to, but I&#8217;m going to wait a little while longer.  There are still some not essential but <em>nice-to-have</em> features missing but it is eminently usable as-is.</p>
<p><div id="attachment_303" class="wp-caption alignnone" style="width: 650px"><a href="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_-_desktop5.png"><img src="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_-_desktop5.png" alt="KDE Desktop screenshot" title="Desktop" width="640" height="400" class="size-full wp-image-303" /></a><p class="wp-caption-text">KDE Desktop screenshot</p></div><br />
All the hardware I&#8217;ve been testing with has had either no 3d-acceleration, or practically none in the case of the EeePC.  I was hoping that VirtualBox&#8217;s new opengl acceleration feature would let me use some of the desktop effects but while it is apparently sufficient to run compiz it is no enough to handle KDE4s effects. <img src='http://blog.trollgod.org.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />   So I have yet to experience the full-on KDE4, and won&#8217;t until I make the switch proper.</p>
<p><div id="attachment_310" class="wp-caption alignright" style="width: 226px"><a href="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_-_networkmanager.png"><img src="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_-_networkmanager.png" alt="Network-Manager Plasmoid" title="NetworkManager" width="216" height="234" class="size-full wp-image-310" /></a><p class="wp-caption-text">Network-Manager Plasmoid</p></div><br />
To control Network-Manager there is no stable tool, but there is a plasmoid in <a href="http://packages.debian.org/experimental/kde/plasma-widget-networkmanagement">Debian experimental</a>.  It works for the most part, but sometimes playing with the settings can make it crash.  Not critical since it restarts automatically and the underlying network connection isn&#8217;t affected by the crash.</p>
<p>There is no bluetooth support yet, not a deal killer, but I do use it to sync my phone contacts and transfer the odd file so I&#8217;d like to wait till something is in place for that.  I saw some mentions of bluetooth in the Fedora GUI, but couldn&#8217;t get it to actually talk to anything.  That might be due to the wireless switch on my laptop though, as it has both a hardware and software switch which both need to be enabled to make bluetooth transmit.</p>
<p>Both in my VM and on my EeePC sound did not work out of the box unfortunately.  No matter what I did to try and configure Phonon, which is the replacement for ArtsD in 4, it just wouldn&#8217;t output any sound.  In both cases the fix was to install the xine backend to replace the gstreamer one.  After which sound worked perfectly.</p>
<p>When I booted the Fedora live CD the sound <strong>did</strong> work out of the box, but when I looked what it had done differently, I found that it was using the xine backend by default.  The conclusion I&#8217;m drawing here is that gstreamer is shit.</p>
<p><div id="attachment_290" class="wp-caption alignleft" style="width: 316px"><a href="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_lancelot_s.png"><img src="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_lancelot_s.png" alt="Lancelot launcher menu" title="Lancelot" width="306" height="344" class="size-full wp-image-290" /></a><p class="wp-caption-text">Lancelot launcher menu</p></div><br />
I&#8217;ve found Lancelot to be excellent, once I realised you can resize the menu.  Lancelot is an alternate to the regular &#8220;Start menu&#8221; style launcher.  While the normal launcher has also been altered to a new style I don&#8217;t like it so much.  If you are trying out KDE4 I&#8217;d suggest giving Lancelot a go, I think it is the better of the two.  Both have built-in search, but the mechanism of navigating the tree works better in Lancelot.</p>
<p>The slide mechanism in the main launcher means that when you&#8217;ve gone into the wrong branch and want to back up one you have to move to the far left and click a little line that is a back button.  In contrast in Lancelot you can still see the previous level in the tree and so it is much easier to recover from mistakes (of which I make many).</p>
<p>It still doesn&#8217;t work so well when there are too many entries on one page, having to grab the scrollbar and scroll is unacceptable.  I&#8217;ll have to either edit the menus to prevent that or find some way to shrink each entry so more can fit at once.  I don&#8217;t really need the double line entries with the description, the app name is enough for me.</p>
<p>And for those who don&#8217;t like either and want the old start menu back, an applet for that is still there too.</p>
<p><div id="attachment_281" class="wp-caption alignright" style="width: 317px"><a href="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_trash_settings_s.png"><img class="size-full wp-image-281" title="Trash" src="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_trash_settings_s.png" alt="Trash Settings window" width="307" height="140" /></a><p class="wp-caption-text">Trash Settings window</p></div><br />
Date-based deletion of items in the Trash is an excellent idea, if that means what I think it means.  I&#8217;m hoping it means that regardless of how much is in the Trash an item will be deleted permanently after $TIME_PERIOD of being in there.  That will satisfy the <a href="http://en.wikipedia.org/wiki/Obsessive-compulsive_disorder">OCD</a> part of me that can&#8217;t stand the disk being used up by stuff I don&#8217;t need any more.</p>
<p>As I&#8217;m intending to use the GUI as my primary interface when I do the switch for real, in large part for the safety net that the Trash can gives you it is important that it operate correctly.  I hate the implementation on Windows where the Trash is practically always full.  I end up manually emptying it at least once a day, which removes a lot of the point.  I need to wait for a few days to confirm it works how I hope.</p>
<p><div id="attachment_278" class="wp-caption alignleft" style="width: 390px"><a href="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_dolphin_s.png"><img class="size-full wp-image-278" title="Dolphin" src="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_dolphin_s.png" alt="Dolphin file browser" width="380" height="266" /></a><p class="wp-caption-text">Dolphin file browser</p></div><br />
Dolphin works well, I much prefer having separate apps for file-browsing and web-browsing.  Combining the two in Konqueror always felt confused.  I don&#8217;t want to see my web bookmarks when I&#8217;m looking at my Music/ dir, but hiding them meant losing them when I <strong>was</strong> browsing the web.  Now I can just keep Konqueror for the web and Dolphin for local, much neater in my opinion.  The preview feature seems to slow things down too much for my taste, but I&#8217;m sure that can be switched off somewhere.  I just haven&#8217;t looked for that setting yet.</p>
<p>Browsing in general is a little slow, but I&#8217;m putting that down to being on slow or virtual hardware.  On a decent machine I&#8217;m betting it will be snappy enough, I hope.</p>
<p>The Dragon player that comes with it seems dreadful, that will have to go.  Particularly on the Fedora boot where it couldn&#8217;t play <strong>anything</strong> on my system due to not having any codecs installed.  I presume it had the OGG Theora codec, but who has videos in Theora format laying around?  I&#8217;ll need a KDE4 or QT4 based GUI for mplayer, or at worst I&#8217;ll fall back to using the command-line for launching videos.</p>
<p>Of course the biggest reason to upgrade to v4 is the revamped patience card game which can now play the 3-card variant of Klondike!  <img src='http://blog.trollgod.org.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   I&#8217;m looking forward to the day when I&#8217;ll be running KDE4 on <a href="http://www.x.org/wiki/radeonhd">free ATI drivers</a> with <a href="http://www.phoronix.com/scan.php?page=article&#038;item=kernel_modesetting&#038;num=1">KMS</a>, and that day is within sight.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/04/kde4-will-rock/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I need an idiot-proof shell</title>
		<link>http://blog.trollgod.org.uk/2009/04/i-need-an-idiot-proof-shell/</link>
		<comments>http://blog.trollgod.org.uk/2009/04/i-need-an-idiot-proof-shell/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 15:24:55 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[oops]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=266</guid>
		<description><![CDATA[<p>After decades of never losing any significant data, last night I deleted my Video dir for the second time in six months, along with my Music this time. Fortunately I had learned my lesson and had a complete backup this time. The first time I lost a large amount of non-critical videos I had <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/04/i-need-an-idiot-proof-shell/">I need an idiot-proof shell</a></span>]]></description>
			<content:encoded><![CDATA[<p>After decades of never losing any significant data, last night I deleted my Video dir for the second time in six months, along with my Music this time.  Fortunately I had learned my lesson and had a <strong>complete</strong> backup this time.  The first time I lost a large amount of non-critical videos I had downloaded off the internet (okay, it was porn.  I said it, happy now?).  This time I just lost a couple of episodes of <a href="http://thisweekintech.com/twif">This Week in Fun</a> I hadn&#8217;t watched.  If I can be bothered I can easily re-grab them from <a href="http://odtv.me/category/twif/">ODTV</a>.</p>
<p>I&#8217;m not sure how I accidently deleted the stuff, I was moving my config files from being stored in Subversion to git, using <a href="http://robescriva.com/2009/01/manage-your-home-with-git/">this method</a>.  I must have accidently rm -rf them somehow.  This is my problem, it&#8217;s incredibly easy to shoot yourself in the foot from the command-line.</p>
<p>I&#8217;ve always used a combination of the GUI and shell, my first <em>proper</em> computer was an <a href="http://en.wikipedia.org/wiki/Amiga_500_Plus">Amiga 500+</a> which, while it had an amazing modern GUI while Windows was still stuck with 3.1, also had a pretty good shell interface.  Not quite up to unix standards, but <strong>much better</strong> than DOS.  So I&#8217;ve always used both, depending on what was easiest for the task.</p>
<p>When I switched to Windows (after my last Amiga died on me), I started using the GUI much more heavily since DOS is so underpowered.  When a short time later I switched to Linux though that got reversed since the Linux GUI at the time wasn&#8217;t so hot and the shell was incredibly powerful.  So I currently default to using the shell, which makes me nice and productive but also means I&#8217;m working without a safety net.</p>
<p>If recent experience is anything to go by, I either need to start relying on the GUI much more or I need to find myself an idiot-proof shell.  Since I don&#8217;t think the latter is possible it looks like I&#8217;ll be GUI-focused from now on.  This is going to be a hard transition for me, much like giving up a narcotic, but I think it is necessary.</p>
<p>I&#8217;m going to start this transition at the same time as I install KDE 4, which is looking excellent in my tests on my EeePC by the way.  I could almost transition now, there are just a couple of things (that are in the works) that I need before I can convert.  A <a href="http://en.wikipedia.org/wiki/NetworkManager">Network-Manager</a> controlling <a href="http://vizzzion.org/?blogentry=839">plasmoid</a> being the main one.</p>
<p>That way I only have to relearn how to do things in one GUI, rather than learning how to do it in KDE 3.5 and then a new way in 4.  I&#8217;m not going to give up the shell completely mind, just change my balance so it is 80/20 in favour of the GUI instead of the other way round.</p>
<p>Wish me luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/04/i-need-an-idiot-proof-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KDE 4 finally ready for Prime time?</title>
		<link>http://blog.trollgod.org.uk/2009/04/kde-4-finally-ready-for-prime-time/</link>
		<comments>http://blog.trollgod.org.uk/2009/04/kde-4-finally-ready-for-prime-time/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 15:01:49 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[shiny]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=240</guid>
		<description><![CDATA[<p class="wp-caption-text">KDE 4.2 desktop</p> <p>I&#8217;ve had a virtual machine running KDE4 from the Debian experimental repos for a while now. Every few months, when I notice some announcement of a point release I update it and give it another try. Up till now I&#8217;ve always been disappointed in some way.</p> <p>I first tried it <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/04/kde-4-finally-ready-for-prime-time/">KDE 4 finally ready for Prime time?</a></span>]]></description>
			<content:encoded><![CDATA[<div id="attachment_244" class="wp-caption aligncenter" style="width: 650px"><a href="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_-_desktop4.png"><img src="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_-_desktop4.png" alt="KDE 4.2 desktop" title="kde42_-_desktop4" width="640" height="400" class="size-full wp-image-244" /></a><p class="wp-caption-text">KDE 4.2 desktop</p></div>
<p>I&#8217;ve had a virtual machine running <a href="http://www.kde.org/">KDE4</a> from the <a href="http://www.debian.org/">Debian</a> experimental repos for a while now.  Every few months, when I notice some announcement of a point release I update it and give it another try.  Up till now I&#8217;ve always been disappointed in some way.</p>
<p>I first tried it on my EeePC 701 netbook, back when 4.0 first launched.  I was impressed that it ran at all on that hardware, even with desktop effects enabled, some of them at least.  This is on a machine that struggles to run Windows XP, let alone Vista.  While it was okay from a performance perspective, it was horribly unstable.  I can live with applications crashing (as long as I don&#8217;t lose data), but parts of the desktop going boom is unacceptable.  I eventually gave up on the netbook and put KDE 3.5 on it instead.</p>
<p>That is when I setup a VM on my main Debian laptop, at that time running Lenny, so I could keep track of KDE&#8217;s progress.  I&#8217;m not one of those people who baulk at change, who objects to learning new interfaces irrespective of whether they are better or worse than what they replace.  On the other hand I absolutely need my desktop to be rock-solid, any flakiness in any <em>essential</em> part of the OS I will not abide.  On the gripping hand I want to be in control, this is why I use Linux and KDE in the first place.  They allow me to configure the OS to work the way <strong>I</strong> want.  I&#8217;d really like to run KDE4 on my production machines &#8216;cos of the shiny, but until I can be sure of its stability I won&#8217;t risk it.</p>
<p>KDE 4.2 just recently transitioned from Debian experimental to unstable, so I fired up the VM to give it another whirl.  As I had already played with 4.2 a few weeks earlier I was expecting to have the same <em>nearly there</em> experience.  Things mostly working but still the odd crash, but I was wrong.</p>
<p><div id="attachment_246" class="wp-caption alignleft" style="width: 237px"><a href="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_-_calculator.png"><img src="http://blog.trollgod.org.uk/wp-content/uploads/2009/04/kde42_-_calculator.png" alt="KDE 4.2 Calculator plasmoid." title="kde42_-_calculator" width="227" height="159" class="size-full wp-image-246" /></a><p class="wp-caption-text">KDE 4.2 Calculator plasmoid.</p></div><br />
After two days of playing with it I have had but a single crash (kwallet), and that was just after the upgrade process so can be dismissed as an artefact.  Other than that it has been completely stable and usable.  I have to say, I really like it, some of the defaults are not to my taste but they can all be configured with a bit of searching through the interfaces.  KMail in particular defaulted to something horrid, but on the other hand it seems to be <strong>even more</strong> configurable than the 3.5 version, so it&#8217;s a win overall.</p>
<p>It&#8217;s the little things that make me want to switch though, like the calculator plasmoid that can be stuck on the panel for incredibly fast access.  A dictionary right on the desktop and many other useful widgets.  Previous attempts at widgets on KDE (superkaramba I&#8217;m looking at you) have been mediocre at best, glorified system monitors is the best you could hope to run.  The plasmoids seem to be the real deal from the built-in examples, if the community starts writing these things we should be in for some real treats.</p>
<p>The application launchers are a little different, and I have to say at the moment I prefer the old &#8220;start menu&#8221; style one, the fixed height of the new designs mean I have to keep scrolling to find what I want which is icky.  But I&#8217;m going to give them a while, it may be just one of those things that you have to get used to, and if it turns out I still hate them the old style is still available.</p>
<p>Being in a VM means I can&#8217;t use the desktop effects, so I&#8217;m missing a lot of the fun stuff.  So the next step is to sacrifice my netbook again to try those out.  I&#8217;m hopeful that by the time it transitions to testing (squeeze), which my main laptop now runs, I will be completely happy to switch to it, it is certainly looking positive at the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/04/kde-4-finally-ready-for-prime-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving from svn to git</title>
		<link>http://blog.trollgod.org.uk/2009/03/moving-from-svn-to-git/</link>
		<comments>http://blog.trollgod.org.uk/2009/03/moving-from-svn-to-git/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 21:20:26 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[versioncontrol]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=100</guid>
		<description><![CDATA[<p>I&#8217;ve spent most of the evening trying to figure out how to use git. For a long time I&#8217;ve wanted to have the repositories for some of my personal projects available on the web. For a time I was allowing external access to my apache internal apache server, but I&#8217;m wary about that because <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/03/moving-from-svn-to-git/">Moving from svn to git</a></span>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent most of the evening trying to figure out how to use <a href="http://git-scm.com/about">git</a>.  For a long time I&#8217;ve wanted to have the repositories for some of my personal projects available on the web.  For a time I was allowing external access to my apache internal apache server, but I&#8217;m wary about that because I&#8217;m not confident about my ability to secure a box.</p>
<p>I was planning on setting subversion up on my <a href="http://www.dreamhost.com/">web host</a>, but I didn&#8217;t want to depend completely on that and mirroring subversion is non-trivial.  So today I decided to have a go at git, which is much more suited to this sort of thing.</p>
<p>Thankfully there is svn import capability built in to git, so converting my guinea-pig project over was a doddle.  Much more tricky was setting up all the syncing between the repos.  I think I have the magic incantations down now though.</p>
<pre>
git remote add NAME URL
git config branch.master.remote NAME
git config branch.master.merge refs/heads/master
</pre>
<p>I understand the first line, the other two <em>seem</em> to be necessary, but I don&#8217;t know exactly what they do yet.</p>
<p>Also, it is better to run <code>git pull</code> than <code>git push</code> when dealing with a destination that has checked out files as push doesn&#8217;t update them whilst pull does.</p>
<p>One thing that is a little weird is I can&#8217;t push changes from the live site to the public repo, which is on the same server.  But I can pull the changes down to my local machine then push back up to the public.  Tried a couple of different ways but all failed for one reason of another.</p>
<p>Treating the other repo as local throws up permissions issues, </p>
<pre>error: unable to create temporary sha1 filename</pre>
<pre>File exists</pre>
<p>, due to the way webdav is setup on dreamhost.  Treating it as remote (http) doesn&#8217;t work because the binary is compiled without curl support.  Still, the round-trip method works well enough.</p>
<p>I also installed <a href="http://git.or.cz/gitwiki/Gitweb">gitweb</a> and pointed it at the publicly accessable repo, this was very easy contrary to all the web pages I read about it.  Just name the config file gitweb_config.perl and tell it where to look for the git repos and away it went <img src='http://blog.trollgod.org.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p><a href="http://git.trollgod.org.uk/">http://git.trollgod.org.uk/</a> is now available for anyone to view.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/03/moving-from-svn-to-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
