Archive for the ‘Shell Script’ Category

qmail queue size

Sunday, May 21st, 2006

qmail is one of the most popular MTA’s in the world. I am addicted to it since I found lifewithqmail.org, an step-by-step guide on installing qmail.

There are some tools that let you work with qmail’s queue (qmail-qread, qmHandle, etc.), but none of them gives you an idea of the amount of data queued for sending. This is an issue when you have your own server in your home network because the overall perfomance of your Internet connection will be affected by the traffic waiting to be sent in the MTA’s queue.

(more…)

mge ellipse 1200 ups. nut how-to

Tuesday, November 22nd, 2005

Finally I have bought an UPS. Its the MGE Pulsar Ellipse 1200. I have chosen MGE because of their support to the open source community (mge opensource). You can connect up to four standard computers to this UPS, it’s perfect for my home network.

MGE Ellipse UPS

What I want to do is to be able to shut down my computers when de charge of the UPS is below a certain level. So I have spent some time this afternoon configuring nut (network UPS tools).
(more…)

xmms song in mail’s signature

Saturday, November 12th, 2005

We need three files for this:

  • signature.txt: you should point your mail client to this one
  • signature.tpl: here is the common text to display, something like “xmms is now playing:
  • signature.sh: the script first copies the contents of the template file to the final signature file, and then adds the current song as a new line.

(more…)

xfce desktop background auto change

Monday, September 19th, 2005

First of all check Xfce 4 Desktop Manager help. Click on the New list… button and create a list with all the backgrounds you want to rotate.

From this page:

To refresh the backdrop with a new random image from the list just run the xfdesktop command again, e.g. from a terminal or the run dialog, or xfdesktop [-reload].

What we have to do now is to create a shell script that runs xfdesktop -reload and to add a cron job to run it.
(more…)