bash completion 20060301

The first new release of bash completion in more than six months is a reality.

This release features many new completion functions. Many others have been improved or optimised. In addition, a large number of bugs have been fixed, including all known compatibility issues with bash 3.1, the latest version of the shell.

An almost complete change log for this release follows:

  • Completion for minicom(1), mtr(8), sysctl(8), smartctl(8), vncviewer(1),

invoke-rc.d, update-rc.d and dpkg-source has been added.

  • gdb completion of second parameter was broken when first parameter contained

white space.

  • gdb completion wasn’t completing second parameter correctly when it was

a file, rather than a PID.

  • Ruby ri completion has been broken for some time. This is now fixed.

  • Various fixes to work around change in how POSIX quoting is handled in

bash 3.1.

  • subversion completion has been reimplemented from scratch and integrated

into the main file.

  • iconv(1) completion has been improved.

  • yum(8) completion has been updated for current version of yum.

  • ant completion will now make use of complete-ant-cmd.pl, if available.

  • cvs(1) completion has been improved with ‘update’ and ‘stat’ completion.

  • ‘aptitude show’ now works in the same way as ‘apt-cache show’.

  • make(1) now also completes on file names.

  • MPlayer will now also complete on .flac, .mpc and .3gp files.

  • wine will now also complete on .exe.so files.

  • unzip will now also complete on oowriter’s .ott files.

  • xine et al will now complete on .mng files.

  • The list of programs completing on .dvi files has been expanded.

  • The range of files on which timidity and evince complete has been expanded.

  • mkisofs completion now defaults to treating results as file names.

  • $DEBUG has been renamed $BASH_COMPLETION_DEBUG to avoid namespace clashes

with other software.

  • man(1) completion now works correctly on OpenBSD.

  • svk and Mercurial completion have been added to contribs.

  • Many other small optimisations and fixes.

Posted in System Administration | Leave a comment

Mythical MythTV

Most of Sunday was spent assembling our new MythTV box. When I switched it on that evening, an LED on the motherboard lit up and the VFD display at the front of the case displayed a couple of messages, but that was as far as it went. No fans spun up, no sounds emanated from the motherboard; zip, nada, diddly.

I’ve replaced the RAM, but that didn’t help. I tried short-circuiting the start-up pins on the motherboard, but that didn’t cause a boot, either. I’ve double-checked all the connections and everything is fine. I tried reseating the CPU. All to no avail.

The TV tuner card was also broken, so I’ve sent that back to be exchanged.

My fingertips are still sore from all of the messing around, but at some point I need to try to rule out the power supply as the dodgy factor. If that passes muster, I’ll have to suspect the motherboard.

How tedious.

I had hoped to be well into the software installation at this point, but I don’t even have the hardware working. I find it really tedious to build computers and this is one of the main reasons why. When things don’t work, it’s boredom at best and misery at worst, trying to figure out what the problem is.

Dealing with hardware is definitely one of the least enjoyable parts of system administration; as far as I’m concerned, at least; some people love it, of course.

Posted in System Administration | 3 Comments

Still No New Car

The car is still poorly. After having had its regelapparaat (which, after a little bit of googling, is apparently an ECU or electronic control unit in English) replaced, the Audi people were apparently still concerned enough about a failure somewhere down the road (no joke intended) that they’ve decided to replace the entire steering-column.

So now the question is how soon a steering column can be sent from Germany and put into the car. No family road trips in the new car for us just yet, I’m afraid.

Posted in Cars | 3 Comments

Feeling Taxed

Sarah and I are in the midst of gearing up for our 2005 taxes. Submitting tax returns in one country just wasn’t enough fun, so this year we’ll be filing taxes in both The Netherlands and the USA. I’m happy to say that this will be the last time I’ll have to file taxes in the US, but poor Sarah, as an American citizen, is obliged to file an annual tax return with the IRS for the rest of her days. The freedom tax, I call it.

