Tuesday, December 1, 2009

Munin 1.4.0 released

A bit late, but time ran out on Friday: On Friday we released Munin 1.4.0 to the world! It has been 2 months of work after many years of ..., let's call it preparation.

There is a ChangeLog and an announcement.

The most striking at first glance will perhaps be the new look: nicer html styling and new graph colours with better contrast than in the 1.2 series. Besides there has been some focus on scalability and security besides bug fixing. There are more than 200 closed tickets in the 1.4.0 milestone.

In the scalability department there are such easy (and obvious) wins as running multiple rrd-graph instances in parallel; these days you hardly find a computer without multiple cores. Let's use them! This is tunable through "max_graph_jobs" in munin.conf (will be in 1.4.1, there is a bug preventing the keyword from working in 1.4.0 *blush*). The default is up to 6 parallel rrd-graph jobs.

Another scalability feature is "multigraph", a feature that allows one plugin to create multiple graphs. This makes it practical to graph 48 port switches, and due to another change this is presented as "drill down" graphs: One graph shows the summed traffic on all ports of the switch, and if you click that you'll be transported to a sub-page where you can see traffic on each of the ports. Multigraph is usefull enough, and novel enough that I will write another blog post about it, in the mean time you can study to plugins if you are interested: snmp__if_multi and multigraph_tester. The last one contains some explanatory text, the first one does not ;-) This feature I optimistically call "MRTG-killer". I hope Tobi Oetiker does not hate me for that, after all Munin relies very heavily on his excellent RRD tool for storage and graphing.

For security we have SSL (TLS) support so you can not only encrypt the traffic between the munin-master and the nodes, you can also use certificates for authentication if you want.

We'll get back to more on Munin 1.4, of this you can be sure.

Saturday, November 21, 2009

Munin 1.4.0-beta is released

1.4.0-beta has been released! Download from SVN or Sourceforge as usual. There should be a package in debian experimental shortly.

Thanks to all that have tested, fixed and posted bugs. I'm pretty happy that we have been able to fix a number of issues and that we're now running out of things to fix (or shifted them to a later release ;-)

There are two "high"-priority tickets in the trac right now:

  • #739 is rather cosmetic
  • #758 involves some changes that I want to test a couple of days before putting in a "release".
One third bug is "nice to have if we can get it" and the forth is a placeholder which will be closed once 1.4.0 is deemed "stable".

I have started to write an announcement message, which I include below for your edification.

ChangeLog is here: http://munin-monitoring.org/browser/tags/1.4.0-beta/ChangeLog

I expect that 1.4.0 will be released on next friday.

Introducing Munin 1.4.0!

Munin 1.4 is expected to appear in Debian Unstable and in EPEL within not too long. Will also appear in Ubuntu later. If you are a packager please contact us and we'll list your support/repository/whatever on our Wiki.

The most important features:
  • Better scalabilith through:
    • Multigraph plugins: One plugin, many graphs. This makes it possible to graph switches efficiently as one example. In our test environment graphing one 16 port switch went from over 30 seconds to 3 seconds (please see snmp__if_multi and multigraph_tester plugins for examples).
    • Prallellized munin-graph (tunable number of processes)
    • Nesting of groups to any depth: "Conglomerate;US;New_York;Manhattan;6th-floor;" if you wish
  • Slightly better templates
  • Better security through TLS (SSL) session encryption and certificates to authenticate masters and slaves.
  • Better SNMP support: SNMP version 1, 2c and 3, all modes of authentication are supported (but autoconfiguration of 3 is not quite there yet). (only applies to "most" SNMP plugins: those that have been ported to use Munin::Plugin::SNMP, some remain unported)
  • (exactly one instance of) "includedir" in munin.conf includes all files in that directory in the configuration.
  • munindoc command to show plugin documentaiton. A majority of the plugins are documented now - no need to read the code - in most cases ;-)
  • New fab look on HTML pages, new graph colours with better contrast
  • More than 100 new plugins since the 1.2 series.
    • Among them are a set of jmx based Java plugins to monitor JVMs.
    • A new and better MySQL plugin patterned on the Cacti MySQL plugin
    • PgSQL plugins based on generic Munin::Plugin::Pgsql module
    • Asterisk plugins
    • Netapp plugin
  • Slightly better "not Linux" support:
    • More Solaris plugins. Solaris plugin names have been aligned with the other platforms.
    • Core programs should play nice on all flavours of AIX
    • Nominal OS X ("darwin") support (need someone to make a .img for us :-)
    • Some HP-UX plugins have been contributed
    • Good bunch of NetBSD plugins have been contributed
    • Still support for FreeBSD :-)
    • And many many others
  • Ever better documentation everywhere, not least our web/wiki pages at munin-monitoring.org.
  • More bugfixes, both in the core code and plugins, than you can shake a stick at
  • Plugins can specify colours and printf format
  • Works well with RRD 1.3
