monit: error connecting to the monit daemon

We’re rolling out monit on our new platform at the request of a vendor to manage their new service. I’ve always been dead against these kinds of automated failure recovery tools as they often require human intervention after the fact anyway and all the platforms I’ve managed will have failed the server anyway so why […]

Experiments In Bitcoin

Earlier today I got in to discussing Bitcoin Arbitrage with a mate of mine, with the cunning plan of creating a bot to monitor different exchanges and profit on the difference in trading prices. After an analysis this was deemed a silly idea, or conversely we aren’t good enough, as moving real money or bitcoins […]

10 Most Used Linux Commands

Whilst skimming my Bash history today looking for an esoteric one liner I’d written earlier I started to ponder what my most used commands were, it’s easy enough to find out! This is actually output from my Mac, not a Linux box, I tricked you 😀 Chill:~ rus$ history | awk {‘print $2’} | sort […]

Syntax Highlighting In VIm

Syntax highlighting in vim can be super tricky, by default a lot of desktop environments seem to have white terminals, which is a bit dumb as it’s easier to read white on black than black on white, as such the default vim syntax highlighting is often unreadable if you have a black terminal, giving blue […]

Installing OpenSIPS on Redhat Enterprise Linux 5

We’ve got to set up a SIP Registrar for a fantastic new project that one of our clients recently announced 😉 on RHEL5 so we’re going to trial OpenSIPS, backed with MySQL to see how it performs. There’s a RHEL5 repository mirror here https://centos.leurent.eu/ that I’ve mirrored locally. If you don’t know how to create […]

Iptables Block Outgoing Traffic

We need to give one of our customers to an internal server, for this we’ve enabled remote SSH access. Even though we trust them we don’t want anyone to use the server as a launchpad to attack other remote servers, or a launch pad to attack internal servers for that matter, in case their account […]

BackupPC ping too slow

Whilst adding a new remote server to our BackupPC configuration, it threw the following error Contents of file /Volumes/2TB/backuppc/pc/www.server.co.uk/LOG.102011, modified 2011-10-25 13:10:23 2011-10-25 12:00:00 ping too slow: 22.21msec 2011-10-25 13:00:01 ping too slow: 49.63msec 2011-10-25 13:10:23 ping too slow: 47.79msec and refusing to back up the server! After browsing the documentation I discovered the following […]

Linux Command Line AVI Repair

Recently I had an avi file with a broken index that needed to be repaired. After a quick search and read of some man pages I discovered these handy flags for mencoder to get the job done! mencoder -idx homemovie.avi -ovc copy -oac copy -o homemovie-repaired.avi bamo!

List Contents Of An RPM Package

Often when building RedHat RPM packages I want to make sure that the package built correctly and all the files are present before I actually install the RPM, but I do keep forgetting the command to do this, so here it is for prosperity! rpm -qlp e.g. root@build:/usr/src/redhat/SPECS# rpm -qlp ../RPMS/noarch/servicemap-0.16-1.noarch.rpm /var/www/html/servicemap /var/www/html/servicemap/amq.png /var/www/html/servicemap/amqfail.png /var/www/html/servicemap/amqreportingprov1prov1.png […]