Friday, April 27, 2007

Belgium Cityparade 2007 (2)

OMFG, I just visited the site again and seems the date moved to September 8th. If you're following this blog, you can read that my girlfriend is expecting delivery of our twins the same date. Guess I won't be visiting the parade this year ... or lets pray for an early delivery somewhere in the middle of august ;)

Wednesday, April 25, 2007

pam_ccreds howto

This document is largely inspired by this link. The configuration contains a few flaws however and is not working for Ubuntu Edgy.
  1. First we need to install nss-updatedb:

    sudo apt-get install nss-updatedb

  2. Make sure to update /etc/nsswitch.conf:

    passwd: compat ldap [NOTFOUND=return] db
    group: compat ldap [NOTFOUND=return] db
    shadow: compat ldap

  3. Populate the cache by issuing:

    sudo nss_updatedb ldap

  4. Make sure nss-ldap doesn't search for the LDAP forever. Update /etc/libnss-ldap.conf:

    bind_policy hard
    nss_reconnect_tries 1
    nss_reconnect_sleeptime 1
    nss_reconnect_maxsleeptime 8
    nss_reconnect_maxconntries 2

  5. Check if this worked by unplugging the network and typing the following command:

    getent passwd

    Be warned, this might take some time.
  6. Now, install libnss-db and libpam-ccreds:

    sudo apt-get install libnss-db libpam-ccreds

  7. Update /etc/pam.d/common-auth:

    auth sufficient pam_unix.so
    auth [authinfo_unavail=ignore success=1 default=die] pam_ldap.so use_first_pass
    auth [default=done] pam_ccreds.so action=validate use_first_pass
    auth [default=done] pam_ccreds.so action=store use_first_pass
    auth [default=done] pam_ccreds.so action=update use_first_pass

  8. Update /etc/pam.d/common-account:

    account sufficient pam_unix.so nullok_secure
    account sufficient pam_ldap.so
    account required pam_permit.so

  9. Finally you must login while connected to the LDAP server once to make libpam-ccreds store your password. After that you will be able to login while not connected to the ldap server as usual.


Done ;)

Monday, April 16, 2007

Suspect flees Spanish extradition in dramatic prison escape

Prison Break has become a quite popular series here in Belgium. It shows how some dude is helping his brother to escape by tattooing the prison's blueprints on his body, along with some secret messages.
Now, here in Belgium, we think that way of escaping is very oldskool and way too complicated. We just hijack a helicopter and airlift the guy from the prison's court. You don't believe it, read this link.

Belgium Cityparade 2007

After a long time of uncertainty whether the Cityparade was going to be held this year or not, I found the releaving answer on the site today.

It remains uncertain, however, which city will be hosting the parade this year. The other year it has been hosted by Charleroi. The year before that, the parade was hosted by Luik. Both cities are located in the French speaking part of Belgium. So, as tradition prescribes, it should be hosted by a city in Flanders.
I don't care really. For the past six years it has always been fun, fun, fun.
Be there!

Saturday, April 14, 2007

So we got pregnant

The title says it all. Below is an ultrasound taken march 25th.

As you can see, we're expecting twins ;)
The babies are due near september 8th. I'll keep you posted ...

Wednesday, April 04, 2007

Getting synchronized

I'm sure many of you have encountered the same problem I was facing. I have a portable provided by my employer, but the employer does not provide any means of making backups of this portable. I know, he should, but hey, nobody's perfect.
In the past 6 years I've been working for several clients, gathering a lot of data (code, documents, presentations, you name it). The past 2 years I've been doing some Biztalk work as well, working with virtual machines. Using virtual machines is ideal when doing Biztalk work. No need to pollute your perfectly running portable with Biztalk Server 2004 and visual studio. Working with virtual machines also enables me to work with different versions of Biztalk Server.
An unpleasant side effect of using virtual machines is that they tend to take a lot of space on your hard drive and you'll need at least 1,5 GB of memory in your machine.
As a result, I gathered 30 GB worth of data and virtual machines and I wanted to synchronize this with my recently purchased My Book. In the past years I've used several "free" tools for this (robocopy, rsync, ...) but none of them were satisfiable. Today I came across DSynchronize. This small, free tool has no problems with sync'ing my portable's hard drive with an external drive. And it is doing it fast as well.
I love it!