Entries from August 2011 ↓

Install pcntl (pcntl_fork) on Ubuntu Hardy

No apt-getting on Hardy :(

cd ~/
mkdir php
cd php
apt-get source php5
cd php5-*/ext/pcntl
phpize
./configure
make
no=`phpize | grep "Zend Module Api No" | cut -d : -f2 | awk '{gsub(/^ +| +$/,"")}1'`
cp modules/pcntl.so /usr/lib/php5/$no/
echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini

Lsyncd

FreeBSD rsync configI was messing around with some python script to test a spamassassin install. It checks al the mail in the spam folder an see if it is marked as spam. Then it goes through the mail in ham/ and see if it passes as not-spam.

So I’m developing it on my local computer but I wanted to test it on a remote server. Well, actually not that remote because I can touch it from where I’m sitting but that’s not the point :) The point was that I needed something to keep the remote version of the sourcecode in sync with the local source. Google to the rescue and I found lsyncd.

A nice little tool to sync two directories with rsync. Too bad it didn’t support transfers only via sftp because freebsd (the remote server) doesn’t come with rsync installed. So I had to install that also :( Yeah, tough job….

cd /usr/ports/net/rsync
make config
make install

Then on the local machine:

lsyncd --no-daemon --delay 1 ~/Workspaces/spamassassin-test/ beastie:~/spamassassin-test/

You have to specify the remote directory or else it will wipe you home folder as I discovered…

After this was done I could go on developing.

vim on github!

Vim is now on a github repository. Check: https://github.com/LeonB/vim