<?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>Blog Without An Important Name &#187; Linux</title>
	<atom:link href="http://www.kallisti.net.nz/blog/category/computers/software/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kallisti.net.nz/blog</link>
	<description>I am not an IP address! I am a free 'blog!</description>
	<lastBuildDate>Mon, 22 Jun 2009 05:02:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Monitoring Puppet with Nagios</title>
		<link>http://www.kallisti.net.nz/blog/2009/02/monitoring-puppet-with-nagios/</link>
		<comments>http://www.kallisti.net.nz/blog/2009/02/monitoring-puppet-with-nagios/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 09:52:52 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/?p=82</guid>
		<description><![CDATA[I&#8217;ve been setting up a Puppet system at work so we can easily set up virtual servers, and also so that all the configuration is in one place. 
Yesterday, someone suggested to me how I can have our existing Nagios system monitor the state of the puppet configuration. This allows me to be notified if [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been setting up a <a href="http://reductivelabs.com/trac/puppet">Puppet</a> system at work so we can easily set up virtual servers, and also so that all the configuration is in one place. </p>
<p>Yesterday, someone suggested to me how I can have our existing <a href="http://www.nagios.org/">Nagios</a> system monitor the state of the puppet configuration. This allows me to be notified if there is something causing puppet to fail on any of the monitored nodes.</p>
<p>There is a Ruby script out there that is a Nagios plugin, however it requires extra Ruby libraries, and I don&#8217;t know how to handle them nicely on a Debian system. I do, however, know how to handle Perl libs. So I wrote a Perl plugin that does the same task. It&#8217;s got a lot of hard-coded paths and times and such, you&#8217;ll want to make completely sure that they work in your configuration. It&#8217;s also not well documented, but it is quite basic: <a href='http://www.kallisti.net.nz/~robin/check_puppet.pl'>check_puppet.pl</a></p>
<p>The main tricky dependency it has is on <tt>Nagios::Plugin</tt>, but it&#8217;s in CPAN, so some <tt>dh-make-perl</tt> should get you a Debian package for it easily.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2009/02/monitoring-puppet-with-nagios/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Making the Hercules DJ Control MP3 work with Mixxx</title>
		<link>http://www.kallisti.net.nz/blog/2008/01/making-the-hercules-dj-control-mp3-work-with-mixxx/</link>
		<comments>http://www.kallisti.net.nz/blog/2008/01/making-the-hercules-dj-control-mp3-work-with-mixxx/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 11:25:32 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2008/01/making-the-hercules-dj-control-mp3-work-with-mixxx/</guid>
		<description><![CDATA[(Note: files updated for Ubuntu 8.04)
(Another note: this is all unnecessary now, as Hercules has released Linux drivers for their devices. Just install, and away it goes.)
A little while back, I got a Hercules DJ Control MP3, which is an entry-level DJ console that connects to the computer with USB. Unlike most of these kinds [...]]]></description>
			<content:encoded><![CDATA[<p>(Note: files updated for Ubuntu 8.04)<br />
(Another note: this is all unnecessary now, as Hercules has released <a href="http://ts.hercules.com/eng/index.php?pg=view_files&#038;gid=2&#038;fid=28&#038;pid=215&#038;cid=1#section1">Linux drivers</a> for their devices. Just install, and away it goes.)</p>
<p>A little while back, I got a <a href="http://www.amazon.com/Hercules-4780288-DJ-Control-MP3/dp/B000BK2EOY">Hercules DJ Control MP3</a>, which is an entry-level DJ console that connects to the computer with USB. Unlike most of these kinds of things, this isn&#8217;t a MIDI device, so making it work requires a bit of hacking.</p>
<p>Mixxx supports the Herc DJ Control Mk1 and Mk2 just fine, by talking to them directly over USB, unfortunately the Control MP3 requires some magic for this to work that noone has figured out yet. However, the kernel can talk to it using the HID system, which usually is used for keyboards, mice, and other random controllers. The problem with this is that the LEDs don&#8217;t work. For some reason, the Linux kernel (as of 2.6) ignores any LEDs that the device says it has if it doesn&#8217;t know what they are. With a bit of kernel hacking, this behaviour can be changed, and then Mixxx will use it just fine. If you don&#8217;t do this, the controls work, but the LEDs don&#8217;t. And we all want blinky LEDs, don&#8217;t we? <img src='http://www.kallisti.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (Also, I used some of the spare LEDs on the controller and made them into a VU meter, which works surprisingly well.)</p>
<p>So to start with: making the kernel work right. I&#8217;ve made a patch against the Ubuntu <del>2.6.22</del> 2.6.24 kernel, <a href="http://www.kallisti.net.nz/~robin/mixxx/herc-hid-kernel-fix-2.6.24.diff">here</a>. Or, if you are using Ubuntu 32-bit with this kernel, you can just use these two modules: <a href="http://www.kallisti.net.nz/~robin/mixxx/hid.ko">hid.ko</a> and <a href="http://www.kallisti.net.nz/~robin/mixxx/usbhid.ko">usbhid.ko</a>. (<a href="http://www.kallisti.net.nz/~robin/mixxx/gutsy">Files for Ubuntu 7.10</a> are also available). With the Herc unplugged, do:</p>
<p><code>sudo rmmod usbhid; sudo rmmod hid; sudo insmod hid.ko; sudo insmod usbhid.ko</code></p>
<p>(it pays to do them all on one line, as USB keyboards and mice may stop working while the module is unloaded). If these load properly, then you&#8217;re half way there.</p>
<p>The next step is to make <a href="http://www.mixxx.org">Mixxx</a> work with this. By default, it only supports the Mk1 and Mk2, as it uses the direct USB way of talking to them. To make it use HID, you need to recompile it, using the current SVN version. How to do this is documented on the Mixxx website, but the compile command needs an extra option, thus:</p>
<p><code>scons djconsole_legacy=1</code></p>
<p>The binary that this spits out should handle the LEDs just fine.</p>
<p>This is all very hacky, but hopefully it won&#8217;t be in the future. I&#8217;m going to see if I can get that patch put in the kernel proper, which will solve the most annoying part of the problem. It would also be good to get Mixxx supporting both legacy mode and the newer one at the same time.</p>
<p>However, we&#8217;ve heard from Hercules, and they say that some time in the first part of this year, they&#8217;re going to try to get some Linux drivers out. Hopefully they&#8217;re open source, and turn the Herc devices into MIDI devices, which would make life a whole lot easier for support.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2008/01/making-the-hercules-dj-control-mp3-work-with-mixxx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Good feedback</title>
		<link>http://www.kallisti.net.nz/blog/2007/01/good-feedback/</link>
		<comments>http://www.kallisti.net.nz/blog/2007/01/good-feedback/#comments</comments>
		<pubDate>Mon, 15 Jan 2007 03:26:09 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2007/01/good-feedback/</guid>
		<description><![CDATA[A few days back I posted this, where I mentioned the lack of wireless access at Christchurch airport. Today, I got a reply saying that they&#8217;ll be doing something about that. I&#8217;m pleasantly surprised that a company like that (I always think of airports as kinda staid and conservative, that may not actually be the [...]]]></description>
			<content:encoded><![CDATA[<p>A few days back I posted <a href="http://www.kallisti.net.nz/blog/2007/01/dunedin-christchurch/">this</a>, where I mentioned the lack of wireless access at Christchurch airport. Today, I got <a href="http://www.kallisti.net.nz/blog/2007/01/dunedin-christchurch/#comment-868">a reply</a> saying that they&#8217;ll be doing something about that. I&#8217;m pleasantly surprised that a company like that (I always think of airports as kinda staid and conservative, that may not actually be the truth) actually monitors &#8216;blogs, and that they&#8217;d take the time to reply.</p>
<p>On the note of wireless, wireless at the conference seems to be a bit intermittent, but I&#8217;m not sure if it&#8217;s the actual network itself, or my card. I&#8217;m suspecting my card more and more. Periodically it seems to just drop out, and to get the drivers to activate it again requires a reboot. It&#8217;s a Belkin 54g card, but with a Broadcom chipset and using the bcm43xx drivers. If it&#8217;s a real issue, I can try ndiswrapper, but I&#8217;d like to not do that if I can get away with it (there is some hope here that someone reading this at the conference will be willing to find me and help me fix it <img src='http://www.kallisti.net.nz/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2007/01/good-feedback/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LCA2007 + Australia holiday</title>
		<link>http://www.kallisti.net.nz/blog/2006/12/lca2007-australia-holiday/</link>
		<comments>http://www.kallisti.net.nz/blog/2006/12/lca2007-australia-holiday/#comments</comments>
		<pubDate>Fri, 01 Dec 2006 01:18:31 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2006/12/lca2007-australia-holiday/</guid>
		<description><![CDATA[All my transport for Linux.conf.au 2007 is booked, and there&#8217;s quite a comfortable holiday surrounding it all. I have yet to pay for the conference itself, but that&#8217;s because they&#8217;re having technical problems it seems. (Update: turns out the payment went through fine)
My itinerary is:

11/01: Christchurch -> Melbourne
14/01: Melbourne -> Sydney, Conference checkin
20/01: Conference checkout
24/01: [...]]]></description>
			<content:encoded><![CDATA[<p>All my transport for Linux.conf.au 2007 is booked, and there&#8217;s quite a comfortable holiday surrounding it all. I have yet to pay for the conference itself, but that&#8217;s because they&#8217;re having technical problems it seems. (Update: turns out the payment went through fine)</p>
<p>My itinerary is:</p>
<ul>
<li>11/01: Christchurch -> Melbourne</li>
<li>14/01: Melbourne -> Sydney, Conference checkin</li>
<li>20/01: Conference checkout</li>
<li>24/01: Sydney -> Canberra</li>
<li>27/01: Canberra -> Brisbane</li>
<li>31/01: Brisbane -> Christchurch</li>
</ul>
<p>Involved in this, are four plane flights with three different airlines, and a train ride from Sydney to Canberra. It should be fun.</p>
<p>There is <a href="http://lca2007.linux.org.au/Programme">a lot going on</a> at the conference. I haven&#8217;t yet gone through that properly to see what I want to go to. If I&#8217;m lucky, I&#8217;ll manage to get a laptop for the duration, which will mean I can go to the tutorials (<a href="http://lca2007.linux.org.au/talk/258">this one on GTK</a> could be interesting, an alternative to using SWT in Java).</p>
<p>Aside from that, there&#8217;s a fair number of family and friends to visit in all the places. It seems that half the people I know have ended up in Sydney, and a sizable chunk of the rest scattered around a bit further away.</p>
<p>My credit card is just about smoking from all the money passing through it though&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2006/12/lca2007-australia-holiday/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fixing broken dates</title>
		<link>http://www.kallisti.net.nz/blog/2006/11/fixing-broken-dates/</link>
		<comments>http://www.kallisti.net.nz/blog/2006/11/fixing-broken-dates/#comments</comments>
		<pubDate>Thu, 23 Nov 2006 11:03:56 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2006/11/fixing-broken-dates/</guid>
		<description><![CDATA[When I was home over the weekend, I was working on helping my parents sort out the photos they took while they were in Europe. Doing this, I noticed that the date on the camera was out by a month. Being a stickler for correct metadata, I tried to figure out a way to fix [...]]]></description>
			<content:encoded><![CDATA[<p>When I was home over the weekend, I was working on helping my parents sort out the photos they took while they were in Europe. Doing this, I noticed that the date on the camera was out by a month. Being a stickler for correct metadata, I tried to figure out a way to fix this. This is the command line that I came up with. I&#8217;ve broken it into multiple lines here for clarity.</p>
<p><code>
<pre>for f in *.jpg ; do
    NEWDATE=`exiftool -CreateDate $f |
        perl -pe 's/.*: 2006:([^:]+):/sprintf "2006:%02d:", ($1+1)/e'`;
    echo $f: $NEWDATE;
    exiftool -CreateDate="$NEWDATE" -DateTimeOriginal="$NEWDATE" $f;
done</pre>
<p></code></p>
<p>This will modify the month field in the EXIF data of each file by increasing it by 1. It doesn&#8217;t handle wrap around or anything, I didn&#8217;t need to do that. The fanciest it gets is making sure there&#8217;s the correct number of zeros padding the number.</p>
<p>You don&#8217;t want to run this twice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2006/11/fixing-broken-dates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu and the Epson Stylus CX5900</title>
		<link>http://www.kallisti.net.nz/blog/2006/11/ubuntu-and-the-epson-stylus-cx5900/</link>
		<comments>http://www.kallisti.net.nz/blog/2006/11/ubuntu-and-the-epson-stylus-cx5900/#comments</comments>
		<pubDate>Mon, 20 Nov 2006 03:13:14 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2006/11/ubuntu-and-the-epson-stylus-cx5900/</guid>
		<description><![CDATA[I spent some time over the weekend getting my parent&#8217;s new Epson CX5900 printer/scanner to work. It seems to be either so new or so uncommon that Ubuntu didn&#8217;t really know what to do with it. So here I&#8217;ll document what I had to do (and then I&#8217;ll go file some bug reports so the [...]]]></description>
			<content:encoded><![CDATA[<p>I spent some time over the weekend getting my parent&#8217;s new Epson CX5900 printer/scanner to work. It seems to be either so new or so uncommon that Ubuntu didn&#8217;t really know what to do with it. So here I&#8217;ll document what I had to do (and then I&#8217;ll go file some bug reports so the right people get to see it <img src='http://www.kallisti.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>All this was done on Edgy, I upgraded them to that just before trying, in the hope that it would have drivers for it already. no such luck.</p>
<p>This is split into two parts because the functions are in no way related to each other. </p>
<p><b>The Printer</b><br />
When you attempt to set the printer up with the Ubuntu printer interface, it detects it correctly, but has no driver for it. Instead, it suggest you use the CX5100 driver. This doesn&#8217;t work, instead it spits out blank pages. <a href="https://launchpad.net/distros/ubuntu/+bug/72508">[Bug report]</a></p>
<p>After spending a while poking around, I eventually created a PPD file for the CX5800, and loaded that in through the CUPS web interface. It&#8217;s quite possible that simply selecting the CX5800 driver would work too. Once I got it going, I didn&#8217;t try to change it. Here&#8217;s what I did in case it&#8217;s necessary. <b>Update:</b> apparently generating the PPD is quite unnecessary, and just picking the CX5800 will do the job just the same. That&#8217;s not surprising at all.</p>
<p>Create the PPD file:<br />
<tt>cups-genppd.5.0 -v 'Epson Stylus CX5800' -p .</tt><br />
Then add printer in the web interface, and use this driver. Note that I had added the package <tt>foomatic-filters-ppds</tt> before doing this. It may or may not be necessary.</p>
<p>After this, it seems to work fine. I still don&#8217;t know how to make it pick colour or grayscale, a quick glance at the properties box didn&#8217;t show anything obvious, but it may be there and I didn&#8217;t notice.</p>
<p><b>The Scanner</b><br />
Making the scanner work was a bit trickier, but actually took me less time. Credit where it&#8217;s due, <a href="http://ubuntuforums.org/showthread.php?t=248748">this thread on the Ubuntu forums</a> was a big help.</p>
<p>First, make sure all the extra <tt>sane</tt> stuff is installed (<tt>libsane, libsane-extras</tt><tt> and </tt><tt>sane-utils</tt>).</p>
<p>Running <tt>sane-find-scanner</tt> spits out a fair amount of text, but also includes this line, which is key:<br />
<tt>found USB scanner (vendor=0x04b8 [EPSON], product=0x082e [USB2.0 MFP]) at libusb:001:003</tt></p>
<p>This gives the USB details of the scanner. Then add them into udev. I put them in <tt>/etc/udev/rules.d/45-libsane.rules</tt>, but in hindsight, it would be best to put them into a custom rules file so you don&#8217;t get messages about upgrades wanting to replace changed files.</p>
<p>This is the line to add:<br />
<tt>
<pre># Epson CX-5900
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="082e", MODE="664", GROUP="scanner"</pre>
<p></tt><a href="https://launchpad.net/distros/ubuntu/+source/ubuntu-meta/+bug/72506">[Bug report]</a></p>
<p>Note that you can&#8217;t add them into <tt>/etc/udev/libsane-extras.rules</tt> because it&#8217;s a symlink, and so the changing file doesn&#8217;t get picked up by udev (it&#8217;s documented in the readme, so I guess it&#8217;s a bug with <tt>libsane-extras</tt>). It would work after a reboot, but that&#8217;s just annoying.<a href="https://launchpad.net/distros/ubuntu/+source/sane-backends-extras/+bug/72509">[Bug report]</a></p>
<p>You also need to tell <tt>sane </tt> about the scanner. This is done simply by adding:<br />
<tt>usb 0x04b8 0x082e</tt> to the file <tt>/etc/sane.d/epson.conf</tt>. <a href="https://launchpad.net/distros/ubuntu/+source/xsane/+bug/37499">[Bug report]</a></p>
<p>To test it, unplug the printer&#8217;s USB connection and put it back in, to allow the new rule to be used. Now a &#8217;scanimage -L&#8217; should cause the scanner part to move a bit, and it should report that it&#8217;s found something. It seems to detect it as a CX6000 or something.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2006/11/ubuntu-and-the-epson-stylus-cx5900/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Moving server</title>
		<link>http://www.kallisti.net.nz/blog/2006/11/moving-server/</link>
		<comments>http://www.kallisti.net.nz/blog/2006/11/moving-server/#comments</comments>
		<pubDate>Sat, 11 Nov 2006 09:16:34 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2006/11/moving-server/</guid>
		<description><![CDATA[I&#8217;ve finally gotten around to putting all my kallisti.net.nz stuff onto a real server. Well, I guess it&#8217;s not a real server, as it doesn&#8217;t actually exist anywhere. But it&#8217;s a real virtual server, as opposed to the quaint Pentium Celeron 466 that was doing the job. 
It&#8217;s now hosted by TekTonic, who do a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally gotten around to putting all my <a href="http://www.kallisti.net.nz">kallisti.net.nz</a> stuff onto a real server. Well, I guess it&#8217;s not a real server, as it doesn&#8217;t actually exist anywhere. But it&#8217;s a real virtual server, as opposed to the quaint Pentium Celeron 466 that was doing the job. </p>
<p>It&#8217;s now hosted by <a href="http://www.tektonic.net/">TekTonic</a>, who do a pretty good deal for a fairly minimal <a href="http://www.tektonic.net/unmanaged.html">unmanaged virtual server</a>. It&#8217;s the first one of those listed that I&#8217;ve got. The CPU is more than enough for what I&#8217;m going to be doing, and the bandwidth is many times better than the 256k/128k that the old server was on. The only catch really is the disk, I have not too far off 10G of stuff to put on it. Of course, I guess I could delete some email or something&#8230;</p>
<p>I&#8217;m hoping that someone builds a system that lets me use <a href="http://s3.amazonaws.com">Amazon S3</a> to store the photos in gallery, that&#8217;ll make life a lot easier, as then I won&#8217;t have to worry about space on it at all.</p>
<p>Anyway, the migration is still in progress. Jabber.kallisti.net.nz was moved first, as that was pretty easy, and I now have www.kallisti.net.nz on there, except gallery. Now it&#8217;s just the other websites that are hosted there, and finally the mail. Mail is going to be the most tricky, as new mail will always be coming in, and it has a fairly complex setup. A curious side-effect of it being split up like this, is that if one webmail user sends an email to another webmail user, it will travel to the US and back up to four times, as it&#8217;s stored in NZ, the webmail runs in the US, and then that&#8217;s likely to be viewed in NZ again. However, this will become a little more sane soon I hope.</p>
<p>The eventual upshot of this is that for the first time in years, I won&#8217;t have to have a computer running in my bedroom 24/7 <img src='http://www.kallisti.net.nz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2006/11/moving-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 6.10 (Edgy) upgrade</title>
		<link>http://www.kallisti.net.nz/blog/2006/10/ubuntu-610-edgy-upgrade/</link>
		<comments>http://www.kallisti.net.nz/blog/2006/10/ubuntu-610-edgy-upgrade/#comments</comments>
		<pubDate>Mon, 30 Oct 2006 02:51:43 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2006/10/ubuntu-610-edgy-upgrade/</guid>
		<description><![CDATA[A few days back I upgraded my machine to the newest Ubuntu release. As is often the case with upgrades like this, there were a few issues. The main one is a conflict between my M2N4-SLI motherboard and the 2.6.17 kernel. I get the impression that Asus has left quite a few bugs in the [...]]]></description>
			<content:encoded><![CDATA[<p>A few days back I upgraded <a href="http://www.kallisti.net.nz/blog/2006/09/shiny-new-hardware/">my machine</a> to the newest Ubuntu release. As is often the case with upgrades like this, there were a few issues. The main one is a conflict between my M2N4-SLI motherboard and the 2.6.17 kernel. I get the impression that Asus has left quite a few bugs in the firmware, and if you boot straight up, it gets so far and then just locks up. My first solution was booting the kernel with the <tt>noapic</tt> parameter, and that works. However, I was also reminded of <a href="http://www.kallisti.net.nz/blog/2006/09/shiny-new-hardware/#comment-136">this comment</a> that suggest using the <tt>enable_8254_timer</tt> parameter. I&#8217;ll try that next time I reboot.</p>
<p>One of the other problems I have is that <a href="http://www.eecs.umich.edu/~pelzlpj/wyrd/">Wyrd</a> is <a href="https://launchpad.net/bugs/68152">completely</a>, <a href="https://launchpad.net/bugs/68154">totally</a> <a href="https://launchpad.net/bugs/68155">broken</a>. A pity, because it&#8217;s really a nice tool. I suppose I could go back to using straight <a href="http://www.linux.com/article.pl?sid=06/07/24/1516241">remind</a>, and scripts that email me reminders. But I like wyrd.</p>
<p>The final thing that&#8217;s been annoying is that beagle (the search indexing program) is <a href="https://launchpad.net/bugs/64326">really prone to sucking up all CPU</a> when it thinks you&#8217;re not looking. Originally, it used a lot of CPU indexing some files (including ones that it didn&#8217;t understand). I could live with that, it only had to do it once, however now when the computer has been idle for a while it starts up, not doing anything as far as I can tell. At least, nothing is being logged. This wouldn&#8217;t be a huge problem, but my computer&#8217;s fan only turns on when it&#8217;s under load. So if it&#8217;s on overnight doing something like downloading, it&#8217;ll be completely silent &#8211; until <tt>beagled</tt> starts up, and the computer makes a constant whine.</p>
<p>Oh, something else, but this is not at all a Ubuntu problem, it&#8217;s an example of why closed-source software is a pain to work with. What is it with Sun being so backwards about 64-bit machines? The <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4802695">third most requested enhancement</a> is for a 64-bit version of webstart and the browser plugin. Apparently, 64-bit machines are all server machines (despite the fact that Sun sells 64-bit SPARC workstations), and so have no use for plugins and such. So they haven&#8217;t gotten around to releasing them, and it looks like they&#8217;re not going to be in Java 1.6 either. I&#8217;m fairly sure it couldn&#8217;t require much more than a recompile to make them work. Hopefully when Java is open sourced, the community will come out and produce these. </p>
<p>In the meantime, I&#8217;m living without a Java plugin (I don&#8217;t use applets heaps anyway), and <a href="http://openjnlp.nanode.org/">OpenJNLP</a> for webstart. It&#8217;s old, appears to be unmaintained, but it works. I&#8217;m thinking about writing a &#8216;loading&#8217; screen for it though, currently it doesn&#8217;t have one.</p>
<p>Anyway, about Edgy: other than the problems, I haven&#8217;t noticed huge differences. Things are a bit newer, a bit nicer. KMail seems a bit less <a href="https://launchpad.net/bugs/48034">crashy</a>. OpenOffice is finally proper 64-bit, not that I ever use it anyway. Oh, and the spellchecking in Firefox is good, too. I wouldn&#8217;t rush to upgrade if I didn&#8217;t care about using the most current stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2006/10/ubuntu-610-edgy-upgrade/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Trials of moving /var in Ubuntu</title>
		<link>http://www.kallisti.net.nz/blog/2006/10/trials-of-moving-var-in-ubuntu/</link>
		<comments>http://www.kallisti.net.nz/blog/2006/10/trials-of-moving-var-in-ubuntu/#comments</comments>
		<pubDate>Thu, 05 Oct 2006 10:37:37 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2006/10/trials-of-moving-var-in-ubuntu/</guid>
		<description><![CDATA[Note: most of this is rambling, go to the bottom for the useful technical bit.
I&#8217;m doing some work with large amounts of data (about 100 million rows), and today I tried loading it all into MySQL on my home machine, so that I could run some collaborative filtering tools over it easily. However, when I [...]]]></description>
			<content:encoded><![CDATA[<p><i>Note: most of this is rambling, go to the bottom for the useful technical bit.</i></p>
<p>I&#8217;m doing some work with <a href="http://www.netflixprize.com">large</a> amounts of data (about 100 million rows), and today I tried loading it all into MySQL on my home machine, so that I could run some collaborative filtering tools over it easily. However, when I set this machine up, I did a dumb thing and gave / 4Gb and <tt>/home</tt> the rest of the space. Thinking of course, that / wouldn&#8217;t need much space. It just holds programs and stuff.</p>
<p>I&#8217;d forgotten that it&#8217;s also where MySQL puts its database files. It also turns out that when MySQL runs out of of disk space, it gets really unhappy and kinda belligerent. You can&#8217;t even get it working well enough to do a &#8216;drop database&#8217; on the over-sized culprit until you free up some space somewhere else.</p>
<p>So, after a bit of playing I got that sorted, and decided to move <tt>/var</tt> somewhere else. This is a scary proposition, because it means resizing /home (with my 200Gb+ of accumulated cruft). But that&#8217;s OK, with careful use of <tt>resize_reiserfs</tt><tt> and </tt><tt>lvreduce</tt> (in that order! no exceptions!), I had 10Gb to put a new <tt>/var</tt> into. This is where it gets tricky. I created the new <tt>/var</tt>, copied the old stuff over, set the fstab to mount it, etc. I then rebooted to have everything clean up&#8230;and mysql wouldn&#8217;t start. I eventually tracked that down to a lack of networking.</p>
<p><i>Here start the useful technical bits, if you&#8217;re googling this or something:</i></p>
<p>However, networking either refused to start, or wouldn&#8217;t bring up <tt>lo</tt>, complaining about a lack of the <tt>/var/run/network/ifstate</tt> file. Well, true, it wasn&#8217;t there, and creating it made things come OK, until the next reboot. On bootup, I was also seeing messages like &#8217;special device /var/run does not exist&#8217;. After a bit of poking around the internet, I discovered that <tt>/var/run</tt> (and <tt>/var/lock</tt>) have a special filesystem mounted on them <i>before <tt>/var</tt> is mounted</i>. The upshot of this is that if you don&#8217;t have <tt>/var/run</tt> and <tt>/var/lock</tt> living on the <tt>/var</tt> that lies underneath of the mounted <tt>/var</tt>, things go haywire. Basically, if you don&#8217;t have these directories that are invisible 99% of the time your system is running, things break. That is something that <i>really</i> needs to go into a really early startup script.</p>
<p>A nice trick for creating them on a running system (found <a href="http://lists.slug.org.au/archives/slug/2006/08/msg00320.html">here</a>) is this command:</p>
<p>  <tt>mount --bind / /mnt &#038;&#038; mkdir /mnt/var/run /mnt/var/lock &#038;&#038; umount /mnt</tt></p>
<p>I hope this stops someone else spending an unnecessary couple of hours trying to figure out why networking is failing mysteriously.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2006/10/trials-of-moving-var-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>eMusic/J 0.20 &#8211; fix for a weird Sun decision</title>
		<link>http://www.kallisti.net.nz/blog/2006/09/emusicj-020-fix-for-a-weird-sun-decision/</link>
		<comments>http://www.kallisti.net.nz/blog/2006/09/emusicj-020-fix-for-a-weird-sun-decision/#comments</comments>
		<pubDate>Sat, 02 Sep 2006 12:57:18 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[eMusic/J]]></category>

		<guid isPermaLink="false">http://www.kallisti.net.nz/blog/2006/09/emusicj-020-fix-for-a-weird-sun-decision/</guid>
		<description><![CDATA[I&#8217;ve just put out an 0.20 release of eMusic/J. This fixes an issue that appears only on some JVMs (in this case, it seems to be Blackdown) where System.getenv(String) isn&#8217;t supported. However, it doesn&#8217;t fail gracefully, no&#8230;it throws an Error (not just an Exception even). 
See these Sun bug reports for details. I think that [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just put out an 0.20 release of <a href="http://www.kallisti.net.nz/EMusicJ/HomePage">eMusic/J</a>. This fixes an issue that appears only on some JVMs (in this case, it seems to be Blackdown) where <tt>System.getenv(String)</tt> isn&#8217;t supported. However, it doesn&#8217;t fail gracefully, no&#8230;it throws an <tt>Error</tt> (not just an <tt>Exception</tt> even). </p>
<p>See these Sun <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4112784">bug</a> <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4199068">reports</a> for details. I think that in Java 1.5 they put it back in, and GCJ seems to handle it OK too, which is why I hadn&#8217;t noticed it in my testing. Good thing too, I think removing it to be a very short-sighted decision. It&#8217;s more &#8216;pure&#8217;, but so much less practical for real world things that I can&#8217;t believe they actually took it out at all.</p>
<p>Users of eMusic/J 0.19 don&#8217;t need to upgrade (and won&#8217;t be prompted to), nothing else has changed. This is just to help new users.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kallisti.net.nz/blog/2006/09/emusicj-020-fix-for-a-weird-sun-decision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
