Old Unix tools

more

Compare the following:

$ touch -- -x
$ less -- -x
<control-C>
$ more -- -x
more: unknown option "-x"
usage: more [-dflpcsu] [+linenum | +/pattern] name1 name2 ...

WTF? more doesn’t know what “–” means. Okay, time for a patch.

uniq

$ uniq --help
Usage: uniq [OPTION]... [INPUT [OUTPUT]]

Ah, so we support an INPUT file and an OUTPUT file…that’s not really unix like IMHO. And what you suppose does:

Read more →

Ubuntu graphic installer

Installing Ubuntu (the modern way)

Right now I’m installing Ubuntu (gutsy) on some PC. The default install CD from ubuntu forces you to do this in X-window. And it all runs from a live-cd…. It’s slow and not usefull, and looking over my shoulder I see it has crashed in ‘Detecting Filesystems’…. Great.

I also hit an issue where the bottom of the installer program (ubuigity they call it) wasn’t completely visible on the screen, so I couldn’t click the forward buttons. I’m downloading the alternate install CD right now. That at least works quickly and ok.

Read more →

gallery plugin

I’m using the gallery plugin for the photos on this site. This plugin works great and easy, but there wasn’t an easy way to create a slide show. So that you can click ’next’ and go to the next photo. So I’ve added this functionality to the script.

I’m putting this up for download, so that other people may use this too. gallery.sh If you want to regenerate the slides, you can just remove the html and slides directories.

Read more →