Monitor APC smart-UPS with apcupsd

apcupsd is a daemon which will monitor your APC SmartUPS to shutdown your system when the UPS’ power is going to fail. apcupsd will work with most of APC’s Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office. install the daemon: [codesyntax lang=”bash”] apt-get install apcupsd [/codesyntax] edit /etc/apcupsd/apcupsd.conf and change these … Continue reading Monitor APC smart-UPS with apcupsd

Debian: How to determine services are enabled at boot

If you are using CentOS the answer is pretty simple: [codesyntax lang=”bash”] chkconfig –list | grep $(runlevel | awk ‘{ print $2}’):on [/codesyntax] But how about Debian Linux? How is this done? [codesyntax lang=”bash”] R=$(runlevel | awk ‘{ print $2}’) for s in /etc/rc${R}.d/*; do basename $s | grep ‘^S’ | sed ‘s/S[0-9].//g’ ;done [/codesyntax] … Continue reading Debian: How to determine services are enabled at boot

Paravirtulization with Citrix XenServer 5.5 and Ubuntu 9.10

Few days ago I had a task to P2V an old Ubuntu 9.10 machine. The P2V process was very easy and went smooth. The challenge was how to get this VM paravirtualized. After reading on the net how others have done this and what problems they had, I managed to finish my task pretty quick. … Continue reading Paravirtulization with Citrix XenServer 5.5 and Ubuntu 9.10

Setting up a L2TP over IPSec VPN on Debian on 10 steps

This document describes the required steps to make a fully functional L2TP/IPSEC PSK VPN PSK (with pre-shared keys) on debian squeeze. L2TP/IPSec is an advanced protocol formally standardized in IETF RFC 3193 and now the recommended replacement for PPTP where secure data encryption is required. The L2TP payload is encrypted using the standardized IPSec protocol. … Continue reading Setting up a L2TP over IPSec VPN on Debian on 10 steps

How to fix the error: “Not replacing deleted config file…”

Let’s assume that when you are trying to install apticron the default config file is not created and when you are trying to execute postinst configure the following error message occurs: Not replacing deleted config file /etc/apticron/apticron.conf The fix is: [codesyntax lang=”bash”] aptitude -o DPkg::Options=”–force-confmiss” reinstall apticron [/codesyntax]