Other things you may want to know:
  • munin-update and munin-node (and family) have been refactored and are much nicer to hack now.
  • CGI graphing remains "in BETA" but we now have a FASTCGI script too.
Full details in http://munin-monitoring/browser/tags/1.4.0-beta/ChangeLog

Friday, November 13, 2009

Munin 1.4.0-alpha2 is released

Munin 1.4.0 alpha 2 is now out. SVN tag and source tar-ball at source forge.

I've not made as much progress as I'd have liked as I've spent more than half this week sick. Crossing fingers for a better next week.

Changelog at http://munin.projects.linpro.no/browser/tags/1.4.0-alpha2/ChangeLog

Some highlights compared to alpha 1:

  • snmp__if_multi plugin now works and graphs your switch traffic and errors. NOTE: Even if this is infinitly faster than the old way, if your switch has a slow SNMP agent you will need to tune the munin-node timeout setting. Run the plugin in munin-run to check it's execution time. My 16 port switch on local LAN gets me a runtime of less than 3 seconds.
  • Actually generates PNGs this time ;-)
  • Lots of different plugin fixes, including fixing autoconf-iguration issues.
  • Some HTML enhancements, including dropdown boxes for selecting peer nodes to view. Configurable with "dropdownlimit" in munin.conf
  • Various INSTALL documentation enhancements
  • Get rid of munindoc.in from the installation
  • Lots of other fixes!
Please test if you can.

I'd like to see install-reports on the munin-users list or in personal e-mail please. If you make bug tickets please mark as "1.4.0-alpha2" and select "1.4.0" as milestone.


Saturday, November 7, 2009

Munin 1.4.0-alpha is released

Munin 1.4.0-alpha is released. Get it while it's not from https://sourceforge.net/projects/munin/files/, or with SVN from the project site at http://munin-monitoring.org/. Changelog at http://munin.projects.linpro.no/browser/tags/1.4.0-alpha/ChangeLog

Compared to the last stable release it has

  • SSL support
  • Scalable SNMP support (now ready to take on MRTG, see multigraph_tester plugin for "documentation")
  • includedir statement in master config to include files from a "drop" directory
  • More than 100 new plugins
  • Lots and lots bugfixes
  • All "high" priority bugs have been closed or appears to be impossible to reproduce
  • And lots more
If you test this I'd like you to send a e-mail to the munin-users mailing list about your experience.

Get it while it's hot!

Wednesday, October 28, 2009

Munin 1.4 is coming!

After years of languishing in the shadows of my attention Munin has gotten into the front seat and is running my life. A paid commission to complete Munin 1.4 with certain features has come in. The paid features are:

  • Scalable SNMP plugins (aka many graphs from just one plugin)
  • Drop directories for configuration (munin.conf.d) on the server
  • SSL
  • A stable releasee
