Today two of my servers went down. It turned out, that the datacenter they are hosted in had a slight connectivity hiccup – nothing serious. While I was battling my monitoring system and frantically typed support tickets, I wanted an audible alert if the hosts where reachable again in the meantime.

That’s when I thought of OS X’s text to speech system and devised the following little shell script.

https://gist.github.com/florianbeer/8c1e0a56bc306d603987

It will announce that the host is back up with your configured standard voice as soon as there is a ping response and then quit. Just copy it in your .bashrc file call it with the desired hostname or IP address, leave it running in a Terminal window in the background and turn up your speakers.

hostup no-panic.at

One of my most used means of monitoring what’s going on at a remote Linux server, is looking at the log lines that each daemon or client program writes to the disk. Using this technique you can see a real time view about what is happening and find out if there are any outstanding errors or optimizations in your configuration. I am going to show how I tackle this task and what tricks I use to make tons of lines of dull text more readable.

Continue reading

Recently I’ve had to re-engineer my whole backup strategy because of a looming hardware issue on my old backup server. Since I am operating servers at Hetzner, I purchased some backup space there and based my new system around their available system. The new strategy consists of several key components:

  • Mounting a remote directory via sshfs
  • Ensuring the remote mountpoint is always available using autofs
  • Creating a loopback filesystem on the remote storage
  • Incremental rsync snapshots using my Hactar backup script

Continue reading

  • Google released an Apache module that auto tunes performance
    Google has announced that they are launching a module for the Apache HTTP server called mod_pagespeed, that will automatically tune several properties to optimize page load speed. I haven’t tried it out yet, but will definitely do so.
    Amongst other things, mod_pagespeed will:

    • recompress images
    • modify cache lifetime for static elements
    • make changes to pages built by CMS

    I don’t know if I’ll see a great performance on this server, as I already took care of a lot of speed improvements myself, but this module is a great way to implement common best-practices without having to dig into Apache’s configuration too much.
    Read more and download the module on the Page Speed Google Code website.

  • Facebook Mobile Announcements
    Just a short summary of what Facebook announced yesterday, there’s already tons of coverage out there:

    • Facebook for iPhone updated (as I hoped in my tweet just minutes before the event started).
    • Facebook for Android updated.
    • Single Sign-On for mobile platforms.
      So you don’t have to deal with entering your password in every app that uses Facebook connect.
    • Facebook Places API Update. Full read and write access for third parties.
    • Deals. This sounds kind of like Groupon mixed with Foursquare.
      Could be very interesting, once it reaches the critical mass of user adoption.
    • No dedicated iPad App in the near future.
      Although I’ve read about speculations of a HTML5 based website/app that could offer the same experience on multiple tablet based platforms.

On Mai the 30th & 31st the Austrian “Linuxwochen” will again hit my former university in Eisenstadt.
Look ahead for some very interesting talks by several highly skilled people.

One event I’d especially like to draw your attention to is Oliver’s pice about “Linux Server Experience with VServer” on Fr. the 30th. at 17:15 hours.

I’d be happy (and I’m sure, Olli even more) to see a lot of people attending this great event, listening to the talks held there and discuss open source solutions with us 🙂