We met with a Dutch tax advisor today. What a barrel of laughs that was; lots of paperwork to collate and return to him, so that he can file the return on our behalf. Sarah’s busy trying to get end-of-year statements for her many on-line accounts, many of which don’t have up-to-date address information for her, and many of which mysteriously no longer allow her to log on. Then you find out that old 401k plans have moved to other companies, etc., etc. It’s monotonous and very frustrating work.

To top it all, the Dutch immigration authorities are giving us a hard time, concerning Sarah’s application for a residence permit. I sent them a new letter today, so we’ll soon see what their next move is.

Posted in Life | Leave a comment

Printing Again

After nearly seven months without a printer, I’m happy to say that we are once again able to print documents from our computers.

I took receipt of an Epson Stylus Photo R800 on Saturday, but had to wait until today to purchase a USB A-B cable. Printers aren’t supplied with cables any more, it seems. I ordered the printer on-line and it arrived just in time on Saturday for the shops to be closing. It can also be connected over Firewire, but I decided to hook it up over USB instead.

I looked at a bunch of printers before deciding on this one. I considered the Epson R245 and the R320, which were attractive because of their support for memory cards. Using those, you can stick your Compact Flash card straight into the printer, view your photos on a small LCD screen and print from there. It’s a gimmick, albeit a nice one.

Higher-end printers don’t have such features, because the thought is that serious photographers would never print straight from the card, anyway. Most serious photographers (of which I am not one) take their photos in RAW format (which is not actually a standard and means something different on every make of camera), post-process them in something like PhotoShop, and only then send them to the printer.

Of course, I don’t need to spend €1000 on a printer, but I did want something a little bit better than can be had for €100. Photo print quality was important, but equally important was support for Linux. For this reason, I had to rule out the Canon IP5000 that Fenella suggested. Canons are very poorly supported in Linux.

I also looked at an HP Photosmart 8250, but read too much conflicting information about the quality of its prints. I also didn’t want to have to fart around with yet another system of printer drivers. Berkeley LPR, LPRng, System V printing, CUPS, Omni, Foomatic… I’ve had enough of making UNIX systems print properly over the years. Printing isn’t exciting; it isn’t sexy; it isn’t even interesting. It just needs to work.

And so it ended up being the R800, a decently priced printer with high quality photo prints. Eight separate UltraChrome ink cartridges take care of that, although one of those is actually a gloss optimiser cartridge that avoids bronzing on glossy paper.

Its top resolution is 5760×1440 dpi with a 1.5 picolitre droplet size, but I shudder to think how long it takes to churn out a photo at that resolution. Maybe I’ll be pleasantly surprised, though. So far, all I’ve printed out was a test page.

I researched the Linux support for this printer extensively before deciding to purchase it. Although the printer’s been around since 2004, Linux support for it is quite new. Epson apparently has some sort of driver for it, but I wanted to use CUPS, which is as close to a decent printing system as UNIX has ever had. Actually, it is decent, if a little difficult to recall the details.

gimp-print 4.2.7, which is on my Fedora Core 4 system, doesn’t support this printer, so I had to download and compile gutenprint 5.0.0-rc2. gutenprint is actually gimp-print, with its name changed to remove the understandable confusion that some people had in thinking that one could only use this package to print from The Gimp.

Anyway, once this bleeding-edge copy of gutenprint had been installed, with all of its PPD files, I was able to configure a printer queue for the R800, using CUPS’ rather nice Web interface. A test page rolled out shortly afterwards.

And, just to show that Linux does — after a little bit of work — support this printer well, here’s an example of how the escputil utility (part of gutenprint) can be used to read the ink levels of the cartridges:

escputil -i -r /dev/usb/lp0

Escputil version 5.0.0-rc2, Copyright (C) 2000-2003 Robert Krawitz

Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'

This is free software, and you are welcome to redistribute it

under certain conditions; type 'escputil -l' for details.

Ink color Percent remaining

Yellow 100

Magenta 100

Cyan 100

Matte Black 100

Photo Black 100

Red 100

Blue 100

Gloss Optimizer 100

Handy, eh?

Anyway, no longer will I have to bike over to Jo‘s house when I want to print an important document. Thanks for that, Jo. You’re free of me now!

Posted in System Administration | 3 Comments