Serial port programming under Linux: when legacy comes back to haunt you

Programming serial ports on Linux (and other POSIX-compatible systems) can be tricky, because a lot of legacy is involved here. As a general resource, Michael R. Sweet's Serial Programming Guide for POSIX Operating Systems is an invaluable resource. What I found out the hard way is that one actually needs to carefully look at all available flags, otherwise legacy settings can come back to haunt you.

Redundant ethernet configuration with bonding and VLANs

Network hardaware failures often cause unnecessary downtimes of important services. This article describes a configuration that provides servers with redundancy, so that if a single switch, network cable or network adapter fails, the server remains reachable.

Manual decryption of drives via SSH on headless systemd machines

This article describes how to setup a headless machine that contains encrypted partitions where the administrator can log in via SSH after boot, enter the decryption password and then continue to start the remaining services. It assumes Debian Jessie and systemd as the init system.

Jessie LXCs under Wheezy hosts

As a followup to the article about running Jessie LXCs without CAP_SYS_ADMIN, this article describes how to run Jessie LXCs under Wheezy.

LXC containers without CAP_SYS_ADMIN under Debian Jessie

Containers can be an alternative to virtualization in some cases. They require less resources (because the host's resources are reused) and are typically faster than virtual machines. Also, some things cannot be done as easily with virtualization. However, they do not provide the same security guarantees.

Bind mounts with options in /etc/fstab vs. systemd

A solution for using bind mounts with options (such as read-only) in /etc/fstab on systemd systems is presented. By installing an additional systemd generator, bind-mounts in /etc/fstab will now respect additional options specified there. This is fully dynamic and the only configuration happens in /etc/fstab.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer