linux

Let's Make DNS Outage Suck Less

2 minute read

Unfortunately the Linux DNS resolver has no direct support for detecting and doing failovers for DNS servers. It keeps feeding requests to your primary resol...

Too Many Authentication Failures for Root

1 minute read

I recently had an annoying encounter with the error message: Too many authentication failures for root. I found out this can be caused because you've hoarded...

Login Automatically With SSH Keys

2 minute read

With SSH you can securely login to any Linux server and execute commands remotely. You can even use SSH to transfer and synchronize files from one server to ...

Synchronize Files With rsync

3 minute read

Synchronizing files from one server to another is quite awesome. You can use it for backups, for keeping web servers in sync, and much more. It's fast and it...

Delete Files Securely With Shred

1 minute read

Deleting a file or reformatting a disk does not destroy your sensitive data. The data can easily be undeleted. That's a good thing if you accidentally throw ...

Survive Heavy Traffic With Your Webserver

7 minute read

Recently two of my articles reached the Digg frontpage at the same day. My web server isn't state of the art and it had to handle gigantic amounts of traffic...

Make ISO Images on Linux

1 minute read

CDs and DVDs don't have the eternal life, so you might want to back them up as ISO images. All the files and properties of the original disc, stored in a sin...

Schedule Tasks on Linux Using Crontab

4 minute read

If you've got a website that's heavy on your web server, you might want to run some processes like generating thumbnails or enriching data in the background....

Block Brute Force Attacks With Iptables

5 minute read

Since 2005 there has been an immense increase in brute force SSH attacks and though Linux is pretty secure by default, it does not stop evil programs from in...

Create Turbocharged Storage Using tmpfs

3 minute read

Everyone knows that RAM is so much faster than a hard disk. To illustrate, while a current SATA disk has peak transfer rates of 375 MB/s, current RAM can do ...

Change the Default Editor

less than 1 minute read

Ever wanted to change the crontab of a server, but got an editor on screen that you're totally unfamiliar with? There are a lot of causes for this annoyance,...

Cat a File, Without the Comments

1 minute read

I recently had to install a couple of squid servers to act as reverse proxies for a webcluster. You can teach the squid server to stand in between in the end...