And must be done and the delivery accepted by the customer by late November. Some other features are
  • SNMP plugin framework with support for SNMP versi0n 1, 2c and 3 and all manner of authentication
  • OO pgsql plugin framework
  • All new Java plugins using JMX to monitor JVMs
  • Nested grouping
  • Plays nice with RRD 1.3
  • Faster munin-graph due to amazing ability to fork rrdgraph processes
  • Faster CGI graphing, including a fastcgi script (but should still be considered beta)
  • Lots of new plugins in general
  • Lots of new plugins for Linux
  • Some new plugins for Solaris and *BSD flavours
  • Lots and lots of bug fixes and enhancements (~300 tickets closed in the trac).
One of the very cool things about this is that there is increasing community input. As well as the munin-users list and input through enhancement requests and bugs I regularly find very good patches in the trac ticket database. I feel very priveliged to be able to apply a user contributed patch and get better software as a result. Open Source Works! Many many thanks to the contributors!

This being the flu and cold season, for me and my family, I've got no time to loose between hacking Munin and staying at home to take care of myself and sick relatives. I'm scarcely to be seen at work any more, as I lay low to avoid the distractions of the workplace and my habits there.

I have a vague plan that in the future there will be one new stable version of Munin every year, with very very small feature increments to make it possible. I've no idea if I can manage to make good on that, so it's not a promise. It's keeping my fingers crossed sort of thing.

In any case, zero day warez comming your way in a little while!

/me goes back to the munin hacking

Thursday, August 6, 2009


Siden jeg flyttet i sommer og skal ta tog (og bane) til jobb nå måtte jeg skaffe meg månedskort. I skranken hos NSB i Asker fikk jeg registreringsskjema for Flexus. Det viser seg at Flexus-systemet omsider er i produksjon. Fint.

(Ingen blogpost er komplett uten syting) Etter litt utfylling laget de kort til meg (med navn på, uten bilde) og viste meg påfyllings-automaten. Skuffende nok greide den ikke å lese chip'en på bank-kortet mitt. Påfyllings-automaten tilbød ikke å lese magnetstripen etter tre mislykkede forsøk på å lese chip'en. Det gjør i det minste IKEA og andre butikker. Grr. Måtte få kona til å betale første måned.

Så igår morges gjorde jeg min første Flexus-reise. Kortet "bip'et" fint på validatoren, og den viste hvor lenge til kortet mitt gjelder. Så reiste jeg hjem. Så på National Theateret stasjon bip'et ikke biletten. Personen i bilettluken kunne lese kortet, så jeg tok toget hjem i trygg forvissning om at jeg hadde gjort mitt beste. I morges bip'et det ikke igjen. Ikke tid til å snakke med noen i en bilettluke. Man spør seg, er kortet ødelagt? Hvem har EMPet meg? Vil konduktøren kaste meg ut på hode og r**a? Snakke med bilettluken på Nathional igjen. De kom ut for å se og vise meg. Flexus-bilett-automaten sin "Flexus tjenester" funksjon kunne lese kortet. Gikk bort til en validator og dro kortet over platen som pilen viste. Nah. Bliettluke-personen gjorde det samme. Nah. En gang til, og plutselig bip'et den. Forsøkte å repetere. Nah. En gang til, bip! Hemmeligheten er en sirkulær bevegelse over platen folkens! Pilene er missvisende! Ghud vet hvorfor. Det virket å dra det rett oppover de første tre gangene.

Forøvrig, det står bakpå at kortet skal valideres for hver reise. NSB-personen virket veldig avslappet på det. Uansett er 30 dagers-kortet validert for alle 30 dagene ved første bruk. Så en trenger ikke egentlig registrere seg hos storebror hver gang en går på et offentlig transportmiddel.

Kortet er ikke særlig transparent, selv ikke sett opp mot sola. Kan ikke se RFID-kretsen inni der. Noen som har en høvel så det kan høvles 1/100mm av gangen så vi kan se på det?

Irriterende lite informasjon på websidene til NSB og Ruter om fordelene med Flexus og hva slags fine funksjoner det støtter. Men "Flexus tjenester" på bilett-automaten viste hvertfall at kortet har rundt 6 slotter for forskjellige biletter, og jeg kan kjøpe "neste" månedskort på forhånd, og så blir det tatt i bruk når det forrige har gått ut.

