Articles in Category "Technology"

Getting Alerted on Expiring GPG Keys

GnuPG is a powerful cryptographic tool that enjoys widespread support by F/LOSS mail user agents. However, due to a lack of conventional public key management it is plagued by key-related issues. One such issue is the expiry of GnuPG keys, which often goes unnoticed by affected messaging partners until such time when it actually disturbs […]

Redirect PulseAudio/PipeWire over TCP/IP network

If you have two Linux hosts, host1 and host2, both running PulseAudio (or Pipewire with PulseAudio backwards compatibility) and you want host2 to use the speakers on host1, then you can use a PulseAudio TCP server on host1 and a “tunnel sink” on host2 to do that.

WordPress Plugin to embed Gitea Repositories

I ported the WordPress plugin providing shortcodes for embedding Gitlab projects into posts and pages to a Gitea version. Below is a usage example, displaying the latest 3 commits and the latest release (if any) from repository “linuxfoo-gitea” on my Gitea instance: Gitea project linuxfoo-giteaLast 3 commits in branch “main”:2025-07-27 by tilt12345678: 8722d100 use v1 […]

PiKVM on an OrangePi Zero 2

The OrangePi Zero 2 H616/1GByte is capable of running PiKVM. I find this an interesting development, because if i only want the KVM functionality, a full-blown Raspberry Pi 4 with all its CPU resources, multiple Gigabytes of RAM and peripheral devices seems somewhat of an overkill. I am aware that the latest official PiKVM, the […]

Print all indented Lines following a non-indented Line

Some configuration and output text formats contain sections like the following: foo: value1 value2 bar: value 3 In this article, two scripts are presented that print all consecutive indented lines that follow a non-indented line that matches a search pattern given by a regular expression. This means, given the single argument foo and the standard […]

Maintaining Multi-Line “stat” Formats using Bourne Again Shell

The stat command from GNU core utilities features not only a –format FORMAT option but also a –printf FORMAT one, the difference being that the latter allows for backslash escapes such as \n. This allows for custom per-file report formats containing newlines, for example: stat –printf ‘Name: %n\nSize: %s Bytes\n’ /etc/passwd If the format string […]

Make a Bourne Again Shell Script Log its Output to a File

The Bourne Again Shell script presented in this article demonstrates techniques related to capturing and logging output (standard output and standard error stream) of a script into a log file while also delivering it to the regular output destinations (for example the terminal or whatever the caller has chosen to redirect to). If you are […]

Using sed or awk to ensure a specific last Line in a Text

Given a file containing bytes of text with lines separated by the newline character (\n), one of these lines can be said to be “the last line of the file”; it is a sequence of bytes occurring in the file, for which holds: The sequence contains no newline character, and the sequence is followed by […]