a linux sysadmin code collection

Schloss Rheinsberg

the picture was taken during a short downtime at Rheinsberg Palace - german: Schloss Rheinsberg - round about 100km away from Berlin.

Schloss Rheinsberg

Get Debian Version

the last fifteen years i always used

uname -a


cat /etc/issue

to find out which Debian version i actually use.

Today i found that really cool hint

user1@de-backup01:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux testing (jessie)
Release:	testing
Codename:	jessie

It’s a Bullitt!

Since a few weeks i hear always the same sentences.

Hey, cool, what is the name of this … ehm … bike?

Hey, i know it, it came from the netherlands, right?

My answer is always the same, underlined with a big smile:

It’s a Bullitt! From Denmark.


Small Screen Productivity

Really great post about working with a small screen resolution and organizing your daily business. Where can i get an 11” MacBook? Instant! ;-)


Debian :: Upgrade Only Security Packages

There are several methods to upgrade only security updates on a debian based system, but this one is my favorite.

First i duplicate the sources.list and remove all entries but the lines with the security repositories

sudo cp /etc/apt/sources.list /etc/apt/security.sources.list

Second i ran these easy to remember command

sudo apt-get upgrade -o Dir::Etc::SourceList=/etc/apt/security.sources.list

Thats it. ;)

VLAN With Debian

in our company infrastructure we use several defined VLAN to separate network segments.
For example we don’t want to communicate our backup over the normal line.

The following describes - in an ultra short form - the way to realize this topic.

As a reminder, under Debian you configure your network settings under /etc/network/interfaces.

regular network settings

auto eth0
iface eth0 inet static
address 172.27.x.y
network 172.27.x.0
broadcast 172.27.x.255
gateway 172.27.x.254

dns-search DOMAIN

You have to fit it to your environment.

Linux System Architecture

based on my post few days ago i asked myself how to determine which architecture is running on my server.

In a Debian based system you can use the command


On a system running any other distribution like Fedora or SuSE one possible choice is to use the internal build-in command file.

mst@de-backup01:~# file /bin/bash
/bin/bash: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs),
for GNU/Linux 2.6.26, BuildID[sha1]=bc23cc26ae4d13cfd449ffb7c54224436976ca67, stripped

It print out a detailed information about the system architecture, which was used to build the terminal, in this case the bash.