I morges så jeg en Flexus bilett-automat som ikke fant boot disken sin. Standard PC oppstart display. *fnis*

Sunday, May 17, 2009

Kubuntu/jaunty - breakages for me

Kubuntu jaunty works for me. KDE 4.2 is pretty and nice and everything. The network manager plasmoid is very nice, it starts early and has the machine networked before firefox and thunderbirds finishes to boot.

Three things are broken:
- Bluetooth (still)
- Amarok 2
- The power management plasmoid

The gnome based work-arounds for bluetooth does not appear to work anymore. More on that later I suspect.

There is a workaround for the amarok 2 problem: http://nomad.ca/blog/2009/apr/3/amarok-14-jaunty-ubuntu-904/ - just tried it, and my podcasts are back and EVERYTHING. Some strange sound engine problem though. More on that later if it's interesting.

The power management plasmoid does not manage to run my CPUs at full speed when I select "performance", this after I've diddled with the performance profile so that it implies the "performance" CPU-scaling policy and so on. It also tries to show my laptops two batteries, but there is some one off problem with that so that I can only see the charging state of one of them. Good old Kpowersave to the rescue. It works.

Thursday, April 9, 2009

Lenovo laptoper med Telenor 3G og Linux


I februar postet jeg om 3G støtten i nyere Lenovo laptoper (siden rett før nyttår 2009 tror jeg). Dette er laptoper hvor det følger med gratis Telenor abonnement i 3 måneder. 3G hardwaren i maskinene er tilstrekkelig forskjellig til at standard programmene i Ubuntu Intrepid ikke virker. Ikke Jaunty heller vil jeg tro - uten at jeg har testet ennå. Den forrige blog-posten min dekket basisen i hvordan en får hardwaren opp på 3G slik at en kan bruke pppd - men det mangler noen deler for å komme "rett opp" på Telenor Trådløst Bredbånd. De følger her. Delene som følger her er litt Thinkpad spesifikke fordi de manipulerer Thinkpad sin ACPI til å skru av og på 3G hardwaren.

Jeg ville kunne koble meg til og fra og bruke hardwaren uten å måtte gi kommandoer med sudo eller i en root tty. Derfor har jeg gått til det skritt å lage .desktop filer som starter fine script - hvertfall under KDE, trolig også Gnome. De bruker gksudo til å få root - som scriptene tross alt må kjøres som, og så smelles det opp et log vindu med xterm (konfigurertbart) som viser hvordan det går med scriptet.

Script pakken min, versjon 0.1, er publisert på http://hjemme.langfeldt.net/3G.tar.gz - det er sent på kvelden i påska, det kan opplagt være feil O:-) - post kommentarer eller send meg epost på janl(måtte-nøkken-ta-spammere)redpill-linpro.com


  1. Registrer SIM-kortet ditt hos Telenor
  2. Mens du venter på bekreftelse (da jeg registrerte meg elektronisk tok det flere dager) kan du lese resten av framgangsmåten og forberede deg mentalt.
  3. Som root og stående i / pakker du opp tar filen som du hentet over (det er litt uforsiktig å gjøre slikt uten å undersøke innholdet i tar filen først, den kunne f.eks. ha erstattet passord-filen din. Men det tenkte du sikkert på ;-)
  4. Kikk på /etc/thinkpad/.resources/settings.sh - bruken av den er langt fra gjennomført i scriptene og oppsett-filene, men det gir deg en ideé.
  5. Dersom du ikke erstatter TERMINAL kommandoen med noe annet enn xterm må du installere pakken som inneholder xterm i distribusjonen din. I Ubuntu heter pakken "xterm".
  6. I /etc/ppp/peers/3G erstatter du verdiene på slutten av "name" og "password" linjene med nummeret du fikk av Telenor. Verdien som står i filen er riktig for MEG, trolig virker de overhodet ikke for DEG, men hvem vet om Telenor faktisk sjekker slikt.
  7. Så kan du ta en kikk på /etc/ppp/3G-connect. Sammenholder du den med http://www.natisbad.org/E4300/Dell_Wireless_5530_AT_cmd_ref.html kan det være at du blir klokere. Og du kan bestemme om kortet ikke skal forsøke seg med både WCDMA og GSM, men tvinge det til å bruke den ene eller den andre.
  8. I KDE 4 finnes det et widget/en plasmoid (dock-bar-applet tror jeg det heter i Gnome) som heter "Quick Access" ("folder view" kan også brukes, men da få du ikke byttet ikon på den). Den kan du legge til panelet ditt. Så høyre-klikker du på den og endrer pathen den viser til /etc/thinkpad og ikonet til /etc/thinkpad/.resources/thinkpad_logo-trans.gif, view mode til Icon Mode og Icon Size til f.eks. 32 slik at du kan se ikonene. Dette gjør at jeg får et ThinkPad ikon i panelet, og når jeg klikker på det popper det opp et lite vindu med 5 ikoner i. Det finnes sikkert noe liknende i Gnome.
  9. Det gøyeste ikonet er "Connect 3G". Klikker du på det spretter en liten xterm opp som viser hvordan oppkoblingen går. Etter ikke alt for mange sekunder blir det lys i et nytt antenne ikon nederst på skjermen din og i xtermen kommer oppmuntrende tekst slik som dette:

