September 2004
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
September 25, 2004
OpenBSD, Windows, and time zones

Time zones make dual-booting between OpenBSD and Windows a bit annoying. Windows saves the local time (including daylight savings changes, which is pretty bone-headed) to the hardware clock. OpenBSD, like most Unix systems, assumes the system clock is UTC and then adjusts for time zone, daylight savings, etc. One way to fix this problem would be to have both operating systems contact an NTP server at boot time and adjust the hardware clock to whatever they like. This seemed messy and Windows 2000 doesn't include an NTP client anyway.

It turns out OpenBSD's config(8) includes a timezone command to tell the OS that the hardware clock isn't set to UTC. I live in Pacific Time and daylight savings isn't active, so I had to tell the kernel that UTC is 7*60=420 minutes ahead of what the hardware clock says.

# config -e -f /bsd
OpenBSD 3.5 (GENERIC) #34: Mon Mar 29 12:24:55 MST 2004
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
Enter 'help' for information
ukc> timezone 420
timezone = 420, dst = 0
ukc> quit
Saving modified kernel.
# reboot

I suspect that I'll have to do that again when daylight savings kicks in.

Incidentally, GAG is still my favourite boot manager.

Posted by tim at 11:54 AM | Permanent Link | Comments (1)
September 03, 2004
gallery mosaic

Now that the gallery has over 30,000 images, I've been looking for something to automatically produce photomosaics. I finally found a decent command-line program called Metapixel and wrote some stuff to integrate it with the gallery. The results are at antiflux.org/~tim/mosaic/.

Posted by tim at 10:38 AM | Permanent Link | Comments (1)