Playing the digital synthesizers:
Redirect PulseAudio/PipeWire over TCP/IP network
8. Oktober 2023 in Administration, GNU/Linux, Multimedia, Technik.
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
29. September 2023 in Administration, GNU/Linux, Programmierung, Technik.
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-show-project url="https://tk-sls.de/git" project_owner=tk-sls.de project_repo=linuxfoo-gitea max=3 releases=latest]
Gitea project linuxfoo-giteaLast 3 commits: by root: 35962433 correct json pat to commit message by root: fccb7dd5 correct message formatting by root: 19f52bfb correct class namesLatest release: v1.0.0
PiKVM on an OrangePi Zero 2
3. November 2023 in Administration, GNU/Linux, Technik.
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 V4Plus uses a Raspberry Pi Compute Module with 2 GB RAM, but mine is still smaller. 🙂
Print all indented Lines following a non-indented Line
29. April 2024 in GNU/Linux, Programmierung.
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 input above, the scripts should
- determine the line that matches foo and
- print the following two lines, but no other lines.
Also, the indentation of the printed lines should be removed.
Urlaubsbilder aus der Ostschweiz
19. August 2023 in Sonstiges.
Ein paar Fotos aus der Ostschweiz, Kantone St. Gallen und Appenzell Innerrhoden:
Maintaining Multi-Line „stat“ Formats using Bourne Again Shell
7. November 2024 in GNU/Linux, Programmierung.
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 becomes more complex, the command line soon becomes unwieldy, such as:
stat --printf 'Name: %n\nOwner ID: %u\nSize: %s Bytes\nLast accessed: %x\n' /etc/passwd