Waiting for ACM devices
Waiting for ACM devices
Turning on radio (GSM/WCDMA)
RADIO ON - Connecting
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM2
CHAP authentication succeeded: Congratulations!
CHAP authentication succeeded
Could not determine remote IP address: defaulting to
Cannot determine ethernet address for proxy ARP
local IP address
remote IP address
primary DNS address
secondary DNS address

For å avslutte ppp forbindelsen trykker du på ^C. Vinduet avslutter og etter en kort stund slukker 3G-antenne-lampen nederst på skjermen.

Det er et umtsmon ikon også. Dersom du har umtsmon installert vil det starte opp 3G-radioen og så starte utsmon. Når du avslutter umtsmon - programmet henger antaklig ved avsluttning, må du skru av 3G-radioen selv: Når du klikker på Thinkpad-ikonet du laget tidligere et det en "scripts" mappe. Den kan du åpne, og fra den kjører du scriptet som heter "Disable_3G-GPS". Nedi scripts-mappen ligger forresten noen delscript som kan gi deg ideer. Jeg laget bare ikoner for de jeg syntes var viktigst.

God påske!

Ericsson Mobile Broadband Module F3507g

Umtsmon is a very nice application for wireless broadband on GSM/WCDMA (alias UMTS of old) based devices that looks like AT-command modems. As I wrote earlier (norwegian) I have a wireless broadband device of that kind. Since it's easter I've been able to debug my scripts and can say definitly that it works - and how. So I just posted this to umtsmon-develop:

Hi again,

Since I'm not on the list you may have figured this out already without me knowing. But here I go anyway.

Nicolai Langfeldt wrote:
> following 3g device in a lenovo t400 laptop.
> lsusb:
> Bus 008 Device 002: ID 0bdb:1900 Ericsson Business Mobile Networks BV

It is also known as the more google-able "Ericsson Mobile Broadband Module F3507g". At least two colleagues have differently lettered, but recent Lenovos for the Norwegian market with this hardware. Google says the hardware is also found in Dell machines.

> It publishes 10 USB serial devices. /dev/ttyUSB2 and /dev/ttyUSB4 can be talked to (I have no other serial USB on this machine).

