Tuesday, August 28, 2007

We welcome Nils and Arne

Yesterday our twins were born around 9u50 CET. Underneath you can see a picture of the proud mother and our 2 lovely sons.

Mother and sons are doing well.
And yes, the name Nils was inspired by Linus Torvald's father :)

Monday, August 20, 2007

Linux: Installing sun-java 6u2 the Debian way on Ubuntu Dapper

Even though the recent changes in Sun's licensing, for distributing the jdk as a package, allows Ubuntu to provide prepackaged jdk's, I couldn't find a package for my Dapper install. On the dutch Ubuntu forums there was someone asking for a package for jdk 6u2, so I decided to give him a hand. This is the procedure that will work on Dapper, Edgy and Feisty:
  1. sudo apt-get install java-package

  2. now edit: gksudo gedit /usr/share/java-package/sun-j2sdk.sh

  3. search this section:

    "jdk-1_5_0_"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
    j2se_version=1.5.0+update${archive_name:10:2}
    j2se_expected_min_size=130
    found=true
    ;;
    esac
    ;;

  4. make it look like this:

    "jdk-1_5_0_"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
    j2se_version=1.5.0+update${archive_name:10:2}
    j2se_expected_min_size=130
    found=true
    ;;
    "jdk-6u"[0-9]"-linux-i586.bin") # SUPPORTED
    j2se_version=1.6.0+update${archive_name:6:1}
    j2se_expected_min_size=58
    found=true
    ;;
    esac
    ;;

  5. copy: sudo cp -r /usr/share/java-package/sun-j2sdk1.5 /usr/share/java-package/sun-j2sdk1.6

  6. edit: gksudo gedit /usr/share/java-package/sun-j2sdk1.6/install and replace j2sdk1.5-sun by j2sdk1.6-sun

  7. edit: gksudo gedit /usr/share/java-package/sun-j2sdk1.6/remove and replace j2sdk1.5-sun by j2sdk1.6-sun

  8. download: jdk-6u2-linux-i586.bin

  9. execute install: fakeroot make-jpkg ./jdk-6u2-linux-i586.bin

  10. this results in a .deb that you can install using sudo dpkg -i ./sun-j2sdk1.6_1.6.0+update2_i386.deb


Voila.

Linux: Upgrading Debian

In one of my last posts the other year I was complaining about my struggle fixing Debian after performing an upgrade while following the "testing" branch. Seems all the hassle I've been through, finally paid of. My upgrade to "etch" has been a very smooth transition.
Since I was feeling adventurous, I decided to upgrade my vanilla kernel as well. The machine was running a vanilla 2.6.15.4 kernel which was becoming a little outdated. So I decided to take my chance compiling the most recent 2.6.22.3 kernel. Configuring and compiling was easy, but after a necessary reboot, iptables NAT and masquerading seemed b0rken. After googling a little bit, I discovered that the Netfilter people did a bit of refactoring in the modules and options necessary for NAT and masquerading. After enabling

-> Networking
-> Networking support (NET [=y])
-> Networking options
-> Network packet filtering framework (Netfilter) (NETFILTER
-> Core Netfilter Configuration
NF_CONNTRACK_ENABLED = [m]

the CONFIG_NF_NAT option appeared underneath "IP: Netfilter Configuration". After a 3rd compile and install, I've managed to get the configuration right and I am now running Debian Etch on a vanilla 2.6.22.3 kernel.
I guess it's nothing to be proud of ... but I am :)