Git for Linux System Engineering

Now that git has become the standard version control software, which is used by software developers. Now for system engineering and system administration purposes it used to be an approach to just login and do something and remember it or even note it somewhere. Some people tried to just use RCS or SCCS on the …

Share Button

Starting processes while booting (Linux)

When a Linux system is booted, we want certain processes to run immediately. In the old days, that is 25 years ago or so, this was done in „BSD-style“ by having certain magical shell scripts that start everything in the right order. When adding another service, this just had to be added to the shell …

Share Button

Ansible

We are talking about system administration and system engineering for Linux. Most of this also works more or less the same on Unix, but this is today much less relevant. It is even possible to do some of these things on MS-Windows, but that is another story… So just assume for the time being OS=Linux. …

Share Button

How to disable touchpad (on Linux/X11)

For me it is much better to use an external mouse than the touchpad, which I sometimes touch accidentally. So, here is how to disable it with a short Perl-Script. A bash script with a bit of Perl would do the same, btw. #!/usr/bin/perl my $tp = `xinput list | egrep -i touch`; chomp $tp; …

Share Button

How to rename files according to a pattern

We often encounter situations, where a large number of files should be copied or renamed or moved or something like that. This can be done on the Linux command line, but it should be possible in almost the same way on the Unix/Linux/Cygwin-command line of newer MS-Windows or MacOS-X. Now people routinely do that and …

Share Button

Unicode and C

It is a common practice in C to use arrays of char as strings. The 0 is used as end marker. The whole thing was created like that in the 1970s and at that time it was kind of cool to get away with one less language feature and to express it in terms of …

Share Button

Tips and Tricks: Typing Unicode

I found this on netzwolf.info: You can enter arbitrary Unicode characters (more precisely code points) in X11 on Linux, if you know their Hex-Code: Press Shift-Ctrl (keep them pressed) Press also the letter u Release the Ctrl-Key Release the u-key Keep the Shift-key pressed Enter the Hex-Code of the Code point with the number of …

Share Button

Tip: how to make Thunderbird use ISO Date Format

After an upgrade, my Thnderbird started to use a weird US-date format and forgot my setting for this. I did not find any setting either. But this seems to work fine: Create a shell script #!/bin/bash export LC_TIME=sv_SE.utf8 export LC_DATE=sv_SE.utf8 exec /usr/bin/thunderbird and make sure that this gets called when thunderbird is started instead of …

Share Button

Logging

Deutsch Software often contains a logging functionality. Usually entries one or sometimes multiple lines are appended to a file, written to syslog or to stdout, from where they are redirected into a file. They are telling us something about what the software is doing. Usually we can ignore all of it, but as soon as …

Share Button

LF and CR LF in git and svn

Typically we observe that line endings of text file turn out to be „linefeed“ (LF or „\n“ or 0x0a or Ctrl-J) on Linux and Unix-like systems (including MacOSX), while they are „carriage return and linefeed“ (CR LF or „\r\n“ or 0x0d 0x0a or Ctrl-M Ctrl-J) on MS-Windows. See the little obstacles of interoperability. This can …

Share Button