This device has proven to support pppd quite nicely (and also GPS, but that's out of scope for umtsmon I think :-).

* First of all it will only work if used with the cdc-acm (loaded name cdc_acm) tty driver. No chance with the usb-serial/option combo. Some versions of the option driver has the usb id listed and causes autoload. From what I see from some mailing list archives this should soon be fixed.

modprobe -rv option
modprobe -v cdc-acm

The device names are /dev/ttyACM[012]. Each device works the same, but for example you can run some AT commands to make the connected tty into a GPS device spouting NEMA strings. So it can work as a GPS on ACM0 and a 3G device on ACM1 at the same time. umtsmon sould be able to use two ACM devices, one for PPP and one for monitoring - I guess.

* Second, it has a somewhat peculiar AT command set: ATZ does not work. And radio has to be turned on with an explicit AT+CFUN=1 - Here is a pppd style chat script to enable radio and connect 3G:

SAY "Turning on radio (GSM/WCDMA)\n"
"" "AT"
+PACSP0 "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
SAY "RADIO ON - Connecting\n"
OK 'AT+CGDCONT=1,"IP","telenor"'
OK "ATM1L3DT*99#"

There is a CONNECT somewhere in the output stream after the final command but chat does not recognize it.

IF I initialize the device with the AT commands up to the "RADIO ON" message utmsmon works with it.

I sort of understand that the next two commands to select

* Thirdly: Here are some command references and more usage examples:

http://www.natisbad.org/E4300/Dell_Wireless_5530_AT_cmd_ref.html samt http://www.nabble.com/X301-Ericsson-Modul-f3507g-AT-Command-reference-td20152955.html

Among other things the +CFUN command can be used to set different radio capapabilities (GPS, WCDMA, one of, both, etc.).

I have discovered that AT+CFUN=0 seems to shut the hardware off almost entirely. On my thinkpad I can get out of this by using ACPI to turn off and then on it's power. It should prove harder on other hardware it appears. Kermit is unable to connect to the

* Forth: I know C and I can run software in a debugger. So if you want I can test and debug umtsmon running on this hardware.


My next post here is going to be my scripts and setup for automating the use of this with KDE 4.2

Monday, March 23, 2009

Norske helligdager i kalenderen i Zimbra

Redpill Linpro har nå standardisert på Zimbra som gruppe-vare-tjener. I motsetning til f.eks. OX så virker kalenderen der veldig bra og folk ser ut til å ha noe større interesse for å faktisk bruke den.

Neste spørsmål da er: Hvor er helligdagene? Det er heldigvis ganske enkelt å legge inn med en gang en har funnet en .ics (iCal) kalender-fil som inneholder bare røde dager. Den en finner hos Mozilla har kongens fødselsdag og liknende, og det er ikke så gøy å få rød-merket i kalenderen.

http://www.scapegoat.no/calendar/ fant jeg den kalenderen jeg så etter. Det er en iCal fil (.ics) som greit kan brukes sammen med f.eks. Lighning i Thunderbird. Men siden temaet er Zimbra skal jeg beskrive hvordan den implementeres der, med så få skjermbilde-dumper som mulig. Jeg antar at du har valgt norsk-språklig interface i Zimbra.

  1. Last ned helligdags-filen - og lagre den til disk
  2. Log inn i Zimbra
  3. Velg hovedfunksjonsfanen "Innstillinger".
  4. Under den er det en fane for Eksport/Import.
  5. Øverste halvdel av det bildet som kommer opp er import. Klikk på radio-knappen for kalender
  6. Ved ledeteksten "Destinasjon" klikk "Se på.." knappen.
  7. I dialogen "Velg mappe" klikker du på "Ny".
  8. Fyll inn kalendernavnet - f.eks. "helligdager" og velg riktig farge f.eks. rød.
  9. Dersom du ønsker å være opptatt på helligdager klikker du ikke på "ekskluder ..." boksen.
  10. Så trykker du OK og OK. Knappen skal nå vise kalender navnet du vil importere helligdagene inn på.
  11. Trykk browse knappen, velg .ics filen og klikk OK
  12. Trykk på importer knappen og vent overraskende lenge. Det er helligdager for 10 år der så det får være greit.

I kalender-visningen kan du nå sjekke boksen ved "helligdager" kalenderen og få de røde dagene i rødt. Kjempestas! Nå kan du se hvilke dager i påsken som er fridager!

Thursday, February 26, 2009

3G modem på nye Lenovo maskiner

Nye Lenovo modeller så som T400 f.eks. kommer i svært mange utgaver med et GPRS/3G modem som heter " Ericsson Mobile Broadband Module F3507g" samt 3 måneders gratis Telenor Trådløst "Bredbånds" abonement.

Kortet har både GPS, GSM og WCDMA støtte. Det det ikke gjør er å støtte en del helt normale AT kommandoer. "ATZ" (reset) f.eks. gir "ERROR". Og umtsmon (veldig fint program som viser operatør, signal-styrke og tilgjengelige radio-bånd) funker dårlig med kortet hvis ikke det gis noen ekstra AT-kommandoer først - og selv når jeg gjør det får ikke umtsmon nettverksforbindelse opp. Jeg har ikke eksprimentert helt ferdig ennå, jeg skal poste hva som skal til for å komme online med Telenor trådløst bredbånd senere.

I mellomtiden poster jeg link denne AT kommando-referansen for kortet: http://www.natisbad.org/E4300/Dell_Wireless_5530_AT_cmd_ref.html samt denne hjelpsomme linken: http://www.nabble.com/X301-Ericsson-Modul-f3507g-AT-Command-reference-td20152955.html

Det ser ut til at riktig AT+CFUN kommando er nøkkelen for å komme på lufta. Feil AT+CFUN kommando får kortet til å gå ganske kraftig i frø slik at jeg må kald-boote maskinen.

Men aller viktigst er det å passe på å bruke cdc-acm modulen istedenfor option/usbserial som noen kjerner gjør for tiden (modprobe -rv option; modprobe -v cdc-acm).

Tuesday, February 10, 2009

Ordering images

My wife likes to take pictures. But she keeps putting off dumping her camera into her computer (and by extention backing them up to the family RAID). The other week I got stuck organizing a good number of months pictures from her 8GB CF. I investigated what I could do automatically. Quite a lot it turns out. The two most interesting commands here are:

  • exifautotran - auto transform (rotate) images according to the orientation sensor in the camera when the picture was taken
  • jheag -ft - time stamp the image file according to the EXIF meta-data in the image.
The rest is just a loop to organize the pictures into YYYY-MM directories. As I'm prone to, it's written in KSH, which is different enough from bash that you need to install ksh or pdksh to run it.


echo "*** Rotating images"
exifautotran *.JPG *.jpg
echo "*** Fixing time stamps"
jhead -ft *.JPG *.jpg

declare -a DATE

for f in *.JPG *.jpg; do
LC_ALL=C DATE=( $(jhead $f | awk '/^Date/ { print $3 }' | tr ':' ' ') )
mkdir -p $folder
mv $f $folder

Monday, February 2, 2009

Mailbox order in Thunderbird

Today I bring a trivial but useful tip to my Redpill-Linpro colleagues. Since english is the new corporate language I'll write in english.

Over this weekend we changed email servers from OX to Zimbra (talk about night and day). We had to make new a new account in our thunderbirds for zimbra.redpill-linpro.com. Thunderbird puts this new account at the bottom of the account list.

Which is clumsy when that's the account I want the most to read email in.

Visit the god ole' prefs.js (if you know where to find it you're qualified to edit it in spite of the warnings on top of the file). Find this line:

user_pref("mail.accountmanager.accounts", "account2,account3,account4,account5,account6");

Look further down to figure out which email server is associated with which account and then permutate the list as you see fit:

user_pref("mail.accountmanager.accounts", "account6,account5,account2,account3,account4");

in my case.

Wish us good luck with our new email system.

Sunday, February 1, 2009

Bluetooth with kubuntu intrepid

It seems bluetooth on kubuntu intrepid is broken. I only use bluetooth for transferring pictures from my phone to my laptop and for this purpose the gnome tools work very nicely - even under KDE.

  1. Install bluez-gnome and gnome-bluetooth
  2. Run bluetooth-applet
  3. Run gnome-obex-server
  4. Right click the bluetooth icon that appears in your tray and select "Setup new device"
  5. All set :-)