<?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>Gary's Strange Little World &#187; Linux</title>
	<atom:link href="http://dsnine.co.uk/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://dsnine.co.uk</link>
	<description>... sometimes you just have to wonder</description>
	<lastBuildDate>Thu, 17 Jun 2010 13:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Gentoo kvm to qemu-kvm goodness</title>
		<link>http://dsnine.co.uk/2009/12/gentoo-kvm-to-qemu-kvm-goodness/</link>
		<comments>http://dsnine.co.uk/2009/12/gentoo-kvm-to-qemu-kvm-goodness/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 22:12:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://dsnine.co.uk/?p=70</guid>
		<description><![CDATA[I run Linux KVM on a Gentoo server and recently noticed that the kvm package had been moved to qemu-kvm, apparently something to do with merging of qemu and kvm upstream&#8230; Anyhow, I thought i&#8217;d update as this is mainly &#8230; <a href="http://dsnine.co.uk/2009/12/gentoo-kvm-to-qemu-kvm-goodness/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I run Linux KVM on a Gentoo server and recently noticed that the kvm package had been moved to qemu-kvm, apparently something to do with merging of qemu and kvm upstream&#8230;</p>
<p>Anyhow, I thought i&#8217;d update as this is mainly a test machine rather than production, what could possibly go wrong?</p>
<p>Libvirtd and a few other packages were updated at the same time, things seemed fairly promising, no special output from any of the updates meant that I assumed I could simply restart libvirtd and everything would just magically work again. Unfortunately it didn&#8217;t. None of my virtual machines started up.</p>
<p>I started up virsh and tried to start a machine, receiving the error:</p>
<pre id="comment_text_0">Error starting domain: Cannot find QEMU binary /usr/bin/kvm: No such
file or directory</pre>
<p>Erm&#8230; ok, perhaps the binary has moved, or changed names? The package was renamed from kvm to qemu-kvm after all&#8230; Lo and behold, there&#8217;s actually a /usr/bin/qemu now. So fire up virsh, edit my virtual machine config and replace</p>
<pre>&lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;</pre>
<p>with</p>
<pre>&lt;emulator&gt;/usr/bin/qemu&lt;/emulator&gt;</pre>
<p>That ought to solve the problem, so again, try to start the virtual machine&#8230; ooh, ok, it looks like it starts, so I connect to the serial console and twiddle my thumbs for a bit&#8230; nothing. Eventually give in and connect to the vnc port for this machine. Rather annoyingly after trying to boot my x86_64 kernel on what turns out to be x86 qemu I see the message</p>
<pre id="comment_text_1">This kernel requires an x86-64 CPU, but only detected an i686 CPU.</pre>
<p id="comment_text_0">ARGH! Ok, so there must be some sort of flag I can pass to qemu to tell it to be x86_64? Or perhaps an qemu-x86_64, yes, that&#8217;s it /usr/bin/qemu-x86_64, so I edit my machine within virsh again and this time change emulator to:</p>
<pre>&lt;emulator&gt;/usr/bin/qemu-x86_64&lt;/emulator&gt;</pre>
<p>Surely that will solve my problems? Nope, now when I try to start the VM with virsh it tells me:</p>
<pre id="comment_text_2">error cannot parse QEMU version number in 'qemu-x86_64 version 0.11.0
(qemu-kvm-0.11.0), Copyright (c) 2003-2008 Fabrice Bellard'</pre>
<p>Eh?! So does virsh do some sort of parsing of the qemu version number and if so, what&#8217;s wrong with that?</p>
<p>It turns out (I learn after much random googlage), that there&#8217;s also a qemu-system-x86_64 (obviously), so once again, edit the virtual machine config in virsh and change emulator to that</p>
<pre>&lt;emulator&gt;/usr/bin/qemu-system-x86_64&lt;/emulator&gt;</pre>
<p>Start the VM, watch the console&#8230;. and YaY, it boots. Finally. All I need to do now is update the rest of my virtual machine configs and everything should be ready to go again.</p>
<p>Whoever decided this update was a good idea without at least warning people that things were going to break needs to be flogged with a wet kipper. I know this is technically &#8216;unstable&#8217; Gentoo, but come on people, give us a chance!</p>
]]></content:encoded>
			<wfw:commentRss>http://dsnine.co.uk/2009/12/gentoo-kvm-to-qemu-kvm-goodness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flashing your HTC phone in Linux</title>
		<link>http://dsnine.co.uk/2009/05/flashing-your-htc-phone-in-linux/</link>
		<comments>http://dsnine.co.uk/2009/05/flashing-your-htc-phone-in-linux/#comments</comments>
		<pubDate>Sun, 24 May 2009 06:54:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile Devices]]></category>

		<guid isPermaLink="false">http://dsnine.co.uk/?p=53</guid>
		<description><![CDATA[Ever since i&#8217;ve been using HTC based phones i&#8217;ve found that the stock OS is generally slow. I know it&#8217;s running Windows Mobile&#8230; but until recently trying to get a nice PDA that runs anything else is difficult. I do &#8230; <a href="http://dsnine.co.uk/2009/05/flashing-your-htc-phone-in-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever since i&#8217;ve been using HTC based phones i&#8217;ve found that the stock OS is generally slow. I know it&#8217;s running Windows Mobile&#8230; but until recently trying to get a nice PDA that runs anything else is difficult.</p>
<p>I do have a windows box that&#8217;s lying around for random uses, but its hard disk died recently and i&#8217;ve been wanting to flash my phone (a T-Mobile MDA Vario III , aka HTC Kaiser) for a while&#8230; Not really wanting to spend time rebuilding the windows box anytime soon I had a look around to see if there was a way of doing this stuff on my Linux boxes. Needless to say I found <a title="HTCFlasher site" href="http://code.google.com/p/htc-flasher/" target="_blank">HTCFlasher</a>.</p>
<p>Much to my surprise I found some ebuilds in the Gentoo bugzilla for it, which saved m having to do any of the real work&#8230; A couple of mins later it was installed so I had a poke around. To my surprise it worked very well, below are some notes I put together.</p>
<p>If you&#8217;ve never done any of this stuff before I highly recommend reading the <a title="XDA Developers.. Flashing your first ROM" href="http://forum.xda-developers.com/showthread.php?t=433835" target="_blank">XDA Developers Forum</a> post for some useful notes. It&#8217;s the basic steps I followed with some slight differences noted below.</p>
<p>Ignore anything in the forum post that mentions ActiveS(t)ync as luckily that doesn&#8217;t apply to us. Also, anything that mentions KaiserCustomRUU.exe is what we&#8217;re replacing with HTCFlasher.</p>
<p><strong>Flash HardSPL:</strong></p>
<p>Download the correct JumpSPL for your phone onto your phones storage. Execute it and you should end up at the tri colour screen, it should have slightly different text to the text that you would usual tri colour screen that you would see if you turned on your phone whilst holding the camera button down.</p>
<p>Plug the USB cable into your phone and wait a few moments for USB device scanning to take place and then check the dmesg output for the following:</p>
<pre>$ dmesg | tail
ipaq 7-1:1.0: PocketPC PDA converter detected
usb 7-1: PocketPC PDA converter now attached to ttyUSB0</pre>
<p>If it doesn&#8217;t then I found that I needed the usbserial and ipaq kernel modules loaded. Also take a note at this stage as to which ttyUSBX (where X is 0, 1, 2&#8230; etc.) as it it&#8217;s not ttyUSB0 you need to specify it later.</p>
<p>As a quick test at this stage you should be able to use HTCFlasher to query your device for some basic information. It&#8217;s a nice simple test to see if you can actually talk to the phone before you try to do anything more serious with it. You can do this with:</p>
<pre>$ HTCFlasher -i
=== HTCflasher v3.1
=== Open source RUU for HTC devices
=== (c) 2007-2008 Pau Oliva Fora
[] Getting device info...
[] CID: SuperCID
[] ModelID: KAIS1300</pre>
<p>Now to actually flash the phone with HardSPL</p>
<pre>$ HTCFlasher -F /path/to/Kaiser-HardSPL-3.29/Kaiser-HardSPL-3.29.nbh
=== HTCflasher v3.1
=== Open source RUU for HTC devices
=== (c) 2007-2008 Pau Oliva Fora
[] Flash NBH file '/path/to/Kaiser-HardSPL-3.29/Kaiser-HardSPL-3.29.nbh'
[] Setting RUU mode, please wait............done
[] SPL auth result (T=True, F=False): T
100% [###########################################]
Done!</pre>
<p>If all went well, your phone should reboot and you probably won&#8217;t notice any difference!</p>
<p>I had no current reason to SIM Unlock my phone, so I skipped this step from the forum post and went straight on to&#8230;</p>
<p><strong>Download and Flash your Preferred Rom</strong></p>
<p>Again, follow the forum post as with the previous step, still ignoring Activesync and using HTCFlasher instead of KaiserCustomRUU.exe.</p>
<p>The only obvious thing to note as this stage is that when in Windows, you run the KaiserCustomRUU.exe and that seems to signal your phone to reboot etc. As far as I can tell, we don&#8217;t have that luxury, so we have to get the phone onto the tri-coloured screen ourselves. Fortunately it&#8217;s pretty easy, simply turn your Kaiser off, wait a second or two to ensure it&#8217;s really off, press and hold the camera button and then press the power button, after a few seconds the device should turn on and be at the tr-colour screen (you can then let go of the two buttons <img src='http://dsnine.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>Everything from this point you&#8217;ve already done when flashing HardSPL. But instead of flashing the HardSPL.nbh, you flash the .nbh file from your downloaded ROM. It really should be that simple.</p>
<p>Also note that some ROMs require a specific radio version. So if some features of your newly flashed ROM don&#8217;t work correctly, you may have to find a matching radio (usually noted in the ROMs forum post or in some sort of README, if it&#8217;s not already part of the nbh).</p>
<p>That about wraps up this post. It&#8217;s worth noting that there&#8217;s a gtk frontend for HTCFlasher and the various other tools and utilities. But it&#8217;s no real hardship to flash your phone from the command line.</p>
<p>Perhaps in the future i&#8217;ll try to discuss using the Linux Rom Kitchen to build/modify a ROM.</p>
]]></content:encoded>
			<wfw:commentRss>http://dsnine.co.uk/2009/05/flashing-your-htc-phone-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu for parents feasibility study</title>
		<link>http://dsnine.co.uk/2009/03/ubuntu-for-parents-feasibility-study/</link>
		<comments>http://dsnine.co.uk/2009/03/ubuntu-for-parents-feasibility-study/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 19:08:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.dsnine.co.uk/?p=3</guid>
		<description><![CDATA[I&#8217;ve become fed up trying to support my parents Windows machine, an AMD Athlon 2100+ with 512M of RAM, more than enough you would think for the fairly limited stuff they do on it. The machine ran fine when I &#8230; <a href="http://dsnine.co.uk/2009/03/ubuntu-for-parents-feasibility-study/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve become fed up trying to support my parents Windows machine, an AMD Athlon 2100+ with 512M of RAM, more than enough you would think for the fairly limited stuff they do on it.</p>
<p>The machine ran fine when I originally built it for them, Windows XP, SP1&#8230;. of course you eventually add/update things such as a virus scanner, .net framework, Windows Live Messenger/Hotmail, Service Pack 3 and eventually it feels like you&#8217;ve gone back to your 486.</p>
<p>Being a Linux man, i&#8217;ve been pondering simply nuking their machine and replacing it with Linux. But then you face the dilemma, which flavour? For the last few years i&#8217;ve mainly used Gentoo for anything that I put together, not really suitable as an OS for my parents though. Alot of people have raved at me about Ubuntu, so I eventually gave in and downloaded the <span style="text-decoration: line-through;">Umbongo</span> Ubuntu cd&#8217;s and fired them up in a test box.</p>
<p>To my surprise, I think my mum could have installed Ubuntu. A couple of pages of fairly simple questions, a 5 minute wait and a reboot later and I was looking at the Gnome branded Ubuntu desktop. Just a <em>few</em> minutes quicker than my last Gentoo install <img src='http://dsnine.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Anyway, I know there&#8217;s lots of alternatives to various pieces of Windows software, so it&#8217;s Firefox instead of Internet Explorer, OpenOffice.org instead of Office, Pidgin instead of Windows Resource Hogging Messenger&#8230; I think they can handle that! But then what about various other things? Scanning, Printing, Zuma (some crazy addictive Windows game that my dad likes), Putting pictures onto a Digital Photo Frame, etc.</p>
<p>So I started with the scanning, I hate scanners in Windows, almost as much as I hate printers, put I pulled out my trusty scanner and plugged it into the test box. Twiddled thumbs, nothing bad seemed to happen which was a bonus. I looked in the list of applications and Ubuntu seems to come with Xsane installed by default. I&#8217;ve heard of but not yet tried &#8216;Gnome Scan&#8217;, but as XSane was installed it makes sense to at least give it a try. I started it up, it told me that it was searching for devices, it found one device and then presented me with about four crazy looking windows. Now it only took me a few moments to familiarise myself with them,within a minute or two i&#8217;d already previewed what I wanted to scan, cropped around the item in the preview window and then scanned the image into a viewer. I was pretty impressed, i&#8217;m just not sure that it would have been that easy for my Mum, perhaps with a little training. So I need to investigate other alternatives at some point, Gnome Scan being he top of the list I guess.</p>
<p>The next thing I looked into was running Zuma on Linux. I couldn&#8217;t find a ported Linux alternative, so I was forced down the route of trying Wine. I&#8217;d looked at it in the past for something and had limited success. But thought i&#8217;d give it a go, I had nothing to lose. I opened the add/remove programs, typed &#8216;wine&#8217; in the search bar, selected the wine package for install and a few clicks later the package manager did its thing and I had Wine installed. I opened the Wine Config screen first to check that everything made sense, as I expected it did&#8230; There was a &#8216;virtual&#8217; c_drive mapped to a directory within the users home directory, presumably where Wine puts installed program files etc. I downloaded the Zuma Deluxe demo from the Internet to the Desktop and double clicked the executable installer (wow I feel like a Windows user again <img src='http://dsnine.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) . Needless to say, I was presented with the Zuma installer&#8230; A few clicks later (and a few error messages about not being able to create links to the manufacturers website), I had a Zuma Deluxe icon on the desktop. That was nice and easy. As things were going so well, it made sense to at least try playing Zuma for a bit, just to ensure that it was up to the standard that my dad would be expecting. I was mightily impressed, Zuma worked just as well (probably better) as it did on the Windows machine. That&#8217;s another item off the list.</p>
<p>I&#8217;m yet to try printing, USB attached storage, a few other Windows only applications, a sensible way to backup their system to one of mine and of course, rolling this out to my parents to try.</p>
<p>But so far, it&#8217;s umbongo++ from me.</p>
]]></content:encoded>
			<wfw:commentRss>http://dsnine.co.uk/2009/03/ubuntu-for-parents-feasibility-study/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

