<?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>pigeon's blog - pigeond.net &#187; linux</title>
	<atom:link href="http://pigeond.net/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://pigeond.net/blog</link>
	<description>the pigeon concerto in D minor</description>
	<lastBuildDate>Tue, 22 Feb 2011 22:34:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>You can now buy Debian packages from the supermarket&#8230;</title>
		<link>http://pigeond.net/blog/2011/02/23/you-can-now-buy-debian-packages-from-the-supermarket/</link>
		<comments>http://pigeond.net/blog/2011/02/23/you-can-now-buy-debian-packages-from-the-supermarket/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 22:31:36 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[supermarket]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=575</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><img src="http://pigeond.net/blog/uploads/2011/02/20110219_001.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2011/02/23/you-can-now-buy-debian-packages-from-the-supermarket/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WINE 1 : Windows 0</title>
		<link>http://pigeond.net/blog/2010/04/12/wine1windows0/</link>
		<comments>http://pigeond.net/blog/2010/04/12/wine1windows0/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 11:22:18 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[LANG]]></category>
		<category><![CDATA[simplified chinese]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=559</guid>
		<description><![CDATA[Got this old but very popular game I wanted to play. It&#8217;s a Windows game, but not only that, the version I have is the simplified chinese version of it (I can read it, but not as good as traditional).
I was &#8220;lucky&#8221; and got someone else&#8217;s Windows XP box to try and see if it [...]]]></description>
			<content:encoded><![CDATA[<p>Got this old but very popular game I wanted to play. It&#8217;s a Windows game, but not only that, the version I have is the simplified chinese version of it (I can read it, but not as good as traditional).</p>
<p>I was &#8220;lucky&#8221; and got someone else&#8217;s Windows XP box to try and see if it runs, and it doesn&#8217;t. It starts up and says it needs the version of the game only works on a simplified chinese version of Windows. Then I thought, I&#8217;ve seen similar problems with other programs. Let me try fiddling with those locale and default language and encoding settings in the control panel, not to mention that I need to reboot Windows almost after every change of the settings. However, none of the changes helped. The game still won&#8217;t run. And because you could ask, no, we don&#8217;t have a simplified version of Windows.</p>
<p>I know for the fact that the game actually runs under WINE pretty well (good thing being an old game I guess), so I gave it a go. Installation worked. Then when I run it, yup, got the same simplified chinese version error. But there&#8217;s something different. The texts of the error dialog box are all garbage. I imagine they&#8217;re simplified chinese, but somehow not using the right font or encoding. I decided to fix this problem first, which I knew it would be easy cos I have had same problems with other chinese games before. All you need is to set <code>LANG</code>, in this case, to <code>zh_CN</code>.</p>
<p>And guess what, that not only solves the chinese encoding issue, that also convinces the game to think I&#8217;m on simplified chinese version of Windows. The game worked beautifully. And need not to say, setting an environment variable doesn&#8217;t require rebooting&#8230; unlike some retarded operating system.</p>
<p>WINE wins!</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2010/04/12/wine1windows0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Liferea (really) offline reading conversion filter script</title>
		<link>http://pigeond.net/blog/2009/07/03/liferea-really-offline-reading-conversion-filter-script/</link>
		<comments>http://pigeond.net/blog/2009/07/03/liferea-really-offline-reading-conversion-filter-script/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 11:38:48 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[liferea]]></category>
		<category><![CDATA[offline]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=502</guid>
		<description><![CDATA[So, I&#8217;m not the only one looking a solution for this problem.
Basically I want my RSS reader to fetch things (images for example) needed to display every entry during updates, so I can read them offline. Images in most feed entries are referenced remotely (http://), which are usually not downloaded until the entry is actually [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m not the only one looking a solution for <a href="http://ubuntuforums.org/showthread.php?t=539437">this problem</a>.</p>
<p>Basically I want my RSS reader to fetch things (images for example) needed to display every entry during updates, so I can read them offline. Images in most feed entries are referenced remotely (http://), which are usually not downloaded until the entry is actually viewed. Some feeds use enclosures but that works more like an attachment rather than for content.</p>
<p>I&#8217;ve tried quite a few RSS readers and <a href="http://projects.gnome.org/straw/">Straw</a> seems to be the only one that does full automatic image fetch during updates. However Straw&#8217;s development has been <a href="http://strawreader.wordpress.com/2009/06/14/update/">stalling</a>, and the latest version seems to be quite unstable.</p>
<p>Liferea has been my RSS reader for quite a while, and so I&#8217;ve decided to do it myself with (hopefully) the simplest way possible: a Liferea conversion filter which parses a feed and fetches things for offline reading.</p>
<p>At the moment it works by looking for &lt;img&gt; tags and fetches the image using <code>wget</code>, and then replaces the original image src to point to the local one.</p>
<p>It&#8217;s a pretty simple perl script. I have written it in a way so it can be extended it to parse and fetch other things in the future, maybe embedded videos for example. It currently downloads all images, one by one. It also checks if a file is already downloaded or not. You can change <code>$SAVE_PATH</code> in the script as needed.</p>
<p>You can git (yes, git) the script at <code>git://pigeond.net/offline_filter.git</code>. Or alternatively get the latest version <a href="http://pigeond.net/git/?p=offline_filter.git;a=blob_plain;f=offline_filter.pl">here</a>, or browse the repo at <a href="http://pigeond.net/git/?p=offline_filter.git">http://pigeond.net/git/?p=offline_filter.git</a>.</p>
<p>To use it, set the script as the conversion filter for the feed you want to have things downloaded and it should just work.</p>
<p>Now I can read all the really important stuff on the train, like <a href="http://xkcd.com/">xkcd</a> and <a href="http://failblog.org/">failblog</a> ;).</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2009/07/03/liferea-really-offline-reading-conversion-filter-script/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>SCIM with 32-bit app on 64-bit system outside chroot</title>
		<link>http://pigeond.net/blog/2009/05/14/scim-with-32-bit-app-on-64-bit-system-outside-chroot/</link>
		<comments>http://pigeond.net/blog/2009/05/14/scim-with-32-bit-app-on-64-bit-system-outside-chroot/#comments</comments>
		<pubDate>Thu, 14 May 2009 11:37:00 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[iceweasel]]></category>
		<category><![CDATA[scim]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=481</guid>
		<description><![CDATA[For those who need SCIM while running 32-bit apps on a 64-bit system outside chroot, there are two things (at least for me) needed.
Apart from the obvious that you need SCIM installed in the 32-bit chroot, you&#8217;ll need to set SCIM_MODULE_PATH to point to the 32-bit SCIM libdir. For instance, my iceweasel32 script looks like:

#!/bin/sh
export [...]]]></description>
			<content:encoded><![CDATA[<p>For those who need SCIM while running 32-bit apps on a 64-bit system outside chroot, there are two things (at least for me) needed.</p>
<p>Apart from the obvious that you need SCIM installed in the 32-bit chroot, you&#8217;ll need to set SCIM_MODULE_PATH to point to the 32-bit SCIM libdir. For instance, my <code>iceweasel32</code> script looks like:</p>
<pre class="file_content">
#!/bin/sh
export CHROOT=/chroot/testing.32

export GTK_PATH=${CHROOT}/usr/lib/gtk-2.0

export LD_LIBRARY_PATH=${CHROOT}/lib:${CHROOT}/usr/lib:/lib32:/usr/lib32

export SCIM_MODULE_PATH=${CHROOT}/usr/lib/scim-1.0

export MOZ_PLUGIN_PATH=${CHROOT}/usr/lib/mozilla/plugins

linux32 ${CHROOT}/usr/lib/iceweasel/firefox-bin "$@"
</pre>
<p>Secondly, you&#8217;ll need to add a symlink in <code>/usr/lib32/gtk-2.0/2.10.0/immodules</code> for the chroot&#8217;s <code>/usr/lib/gtk-2.0/2.10.0/immodules/im-scim.so</code>. Not the cleanest way I have to say, but it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2009/05/14/scim-with-32-bit-app-on-64-bit-system-outside-chroot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vimpress again</title>
		<link>http://pigeond.net/blog/2009/05/07/vimpress-again/</link>
		<comments>http://pigeond.net/blog/2009/05/07/vimpress-again/#comments</comments>
		<pubDate>Thu, 07 May 2009 11:35:17 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimpress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=475</guid>
		<description><![CDATA[It was about 8 months ago when I started using vimpress. And I&#8217;ve actually modified it a bit since then. So far I&#8217;ve made two tiny changes.
The first is checking for vim python support before doing anything. I did this because in Debian vim (vim.basic) isn&#8217;t compiled with python support, and I prefer vim.basic over [...]]]></description>
			<content:encoded><![CDATA[<p>It was about 8 months ago when I started using <a href="http://friggeri.net/blog/2007/07/13/vimpress">vimpress</a>. And I&#8217;ve actually modified it a bit since then. So far I&#8217;ve made two tiny changes.</p>
<p>The first is checking for vim python support before doing anything. I did this because in Debian vim (vim.basic) isn&#8217;t compiled with python support, and I prefer vim.basic over vim.gtk or vim.gnome as my default vim (and as for the reason, see my <a href="/blog/2008/08/03/vimpress-wordpress-from-vim/">previous vimpress post</a>.</p>
<p>The second is adding a :BlogSave command. Basically sending and saving an entry without publishing it, i.e. saving it as a draft, which I do a lot myself.</p>
<p>I&#8217;ve kept it in my git repo now at <code>git://pigeond.net/vimpress.git</code></p>
<p>Gitweb at <a href="http://pigeond.net/git/?p=vimpress.git">http://pigeond.net/git/?p=vimpress.git</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2009/05/07/vimpress-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pilot filters in FGMap</title>
		<link>http://pigeond.net/blog/2009/05/03/pilot-filters-in-fgmap/</link>
		<comments>http://pigeond.net/blog/2009/05/03/pilot-filters-in-fgmap/#comments</comments>
		<pubDate>Sun, 03 May 2009 11:32:28 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[fgmap]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[islandva]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=461</guid>
		<description><![CDATA[A couple of weeks ago, one of the fellows (yes, you, MSmith) from the Island Virtual Airways, the virtual airline based on FlightGear, poked me and was asking me if there is a way to show only their airline pilots on FGMap. After spending a few coding train trips, I&#8217;ve added a very simple pilot [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago, one of the fellows (yes, you, MSmith) from the <a href="http://islandva.org/">Island Virtual Airways</a>, the virtual airline based on <a href="http://flightgear.org/">FlightGear</a>, poked me and was asking me if there is a way to show only their airline pilots on <a href="/flightgear/fgmap.html">FGMap</a>. After spending a few coding train trips, I&#8217;ve added a very simple pilot filtering feature. Currently you can filter by the callsign and the aircraft. It also has query string support, so you can do things like http://mpmap<span class="currency_converter_link" title="Convert this amount"><span class="currency_converter_link" title="Convert this amount"><span class="currency_converter_link" title="Convert this amount">02</span></span></span>.flightgear.org/?pilots_filter_callsign=blah</p>
<p>Check it out at <a href="http://mpmap02.flightgear.org/">http://mpmap<span class="currency_converter_link" title="Convert this amount">02</span>.flightgear.org/</a>. Code is in my usual <a href="http://pigeond.net/git/?p=flightgear/fgmap.git">git repo</a>.</p>
<p>Enjoy&#8230;</p>
<p style="text-align: center;"><img class="alignnone" src="/blog/uploads/2009/fgmap_pilot_filters.jpg" alt="" width="472" height="337" /></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2009/05/03/pilot-filters-in-fgmap/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>vimpress &#8211; wordpress from vim</title>
		<link>http://pigeond.net/blog/2008/08/03/vimpress-wordpress-from-vim/</link>
		<comments>http://pigeond.net/blog/2008/08/03/vimpress-wordpress-from-vim/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 05:52:58 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimpress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2008/08/03/vimpress-wordpress-from-vim/</guid>
		<description><![CDATA[This is a test&#8230;
Well, not really.
I was looking for an alternative to posting blog entries using the web interface, and was randomly trying a few apps in Debian. There were drivel and gnome-blog but they don&#8217;t seem to support tags. BloGTK seems to, but there&#8217;s something weird about how it does, and it doesn&#8217;t support [...]]]></description>
			<content:encoded><![CDATA[<p>This is a test&#8230;</p>
<p>Well, not really.</p>
<p>I was looking for an alternative to posting blog entries using the web interface, and was randomly trying a few apps in Debian. There were drivel and gnome-blog but they don&#8217;t seem to support tags. BloGTK seems to, but there&#8217;s something weird about how it does, and it doesn&#8217;t support multiple categories. BloGTK is also being removed from Debian.</p>
<p>Then I came across <a href="http://friggeri.net/blog/2007/07/13/vimpress">vimpress</a> &#8211; a vim plugin for wordpress. It&#8217;s simple, but it does what I needed. You can get a list of your blog entires, post a new blog, or even edit an existing blog. So I&#8217;m testing it with this blog entry and see how it goes.</p>
<p>The only small rant, not to vimpress, but to Debian&#8217;s vim, is that vimpress needs vim&#8217;s python support, but it&#8217;s not built into the vim.basic binary, which I prefer over vim.gtk or vim.gnome. One of the reasons is when I ctrl-z to background vim, and then foreground it (fg), it sometimes (not all the time) gets stuck unless I hit ctrl-c. This does not happen with vim.basic, but only vim.gtk and vim.gnome.</p>
<p>I did try to trace it and it is when the function <code>mch_suspend</code> calling <code>pause()</code>, which causes vim to wait for a signal.</p>
<p>Perhaps I should report to vim later&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/08/03/vimpress-wordpress-from-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlightGear git repository</title>
		<link>http://pigeond.net/blog/2008/08/03/flightgear-git-repository/</link>
		<comments>http://pigeond.net/blog/2008/08/03/flightgear-git-repository/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 02:57:56 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git-cvsimport]]></category>
		<category><![CDATA[tailor]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=411</guid>
		<description><![CDATA[I&#8217;ve been keeping a git repo of my own for FlightGear for quite some time. I was using Tailor for importing CVS into git, since git-cvsimport seems to be an issue with the branches in FlightGear&#8217;s CVS. Tailor is very powerful, and work among over 10 different revision control systems.
On the other hand, I&#8217;ve been [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been keeping a <a href="http://pigeond.net/git/">git repo</a> of my own for <a href="http://flightgear.org/">FlightGear</a> for quite some time. I was using <a href="http://progetti.arstecnica.it/tailor/">Tailor</a> for importing CVS into git, since git-cvsimport seems to be an issue with the branches in FlightGear&#8217;s CVS. Tailor is very powerful, and work among over 10 different revision control systems.</p>
<p>On the other hand, I&#8217;ve been having some <a href="http://lists.zooko.com/pipermail/tailor/2008-July/001350.html">issues</a> with tailor. Not until much much much later (about a week ago) that I discovered the <a href="http://lists.zooko.com/pipermail/tailor/2008-July/001354.html">cause</a> and possibly the <a href="http://lists.zooko.com/pipermail/tailor/2008-July/001354.html">remedy</a>. At the same time one of the FlightGear developers Tim Moore has figured out why git-cvsimport wasn&#8217;t happy, and more importantly how to make it happy.</p>
<p>And so I&#8217;ve re-imported <a href="http://pigeond.net/git/?p=flightgear/flightgear.source.git;a=summary">FlightGear</a> and <a href="http://pigeond.net/git/?p=flightgear/simgear.git;a=summary">SimGear</a> source from scratch and it&#8217;s been going well so far. But for those who have been using my repo, you will have to re-clone it again.</p>
<p>I&#8217;ve also imported the FlightGear data repo, but beware, it&#8217;s rather big even for git. The bare repo is almost 1G. So if you&#8217;re happy with your current CVS checkout, I suggest you not to bother with my git one. Mind you, that&#8217;s the entire history. Considering a checkout is about 1.7G, that&#8217;s not too bad. I&#8217;ve also set a 512kB/s limit for my git upstream, just in case there are like 20 people cloning the data repo at the same time :)</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/08/03/flightgear-git-repository/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Playstation 3 Network downloads + Linux</title>
		<link>http://pigeond.net/blog/2008/06/08/playstation-3-network-downloads-linux/</link>
		<comments>http://pigeond.net/blog/2008/06/08/playstation-3-network-downloads-linux/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 13:35:35 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[jesred]]></category>
		<category><![CDATA[playstation network]]></category>
		<category><![CDATA[playstation3]]></category>
		<category><![CDATA[ps3]]></category>
		<category><![CDATA[psn]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=406</guid>
		<description><![CDATA[For those who have been trolling around with your PS3 on the Playstation Network might know that all the playable demos and stuff on the PS3 networks can be downloaded on your usual computer, and then later get your PS3 to fetch and install them. That way you won&#8217;t have to use your PS3 to [...]]]></description>
			<content:encoded><![CDATA[<p>For those who have been trolling around with your PS3 on the Playstation Network might know that all the playable demos and stuff on the PS3 networks can be downloaded on your usual computer, and then later get your PS3 to fetch and install them. That way you won&#8217;t have to use your PS3 to download for whatever reasons (time, disk space, connection, etc).</p>
<p><a href="http://www.ps3news.com/forums/post1-172825.html">This ps3news forum post</a> has all the goodies and explanations, how it works and what you need to do, except, it hasn&#8217;t got a Linux way of doing it. I spent some time looking into that a few months ago, and I think I should note them down here, before I forget the method myself&#8230;</p>
<p>The basic idea is you configure your PS3 to use a proxy, and then you tell it to download and install Folding@Home. The proxy translates the URL into a different one, i.e. you tell your proxy to rewrite the Folding@Home URL into one that points to the actual package you want to install.</p>
<p>To achieve that, I&#8217;ve decided to use apache, squid, and jesred. Apache and squid might be bit overkill, but that&#8217;s what I have already been using. jesred is a URL redirector in Debian that works with squid.</p>
<p>The download part is the same. You look for the game/demo/whatever you want and download the package (<code>.pkg</code> file) using the URL on the forum post. Let&#8217;s say you&#8217;ve got the file blah.pkg. Put the file somewhere accessible from your web server. For example, <code>/var/www/ps3/</code> on my machine <code>proxy1</code>, which means I can download the file on my local network via <code>http://proxy1/ps3/blah.pkg</code>.</p>
<p>On to the squid config. In <code>/etc/squid/squid.conf</code>, I first define an access control:</p>
<pre class="file_content">acl myps3 src 192.168.0.123
http_access allow myps3
</pre>
<p>which allows my PS3, having an IP <code>192.168.0.123</code>, to access my proxy.</p>
<p>I also have to add a special <code>header_access</code> rule:</p>
<pre class="file_content">header_access Content-Type deny myps3
</pre>
<p>which makes the PS3 happy downloading the file. Without this, the PS3 seems to refuse to even start downloading the package.</p>
<p>Then finally, I setup the URL rewrite:</p>
<pre class="file_content">url_rewrite_program /usr/lib/squid/jesred
</pre>
<p>which tells squid to use jesred for URL rewriting.</p>
<p>Now we setup jesred. Edit <code>/etc/jesred.acl</code> to suit your own needs. I have simply uncommented the line:</p>
<pre class="file_content">0.0.0.0/0
</pre>
<p>which allows URL rewrite from all sources.</p>
<p>Then we move onto <code>/etc/jesred.rules</code>. This is where we define our URL rewriting. First you need to know which URL your PS3 is using for Folding@Home. A list of possible URLs are shown in the 2.D  of the FAQ on the forum post. My PS3 is PAL one, so to rewrite that URL to what we want:</p>
<pre class="file_content">regexi ^http://deu01.ps3.download.playstation.net/download/ps3/eu/fah/fah\.pkg 

http://proxy1/ps3/blah.pkg
</pre>
<p>(The above on one single line)</p>
<p>Remember every time you edit the <code>jesred.rules</code> file, you have to tell squid to reload (<code>/etc/init.d/squid reload</code> does the trick).</p>
<p>Finally, onto the PS3. Make sure you have set your PS3 to use your proxy. Now tell your PS3 to download and install Folding@Home.</p>
<p>And that&#8217;s it! I know it hasn&#8217;t got a nice GUI like the PS3.Proxyserver thing. But surely editing some text config files and running init reload scripts are that kind of things we have a passion for right?</p>
<p>If things don&#8217;t work, well, you can have a look at squid&#8217;s and jesred&#8217;s log. You might need to edit <code>/etc/jesred.conf</code> to enable its logging.</p>
<p>Let me know if I&#8217;ve made any mistakes, comments are also welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/06/08/playstation-3-network-downloads-linux/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Quote of the day&#8230;</title>
		<link>http://pigeond.net/blog/2008/06/04/quote-of-the-day-3/</link>
		<comments>http://pigeond.net/blog/2008/06/04/quote-of-the-day-3/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 12:24:51 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[live cd]]></category>
		<category><![CDATA[qotd]]></category>
		<category><![CDATA[quote of the day]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=405</guid>
		<description><![CDATA[&#60;catty&#62;  you know how with taiwanese or chinese, when your baby
         is one month old, you give out things like eggs and cakes and
         stuff like that to your relatives and friends...
&#60;pigeon&#62; yeah?
&#60;catty&#62;  we'll do similar things?
&#60;pigeon&#62; [...]]]></description>
			<content:encoded><![CDATA[<pre>&lt;catty&gt;  you know how with taiwanese or chinese, when your baby
         is one month old, you give out things like eggs and cakes and
         stuff like that to your relatives and friends...
&lt;pigeon&gt; yeah?
&lt;catty&gt;  we'll do similar things?
&lt;pigeon&gt; hmm, no, we'll give out linux live CDs...
</pre>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/06/04/quote-of-the-day-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>We shall bond again&#8230;</title>
		<link>http://pigeond.net/blog/2008/04/30/we-shall-bond-again/</link>
		<comments>http://pigeond.net/blog/2008/04/30/we-shall-bond-again/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 05:45:45 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bonding]]></category>
		<category><![CDATA[ipw3945]]></category>
		<category><![CDATA[iwl3945]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/?p=403</guid>
		<description><![CDATA[I haven&#8217;t been using the ethernet bonding driver since I got my ASUS W7J laptop, as the ipw3945 doesn&#8217;t seem to work with it. But now I&#8217;ve switched over to iwl3945 driver, and it now seems to work pretty well with bonding again. Excellent!
For those who doesn&#8217;t know what bonding is, see my recent post.
]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t been using the ethernet bonding driver since I got my ASUS W7J laptop, as the ipw3945 doesn&#8217;t seem to work with it. But now I&#8217;ve switched over to iwl3945 driver, and it now seems to work pretty well with bonding again. Excellent!</p>
<p>For those who doesn&#8217;t know what bonding is, see my recent <a href="http://pigeond.net/blog/2007/02/12/bonding-switching-network-interface-without-losing-connections/">post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/04/30/we-shall-bond-again/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LCA2008 Day 6 &#8211; Open Day</title>
		<link>http://pigeond.net/blog/2008/02/10/lca2008-day-6-open-day/</link>
		<comments>http://pigeond.net/blog/2008/02/10/lca2008-day-6-open-day/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 12:48:56 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2008]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2008/02/10/lca2008-day-6-open-day/</guid>
		<description><![CDATA[So it had come to the last but not least day of LCA2008 &#8211; The Open Day.
Since last year, the Open Day has been yet another exciting day in LCA. There were over 30 booths hosted by different companies and organizations demonstrating their cool Linux and open source technologies.
I believe the ones that caught most [...]]]></description>
			<content:encoded><![CDATA[<p>So it had come to the last but not least day of LCA2008 &#8211; The Open Day.</p>
<p>Since last year, the Open Day has been yet another exciting day in LCA. There were over 30 booths hosted by different companies and organizations demonstrating their cool Linux and open source technologies.</p>
<p>I believe the ones that caught most attention would be the gaming booths where there were <a href="http://www.stepmania.com/">StepMania</a>, <a href="http://fretsonfire.sourceforge.net/">Frets On Fire</a>, and a bunch of open source games that were configured to use the wiimote.</p>
<p>And speaking of the wiimote, of course another highlight was <a href="http://http://ozlabs.org/~rusty/">Rusty</a>&#8217;s <a href="http://ozlabs.org/~rusty/ponghero/">Pong Hero</a>. It was inspired by one of Johnny&#8217;s Lee wiimote project that uses the wiimote&#8217;s infrared camera and a infrared light to work together as a whiteboard. In Rusty&#8217;s case, you draw using a specially made infrared lipstick on the virtual whiteboard to play the classic Pong game. You can catch it in action on this <a href="http://http://www.youtube.com/watch?v=mkfiXCY55qU">video</a>.</p>
<p>Overall the Open Day this year was great. Though I kinda hope for a better venue for it. Because it&#8217;s inside a building it&#8217;s kinda packed. I mean comparing to the one last year, LCA2007&#8217;s was a much better semi-opened area for things like Open Day.</p>
<p>I hung around till pretty much when then Open Day came to an end. I slowly strolled back to St Mary&#8217;s to get ready for my flight back to Sydney.</p>
<p>Goodbye LCA2008, and looking forward to <a href="http://marchsouth.org/">LCA2009 in Tasmania</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/02/10/lca2008-day-6-open-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA2008 Day 5</title>
		<link>http://pigeond.net/blog/2008/02/10/lca2008-day-5/</link>
		<comments>http://pigeond.net/blog/2008/02/10/lca2008-day-5/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 11:15:09 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2008]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2008/02/10/lca2008-day-5/</guid>
		<description><![CDATA[Last day of the conference. There were a few interesting talks that I wanted to go to but a lot of them are at the same time. The not-so-bad thing is though almost all talks were recorded.
In the afternoon, among the few talks I was interested, I decided to head to the MythTV BOF, partly [...]]]></description>
			<content:encoded><![CDATA[<p>Last day of the conference. There were a few interesting talks that I wanted to go to but a lot of them are at the same time. The not-so-bad thing is though almost all talks were recorded.</p>
<p>In the afternoon, among the few talks I was interested, I decided to head to the MythTV BOF, partly because I know the BOFs weren&#8217;t recorded. As a quite-long time MythTV user I find the BOF pretty interesting, however I wish there was more time for it. One of the brought up issues, and also an everlasting issue, was TV guide data in Australia. I always feel funny that it is so hard to get the data, as if they don&#8217;t want you to watch their programmes.</p>
<p>After the afternoon tea was the lightning talks, followed by the closing of the conference. To me lightning talks are always the cool and very entertaining. Of course this year&#8217;s talks were no exception, and I enjoyed them a lot.</p>
<p>After the closing was the Google party. It was right outside the university union house, so it&#8217;s kinda outdoor. The atmosphere was good, and I think pretty much everyone  was there enjoying the drinks and the BBQ. The food was nice, but I wish there were a bit more variety.</p>
<p>I stayed around for a bit and headed back to St Mary&#8217;s common room. My friend and I joined another two guys (sorry I didn&#8217;t catch the names or I just forgot :() there for a game of table tennis. I haven&#8217;t really played any double myself so that was kinda of cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/02/10/lca2008-day-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA2008 Day 4</title>
		<link>http://pigeond.net/blog/2008/02/08/lca2008-day-4/</link>
		<comments>http://pigeond.net/blog/2008/02/08/lca2008-day-4/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 12:20:25 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2008]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2008/02/08/lca2008-day-4/</guid>
		<description><![CDATA[As my back blogging continues&#8230;
Day 4 is the Professional Delegates Network Session (PDNS) night. Shortly after all the talks of the day we headed down to the Melbourne museum, where the PDNS was held.
I was absolutely stunned by the museum, and I just couldn&#8217;t stopped taking photos. And as a result this also distracted me [...]]]></description>
			<content:encoded><![CDATA[<p>As my back blogging continues&#8230;</p>
<p>Day 4 is the Professional Delegates Network Session (PDNS) night. Shortly after all the talks of the day we headed down to the Melbourne museum, where the PDNS was held.</p>
<p>I was absolutely stunned by the museum, and I just couldn&#8217;t stopped taking photos. And as a result this also distracted me from the actual &#8220;networking&#8221;. I shall put up my LCA2008 photos real soon. There was the <a href="http://www.csiro.au/science/ps4f.html">CSIRAC</a> &#8211; Australia&#8217;s first computer, and there were many many other cool displays of various animals and bugs, like those awesome ant&#8217;s nests and spiders.</p>
<p>It&#8217;s a pity though that we were only allowed to be in a rather small area of the museum, and we couldn&#8217;t really go anywhere else.</p>
<p>There&#8217;s also one of those displays where you put on a specially made glasses to watch a few video clips in 3D.</p>
<p>The food was very nice as well! There was a few things with some kind of raw beef, some thing that a bit like sushi but not quite, raw oysters, usual but delicious sandwiches. Allow me to say that the PDNS food this year was better than last year&#8217;s :P</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/02/08/lca2008-day-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA2008 Day 3</title>
		<link>http://pigeond.net/blog/2008/02/07/lca2008-day-3/</link>
		<comments>http://pigeond.net/blog/2008/02/07/lca2008-day-3/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 10:35:38 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2008]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2008/02/07/lca2008-day-3/</guid>
		<description><![CDATA[Doing a bit back-blogging&#8230; but hey, at least that means the conference was so great and I didn&#8217;t have any time to blog :)
So it was the first day of the LCA main conference. Apart from Bruce Schneier&#8217;s keynote and all the cool talks, it was also the 10th year anniversary of lwn.net, and during [...]]]></description>
			<content:encoded><![CDATA[<p>Doing a bit back-blogging&#8230; but hey, at least that means the conference was so great and I didn&#8217;t have any time to blog :)</p>
<p>So it was the first day of the LCA main conference. Apart from <a href="http://www.schneier.com/">Bruce Schneier</a>&#8217;s keynote and all the cool talks, it was also the 10th year anniversary of <a href="http://lwn.net/">lwn.net</a>, and during the morning tea we had some really really rich and delicious lwn chocolate muffin. It was soooo good.</p>
<p>It was also the day/night for the penguin dinner. It was held at the <a href="http://www.qvm.com.au/night_market.php">Queen Victoria night market</a>, which is quite different from what the usual LCA penguin dinner used to be. And being the first time visiting Melbourne, it is actually a pretty good idea.</p>
<p>So we all like 700 people walking from the Melbourne University. It was funny that there was a guy who worked opposite to the road where we slowly strolled to the night market, and he couldn&#8217;t resist and headed down from his office and asked us what&#8217;s happening with all these people on the street.</p>
<p>We got to choose our own food from over like 30 different food places (even though I&#8217;ve got from the one only, but I loved it). And I like the semi-open environment (and glad that it wasn&#8217;t raining in the afternoon and the evening), more casual, and a lot more fun.</p>
<p>Didn&#8217;t pay much attention to the actual market though myself, as I found it very much the same as the one at the Rocks in Sydney.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/02/07/lca2008-day-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA2008 Day 2</title>
		<link>http://pigeond.net/blog/2008/01/29/lca2008-day-2/</link>
		<comments>http://pigeond.net/blog/2008/01/29/lca2008-day-2/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 12:48:21 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2008]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2008/01/29/lca2008-day-2/</guid>
		<description><![CDATA[After asking for an extra pillow (the one that was already in the room just didn&#8217;t work well, it&#8217;s as flat as a Macbook Air), I had a good sleep last night.
I have been hiding in the gaming miniconf pretty much the whole day. It was all fun and cool. In particular the Crayon project, [...]]]></description>
			<content:encoded><![CDATA[<p>After asking for an extra pillow (the one that was already in the room just didn&#8217;t work well, it&#8217;s as flat as a Macbook Air), I had a good sleep last night.</p>
<p>I have been hiding in the gaming miniconf pretty much the whole day. It was all fun and cool. In particular the Crayon project, which is supposed to turn a simple photo or drawing into some sort of games, sounded very interesting. Unfortunately due to time constrains there wasn&#8217;t a demo. It might be shown on the open day however.</p>
<p>Another interesting one would be Rusty&#8217;s wiimote project, which will hopefully be ready to for demo on the open day as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/01/29/lca2008-day-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA2008 Day 1</title>
		<link>http://pigeond.net/blog/2008/01/28/lca2008-day-1/</link>
		<comments>http://pigeond.net/blog/2008/01/28/lca2008-day-1/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 12:37:26 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2008]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2008/01/28/lca2008-day-1/</guid>
		<description><![CDATA[After watching the Australian Open men&#8217;s final on Sunday night, I woke up to the first miniconf day of LCA2008, half asleep.
As I got to St Mary&#8217;s pretty late yesterday, the registration desk was already closed by the time I got there. So only this morning I got my badge and conference bag.
One of the [...]]]></description>
			<content:encoded><![CDATA[<p>After watching the Australian Open men&#8217;s final on Sunday night, I woke up to the first miniconf day of LCA2008, half asleep.</p>
<p>As I got to St Mary&#8217;s pretty late yesterday, the registration desk was already closed by the time I got there. So only this morning I got my badge and conference bag.</p>
<p>One of the coolest about the bag is not only inside it has a bag for a laptop, but also the fact that it is detachable, which means I can use it in my backpack too. Another good one is the small umbrella, which I was meant to get one because my old small one broke, as they all do. Having said that, let&#8217;s hope it&#8217;s not going to rain anytime this week. :)</p>
<p>I managed to stay awake in the embedded miniconf with the Stuart&#8217;s robot talk and <a href="http://benno.id.au/">Benno</a>&#8217;s OKL4. Both were very interesting. Unfortunately the PS3 and Cell Linux talk was cancelled, which is a bit disappointing considering I&#8217;ve recently got a (virtually free) PS3.</p>
<p>After lunch I went back to the embedded miniconf for more talk, then later I hopped into the multimedia miniconf for the <a href="http://ingex.sf.net/">Ingex</a> talk. After that I just couldn&#8217;t talk it anymore and decided to stroll back to my room and take a nap.</p>
<p>Definitely need a longer and better sleep tonight for the gaming and perhaps kernel miniconf tomorrow.</p>
<p>And once again, like many other LCAers, I&#8217;m really grateful for the working wireless at the St Mary&#8217;s college rooms. Thanks very much to the LCA team.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/01/28/lca2008-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YSSY -&gt; YMML for LCA2008</title>
		<link>http://pigeond.net/blog/2008/01/27/yssy-ymml-for-lca2008/</link>
		<comments>http://pigeond.net/blog/2008/01/27/yssy-ymml-for-lca2008/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 22:15:42 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2008]]></category>
		<category><![CDATA[melbourne]]></category>
		<category><![CDATA[YMML]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2008/01/27/yssy-ymml-for-lca2008/</guid>
		<description><![CDATA[In about 4 hours time I&#8217;ll be on my way to LCA2008. This is also my first trip to Melbourne. All good!
Also just wondering if there&#8217;s any other FlightGear-ers around LCA this year? (apart from those who I already know). We could have a little chat, or maybe some hacking/debugging/troubleshooting sessions? Or even some multiplay [...]]]></description>
			<content:encoded><![CDATA[<p>In about 4 hours time I&#8217;ll be on my way to <a href="http://linux.conf.au/">LCA2008</a>. This is also my first trip to Melbourne. All good!</p>
<p>Also just wondering if there&#8217;s any other FlightGear-ers around LCA this year? (apart from those who I already know). We could have a little chat, or maybe some hacking/debugging/troubleshooting sessions? Or even some <a href="http://pigeond.net/flightgear/fgmap/">multiplay</a> fun?</p>
<p>See you all at LCA!</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2008/01/27/yssy-ymml-for-lca2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux, ASUS W7J, and the ACPI brightness keys</title>
		<link>http://pigeond.net/blog/2007/11/05/linux-asus-w7j-and-the-acpi-brightness-keys/</link>
		<comments>http://pigeond.net/blog/2007/11/05/linux-asus-w7j-and-the-acpi-brightness-keys/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 20:30:21 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[acpi lcd]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[brightness]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[w7j]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/11/05/linux-asus-w7j-and-the-acpi-brightness-keys/</guid>
		<description><![CDATA[Was meant to write up a page about Linux on my ASUS W7J, but I never got the time yet&#8230;
Anyway, here&#8217;s a possible quick fix for those with an ASUS laptop (W7J at least) and a non-working brightness acpi key (in my case, it&#8217;s Fn + F5 and Fn + F6), even though /sys/class/backlight/asus-laptop/brightness works [...]]]></description>
			<content:encoded><![CDATA[<p>Was meant to write up a page about Linux on my ASUS W7J, but I never got the time yet&#8230;</p>
<p>Anyway, here&#8217;s a possible quick fix for those with an ASUS laptop (W7J at least) and a non-working brightness acpi key (in my case, it&#8217;s Fn + F5 and Fn + F6), even though <code>/sys/class/backlight/asus-laptop/brightness</code> works perfectly.</p>
<p>I poked around the disassembled DSDT code and did a bit of googling. After a few reboots and testing, I figured out passing <code>acpi_osi="!Windows 2006"</code> to the kernel fixes the issue.</p>
<p>Apparently with the (current) Linux ACPI driver, the OS interface (OSI) code will respond to the ACPI as quite a few different versions of M$ windows (see <code>drivers/acpi/utilities/uteval.c</code> for the entire list). This list can be modified by the kernel parameter <code>acpi_osi</code> (see <code>Documentation/kernel-parameters.txt</code> for full details).</p>
<p>So my guess is the DSDT thinks I&#8217;m running &#8220;Windows 2006&#8243; (aka Vista), and so it is doing (or not doing) something with these two particular ACPI keys. Telling the Linux ACPI driver not to pretend to be Vista got rid of the problem.</p>
<p>This quick workaround also means that I didn&#8217;t have to patch my own DSDT and build a kernel with it.</p>
<p><strong>[Updated: 5th November 2007]</strong> I was testing 2.6.23.x on the W7J, and I noticed both brightness keys Fn + F5 and Fn + F6 work without <code>acpi_osi</code>. I looked into it and I&#8217;ve found out that the ACPI <code>video</code> driver makes the keys work. And for some reasons with older kernels (2.6.22.x) the <code>video</code> module is not loaded automatically. So you can probably ignore what I said above months ago :)</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/11/05/linux-asus-w7j-and-the-acpi-brightness-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Our dog chooses Linux&#8230;</title>
		<link>http://pigeond.net/blog/2007/05/24/our-dog-chooses-linux/</link>
		<comments>http://pigeond.net/blog/2007/05/24/our-dog-chooses-linux/#comments</comments>
		<pubDate>Thu, 24 May 2007 12:11:26 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[dog]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/05/24/our-dog-chooses-linux/</guid>
		<description><![CDATA[Does yours?
]]></description>
			<content:encoded><![CDATA[<p><center><img src="http://pigeond.net/images/blog/dog_chooses_linux.jpg" alt="Our dog chooses Linux" title="Our dog chooses Linux" border="0" height="338" width="450" /></center>Does yours?</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/05/24/our-dog-chooses-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bonding &#8211; switching network interface without losing connections</title>
		<link>http://pigeond.net/blog/2007/02/12/bonding-switching-network-interface-without-losing-connections/</link>
		<comments>http://pigeond.net/blog/2007/02/12/bonding-switching-network-interface-without-losing-connections/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 09:48:19 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[bonding]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[ifenslave]]></category>
		<category><![CDATA[ifplugd]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/02/12/bonding-switching-network-interface-without-losing-connections/</guid>
		<description><![CDATA[There&#8217;s wireless setup at my wife&#8217;s home in Taiwan. But whenever I&#8217;m upstairs in our room I prefer using the wired connection. While when I&#8217;m downstairs I have no choice as there&#8217;s no extra ethernet port.
Switching between the two networks is not a big deal. And with the help of ifplugd, the switching is automatic. [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s wireless setup at my wife&#8217;s home in Taiwan. But whenever I&#8217;m upstairs in our room I prefer using the wired connection. While when I&#8217;m downstairs I have no choice as there&#8217;s no extra ethernet port.</p>
<p>Switching between the two networks is not a big deal. And with the help of <a href="http://packages.debian.org/stable/net/ifplugd"><code>ifplugd</code></a>, the switching is automatic. But after all, they are two different interfaces. It would be good if I could switch between them without losing any existing connections. After a bit of googling around, I&#8217;ve found one solution: Ethernet channel bonding.</p>
<p>From the Linux source code <code>Documentation/networking/bonding.txt</code>: &#8220;The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical &#8220;bonded&#8221; interface&#8221;. In my case, I&#8217;m bonding the <code>eth0</code> (wired) and the <code>eth2</code> (wireless) together.</p>
<p>Under Debian, the bonding driver is built as a module <code>bonding</code>. I&#8217;ve also installed the <a href="http://packages.debian.org/cgi-bin/search_packages.pl?keywords=ifenslave"><code>ifenslave</code></a>. So I put the bonding driver into my <code>/etc/modules</code> so it&#8217;s loaded at system startup:</p>
<pre class="file_content">
bonding mode=1 miimon=500</pre>
<p>where <code>mode=1</code> sets the bonding mode to active-backup. The bonding driver also supports a few different load-balancing modes, which you might want to check out as well. <code>miimon=500</code> sets the link check interval in milliseconds.</p>
<p>There&#8217;s also a <code>primary</code> parameter which you could specify which slave interface will always be used if it is available (e.g. <code>primary=eth0</code>).</p>
<p>The bonding driver gives you a new network interface <code>bond0</code>. Now to setup <code>bond0</code>, <code>eth0</code> and <code>eth2</code> in <code>/etc/network/interfaces</code>:</p>
<pre class="file_content">
# the wired interface
iface eth0 inet manual
    hostname xxxxxxx

# the wireless interface
iface eth2 inet manual
    wireless-key s:xxxxxxxxxxxxx restricted
    wireless-essid xxxxxxxxxxxx
    wireless-mode managed

# the bonding interface, eth0 + eth2
iface bond0 inet dhcp
    pre-up ifconfig bond0 up
    pre-up ifenslave bond0 eth0 eth2
    pre-down ifenslave -d bond0 eth0 eth2</pre>
<p><code>bond0</code> is set to use DHCP, while <code>eth0</code> and <code>eth2</code> are not, as they will act as slave interfaces. <code>bond0</code> is the master. The 2nd pre-up command for <code>bond0</code> attaches both <code>eth0</code> and <code>eth2</code> as slaves to the bonding device. Note that it is possible to configure a bonding device via <code>sysfs</code>, which is also documented in <code>Documentation/network/bonding.txt</code>.</p>
<p>While <code>ifplugd</code> takes care of <code>eth0</code> going up and down, I also want to turn off the wireless completely when the wired network is plugged in. So I added my own script <code>/etc/ifplugd/action.d/bonding</code>:</p>
<pre class="file_content">
#!/bin/sh
set -e

if [ ! -f /proc/net/bonding/bond0 ]; then
    exit
fi

case "$1" in
eth0)
    case "$2" in
    up)
        /sbin/ifdown eth2
        /sbin/ifconfig eth2 down
        /sbin/iwconfig eth2 txpower off
        ;;

    down)
        /sbin/iwconfig eth2 txpower auto
        /sbin/ifup eth2
        /sbin/ifconfig eth2 up
        ;;
    esac

    # I need to do this sometimes, so I've put it in
    # or could someone comment on this?
    ifdown bond0
    ifup bond0

    ;;
esac</pre>
<p>This script will turn off the wireless radio for me when my <code>eth0</code> wired network is up.</p>
<p>I&#8217;m relying on <code>ifplugd</code> to bring up <code>bond0</code>, which will then bring up <code>eth0</code> and <code>eth2</code>. Hence in <code>/etc/network/interfaces</code> I did not set any of the interfaces to be auto. I also added <code>-l</code> to the arguments of <code>ifplugd</code> in <code>/etc/default/ifplugd</code>:</p>
<pre class="file_content">
ARGS="-q -f -u0 -d10 -w -I -l"</pre>
<p>so that it will run the &#8220;down&#8221; script on <code>ifplugd</code> startup if no cable is detected. That way my script will bring up my wireless <code>eth2</code> if <code>eth0</code> is not plugged, say at boot time.</p>
<p>With this setup, the bonding driver automatically switches to use <code>eth0</code> or <code>eth2</code>, whichever is brought up. In my setup, <code>eth0</code> and <code>eth2</code> won&#8217;t be up at the same time. If you use the <code>primary</code> parameter, the primary slave interface will always be used, even if the other slaves become available.</p>
<p><code>/proc/net/bonding/bond0</code> shows the status of the bonding interface. For example I&#8217;m now on the wireless network:</p>
<pre class="file_content">
Ethernet Channel Bonding Driver: v3.0.3 (March 23, 2006)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth2
MII Status: up
MII Polling Interval (ms): 500
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: down
Link Failure Count: 0
Permanent HW addr: 00:11:2f:9c:57:25

Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:11:2f:9c:57:25</pre>
<p>It&#8217;s pretty obvious that the currently active slave is my <code>eth2</code> wireless. I can run something like <code>watch -n 1 cat /proc/net/bonding/bond0</code>, and as I plug the ethernet cable back, the active slave will become <code>eth0</code>. You can also find out the currently active slave via <code>/sys/class/net/bond0/bonding/active_slave</code>.</p>
<p>For completeness, here is the output of <code>ifconfig</code>:</p>
<pre class="file_content">
bond0     Link encap:Ethernet  HWaddr 00:11:2F:9C:57:25
          inet addr:192.168.11.3  Bcast:192.168.11.255  Mask:255.255.255.0
          inet6 addr: fe80::211:2fff:fe9c:5725/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:329306 errors:0 dropped:0 overruns:0 frame:0
          TX packets:329010 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:732552585 (698.6 MiB)  TX bytes:204431117 (194.9 MiB)

eth0      Link encap:Ethernet  HWaddr 00:11:2F:9C:57:25
          UP BROADCAST SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:303936 errors:0 dropped:0 overruns:0 frame:0
          TX packets:304693 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:245381818 (234.0 MiB)  TX bytes:27905638 (26.6 MiB)
          Interrupt:5 Base address:0xd800

eth2      Link encap:Ethernet  HWaddr 00:11:2F:9C:57:25
          inet6 addr: fe80::211:2fff:fe9c:5725/64 Scope:Link
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:25370 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24317 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:487170767 (464.6 MiB)  TX bytes:176525479 (168.3 MiB)
          Interrupt:5 Base address:0xe000 Memory:ff9fe000-ff9fefff</pre>
<p>which shows <code>bond0</code> being the master, and <code>eth0</code> and <code>eth2</code> being slaves.</p>
<p>It almost makes plugging and unplugging the ethernet cable fun. I can just sit there and keep replugging the cable alllllll day&#8230; :)</p>
<p>I&#8217;ve been using this setup for at least a week now and has been working very well. Please let me know if there&#8217;s anything I&#8217;ve missed, or any even better way of setting this up.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/02/12/bonding-switching-network-interface-without-losing-connections/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows badness, and VirtualBox goodness</title>
		<link>http://pigeond.net/blog/2007/02/11/windows-badness-and-virtualbox-goodness/</link>
		<comments>http://pigeond.net/blog/2007/02/11/windows-badness-and-virtualbox-goodness/#comments</comments>
		<pubDate>Sun, 11 Feb 2007 13:31:29 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[avermedia]]></category>
		<category><![CDATA[dvb-t]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/02/11/windows-badness-and-virtualbox-goodness/</guid>
		<description><![CDATA[Just don&#8217;t ask why, really, but (under the influence of my wife) we bought a AverMedia Hybrid (DVB-T + Analogue) + FM Radio USB 2.0 box. It&#8217;s a nice little USB device, and it also has composite and s-video input, audio input, and a remote control.
And of course it works under that proprietary . Then [...]]]></description>
			<content:encoded><![CDATA[<p>Just don&#8217;t ask why, really, but (under the influence of my wife) we bought a AverMedia Hybrid (DVB-T + Analogue) + FM Radio USB 2.0 box. It&#8217;s a nice little USB device, and it also has composite and s-video input, audio input, and a remote control.</p>
<p>And of course it works under that proprietary . Then we realized it has rather serious issues with the composite-in being a bit slow (both slow frame rate and sometimes laggy).</p>
<p>As a Linuxer, naturally I then tried the device under Linux. Only just halfly expected, there is no driver for Linux yet. That&#8217;s no better way to spend your holidays overseas? I decided to spend a little on looking into the possibility to reverse engineer the windows driver.</p>
<p>Doing things on windows is always painful. Though I got one of the windows USB sniffer working, it wasn&#8217;t as convenient as doing things on Linux. So I went for using QEMU booting into windows and capture all the USB traffic. Unfortunately, windows (xp) crashes (classic BSOD style) while installing the device driver. I thought for a second, maybe it&#8217;s QEMU not emulating something that is needed?</p>
<p>Someone on #bochs pointed me to <a href="http://virtualbox.org/">VirtualBox</a>, so I gave it a go. Still out of luck though, windows xp crashes at the exact same spot. Damn.</p>
<p>On the bright side, I have discovered VirtualBox &#8211; yet another virtualizer for x86 hardware, and it&#8217;s pretty awesome:</p>
<ul>
<li>(On this Pentium M 1.6GHz laptop) VirtualBox is much much faster than QEMU (with kqemu) for, well, running windows xp.</li>
<li>It has a GUI frontend for setting up VMs. As much as I prefer text/command-line based apps, a GUI frontend does help new users to try things out a lot.</li>
</ul>
<p>Having said that, VirtualBox (currently anyway) is not entirely open source. It has <a href="http://www.virtualbox.org/wiki/Editions">two editions</a>. And the version I tried was the one with those closed-source features. On the other hand they did say &#8220;some of these features will eventually be made available with the open-source version as well&#8221;.</p>
<p>So, no, I didn&#8217;t go very far with the reverse engineering. It&#8217;s usually a painful and time-consuming process. I did have some of the USB traffic sniffed and logged under windows, but I haven&#8217;t done much with them yet.</p>
<p>I have some more photos and info of the device <a href="http://pigeond.net/~pigeon/a818/">here</a>, including photos of it pulled apart.</p>
<p><center><img src="http://pigeond.net/~pigeon/a818/.dsc03810.thumb.jpg" border="0" height="156" width="207" /></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/02/11/windows-badness-and-virtualbox-goodness/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;I know kung fu&#8230;&#8221;</title>
		<link>http://pigeond.net/blog/2007/02/11/i-know-kung-fu/</link>
		<comments>http://pigeond.net/blog/2007/02/11/i-know-kung-fu/#comments</comments>
		<pubDate>Sun, 11 Feb 2007 12:36:47 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[bigpond]]></category>
		<category><![CDATA[cable]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ipkungfu]]></category>
		<category><![CDATA[netwinder]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[telstra]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/02/11/i-know-kung-fu/</guid>
		<description><![CDATA[And so does everyone else. Simply apt-get install ipkungfu.
I&#8217;ve finally switched my gateway box from my 12 years old Pentium (I) 166MHz gateway box (still running Debian potato, kernel 2.2. This is Linux for you, when it works, it can work forever&#8230;), to my 5-6 years old Netwinder.
I was also very glad that the Netwinder [...]]]></description>
			<content:encoded><![CDATA[<p>And so does everyone else. Simply <em>apt-get install ipkungfu</em>.</p>
<p>I&#8217;ve finally switched my gateway box from my 12 years old Pentium (I) 166MHz gateway box (still running Debian potato, kernel 2.2. This is Linux for you, when it works, it can work forever&#8230;), to my 5-6 years old <a href="http://pigeond.net/photos/netwinder/">Netwinder</a>.</p>
<p>I was also very glad that the Netwinder is now (or still) officially supported by Debian. I had Debian potato installed on it for years. Upgrading it was painless.</p>
<p>My old gateway box was running such an old kernel, and the firewall was one of those copied-from-others script using ipchains. This time I decided to use a better way to manage my firewall rules. After a bit of research and trying things out, I&#8217;ve chosen <a href="http://packages.debian.org/testing/net/ipkungfu">ipkungfu</a>. Again, it was painless to setup.</p>
<p>The only not-so-good bit was, I did the machine switching-over only 1 day before I went away. So as it turned out, my net connection went down in about 2 days time. I always have some scripts checking if the net is up or not, and it would reset everything (bringing down/up the interface, renewing IP, relogging on, etc). But looks like that wasn&#8217;t helping either. So I thought it might be one of those cable-modem-needed-to-be-reset situation.</p>
<p>I asked my uncle to power cycle the cable modem for me. And just to be safe I asked him to do the same for the gateway box too. As expected my net connection went up again. And I was happy, for a while.</p>
<p>Who would have thought, it went down again. Suspiciously, it also only stayed up for about 2 days. My instinct told me it wasn&#8217;t a coincident. A few days later my uncle again power cycled the modem.</p>
<p>I got on and check the logs again and found that my firewall was blocking (and logging) a lot of IGMP packets from some mysterious 10.x.x.x (Telstra internal network instruments) IP. It&#8217;s strange though, I haven&#8217;t seen these logs when I was testing the net. So apparently just the bpalogin client heartbeat is not enough. Seems that without the IGMP packet response (or how-ever IGMP works), after a certain timeout period (2 days?) the other end terminates the net connection and stops leasing IP, even if the cable modem is on or even there are existing network connections. So of course, I&#8217;ve then updated my firewall rules.</p>
<p>Lesson learnt, testing the net for 1 day is not enough, cos it will go down in 2 days ;)</p>
<p>Once again, many thanks to my uncle for the trouble.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/02/11/i-know-kung-fu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA 2007 Day 5 &#8211; The last day, and the Penguin Dinner</title>
		<link>http://pigeond.net/blog/2007/01/20/lca-2007-day-5-the-last-day-and-the-penguin-dinner/</link>
		<comments>http://pigeond.net/blog/2007/01/20/lca-2007-day-5-the-last-day-and-the-penguin-dinner/#comments</comments>
		<pubDate>Sat, 20 Jan 2007 12:50:22 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2007]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/01/20/lca-2007-day-5-the-last-day-and-the-penguin-dinner/</guid>
		<description><![CDATA[Kathy Sierra&#8217;s keynote was very refreshing. She outlined a different way of thinking with software development, or perhaps for any products development. It was very entertaining as well. The movie character matching was very very cool :)
The highlight talk for me for the day was probably Adam Kennedy&#8217;s Nothing can possibly go wrong. Couldn&#8217;t quite [...]]]></description>
			<content:encoded><![CDATA[<p>Kathy Sierra&#8217;s keynote was very refreshing. She outlined a different way of thinking with software development, or perhaps for any products development. It was very entertaining as well. The movie character matching was very very cool :)</p>
<p>The highlight talk for me for the day was probably <a href="http://lca2007.linux.org.au/profile/108">Adam Kennedy</a>&#8217;s <a href="http://lca2007.linux.org.au/talk/122">Nothing can possibly go wrong</a>. Couldn&#8217;t quite describe it, just wait and download its video if you weren&#8217;t there.</p>
<p>And then there was the closing ceremony of LCA 2007. Like most people I would have loved it if the space invader demo worked. Even if we could setup a camera and write a program to do the same thing, we certainly don&#8217;t have like 800 people to test it everyday.</p>
<p>We progressed to the Penguin Dinner shortly after. It was a big dinner, apparently there were about 65 tables. Food was great even after having a bad stomach after the Open Day beef pie. During the dinner there was the rusty wrench presentation, the big cheque handing over, and also the usual speaker-autographed auction. After the dinner we had a little final party upstairs at the same place. I spent only a little bit there.</p>
<p>Photos of the last day of LCA <a href="http://pigeond.net/photos/lca-2007/day5/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/01/20/lca-2007-day-5-the-last-day-and-the-penguin-dinner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA 2007 Day 4 &#8211; Inkscape&#8217;s bling, weather art, and the ROCKING Open Day</title>
		<link>http://pigeond.net/blog/2007/01/19/lca-2007-day-4-inkscapes-bling-weather-art-and-the-rocking-open-day/</link>
		<comments>http://pigeond.net/blog/2007/01/19/lca-2007-day-4-inkscapes-bling-weather-art-and-the-rocking-open-day/#comments</comments>
		<pubDate>Fri, 19 Jan 2007 05:52:21 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2007]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/01/19/lca-2007-day-4-inkscapes-bling-weather-art-and-the-rocking-open-day/</guid>
		<description><![CDATA[Andy Fitzsimon&#8217;s Single Source Design illustrated a lot of &#8220;bling&#8221; in graphics and web site design using Inkscape. It&#8217;s one of those talks that inspired you with all these mind-blowing new ways of doing things.
While Alexander Reeder presented his neat, practical and yet simple idea of his naked laptop weather display in the Open Source [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lca2007.linux.org.au/profile/31">Andy Fitzsimon</a>&#8217;s <a href="http://lca2007.linux.org.au/talk/32">Single Source Design</a> illustrated a lot of &#8220;bling&#8221; in graphics and web site design using Inkscape. It&#8217;s one of those talks that inspired you with all these mind-blowing new ways of doing things.</p>
<p>While <a href="http://lca2007.linux.org.au/profile/63">Alexander Reeder</a> presented his neat, practical and yet simple idea of his naked laptop weather display in the <a href="http://lca2007.linux.org.au/talk/68">Open Source Art</a> talk. He has reminded me of the broken laptop my ex-flatmate gave me, which has a rather flaky IDE bus as well. I should probably think of something cool to do with it.</p>
<p>In the afternoon we had the ROCKING <a href="http://lca2007.linux.org.au/OpenDay">Open Day</a> at the pavilion. Though the venue is small (comparing to those big expo of course), there were heaps of interesting displays and demo. It might be things that we (Linux enthusiast) see everyday, but to the others it was a wonderful experience. It was very packed and apparently there were over a thousand people visited, including families and friends of people in the Linux community. Maybe this will become a trend of all LCAs in the future to have an awesome Open Day.</p>
<p>I ended up helping Endy a very little bit at his <a href="http://scummvm.org/">ScummVM</a> demo stand. I showed and explained to a few kids the what and how of the game. Turns out there were a lot of young kids interested Sam &#8216;n Max and the Maniac Mansion Day of the Tentacles when they saw them. Many of them were willing to sit down and spend lots of time going though the game. Good games can really be good games of all time.</p>
<p>Photos of day 4 <a href="http://pigeond.net/photos/lca-2007/day4/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/01/19/lca-2007-day-4-inkscapes-bling-weather-art-and-the-rocking-open-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA 2007 Day 3 &#8211; Cool talks and professional drinking^H^H^H^H^H^H^H^Hnetworking session</title>
		<link>http://pigeond.net/blog/2007/01/18/lca-2007-day-3-cool-talks-and-professional-drinkinghhhhhhhhnetworking-session/</link>
		<comments>http://pigeond.net/blog/2007/01/18/lca-2007-day-3-cool-talks-and-professional-drinkinghhhhhhhhnetworking-session/#comments</comments>
		<pubDate>Thu, 18 Jan 2007 04:34:56 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2007]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/01/18/lca-2007-day-3-cool-talks-and-professional-drinkinghhhhhhhhnetworking-session/</guid>
		<description><![CDATA[After the short Linus-on-stage and Tanenbaum&#8217;s awesome keynote, I went to Albatross UAV session by John and Hugo, Tridgell&#8217;s clustering tdb, followed by Raster&#8217;s E and pants, nouveau driver, Stewart&#8217;s data eating talk, and the X monitor hotplugging by Keith Packard.
The X talk reminds me of xdmx, which works but the version I tried last [...]]]></description>
			<content:encoded><![CDATA[<p>After the short Linus-on-stage and Tanenbaum&#8217;s awesome keynote, I went to Albatross UAV session by John and Hugo, Tridgell&#8217;s clustering tdb, followed by Raster&#8217;s E and pants, nouveau driver, Stewart&#8217;s data eating talk, and the X monitor hotplugging by Keith Packard.</p>
<p>The X talk reminds me of xdmx, which works but the version I tried last time still had the nasty Xrender bug (which is apparently fixed in the development version). Also I couldn&#8217;t get any GLX direct rendering to work, even for the local native screen which I thought it would work. Someone could show me some lights? (Is it supposed to work or not?)</p>
<p>In the evening we had the professional networking session at the Scientia. This is actually my first time at LCA as a professional. The atmosphere there was great. There were a lot more people there than I thought it would be. Took some nice photos there too.</p>
<p>Photos of the 3rd day <a href="http://pigeond.net/photos/lca-2007/day3/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/01/18/lca-2007-day-3-cool-talks-and-professional-drinkinghhhhhhhhnetworking-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA 2007 Day 2 &#8211; Jokosher and Gaming Miniconf</title>
		<link>http://pigeond.net/blog/2007/01/17/lca-2007-day-2-jokosher-and-gaming-miniconf/</link>
		<comments>http://pigeond.net/blog/2007/01/17/lca-2007-day-2-jokosher-and-gaming-miniconf/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 02:49:40 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2007]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/01/17/lca-2007-day-2-jokosher-and-gaming-miniconf/</guid>
		<description><![CDATA[There isn&#8217;t an Audio Miniconf this year like the one in LCA 2005. Still there are a couple of audio related talks like the Jokosher talk I went to in the GNOME Miniconf today.
Jono Bacon pinpointed that a few good elements that what and how a (sound editing) GUI would make sense and be intuitive. [...]]]></description>
			<content:encoded><![CDATA[<p>There isn&#8217;t an Audio Miniconf this year like the one in <a href="http://www.metadecks.org/events/lca2005/">LCA 2005</a>. Still there are a couple of audio related talks like the <a href="http://www.jokosher.org/">Jokosher</a> talk I went to in the GNOME Miniconf today.</p>
<p>Jono Bacon pinpointed that a few good elements that what and how a (sound editing) GUI would make sense and be intuitive. I have played with <a href="http://ardour.org/">ardour</a> a little bit myself and I have to agree what Jono has said about it. I guess it&#8217;s kind of like how I keep hearing people who got used to a 3D modeling app like <a href="http://www.ac3d.org/">AC3D</a> and then go and try <a href="http://blender.org/">Blender</a>. (I use and am used to Blender, though)</p>
<p>Well, spent most of the day at the Gaming Miniconf. Wesnoth, PS3 Linux, and so forth.</p>
<p>Also fulfilled my panorama obsession and half-heartedly took one at the round house while people waiting for the conference party. No I haven&#8217;t fixed every single glitches in the photo, that&#8217;s what the GIMP tutorial on Thursday is for :)</p>
<p><a href="http://pigeond.net/photos/lca-2007/day2/13"><img src="http://pigeond.net/images/blog/round-house-panorama.jpg" border="1" height="128" width="512" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/01/17/lca-2007-day-2-jokosher-and-gaming-miniconf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCA 2007 Day 1</title>
		<link>http://pigeond.net/blog/2007/01/15/lca-2007-day-1/</link>
		<comments>http://pigeond.net/blog/2007/01/15/lca-2007-day-1/#comments</comments>
		<pubDate>Mon, 15 Jan 2007 12:43:45 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2007]]></category>
		<category><![CDATA[scummvm]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/01/15/lca-2007-day-1/</guid>
		<description><![CDATA[Hot day, cool people; nice LCA bag, bad wireless. My first day at LCA 2007.
It was pretty exciting to meet for the first time with a few people who I have known online for quite a while. George (or Gorilla) from the FlightGear gang, Leeds I know from #handhelds.org, and Endy from the ScummVM team [...]]]></description>
			<content:encoded><![CDATA[<p>Hot day, cool people; nice LCA bag, bad wireless. My first day at LCA 2007.</p>
<p>It was pretty exciting to meet for the first time with a few people who I have known online for quite a while. George (or Gorilla) from the <a href="http://flightgear.org/">FlightGear</a> gang, Leeds I know from #<a href="http://handhelds.org">handhelds.org</a>, and Endy from the <a href="http://scummvm.org/">ScummVM</a> team showing off the latest version that has AGI support (for some of the old Sierra games like Space Quest I). Looking forward to his lightning talk at the <a href="http://lca2007.linux.org.au/Miniconfs/Gaming/ProgramNew">Gaming Miniconf</a> tomorrow.</p>
<p>Apparently Jeff ended up demonstrating the Wii in the Gnome miniconf (which I have missed). I reckon he should have demo using the Wiimote on Linux, which is pretty easy to setup. Or maybe that should be in the Gaming miniconf&#8230; :)</p>
<p>On the other hand, I was having weird trouble with the wireless on my laptop. It&#8217;s a Intel Centrino PRO/Wireless 2200BG, and I was using the ipw2200 module with the corresponding firmware. For some reasons it wasn&#8217;t able to get an IP from DHCP most of the time. I managed to get an IP once, but it dropped out pretty much straight away. I tried setting the same IP I got statically but it was only partially working (DNS working, for example, but nothing else worked, which was expected).</p>
<p>After consulting Jamie and John a bit they reckoned my wireless somehow kept dropping packets. And to be honest I haven&#8217;t actually use the wireless much on this laptop. I have no idea whether it&#8217;s a hardware/radio/firmware/driver problem or what. I ended up using my CF wifi card and it worked beautifully.</p>
<p>Anyone in the conference is welcomed to fix it for me :)</p>
<p>Took fewer photos than I wanted to today, but anyway they can be found <a href="http://pigeond.net/photos/lca-2007/">here</a>. I&#8217;ll try to put up new photos there for each LCA day.</p>
<p><center><a href="http://pigeond.net/photos/lca-2007/"><img src="http://pigeond.net/photos/lca-2007/day1/dsc03426.thumb.jpg" border="1" height="120" width="160" /></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/01/15/lca-2007-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlightGear + Wiimote</title>
		<link>http://pigeond.net/blog/2007/01/05/flightgear-wiimote/</link>
		<comments>http://pigeond.net/blog/2007/01/05/flightgear-wiimote/#comments</comments>
		<pubDate>Fri, 05 Jan 2007 06:07:25 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[wii]]></category>
		<category><![CDATA[wiimote]]></category>
		<category><![CDATA[WMD]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2007/01/05/flightgear-wiimote/</guid>
		<description><![CDATA[So, we bought a Wii. Amazingly my wife managed to walk-in and bought apparently the second last Wii in that shop, on the first day of the release in Australia. We also got an extra Wiimote, Zelda the game, and two Wiimote grip protectors.
With thanks to WMD, you could use the Wiimote under Linux fairly [...]]]></description>
			<content:encoded><![CDATA[<p>So, we bought a Wii. Amazingly my wife managed to walk-in and bought apparently the second last Wii in that shop, on the first day of the release in Australia. We also got an extra Wiimote, Zelda the game, and two Wiimote grip protectors.</p>
<p>With thanks to <a href="http://forthewiin.org/">WMD</a>, you could use the Wiimote under Linux fairly easily. For those who don&#8217;t know Wiimote talks to the Wii console via bluetooth. So it works with any computer with bluetooth as well.</p>
<p>People have been using the Wiimote on the computers in all sorts of different ways. As a guitar (Wiitar), as a drum machine, for games like Counter Strike, a virtual light sabre, etc. As for me, using the Wiimote with a flightsim, like <a href="http://flightgear.org/">FlightGear</a>, would naturally be the first thing I wanna try.</p>
<p>The Wiimote has three accelerometers for the three axes. I&#8217;ve modified slightly the WMD script to send the X and Z force to the uinput device as the absolute coordinates. <code>jscal</code> then takes care of the calibration of the two axes. Then I changed the commandMap in the script to send <code>BTN_0</code> to <code>BTN_9</code> from all the buttons on the Wiimote.</p>
<p>On the FlightGear side all I need is to write a joystick definition XML for the Wiimote. I&#8217;ve also made the &#8216;B&#8217; button to be the modifier. For example I have arrow Up and Down for throttle, Left and Right for the rudder. Then if I hold down &#8216;B&#8217;, Up Down Left Right become panning the viewport. &#8216;1&#8242; and &#8216;2&#8242; for changing views, &#8216;+&#8217; and &#8216;-&#8217; for zooming in and out, &#8216;A&#8217; for brakes and gears. All set. Now I can fasten my seatbelt^H^H^H^H^H^H^H^Hwrist strap, sit back and ready for take off.</p>
<p><strong>Updated 5th Jan 2007:</strong> Here is a <a href="http://pigeond.net/wii/wmd.acc.js.diff">patch</a> against <a href="http://forthewiin.org/">WMD</a> <a href="https://svn.forthewiin.org/wmd/">SVN</a> repository. Like I said it&#8217;s pretty hacky at the moment. And you definitely have to use <code>jscal</code> to calibrate it before it will behave sanely. Also you probably want to make changes to the <code>commandMap</code> in <code>wmd/Config.py</code> to map more buttons.</p>
<p>And for those FlightGearers out there, here is the <a href="http://pigeond.net/wii/fg-wiimote.xml">Wiimote joystick XML config</a> I&#8217;ve made.</p>
<p>Here&#8217;s a video of FlightGear + Wiimote in action:</p>
<p><center><object height="350" width="425"><param name="movie" value="about:blank"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/R1ylV8f1IHA" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"></embed></object></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2007/01/05/flightgear-wiimote/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FlightGear + Google Earth fun</title>
		<link>http://pigeond.net/blog/2006/12/12/flightgear-google-earth-fun/</link>
		<comments>http://pigeond.net/blog/2006/12/12/flightgear-google-earth-fun/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 20:56:39 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[blender]]></category>
		<category><![CDATA[fgmap]]></category>
		<category><![CDATA[google earth]]></category>
		<category><![CDATA[KML]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/12/12/flightgear-google-earth-fun/</guid>
		<description><![CDATA[Last week I briefly played with Google Earth (GE) and KML, exploring the potential of using it to do something useful with FlightGear (FG).
The quickest hack I did was the GE version FGMap, which shows a moving map of all the online pilots on the FG MP servers. It is basically a very simple change [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I briefly played with <a href="http://earth.google.com/">Google Earth</a> (GE) and <a href="http://earth.google.com/kml/">KML</a>, exploring the potential of using it to do something useful with <a href="http://flightgear.org">FlightGear</a> (FG).</p>
<p>The quickest hack I did was the GE version <a href="http://pigeond.net/flightgear/fgmap.html">FGMap</a>, which shows a moving map of all the online pilots on the FG MP servers. It is basically a very simple change with the FGMap CGI that translate MP server info into XML, only this time it outputs KML. Very simple and straight forward, nothing fancy at all. Check it out by opening <a href="http://pigeond.net/flightgear/fgmap/fg_server_map.kml">this file</a> in GE (if no one is on the server, you&#8217;ll see nothing! Check <a href="http://pigeond.net/flightgear/fg_server_map.html">FGMap</a> too).</p>
<p><center><a href="http://pigeond.net/photos/flightgear/fgge/mpmap-ge-20061203.jpg"><img src="http://pigeond.net/images/blog/fgge/mpmap-ge-20061203.jpg" alt="FGMap Google Earth" title="FGMap Google Earth" border="1" height="266" width="320" /></a></center>[Updated] GE MP map using 3D models work-in-progress:</p>
<p><center><a href="http://pigeond.net/images/blog/fgge/mpmap-ge-02.png"><img src="http://pigeond.net/images/blog/fgge/mpmap-ge-02.thumb.png" alt="FGMap Google Earth" title="FGMap Google Earth" border="1" height="239" width="320" /></a></center>This weekend I started looking into GE&#8217;s 3D model support. Currently it supports two kinds of 3D model definition. KML embedded model using <em>MultiGeometry</em>, or a Collada .dae format. After some investigation I figured I have to use Collada to do what I want &#8211; having a 3D model of an aircraft and updating its position/orientation in GE. <em>MultiGeometry</em> (current version at least) is a fixed coordinates format, while with a Collada model you can place it in GE and then move it around, and also altering its heading/pitch/roll.</p>
<p>Quickly I found this <a href="http://colladablender.illusoft.com/">Collada exportor plugin for Blender</a>. As a test I loaded the C172P aircraft AC3D model from FG into Blender, followed by a few trail-and-error and I figured out what I need to export for GE: 1) Convert all faces to triangles, 2) Export <em>Triangles</em>, <em>Disable Physics</em>, <em>Use UV Image</em> and optionally <em>Use Relative Paths</em>.</p>
<p>According to the <a href="http://earth.google.com/kml/kml_21tutorial.html">KML tutorial</a> I have to pack up the .dae file together with the textures, along with a <em>textures.txt</em> for textures path mapping. However I discovered you could actually alter the path referenced in the .dae file to a local jpeg file, or even an HTTP URL.</p>
<p>So now I&#8217;ve got GE to show a 3D model of an aircraft from FG. Next is to get FG to talk to GE. There are many ways (network, serial port, etc) in FG you can export real time flight data. To make things easier for now, I&#8217;ve set it up to export simply <em>latitude, longitude, altitude, pitch, roll, heading</em> to a file (or actually a fifo), then I wrote a little program to read and output a KML file for GE to read. Then on the GE side, I have to create a KML with a <em>NetworkLink</em> to refresh the actual FG KML.</p>
<p>Now, problems. It seems even if I set the refresh time to be 0 seconds, and I can see GE refreshing the link continuously, on screen it still only updates the position/orientation about once per second. It could well be a GE internal limitation (or feature). The bottom line is, we need a sane way to feed data into GE.</p>
<p>Another thing is I can never get GE to &#8220;follow&#8221; the aircraft properly. It&#8217;s either not panning faster enough, or it will go kinda crazy and jitter a lot. Guess I&#8217;m not a GE/KML yet. I need to test it more and tidy up my codes/scripts/things a bit and I&#8217;ll put them up.</p>
<p>Nevertheless, it&#8217;s kind of fun to &#8220;fly FG inside GE&#8221;.</p>
<p><center>Screenshots of FlightGear running side by side with Google Earth, whereby FG sending data to GE and showing the 3D aircraft. Possibly more screenshots <a href="http://pigeond.net/photos/flightgear/fgge/">here</a><a href="http://pigeond.net/photos/flightgear/fgge/fgge-ksfo.jpg"><img src="http://pigeond.net/images/blog/fgge/fgge-ksfo.jpg" border="1" height="231" width="320" /></a></p>
<p>KSFO</p>
<p><a href="http://pigeond.net/photos/flightgear/fgge/fgge-hong-kong.jpg"><img src="http://pigeond.net/images/blog/fgge/fgge-hong-kong.jpg" border="1" height="258" width="320" /></a></p>
<p>Hong Kong with <a href="http://www.gearthblog.com/blog/archives/2006/12/hong_kong_in_3d_in_g.html">Computamaps Hong Kong 3D models</a></p>
<p></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/12/12/flightgear-google-earth-fun/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FGMap now does metar, and more&#8230;</title>
		<link>http://pigeond.net/blog/2006/12/03/fgmap-now-does-metar-and-more/</link>
		<comments>http://pigeond.net/blog/2006/12/03/fgmap-now-does-metar-and-more/#comments</comments>
		<pubDate>Sun, 03 Dec 2006 12:30:48 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[fgmap]]></category>
		<category><![CDATA[metar]]></category>
		<category><![CDATA[navaids]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/12/03/fgmap-now-does-metar-and-more/</guid>
		<description><![CDATA[Recently updated FGMap with various bug fixes, as well as adding a new tabbed info box for airports. That way I could easily add more different information, such as metar information. I have to admit I first got the idea of adding metar information for FGMap when I first saw it on flyagogo.net. They have [...]]]></description>
			<content:encoded><![CDATA[<p>Recently updated <a href="http://pigeond.net/flightgear/fgmap.html">FGMap</a> with various bug fixes, as well as adding a new tabbed info box for airports. That way I could easily add more different information, such as metar information. I have to admit I first got the idea of adding metar information for FGMap when I first saw it on <a href="http://flyagogo.net/">flyagogo.net</a>. They have excellent real world aviation charts, data and an awesome flight planning tools. I&#8217;m simply using the <a href="http://packages.debian.org/stable/utils/metar">metar</a> in Debian at the moment. Hopefully it will match FlightGear&#8217;s weather when using with its real weather fetch.</p>
<p>Also I&#8217;ve added external links in the airport info box to <a href="http://worldaerodata.com/">World Aero Data</a> and <a href="http://www.airnav.com/">AirNav</a> (for U.S. airports).</p>
<p><center><a href="http://pigeond.net/flightgear/fgmap.html"><img src="http://pigeond.net/images/blog/fgmap_metar.png" border="1" height="277" width="363" /></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/12/03/fgmap-now-does-metar-and-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RAAF airshow 2006</title>
		<link>http://pigeond.net/blog/2006/11/14/raaf-airshow-2006/</link>
		<comments>http://pigeond.net/blog/2006/11/14/raaf-airshow-2006/#comments</comments>
		<pubDate>Tue, 14 Nov 2006 12:31:08 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[2006]]></category>
		<category><![CDATA[airshow]]></category>
		<category><![CDATA[panorama]]></category>
		<category><![CDATA[RAAF]]></category>
		<category><![CDATA[richmond]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/11/14/raaf-airshow-2006/</guid>
		<description><![CDATA[On 21st October I went to the first day of the Royal Australian Air Force (RAAF) airshow at their base in Richmond, NSW. It was roughly a two-hour train trip from home (one way).
I got there sometime just before 11 I think. Weather wasn&#8217;t very good and quite windy from time to time, but it [...]]]></description>
			<content:encoded><![CDATA[<p>On 21st October I went to the first day of the <a href="http://www.defence.gov.au/media/download/2006/Oct/20061023.cfm">Royal Australian Air Force (RAAF) airshow</a> at their base in Richmond, NSW. It was roughly a two-hour train trip from home (one way).</p>
<p>I got there sometime just before 11 I think. Weather wasn&#8217;t very good and quite windy from time to time, but it was very comfortable as I was definitely not sweating, a lot better than one of those 37 degree weekends (which was the week before). It was very crowded, with a lot of families with kids and everything.</p>
<p>So I was pretty much standing and walking around for over 6 hours, taking photos, watching flying demos and aircraft displays. It&#8217;s absolutely good fun if you love planes. For me maybe it was too much of a warbirds and fighters show, but still very enjoyable. There were aerobatics, formation flying, attacks demo, helicopter joy riding (which I didn&#8217;t do, it wasn&#8217;t free :P), also some R/C aircraft and gliders displays. F-111, Hornets, Hercules, Boeing 707, Vampire, Tiger moth, and many many more&#8230;</p>
<p>I took almost 300 photos in total, though most of them look pretty dark and dull due to the weather. And to satisfy my panorama need, I&#8217;ve taken a 360° panorama view at the base at the end of the day.</p>
<p>Note to self:</p>
<ul>
<li>Need better camera for this kind of show, a DSLR with like a 30x optical zoom lens would be great :)</li>
<li>Hang around at the end of the day when almost everyone are leaving, perfect time for taking even more photos wherever and however you like, without the extra random people.</li>
</ul>
<p>My RAAF airshow 2006 album is <a href="http://pigeond.net/photos/raaf-airshow-2006/">here</a>.</p>
<p><center><iframe src="http://pigeond.net/photos/panorama/raaf-airshow-2006-panorama.thumb.html" marginwidth="0" marginheight="0" frameborder="1" height="128" scrolling="no" width="512"></iframe></center> <center><a href="http://pigeond.net/photos/raaf-airshow-2006/"><img src="http://pigeond.net/photos/raaf-airshow-2006/dsc03265.thumb.jpg" alt="Click for more RAAF airshow 2006 photos" title="Click for more RAAF airshow 2006 photos" border="1" height="120" width="160" /></a>   <a href="http://pigeond.net/photos/raaf-airshow-2006/"><img src="http://pigeond.net/photos/raaf-airshow-2006/dsc03205.thumb.jpg" alt="Click for more RAAF airshow 2006 photos" title="Click for more RAAF airshow 2006 photos" border="1" height="120" width="160" /></a>   <a href="http://pigeond.net/photos/raaf-airshow-2006/"><img src="http://pigeond.net/photos/raaf-airshow-2006/dsc03076.thumb.jpg" alt="Click for more RAAF airshow 2006 photos" title="Click for more RAAF airshow 2006 photos" border="1" height="120" width="160" /></a>   <a href="http://pigeond.net/photos/raaf-airshow-2006/"><img src="http://pigeond.net/photos/raaf-airshow-2006/dsc03096.thumb.jpg" alt="Click for more RAAF airshow 2006 photos" title="Click for more RAAF airshow 2006 photos" border="1" height="120" width="160" /></a>   <a href="http://pigeond.net/photos/raaf-airshow-2006/"><img src="http://pigeond.net/photos/raaf-airshow-2006/dsc03136.thumb.jpg" alt="Click for more RAAF airshow 2006 photos" title="Click for more RAAF airshow 2006 photos" border="1" height="120" width="160" /></a></center>On a side note, there was this very odd Linux &#8220;sighting&#8221; at the show. If someone could explain it a bit that would be great ;)</p>
<p><center><a href="http://pigeond.net/photos/raaf-airshow-2006/52"><img src="http://pigeond.net/photos/raaf-airshow-2006/dsc03186.thumb.jpg" border="1" height="120" width="160" /></a></center>Should probably start planning for the <a href="http://www.airshow.com.au/">next airshow</a> soon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/11/14/raaf-airshow-2006/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux.conf.au 2007</title>
		<link>http://pigeond.net/blog/2006/11/02/linuxconfau-2007/</link>
		<comments>http://pigeond.net/blog/2006/11/02/linuxconfau-2007/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 23:03:14 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lca2007]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/11/02/linuxconfau-2007/</guid>
		<description><![CDATA[It&#8217;s like second best thing to see that the programme for the linux.conf.au 2007 is out! I imagine it&#8217;s as exciting as when a new TV guide is out for some people. :)
And for the (first) best thing, LCA 2007 registration is now opened!
Now how cool is that! (Or I should just get out more&#8230;)

]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s like second best thing to see that the <a href="http://lca2007.linux.org.au/Programme">programme</a> for the <a href="http://lca2007.linux.org.au/">linux.conf.au 2007</a> is out! I imagine it&#8217;s as exciting as when a new TV guide is out for some people. :)</p>
<p>And for the (first) best thing, LCA 2007 <a href="http://lca2007.linux.org.au/Registration">registration</a> is now opened!</p>
<p>Now how cool is that! (Or I should just get out more&#8230;)</p>
<p><center><a href="http://lca2007.linux.org.au"><img src="http://pigeond.net/images/blog/lca2007-header.png" border="1" height="168" width="289" /></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/11/02/linuxconfau-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi-head FlightGear</title>
		<link>http://pigeond.net/blog/2006/11/01/multi-head-flightgear/</link>
		<comments>http://pigeond.net/blog/2006/11/01/multi-head-flightgear/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 09:30:45 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[dmx]]></category>
		<category><![CDATA[multi-head]]></category>
		<category><![CDATA[xinerama]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/11/01/multi-head-flightgear/</guid>
		<description><![CDATA[Finally bought a cheap &#8220;new old&#8221; BenQ 19&#8243; monitor for like 20 bucks (yes, its delivery cost was more than that), replacing my unlucky Philips 19&#8243; which died in the rain (stormy day with an opened window basically), and so I&#8217;m back to my 3-monitor desktop setup.
And so one thing leads to another. I setup [...]]]></description>
			<content:encoded><![CDATA[<p>Finally bought a cheap &#8220;new old&#8221; BenQ 19&#8243; monitor for like 20 bucks (yes, its delivery cost was more than that), replacing my unlucky Philips 19&#8243; which died in the rain (stormy day with an opened window basically), and so I&#8217;m back to my 3-monitor desktop setup.</p>
<p>And so one thing leads to another. I setup Xinerama for the 2 screens. I played with <a href="http://dmx.sourceforge.net/">DMX</a> across the 3 screens for a bit. It&#8217;s nice but for some reasons it&#8217;s not doing direct rendering for GLX, neither the local nor the non-local clients.</p>
<p>And then the most obvious and exciting thing to do is to run multi-head FlightGear. As my setup is 3-screen-on-2-machines, normally you&#8217;d simply run one FlightGear on each machine. However my 1-screen-machine is rather old and slow, and not much memory (Pentium 2 w/256MB ram). So I ended up running two instances of FlightGear on the 2-screen-machine (Pentium 4 w/1GB ram) and forwarding the display onto the other (by setting DISPLAY). Its startup time is a lot faster this way.</p>
<p>When I have the time I should play with <a href="http://chromium.sourceforge.net/">Chromium</a> as well&#8230;</p>
<p><center></p>
<table border="0" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td align="center" valign="top" width="50%"><a href="http://pigeond.net/photos/flightgear/gears/"><img src="http://pigeond.net/photos/flightgear/gears/fg-3screen-ggb.thumb.jpg" border="1" height="120" width="160" /></a>The Golden Gate Bridge across 3 screens</td>
<td align="center" valign="top" width="50%"><a href="http://pigeond.net/photos/flightgear/gears/"><img src="http://pigeond.net/photos/flightgear/gears/fg-3screen.thumb.jpg" border="1" height="120" width="160" /></a>Flying over San Francisco</td>
</tr>
</table>
<p></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/11/01/multi-head-flightgear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MPlayer + MatrixView for windows</title>
		<link>http://pigeond.net/blog/2006/09/20/mplayer-matrixview-for-windows/</link>
		<comments>http://pigeond.net/blog/2006/09/20/mplayer-matrixview-for-windows/#comments</comments>
		<pubDate>Tue, 19 Sep 2006 21:22:18 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[matrixview]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/09/20/mplayer-matrixview-for-windows/</guid>
		<description><![CDATA[Gianluigi Tiesi is kind enough to update my MPlayer + MatrixView patch to work under windows. Thanks very much! That&#8217;s why open source software rocks :)
]]></description>
			<content:encoded><![CDATA[<p>Gianluigi Tiesi is kind enough to update my <a href="http://pigeond.net/mplayer/mplayer-matrixview.html">MPlayer + MatrixView</a> patch to <a href="http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2006-September/046044.html">work under windows</a>. Thanks very much! That&#8217;s why open source software rocks :)</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/09/20/mplayer-matrixview-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with Wine hacking</title>
		<link>http://pigeond.net/blog/2006/08/20/fun-with-wine-hacking/</link>
		<comments>http://pigeond.net/blog/2006/08/20/fun-with-wine-hacking/#comments</comments>
		<pubDate>Sun, 20 Aug 2006 05:46:58 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[opengl]]></category>
		<category><![CDATA[shin sangoku musou 3]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/08/20/fun-with-wine-hacking/</guid>
		<description><![CDATA[So I got this PC version of the game Shin Sangoku Musou 3 (真三國無雙). And of course it for some proprietary operating system (we do not speak of its names :P). As a Linux person the first thing you try is to try running it under Wine / WineX / Cedega.
A little bit of surprise, [...]]]></description>
			<content:encoded><![CDATA[<p>So I got this PC version of the game Shin Sangoku Musou 3 (真三國無雙). And of course it for some proprietary operating system (we do not speak of its names :P). As a Linux person the first thing you try is to try running it under <a href="http://winehq.org/">Wine</a> / <a href="http://transgaming.com/">WineX / Cedega</a>.</p>
<p>A little bit of surprise, it ran with Wine latest development version, at least it&#8217;s gone thru all the splash screen, characters selection, until it gets to the actual game, crashed.</p>
<p>After turning on some debugging and tracing, followed by consulting on #winehq, I&#8217;ve learnt that this game hits one of the famous Wine and DirectX issue, multi-threaded Direct3D.</p>
<p>Still I&#8217;m a bit adventurous as usual, and did a bit of code reading and hacking in Wine, trying a few different quick-and-dirty approaches to get threads to use the same GLXContext, not that I&#8217;m an OpenGL guru.</p>
<p>After a few tries, I gave up. However I still kind of wanna be able to play this game under Linux. So I rethink the problem from a different approach, and did a even more dirty hack, so that only the main thread can do any GL calls. Any other threads will simply returns before trying. Yes, VERY UGLY indeed. So ugly that let&#8217;s not even talk about it anymore ;)</p>
<p>And guess what, that does the trick. It gets into the actual game. So apparently it&#8217;s creating a new thread only for the pre-game loading screen. So now instead of the loading animation screen, I simply get a black blank screen, and the game continues after that.</p>
<p>And just for fun, I&#8217;ve even created a character with the top Taiwanese model&#8217;s name :P</p>
<p>More screenshots <a href="http://pigeond.net/photos/screenshots/musou-wine/">here</a>.</p>
<p><center><a href="http://pigeond.net/photos/screenshots/musou-wine/"><img src="http://pigeond.net/photos/screenshots/musou-wine/musou-wine-12.thumb.png" border="1" height="120" width="160" /></a>   <a href="http://pigeond.net/photos/screenshots/musou-wine/"><img src="http://pigeond.net/photos/screenshots/musou-wine/musou-wine-08.thumb.png" border="1" height="120" width="160" /></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/08/20/fun-with-wine-hacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux sighting&#8230;</title>
		<link>http://pigeond.net/blog/2006/07/19/linux-sighting/</link>
		<comments>http://pigeond.net/blog/2006/07/19/linux-sighting/#comments</comments>
		<pubDate>Wed, 19 Jul 2006 12:24:00 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/07/19/linux-sighting/</guid>
		<description><![CDATA[Let&#8217;s go back in time for a bit&#8230;
Back in January when I was in Taiwan, my wife and I went up to Taipei from Tainan on one of those buses. It was a roughly 4-hour trip. For those who haven&#8217;t been to Taiwan, these are not normal buses you catch to work everyday. These are [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s go back in time for a bit&#8230;</p>
<p>Back in January when I was in Taiwan, my wife and I went up to Taipei from Tainan on one of those buses. It was a roughly 4-hour trip. For those who haven&#8217;t been to Taiwan, these are not normal buses you catch to work everyday. These are more like those for tourist, pretty luxurious, comparatively speaking. The one we took was from a bus company called Ho-Hsin (和欣).</p>
<p><center><br />
<img src="http://pigeond.net/images/diary/hohsin/hohsin.jpg" width=360 height=167 border=0 alt="" title=""><br />
</center></p>
<p>There are only about 15 seats on one bus. Each seat is a huge sofa-like massage chair, which you could pick your own massage programme with the control panel embedded under the chair arm. You can also adjust your chair with it, too, very much like those seats in the first class on an airliner. Even more, each seat has a small LCD TV screen showing information of the current bus route. You can switch it to the live TV news channel, or pick a TV show or a movie. And if you&#8217;re not so much of a watcher, you can always grab the joypad controller attached to the chair and choose from around 20 different video games to play.</p>
<p><center><br />
<img src="http://pigeond.net/images/diary/hohsin/hohsin-1.jpg" width=320 height=240 border=0 alt="" title=""></p>
<p>The interior</p>
<p>
<img src="http://pigeond.net/images/diary/hohsin/hohsin-2.jpg" width=320 height=240 border=0 alt="" title=""></p>
<p>The control for the massage chair</p>
<p>
<img src="http://pigeond.net/images/diary/hohsin/hohsin-3.jpg" width=320 height=241 border=0 alt="" title=""></p>
<p>The main menu, for choosing movies, music, TV shows, games, etc&#8230;</p>
<p>
<img src="http://pigeond.net/images/diary/hohsin/hohsin-4.jpg" width=320 height=240 border=0 alt="" title=""></p>
<p>I was playing a baseball game&#8230;</p>
<p>
</center></p>
<p>Now set aside all these cool &#8220;stuff&#8221; with the bus, as a embedded software developer, I&#8217;ll always try to figure out how the whole system works, what software they&#8217;re running, etc. Just when I thought I didn&#8217;t really care while I was on holidays, and, there was it! The &#8220;X&#8221; I saw! It came up when I selected a movie. It&#8217;s running X, and possibly, on Linux!</p>
<p>(Feel free to correct me if it&#8217;s not, or if you know more about their system and if you&#8217;re allowed, please tell me too :)</p>
<p><center><br />
<img src="http://pigeond.net/images/diary/hohsin/hohsin-x.jpg" width=360 height=271 border=0 alt="" title=""></p>
<p>X, that made my day&#8230;</p>
<p>
</center></p>
<p>That surely made the trip a bit more exciting :)</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/07/19/linux-sighting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pikkoro &#8211; Episode 2 &#8211; Loopback rootfs with Debian</title>
		<link>http://pigeond.net/blog/2006/06/11/pikkoro-episode-2-loopback-rootfs-with-debian/</link>
		<comments>http://pigeond.net/blog/2006/06/11/pikkoro-episode-2-loopback-rootfs-with-debian/#comments</comments>
		<pubDate>Sun, 11 Jun 2006 03:40:48 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/06/11/pikkoro-episode-2-loopback-rootfs-with-debian/</guid>
		<description><![CDATA[My Linux live CF is going well. I have been using it on my wife&#8217;s laptop.
Next step I was trying to get suspending working. ACPI sleep state S3 (Suspend to RAM) works pretty well as expected. However when the laptop comes back from the suspend, there seems to be a delay, or timeout, or some [...]]]></description>
			<content:encoded><![CDATA[<p>My Linux live CF is going well. I have been using it on my wife&#8217;s laptop.</p>
<p>Next step I was trying to get suspending working. ACPI sleep state S3 (Suspend to RAM) works pretty well as expected. However when the laptop comes back from the suspend, there seems to be a delay, or timeout, or some issues with USB. As this rootfs is on USB, I&#8217;m getting read errors, and from that point on, the rootfs has gone to a funny state, and things stops working.</p>
<p>The easiest way to solve this problem for the moment, to me, is to totally avoid the problem. I need to get Linux running off the harddisk on this laptop. And at the same time I do not want to install, or repartition the existing windows installation. So I decided to go for loopback rootfs.</p>
<p>The loopback rootfs on Linux is not anything new. I briefly did a google search and there&#8217;s this <a href="http://tldp.org/HOWTO/archived/Loopback-Root-FS/">loopback root filesystem HOWTO</a> written back in 1999. Though, I want to get this done in a maintainable way. Being a Debian user, hence, I want to do this in a Debian way.</p>
<p>For this Linux live system, I&#8217;ve been a good Debian user and keep everything done in the Debian way, so that it&#8217;s easier for me to manage, recreate, and update/upgrade the system. Kernel initrd image is handled by <code><a href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;version=all&amp;exact=1&amp;keywords=initramfs-tools">initramfs-tools</a></code>. So rather than putting together an initrd image manually to do all the tricks, I quickly looked at how initramfs works, and wrote a <a href="http://pigeond.net/misc/loop">loop</a> script, which is pretty much the same as the existing <code>local</code> script, but with one extra step. And I&#8217;ve also added a few more kernel parameters to make things easier. Here it is:</p>
<pre style="background-color: #222; font-family: monospace; font-size: 90%; color: #fff; border: 1px dotted white; padding: 4px 4px 4px 4px;">
# Local loopback filesystem mounting

# Parameter: Where to mount the filesystem
mountroot ()
{
        for x in $(cat /proc/cmdline); do
                case $x in
                rootfstype=*)
                        rootfstype=${x#rootfstype=}
                        ;;
                loopfile=*)
                        loopfile=${x#loopfile=}
                        ;;
                loopfstype=*)
                        loopfstype=${x#loopfstype=}
                        ;;
                esac
        done

        [ "$quiet" != "y" ] &#038;&#038; log_begin_msg "Running /scripts/local-top"
        run_scripts /scripts/local-top
        [ "$quiet" != "y" ] &#038;&#038; log_end_msg

        # If the root device hasn't shown up yet, give it a little while
        # to deal with removable devices
        if [ ! -e "${ROOT}" ]; then
                log_begin_msg "Waiting for root file system..."
                if [ -x /sbin/usplash_write ]; then
                        /sbin/usplash_write "TIMEOUT 180" || true
                fi

                slumber=1800
                while [ ${slumber} -gt 0 -a ! -e "${ROOT}" ]; do
                        /bin/sleep 0.1
                        slumber=$(( ${slumber} - 1 ))
                done

                if [ ${slumber} -gt 0 ]; then
                        log_end_msg 0
                else
                        log_end_msg 1 || true
               fi
               if [ -x /sbin/usplash_write ]; then
                       /sbin/usplash_write "TIMEOUT 15" || true
               fi
        fi

        # We've given up, but we'll let the user fix matters if they can
        while [ ! -e "${ROOT}" ]; do
                panic "ALERT!  ${ROOT} does not exist.  Dropping to a shell!"
        done

        eval $(fstype &lt; ${ROOT})

        [ "$quiet" != "y" ] &#038;&#038; log_begin_msg "Running /scripts/local-premount"
        run_scripts /scripts/local-premount
        [ "$quiet" != "y" ] &#038;&#038; log_end_msg

        # FIXME This has no error checking
        modprobe -q ${FSTYPE}

        # FIXME This has no error checking
        # Mount root
        mkdir /preroot

        if [ "${rootfstype}" ]; then
            opts="-t ${rootfstype}"
        fi
        # mount the device containing the file image as rw
        mount -w ${ROOTFLAGS} ${opts} ${ROOT} /preroot

        [ "$quiet" != "y" ] &#038;&#038; log_begin_msg "Running /scripts/log-bottom"
        run_scripts /scripts/local-bottom
        [ "$quiet" != "y" ] &#038;&#038; log_end_msg

        if [ "${loopfstype}" ]; then
            opts="-t ${loopfstype}"
        fi
        # mount the file image loopback
        mount -o loop ${opts} /preroot/${loopfile} ${rootmnt}

        if [ -e "${rootmnt}/preroot" ]; then
            # bind mount the real device so that it is accessible later
            mount -o bind /preroot ${rootmnt}/preroot
        fi
}
</pre>
<p>With this file in /usr/share/initramfs-tools/scripts/ or in my case, I simply made a copy of what&#8217;s in /usr/share/initramfs-tools/ and /etc/mkinitramfs/ and run mkinitramfs -d &lt;confdir&gt; -o initrd.img-pikkoro.loop. Anything I&#8217;ve done is adding modules I needed in the &#8220;modules&#8221; file. Mine looks like this:</p>
<pre style="background-color: #222; font-family: monospace; font-size: 90%; color: #fff; border: 1px dotted white; padding: 4px 4px 4px 4px;">
usbcore
ehci-hcd
ohci-hcd
uhci-hcd
usb-storage
sd_mod
loop
ext2
ext3
vfat
jbd
nls_iso8859_1
nls_cp437
</pre>
<p>I&#8217;ve created a 4GB ext3 filesystem in a file, stored on the windows fat partition. In my case, the loopback file is on the windows partition /dev/hda5, with the path /pigeon/pikkoro.img. So my kernel parameters are:</p>
<pre style="background-color: #222; font-family: monospace; font-size: 90%; color: #fff; border: 1px dotted white; padding: 4px 4px 4px 4px;">
root=/dev/hda5
boot=loop
rootfstype=vfat
loopfile=/pigeon/pikkoro.img
loopfstype=ext3
</pre>
<p>(shown in separate lines here for each parameter to make it clear)</p>
<p>
And that&#8217;s it. Now I can boot this laptop via USB, then run Linux with the rootfs on the filesystem file, mounted as a loopback. And more more importantly, suspend-2-ram and resume is now working well.</p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/06/11/pikkoro-episode-2-loopback-rootfs-with-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pikkoro &#8211; My Linux live system on a CF card</title>
		<link>http://pigeond.net/blog/2006/06/04/pikkoro-my-linux-live-system-on-a-cf-card/</link>
		<comments>http://pigeond.net/blog/2006/06/04/pikkoro-my-linux-live-system-on-a-cf-card/#comments</comments>
		<pubDate>Sun, 04 Jun 2006 12:28:26 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[CF]]></category>
		<category><![CDATA[compact]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fglive]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[live]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/06/04/pikkoro-my-linux-live-system-on-a-cf-card/</guid>
		<description><![CDATA[Since the last few times when I was in HK/TW, I&#8217;ve been thinking of having a Linux live system, installed on a USB stick or Compact Flash (CF) card, so I could simply plug it to any machine (say, those m$ windows box of my parent&#8217;s or my wife&#8217;s). I had been using the Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>Since the last few times when I was in HK/TW, I&#8217;ve been thinking of having a Linux live system, installed on a USB stick or Compact Flash (CF) card, so I could simply plug it to any machine (say, those m$ windows box of my parent&#8217;s or my wife&#8217;s). I had been using the <a href="http://www.ubuntu.com/">Ubuntu</a> LiveCD, and it was really great. But then of course CD access is slow, and it&#8217;s read-only.</p>
<p>So I bought myself a 2GB CF card when I was in HK months ago. And I&#8217;ve finally finished setting Linux up on it. Host name &#8220;Pikkoro&#8221; (yes, yet another machine named after Dragon Ball characters), got Debian Etch (testing) installed, have it booting and running my own Linux system using a USB-CF card reader.</p>
<p>For those who are not familiar with the idea of a &#8220;live&#8221; system, it is basically an operating system (Linux in this case) installed on any media that can be used to boot on a computer. We all know the common setup of your computer booting the OS installed on your harddisk. So your harddisk is &#8220;bootable&#8221;. These days most computers can boot not only from a harddisk, but also from a CD/DVD, or a USB storage device (aka USB drive/stick). A live system would mean the OS/system can be run without installation. It won&#8217;t touch your harddisk (unless you want to).</p>
<p>So in my case, I have Linux installed and setup on my CF card, which can be plugged to a computer via a USB-CF card reader. The reason why i didn&#8217;t use a USB stick/drive is so I can use/read it on my iPAQ too, which has a CF slot.</p>
<p>Getting a Linux live system to work is pretty easy if you&#8217;re familiar with how Linux boots and how Debian works. Nevertheless I did some searches and reading on what other people have been doing, and I found this <a href="http://feraga.com/node/25">mini guide</a>. What interested me is the <code><a href="http://packages.debian.org/cgi-bin/search_packages.pl?keywords=localepurge&amp;searchon=names&amp;subword=1&amp;version=all&amp;release=all">localepurge</a></code> package in Debian, which saved me a some disk spaces.</p>
<p>One of many things during the process was picking a window manager (notice how I said &#8220;window manager&#8221;, but not &#8220;desktop environment&#8221; :) I&#8217;ve been an <a href="http://www.afterstep.org/">AfterStep</a>per (1.8) for a long long time. When I was doing <a href="http://pigeond.net/flightgear/fglive.html">FGLive</a> I played with <a href="http://fluxbox.org/">fluxbox</a> a bit and I liked it. So I&#8217;ve decided to give it a go. After fiddling with it for a while, it&#8217;s official, fluxbox is now default on my Linux live CF. Its <a href="http://fluxbox.org/features/tabs.php">tab feature</a> is probably one of the coolest. My only complaint so far is it not able to switch virtual desktop by mouse, and the fact that it only has concept of linear virtual desktops it seems.</p>
<p>Anyway, I&#8217;m now happy that I can carry around my own Linux system anywhere I go&#8230;</p>
<p><center><img src="http://pigeond.net/images/diary/pikkoro.jpg" border="0" height="240" width="320" /></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/06/04/pikkoro-my-linux-live-system-on-a-cf-card/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FGLive 0.1 LinuxTag edition</title>
		<link>http://pigeond.net/blog/2006/05/15/fglive-01-linuxtag-edition/</link>
		<comments>http://pigeond.net/blog/2006/05/15/fglive-01-linuxtag-edition/#comments</comments>
		<pubDate>Sun, 14 May 2006 21:30:14 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[fglive]]></category>
		<category><![CDATA[live]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2006/05/15/fglive-01-linuxtag-edition/</guid>
		<description><![CDATA[The first, sorta official release of FGLive is here. FGLive &#8211; FlightGear Live is a bootable live system on CD (or any bootable medium) that boots into Linux, with FlightGear setup, ready to run. FlightGear is an open-source, multi-platform, cooperative flight simulator development project.
To find out more about FGLive, see here, and make sure you [...]]]></description>
			<content:encoded><![CDATA[<p>The first, sorta official release of <a href="http://pigeond.net/flightgear/fglive.html">FGLive</a> is here. FGLive &#8211; FlightGear Live is a bootable live system on CD (or any bootable medium) that boots into Linux, with <a href="http://www.flightgear.org/">FlightGear</a> setup, ready to run. FlightGear is an open-source, multi-platform, cooperative flight simulator development project.</p>
<p>To find out more about FGLive, see <a href="http://pigeond.net/flightgear/fglive.html">here</a>, and make sure you read the <a href="http://pigeond.net/flightgear/fglive/0.1-delta/README.fglive.html">README</a> as well.</p>
<p>See screenshots and videos of FlightGear <a href="http://pigeond.net/photos/flightgear/">here</a>.</p>
<p><center></p>
<table border="0" cellpadding="5" cellspacing="4">
<tr>
<td><img src="http://pigeond.net/flightgear/fglive/0.1-delta/fglive-0.1-linuxtag-01.thumb.jpg" border="0" height="120" width="160" /></td>
<td><img src="http://pigeond.net/flightgear/fglive/0.1-delta/fglive-0.1-linuxtag-02.thumb.jpg" border="0" height="120" width="160" /></td>
</tr>
</table>
<p></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2006/05/15/fglive-01-linuxtag-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My FlightGear&#8217;s gear</title>
		<link>http://pigeond.net/blog/2005/11/15/my-flightgears-gear/</link>
		<comments>http://pigeond.net/blog/2005/11/15/my-flightgears-gear/#comments</comments>
		<pubDate>Tue, 15 Nov 2005 01:17:58 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[toys]]></category>
		<category><![CDATA[cyborg]]></category>
		<category><![CDATA[evo]]></category>
		<category><![CDATA[flight]]></category>
		<category><![CDATA[joystick]]></category>
		<category><![CDATA[saitek]]></category>
		<category><![CDATA[sim]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2005/11/15/my-flightgears-gear/</guid>
		<description><![CDATA[Bought a Saitek Cyborg Evo when I was in HK. It&#8217;s a pretty good stick for Flight Sims. It has most of the basis including the throttle, rudder control and hat switch. And I kind of like those little lights too. Now I can practise all my flying in FlightGear with it.
   
]]></description>
			<content:encoded><![CDATA[<p>Bought a Saitek Cyborg Evo when I was in HK. It&#8217;s a pretty good stick for Flight Sims. It has most of the basis including the throttle, rudder control and hat switch. And I kind of like those little lights too. Now I can practise all my flying in <a href="http://www.flightgear.org/">FlightGear</a> with it.</p>
<p align="center"> <a href="http://pigeond.net/photos/flightgear/gears/"><img src="http://pigeond.net/photos/flightgear/gears/pb100006.thumb.jpg" alt="Saitek Cyborg Evo" title="Saitek Cyborg Evo" border="1" height="160" width="120" /></a> <a href="http://pigeond.net/photos/flightgear/gears/"><img src="http://pigeond.net/photos/flightgear/gears/pb100012.thumb.jpg" alt="Saitek Cyborg Evo" title="Saitek Cyborg Evo" border="1" height="160" width="120" /></a> <a href="http://pigeond.net/photos/flightgear/gears/"><img src="http://pigeond.net/photos/flightgear/gears/pb060018.thumb.jpg" alt="Saitek Cyborg Evo" title="Saitek Cyborg Evo" border="1" height="160" width="120" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2005/11/15/my-flightgears-gear/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlightGear Multiplay Air Traffic with Google Map</title>
		<link>http://pigeond.net/blog/2005/09/11/flightgear-multiplay-air-traffic-with-google-map/</link>
		<comments>http://pigeond.net/blog/2005/09/11/flightgear-multiplay-air-traffic-with-google-map/#comments</comments>
		<pubDate>Sun, 11 Sep 2005 13:41:58 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[flightgear]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[fgmap]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[mpserver]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2005/09/11/flightgear-multiplay-air-traffic-with-google-map/</guid>
		<description><![CDATA[After seeing lots useful and cool stuff people have been doing using the Google Map API, I was inspired to write something perhaps to plot buildings/models I have been/will be doing for FlightGear. While trying the API out a bit, an idea striked my head. What about a real time map for the FlightGear multiplay [...]]]></description>
			<content:encoded><![CDATA[<p>After seeing lots useful and cool stuff people have been doing using the <a href="http://maps.google.com/apis/maps/">Google Map API</a>, I was inspired to write something perhaps to plot buildings/models I have been/will be doing for <a href="http://www.flightgear.org/">FlightGear</a>. While trying the API out a bit, an idea striked my head. What about a real time map for the FlightGear multiplay server air traffic map?</p>
<p>And so I started off doing it. It&#8217;s heaps of fun, not to mention finding out all those bugs with IE. M$ is very kind, they always do things that make people laugh. This always gives me a chance to revise a lot with Javascript.</p>
<p>I also ended up writing my own routines for map overlays displaying plane markers and info, instead of using the GMAPI&#8217;s GMarker. A bit more flexible, and it does exactly what I want.</p>
<p>There is time when Javascript is useful, and there is time where it&#8217;s just overkill. IMHO, Javascript is useful for writing &#8220;web app&#8221;. Same as using Flash, or Java applet. But btw this does NOT mean every website should be bloody web app!!</p>
<p>And there you go, the <a href="http://pigeond.net/flightgear/fg_server_map.html">FlightGear server online map</a>. A couple of FlightGearers have been using it as a flying map and as a simple ATC radar. If it&#8217;s the right time you&#8217;ll see us flying!</p>
<p>I&#8217;ve got plans to add more features, like airports/navids lookup. And of course, improving the usability and UI is always on the plate. Comments are also welcomed&#8230;</p>
<p>Also thanks to everyone who has helped me with testing and giving suggestions to the page. (ampere, AJ, thorben, vivian, gorilla, Surge, johnh51, MasseR, etc)</p>
<p align="center"> <a href="http://pigeond.net/flightgear/fg_server_map.html"><img src="http://pigeond.net/images/diary/fggm.png" alt="FlightGear Google Map" title="FlightGear Google Map" border="0" height="346" width="493" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2005/09/11/flightgear-multiplay-air-traffic-with-google-map/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>linux.conf.au 2005</title>
		<link>http://pigeond.net/blog/2005/04/25/linuxconfau-2005/</link>
		<comments>http://pigeond.net/blog/2005/04/25/linuxconfau-2005/#comments</comments>
		<pubDate>Mon, 25 Apr 2005 12:52:41 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2005/04/25/linuxconfau-2005/</guid>
		<description><![CDATA[I managed to go to LCA 2005 this year in Canberra, 3 years since the last LCA I went to in Sydney. It was all good (apart from I didn&#8217;t win the IBM laptop and I&#8217;ve lost one chance of getting a 1G USB key).

I was never into wireless stuff as I always think they [...]]]></description>
			<content:encoded><![CDATA[<p>I managed to go to LCA 2005 this year in Canberra, 3 years since the last LCA I went to in Sydney. It was all good (apart from I didn&#8217;t win the IBM laptop and I&#8217;ve lost one chance of getting a 1G USB key).</p>
<p>
I was never into wireless stuff as I always think they hurt my brain and give me headaches. Then I was thinking everyone is going to be using wifi at LCA, i.e. 499 wireless cards is not going to be any better than 500. And so I&#8217;ve bought a CompactFlash wifi card for my iPAQ about 2 weeks before the conference. And it&#8217;s working very well under Familiar 0.8.x. It pretty much works straight away. So I was using wireless on my iPAQ happily for the entire LCA.</p>
<p>
I went to the Embedded Miniconf on the first day. I quite like Chris McCormick&#8217;s 10 embedded tricks for coding on the Gameboy Advance talk. I also went to his Gameboy Advance talk on the last day of the main conference. He mentioned his little music program for the GBA called <a href="http://looper.mccormick.cx/">looper</a>. I wonder how hard it would be to port it onto Linux and perhaps my iPAQ&#8230;</p>
<p>
Keith Packard&#8217;s talk on <a href="http://keithp.com/blog/twin">Twin</a> was also very interesting especially when he brought up stroke fonts again. I saw someone talking about stroke fonts when I was googling around looking for ways to reduce the footprint of ttf fonts. If you&#8217;ve played with Chinese or Japanese ttf, sure you&#8217;ll know they are usually very big (>10-15MB), and hence not very nice on devices like my iPAQ. Stroke fonts on the other are much much smaller. However there isn&#8217;t seem to be any open source implementation and support for stroke fonts at the moment :(</p>
<p>
Then on the second day I went to the Audio Miniconf. The sound demo by Mark Greenaway was quite amazing as he showed off a couple of Linux audio/music programs, including with ardour, seq24, hydrogen, alsamodularsynth, meterbridge, etc etc. Now I can waste more time playing around other than just with rosegarden :)</p>
<p>
Some other random LCA notes:</p>
<p>- Everybody can implement their own BitKeeper client. All you need is to ask for &#8220;help&#8221; :)</p>
<p>- The Golden Penguin Quiz show was simply fun, and also it suggested that how little I know about things :)</p>
<p>- After the Penguin Dinner night, we&#8217;ve all discovered a new way to kill productivity by apt-get install <a href="http://www.wesnoth.org">wesnoth</a>.</p>
<p>- Must check on James Cameron&#8217;s Remastering Knoppix notes so we can setup the one-command-launching-bzflag-on-all-machines-on-the-network at work.</p>
<p>
Photos at <a href="http://pigeond.net/photos/lca-2005/">lca 2005</a>&#8230;</p>
<p><center><a href="http://pigeond.net/photos/lca-2005/"><img src="http://pigeond.net/images/diary/lca2005.png" width=471 height=354 border=1 alt="LCA 2005" title="LCA 2005"></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2005/04/25/linuxconfau-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free your mind&#8230; Free your xda&#8230;</title>
		<link>http://pigeond.net/blog/2003/11/12/free-your-mind-free-your-xda/</link>
		<comments>http://pigeond.net/blog/2003/11/12/free-your-mind-free-your-xda/#comments</comments>
		<pubDate>Wed, 12 Nov 2003 12:28:07 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2003/11/12/free-your-mind-free-your-xda/</guid>
		<description><![CDATA[

]]></description>
			<content:encoded><![CDATA[<p>
<center><a href="http://pigeond.net/photos/xda-linux/?5"><img src="http://pigeond.net/photos/xda-linux/dsc00186.thumb.jpg" width=128 height=160 alt="" title="" border=1></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2003/11/12/free-your-mind-free-your-xda/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux on XDA&#8230;</title>
		<link>http://pigeond.net/blog/2003/11/10/linux-on-xda/</link>
		<comments>http://pigeond.net/blog/2003/11/10/linux-on-xda/#comments</comments>
		<pubDate>Mon, 10 Nov 2003 10:24:27 +0000</pubDate>
		<dc:creator>pigeon</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://pigeond.net/blog/2003/11/10/linux-on-xda/</guid>
		<description><![CDATA[I ended up starting to work a bit on getting Linux onto the XDA (It&#8217;s a very nice PDA phone, for those who don&#8217;t know). After spending about two weeks of fooling around, and getting help from people from #handhelds.org (joshua, pb, anpaza, and many others), I&#8217;ve finally got it booting. Currently with a very [...]]]></description>
			<content:encoded><![CDATA[<p>I ended up starting to work a bit on getting Linux onto the <a href="http://www.myxda.com/">XDA</a> (It&#8217;s a very nice PDA phone, for those who don&#8217;t know). After spending about two weeks of fooling around, and getting help from people from #handhelds.org (joshua, pb, anpaza, and many others), I&#8217;ve finally got it booting. Currently with a very basic initrd image root, with a busybox shell at the serial console. Also trying to get the screen to work properly.</p>
<p>Some of my progress can be seen at the <a href="http://pigeond.net/photos/xda-linux/">xda-linux</a> photo section.</p>
<p>
<center><img src="http://pigeond.net/photos/xda-linux/dsc00175.thumb.jpg" width=160 height=128 border=0 alt="" title=""></center></p>
]]></content:encoded>
			<wfw:commentRss>http://pigeond.net/blog/2003/11/10/linux-on-xda/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
