Archive for April, 2007

“Unrecognized database type” with LDAP

Monday, April 30th, 2007

For some project of mine, I thought I needed LDAP, and installed it:

apt-get install ldap-utils slapd

Unfortunately, I kept getting the error:

Unrecognized database type (bdb)

or

Unrecognized database type (sql)

Depending on whatever database I tried. After several hours of putting a lot of effort, sweat, and tears into it, I decided to compile LDAP myself. After a couple of seconds, it said that I was missing some libraries for the Berkely DataBase (BDB) support. This made some bells ring, and it didn’t take too long, to figure out that I needed the package libdb*-dev in order to use the LDAP packages.

It wasn’t much of a problem to install LDAP now, after all, this is what should have been done in the start:
apt-get install libdb4.4-dev ldap-utils slapd

Btw, after having it all working, I was told that I wasn’t going to need it after all……

WP spam

Sunday, April 29th, 2007

The past half of an hour, I’ve been busy on deleting over 1500 comments. After deleting these 1500 comments, already 4 other non-sense (=SPAM) comments were added. This means, that every hour aproximately 8 comments are posted, which equals about 192 per day.

I am not gonna removes these heaps of spam every day, and have decided to temporarily shutdown the user-sign-up-thing (whatever ;) ). A honeypot that I link directly to my IP ban, seems like a nice thing, to set up tomorrow or the day after that…

In case you want to register at this blog, I have an account at gmail.com, and my username is dolfschimmel, you’re free to request a sign-up by email, which I will then set up manually.

Building ktorrent (2)

Sunday, April 29th, 2007

Of course the way I built ktorrent in my previous post is utterly wrong, for it will still need the 32-bit libs in order to function.

I give it another shot;
su
w-get http://buntudot.org/people/~jdong/ktorrent/2.1.4/ktorrent_2.1.4~0jdong1.dsc

w-get http://buntudot.org/people/~jdong/ktorrent/2.1.4/ktorrent_2.1.4~0jdong1.diff.gz

w-get http://buntudot.org/people/~jdong/ktorrent/2.1.4/ktorrent_2.1.4~0jdong1.orig.tar.gz

pbuilder create

pbuilder build --debemail "Dolf-Schimmel <dolfschimmel@gmail.nscom>" ktorrent_2.1.4~0jdong1.dsc

mkdir result

cp /var/cache/pbuilder/result/* ./result/

I add myself as the maintainer for the very simple reason that when I do something wrong with the packaging, people come to me, not to jdong who originally packaged ktorrent.

Result can be found here

Building ktorrent

Sunday, April 29th, 2007

After a couple of months, again, the intesion to post here more often ;)

I recently upgraded ubuntu to feisty with not too many problems. Since then however, ktorrent kept crashing every 30 minutes or so. This would be solved with version 2.1.4 which is unfortunately not in the repositories yet. Iherefor downloaded the x86 feisty package from the ktorrent website, to install it using dpkg -i –force-architecture. Also this threw up several fatal errors. The solution? Create an amd64-bit package myself based on the x86 bit package…

su

mkdir -p /home/dolf/repos/ktorrent/source

cd /home/dolf/repos/ktorrent/

w-get http://buntudot.org/people/~jdong/ktorrent/2.1.4/feisty/ktorrent_2.1.4~0jdong1~7.04prevu1_i386.deb

dpkg -x ktorrent_2.1.4~0jdong1~7.04prevu1_i386.deb source/

dpkg --control ktorrent_2.1.4~0jdong1~7.04prevu1_i386.deb source/DEBIAN/

nano source/DEBIAN/control

So till now, I’ve downloaded the original package, extracted the sources and the control files, and after that, changed the maintainer and version in the control file. All that’s left is to build the package itself…

dpkg -b source/ ktorrent-2.1.4~0DS0~7.04_amd64.deb

The final result can be found here.