Gallery2 not in Debian 5.0?!

When I upgraded to Debian 5.0 lately I noticed that there is no Gallery2 package anymore in Lenny. So I asked the Debian maintainer about this.

Here’s what he replied:

Gallery 2 is not available in Lenny due to large amount of differences between the previous version and 2.3-1 from unstable. The release team and I decided not to include Gallery 2 in stable due to this disruptive change late in the release process. The gallery2 package from sid can be installed via pinning.

WTF?! 🙁

Startled by “component device mismatches” on RAID1 volumes

I was startled today by a message in syslog that seems to point to a problem with my RAID1 volumes:

Mar  1 01:13:54 server mdadm[961]: RebuildFinished event detected on md device /dev/md3, component device  mismatches found: 512

This value is reflected in the following counter:
root:/etc/mdadm# cat /sys/block/md3/md/mismatch_cnt 512

I tried to clarify this by googling around, but I found no definitive answer whether this is an actual problem or not. However, I found a way to resync the MD components so that no mismatches remain:

root:/etc/mdadm# echo repair >> /sys/block/md3/md/sync_action

After you execute the repair you will notice that the counter shows the same number of mismatches again:

root:/etc/mdadm# cat /sys/block/md3/md/mismatch_cnt 512

This was to be expected — because the repair corrected (and thus encountered) this number of mismatches. So, if you force a check again, the counter should be down to 0:

root:/etc/mdadm# echo check >> /sys/block/md3/md/sync_action
root:/etc/mdadm# watch cat /proc/mdstat
[wait until check is finished]
root:/etc/mdadm# cat /sys/block/md3/md/mismatch_cnt
0

“Burn VIDEO_TS folder to DVD” nightmare

I had a VIDEO_TS folder with VOB files that I wanted to burn to a DVD in order to be able to play it on our DVD player.

The first step was to create an ISO image. This can be done with a tool that comes with MacOS. Open a terminal and enter the following:

hdiutil makehybrid -udf -udf-volume-name "<volume name>" -o /target/image.iso \
    /path/to/parent/folder/

Make sure you specify the folder that contains the VIDEO_TS folder as the source folder in the above command line. Parallel to the VIDEO_TS folder you should also have an (empty) AUDIO_TS folder. Also make sure that there is no .DS_Store file (remove from terminal if present.) And note that the above is one logical line (the \ is a line break).

So, how do you write the ISO file to a DVD? Continue reading “Burn VIDEO_TS folder to DVD” nightmare

Sinnfreie Geschäftsmails…

Während meines Urlaubs erhielt ich von einem großen und bekannten deutschen Domainanbieter folgende Mail (Auszug):

Wie Ihnen sicher bereits aufgefallen ist, haben wir die für den 14.07.2008 angekündigte Lastschrift der Rechnung <XY> bisher nicht durchgeführt. Durch die Umstellung auf eine neue Finanzbuchhaltungs-Software haben sich die Lastschriften im Monat Juli leider verzögert, so dass wir den Betrag von 0,00 Euro erst zum 08.08.2008 einziehen werden.

Diese Nachricht hätte man sich nun wirklich sparen können — ein kleiner Test, ob die Rechnungssumme größer Null ist, hätte den Zweck schon erfüllt.

Wer selber solche oder ähnliche Nachrichten erhalten hat ist herzlich eingeladen, sie hier (in anonymisierter Form) zu posten!

How the Finder misbehaves on USB sticks…

As a new Mac user I find it very annoying that the Finder leaves its traces everywhere you go — even on USB sticks. 🙁

The finder will create hidden .DS_Store and .Trashes folders (used by SpotLight and the Trashcan) all over the place. 🙁

I’ve not yet found a way of disabling this unwanted behavior.

If you know of a way to do so, I definitely want to hear from you. So, please step ahead and leave a comment! 🙂

Encrypted TimeMachine backups on network share

Mac OS normally doesn’t allow you to use network shares as targets for TimeMachine backups. This can be worked around, tho. 🙂

First you need to tweak Mac OS to accept network shares by entering the following command in a Terminal session:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

That would already allow you to store your backups on a network share. But do you really want to trust your valuable data to a network share that can potentially be accessed by untrusted users, such as your favorite bastard admin from hell?! :)

Here’s when the following comes in:

You will create an encrypted sparse bundle and use it as a target for the backup.

Continue reading Encrypted TimeMachine backups on network share

Migrate saved passwords in Firefox

If you are like me and often use the “Save password” feature of Firefox because you can’t remember all the passwords you use for different web sites, and then suddenly have to setup a “fresh” Firefox on a new box, you need Password Exporter, an invaluable Firefox extension that plugs into the “Security” page of Firefox’ options dialog.

It allows you to export the saved passwords on one machine, then to re-import them on a target machine.

This unfortunately only worked in part for me. Login credentials that applied to the same server, but to different realms obviously failed to be imported. I don’t know exactly why this is, but it made the hole story pretty useless for me. I ended up copying key3.db and signons3.txt manually from the Windoze box to the Mac. 🙁

ARDAgent exploitable locally

I was pointed by a colleague that ARDAgent can be exploited locally to gain “root” privileges under MacOS 10.4 and 10.5. A quick search on Google turned up this post on Macworld that gives some details about this issue.

To check whether you’re vulnerable type the following in a Terminal window:

osascript -e 'tell app "ARDAgent" to do shell script "whoami"';

And if it says root you are vulnerable. To quickly protect you type the following:

sudo chmod u-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent

Just another WordPress weblog