Archive for August, 2006

Debian update-alternatives

Auto Date Tuesday, August 29th, 2006

A real brilliant feature of Debian is the alternatives system. Couple of days ago i was playing with java. and I wanted both the Sun java and the Kaffe version installed on my system. The problem here is, how to easily tell wich java compiler to use, the sun version or kaffe? I’m a big fan of the ruby language and i regularly switch between version of the ruby interpeter for testing. You could achieve this in a couple of ways, change the shebang to point to the correct version of the interpeter or don’t use the shebang but instead call the correct interpeter before executing each script or maybe you change the PATH and have the preferred interpeter somewhere in the beginning of your PATH. I don’t really like any of these solutions for various reasons, there is a solution and you might have guessed it “the alternatives system”.

Read the rest of this entry »

dog is better than cat

Auto Date Thursday, August 24th, 2006

System Administrators are always looking for ways to make life easier. The command line is full of nice little features that can save you tons of time. Ever wondered how to remove all blank lines from a file or how to translate all uppercase characters to lowercase. In this article we will be focussing on how to easily parse input or output.

Read the rest of this entry »

less is more

Auto Date Wednesday, August 23rd, 2006

Looking at file content is a trivial task, most people use more or less and take there usage for granted. However there are some nice features that these utilities have to offer. Let’s start looking at some of them.

Read the rest of this entry »