<?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/tag/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>Sat, 12 Nov 2011 10:10:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<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>2</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>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>0</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>Home in subversion</title>
		<link>http://blog.trollgod.org.uk/2009/02/home-in-subversion/</link>
		<comments>http://blog.trollgod.org.uk/2009/02/home-in-subversion/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 21:15:16 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=38</guid>
		<description><![CDATA[<p>I&#8217;ve mentioned previously that I&#8217;ve started putting my /home in subversion. I thought I&#8217;d go into how I handle things, as it takes a little adjustment in your thinking to get maximum benefit from this. I used this guide to get me started, and stuck pretty close to it.</p> <p>What I do is seperate <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2009/02/home-in-subversion/">Home in subversion</a></span>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve mentioned previously that I&#8217;ve started putting my /home in <a href="http://subversion.tigris.org/">subversion</a>.  I thought I&#8217;d go into how I handle things, as it takes a little adjustment in your thinking to get maximum benefit from this.  I used <a href="http://toykeeper.net/tutorials/svnhome">this guide</a> to get me started, and stuck pretty close to it.</p>
<p>What I do is seperate settings files into two groups, common and local (I don&#8217;t have any other data in home, that all lives on it&#8217;s own partition).  Local settings are unique to each machine.  Common settings are identical across all the machines the programs are used on.  There are a few special cases that live in both worlds, like bash, but I&#8217;ll get to how I handle those later.</p>
<p>Each machine on my network has it&#8217;s own branch in the svn repo, and in each of those branches are two extra dirs, called &#8220;.svncommon&#8221; and &#8220;.svnlocal&#8221;.  Inside these there are category dirs like &#8220;Bash&#8221;, &#8220;Devel&#8221;, &#8220;Internet&#8221; etc. that allow me to group together the settings for programs to make management easier.  The .svnlocal one is not really necessary, I could just keep all the settings for the local group in the root of home instead of having them in .svnlocal and symlinks to those files in home but I like the symmetry of handling local files the same way as common ones.</p>
<p>Anyway, the category dirs in the common group are setup to use the <a href="http://svnbook.red-bean.com/en/1.1/ch07s04.html">svn:externals</a> feature, so that they are actually connected to dirs in the trunk of the repo.  So the files in ~/.svncommon/Devel are actually located in /trunk/Devel in the repo.</p>
<p>Here is the basic procedure I use to add a new machine to the shared setup (I assume the repo exists already).</p>
<ol>
<li>First we need to add a branch for the new machine &#8220;<code>svn mkdir svn://server/Repo/branches/MACHINE</code>&#8220;</li>
<li>Then link the homedir to that branch so we can add the files &#8220;<code>svn co svn://server/Repo/branches/MACHINE .</code>&#8220;</li>
<li>Create the two dirs for the local and common files &#8220;<code>svn mkdir .svnlocal .svncommon</code>&#8220;</li>
<li>Setup the links to the common stuff&#8221;<code>svn propedit svn:externals .svncommon</code>&#8221;<br />
<code>Bash/                   svn://$REPO/trunk/Bash<br />
GuiInternet/    svn://$REPO/trunk/GuiInternet<br />
Internet/               svn://$REPO/trunk/Internet<br />
Devel/                  svn://$REPO/trunk/Devel</code></li>
<li>&#8220;<code>svn ci .</code>&#8220;</li>
<li>&#8220;<code>svn up</code>&#8220;</li>
</ol>
<p>To add stuff to the repository you simply move it into one of the subdirs of .svnlocal or .svncommon.  Then create a symlink to it in ~/ so the program can still access the file.  Then &#8220;<code>svn add</code>&#8221; both the file and the symlink.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2009/02/home-in-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suspend works</title>
		<link>http://blog.trollgod.org.uk/2007/05/suspend-works/</link>
		<comments>http://blog.trollgod.org.uk/2007/05/suspend-works/#comments</comments>
		<pubDate>Sun, 20 May 2007 14:51:08 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[suspend]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=10</guid>
		<description><![CDATA[<p>I got my Toshiba Tecra 8000 laptop to successfully suspend and resume, yay! The key is not to use the neofb framebuffer, but the vesafb one instead. Also the usb modules uhci_hcd and usbcore need to be unloaded before suspending. If you don&#8217;t then suspend works but instead of a proper resume you get <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2007/05/suspend-works/">Suspend works</a></span>]]></description>
			<content:encoded><![CDATA[<p>I got my Toshiba Tecra 8000 laptop to successfully suspend and resume, yay!  The key is not to use the neofb framebuffer, but the vesafb one instead.  Also the usb modules <i>uhci_hcd</i> and <i>usbcore</i> need to be unloaded before suspending.  If you don&#8217;t then suspend works but instead of a proper resume you get a black screen with the word &#8220;Linu&#8221; in yellow in the top left.</p>
<p>I&#8217;m using the uswsusp package for the job, s2disk works out of the box (with the above caveats) but s2ram needs the options &#8220;-f -a3 -m&#8221; in order to work.  I would send the details to the devs to add it to the whitelist but there is a slight problem there:</p>
<pre>This machine can be identified by:
    sys_vendor   = ""
    sys_product  = ""
    sys_version  = ""
    bios_version = ""
See <a href="http://en.opensuse.org/S2ram">http://en.opensuse.org/S2ram</a> for details.
</pre>
<p>Not very helpful.  So for now I&#8217;ve just compiled my own so I can run s2both, as that only works with machines that are on the whitelist.</p>
<p>I&#8217;m not sure I can live without neofb however, vesafb is incredibly slow when scrolling text.  I may forget about using suspend and just live with hibernate.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2007/05/suspend-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screen hardstatus</title>
		<link>http://blog.trollgod.org.uk/2006/04/screen-hardstatus/</link>
		<comments>http://blog.trollgod.org.uk/2006/04/screen-hardstatus/#comments</comments>
		<pubDate>Fri, 14 Apr 2006 21:21:32 +0000</pubDate>
		<dc:creator>Ghworg</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://blog.trollgod.org.uk/?p=61</guid>
		<description><![CDATA[<p>GingerDog saw my screen and was curious about the status line I have. The entire screenrc I use.</p> <p> </p> <p>(the thingy at the bottom of the image) It&#8217;s achieved using the following magic incantation in my .screenrc</p> hardstatus on hardstatus lastline &#34;%c:%s &#8211; %-Lw%{=BW}%50&#62;%n%f*t%{-}%+Lw%&#60;&#34; &#160; <p>Oh, and each window gets automatically named after <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.trollgod.org.uk/2006/04/screen-hardstatus/">Screen hardstatus</a></span>]]></description>
			<content:encoded><![CDATA[<p>GingerDog saw my <a href="http://www.gnu.org/software/screen/">screen</a> and was curious about the status line I have. The entire <a href="/wp-content/uploads/2006/04/screenrc">screenrc</a> I use.</p>
<p><a class="imagelink" href="/wp-content/uploads/screenrc.png" title="Screen snapshot"><br />
<img id="image65" src="/wp-content/uploads/screenrc.thumbnail.png" alt="Screen snapshot" /></a></p>
<p>(the thingy at the bottom of the image) It&#8217;s achieved using the following magic incantation in my<br />
.screenrc</p>
<div class="dean_ch" style="white-space: nowrap;">
hardstatus on hardstatus lastline <span class="st0">&quot;%c:%s &#8211; %-Lw%{=BW}%50&gt;%n%f*t%{-}%+Lw%&lt;&quot;</span><br />
&nbsp;</div>
<p>Oh, and each window gets<br />
automatically named after the program running in it using the<br />
following.</p>
<div class="dean_ch" style="white-space: nowrap;">
shelltitle <span class="st0">&quot;$ |bash&quot;</span><br />
&nbsp;</div>
<p>(Update 17/04/2006:<br />
This appears to only work in a linux terminal, not any of the<br />
X-terms. The X-terms seem to set the window title instead and I&#8217;m<br />
not sure how to change this at the moment. I&#8217;m going to carry on<br />
looking in to it though.) (Update 18/04/2006: Got it, for gui<br />
terminals instead of &#8220;lastline&#8221; use &#8220;alwayslastline&#8221;)</p>
<div class="dean_ch" style="white-space: nowrap;">
hardstatus on hardstatus alwayslastline <span class="st0">&quot;%c:%s &#8211; %-Lw%{=BW}%50&gt;%n%f*%t%{-}%+Lw%&lt; &quot;</span><br />
&nbsp;</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.trollgod.org.uk/2006/04/screen-hardstatus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

