Alert via SMS on power failure and hibernate the system

urgent-letter

When using a system to host your important (or critical) operations, being able to get informed of issues while you’re away is a very handy function. Email is good for notifications, but it isn’t always fast enough (and constant checks drain battery power).

SMS on the other hand, is an almost instant alert method and although length-limited, should do the job just fine for those very important, must have alerts. For this setup you will need… Continue reading

Quickly limiting access to php scripts using .htaccess

lock-htaccess

Sometimes one needs to quickly block access to offending scripts – like for instance when a site has been hacked and malicious files have been uploaded to the account and are used to send out spam emails.

Apache provides a simple way to block out files from being accessible to visitors. And as most intrusions involve directly access hacked php files, the bit below will do wonders at blocking out those direct calls while leaving the main site fully functional (sort of). Continue reading

Running VirtualBox headless via web interface on CentOS

virtual-machine-icon

VMware Server for Linux was great back in the day. Unfortunately it was discontinued and I’ve been searching for a headless VM manager for running and remotely managing virtual machines on Linux ever since.

VirtualBox seems the best solution for the task so far, as it is capable of running headless on Linux and has and (unofficial but great) web interface to manage it. Continue reading

SpamAssassin fails to start on CentOS 5.10

Centos-Logo

If you’re still running a CentOS 5.10 machine, you may notice that after recent updates SpamAssassin no longer works on your system. Trying to start it manually will get you a puzzling error:

Starting spamd: child process [12345] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/spamd line 2588.

Manually running sa-update also triggers an error (albeit more detailed)… Continue reading

Split multi-contact .vcf address book into individual .vcf’s

VCard

Moving contacts from one phone to another is a tricky business. And when the manufacturers of the said two phones are different, this process quickly turns into a pain in the b**t.

It’s a known fact that Android (and, weirdly, older Sony-Ericsson) phones export their contacts as a single multi-contact vcf file. And it’s also a know (and hated) fact that Nokia’s (otherwise great) Suite program can only import single-contact vCards. Continue reading