Archive for the ‘Howto’ Category

Execute command on every boot

You want to execute a command on every boot but do not want to create an init script? Well, if your *nix system supports cron jobs which is very likely it is your lucky day.

Just open the cron file for the user who in whose name the command is supposed to run.

crontab -e

Add the …


Use varnishlog to find hosts which cause most hits

If your Varnish powered server is under constant load and you are wondering who causes that varnishlog is a helpful tool.

Start off by logging IP addresses for a while.

varnishlog -c -i RxHeader -I X-Forwarded-For > varnish.log

After you have collected enough information use the following line to find out which IP caused the most …


High available NFS4 server with drbd 0.8, pacemaker 1.0, heartbeat, openais on OpenSUSE 11.1

For my podcast project I got five new root servers which are all connected internally through a switch. Two of the servers are connected directly over a crossover cable. Those two servers have 3 NICs, the other 2 servers have 2 NICs.

I share the website’s HTML, images and other resources through the NFS server …


How to find out user id on linux system

For a mount command I needed to find out what user id my user account had. There are several ways to find out. As root you could look into the passwd file (most likely /etc/passwd) or on OpenSuSE use the Yast user module. But I was looking for a way to find out my …


ejabberd on GNU/Linux OpenSuSE 11.0

I heard about the successful usage of ejabberd from weblin’s CTO Heiner yesterday at lunch during BarCamp Hamburg 08.

I was thinking of deploying jabber services for podcast.de for a while now but couldn’t decide which server to take. I checked the ejabberd website. The software looks promising. So I give it a try.

smart …


Apache and lighttpd replaced by nginx for PHP application

A while back I wrote an article Switching from Apache HTTP Server to Lighttpd – Installing Lighttpd. Back then I migrated static stuff to lighttpd but left the dynamic stuff (PHP) with Apache.

I was never really satisfied with the speed of our system under load. I tried and tried. I optimized a lot of …


Solved: Miro won’t start – missing video directory

A couple of days ago a brand new version of Miro the open video podcatcher was released. I was eager to try it out. It is supposed to be faster than the previous release. I had to wait a few days for a rpm for my linux distribution to be released. Thanks to the …


How to add a custom user-agent string to Konqueror

You can easily set a custom user-agent string for a specific site through a predefined list of user-agent strings. If you want to define your own custom user-agent string I did not find a gui for that. The solution I found is the following. Launch your favorite text editor and open the file
~/.kde/config/kio_httprc
Just add …


DNS does not resolve www.google.com – quick fix

Surfing the web today and already yesterday in some cases one website wouldn´t load: www.google.com. This makes it difficult to login to Google AdWords and impossible to login to AdSense. For searching I can use the localized version www.google.de. That works just fine. But I use my browser´s (Mozilla Firefox) integrated search box quiet …


Switching from Apache HTTP Server to Lighttpd – Installing Lighttpd

For our main web project we struggle to serve the pages as fast as we want and as people aspect. Server load is too high most of the time. We did many different kinds of optimization. Starting with rewriting part of the code, squeezing the database, compiling the software we need instead of installing …