<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>feldspaten</title>
        <link>https://feldspaten.org/</link>
        <description>Recent content on feldspaten</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Thu, 27 Aug 2026 19:40:01 +0200</lastBuildDate><atom:link href="https://feldspaten.org/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Fairphone 4 repair</title>
            <link>https://feldspaten.org/2026/08/27/Fairphone-4-repair/</link>
            <pubDate>Thu, 27 Aug 2026 19:40:01 +0200</pubDate>
            <guid>https://feldspaten.org/2026/08/27/Fairphone-4-repair/</guid>
            <description>&lt;img src=&#34;https://feldspaten.org/2026/08/27/Fairphone-4-repair/fairphone.jpg&#34; alt=&#34;Featured image of post Fairphone 4 repair&#34; /&gt;&lt;p&gt;I just successfully repaired my Fairphone 4 for about 15 Euros. The USB-C connector was a bit wobbly since some time already, and recently I could not connect the phone to my Laptop anymore.&lt;/p&gt;&#xA;&lt;p&gt;After getting frustrated that none of my cables would work, and for some reason Bluetooth file sending also didn&amp;rsquo;t work, I finally admitted defeat and ordered the spare part. Fairphone&amp;rsquo;s philosophy is &amp;ldquo;you own the phone and you&amp;rsquo;ll get also spare parts&amp;rdquo;, and indeed, they still sell a &lt;a class=&#34;link&#34; href=&#34;https://www.fairphone.com/nl/shop/fairphone-4-usb-c-port-25?page=%23&amp;amp;category=4&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;spare USB-C port part for the Fairphone 4 for €14.95&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The delivery was fast (2 days) and the replacement took me about 15 minutes, using their &lt;a class=&#34;link&#34; href=&#34;https://support.fairphone.com/hc/en-us/articles/4406223046545-Fairphone-4-Replace-a-spare-part&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;support website&lt;/a&gt; and the provided &lt;a class=&#34;link&#34; href=&#34;https://www.youtube.com/watch?v=HfrVhLFeeY8&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Youtube video instructions&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m more than happy, the USB connector feels good again, the data connection works like charm and I have this feel-good feeling whenever you fix something you own.&lt;/p&gt;&#xA;&lt;p&gt;Good for your pocket, good for your morale, good for the planet.&lt;/p&gt;&#xA;&lt;p&gt;Fairphone is truly Solarpunk and we can have nice things :-)&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Restricting Secure Boot to openSUSE keys only</title>
            <link>https://feldspaten.org/2026/08/04/Secure-Boot-openSUSE-keys/</link>
            <pubDate>Tue, 04 Aug 2026 21:33:57 +0200</pubDate>
            <guid>https://feldspaten.org/2026/08/04/Secure-Boot-openSUSE-keys/</guid>
            <description>&lt;p&gt;&lt;em&gt;This procedure might brick your device. Proceed with caution, you have been warned.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;EDIT: This procedure has been updated on &lt;code&gt;2026-08-11&lt;/code&gt; given the helpful feedback of helpful people which was helpful.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you are confused by the whole key nomenclature in UEFI, go and see &lt;a class=&#34;link&#34; href=&#34;https://blog.hansenpartnership.com/the-meaning-of-all-the-uefi-keys/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;this excellent blog post&lt;/a&gt; for a summary of the different UEFI key types. In this guide we need three key types: The Platform Key (PK), the Key Exchange Key (KEK) and the Signature Database (db). Familiarize yourself with those before proceeding.&lt;/p&gt;&#xA;&lt;p&gt;I write this blog post as a draft/guide for some people to check and verify before putting this into a more official place. Please check before you type, make sure you understand what&amp;rsquo;s going on here. If you feel uneasy modifying a system on a UEFI level, then this guide is certainly not for you.&lt;/p&gt;&#xA;&lt;p&gt;I tested this on my Dell Latitude laptop and in a kvm-based virtual machine.&lt;/p&gt;&#xA;&lt;p&gt;Caveats set in place, let&amp;rsquo;s get onto it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;secure-boot-with-opensuse-keys-only&#34;&gt;Secure boot with openSUSE keys only&#xA;&lt;/h2&gt;&lt;p&gt;In this guide we&amp;rsquo;ll be setting up a openSUSE Tumbleweed installation to only boot binaries that are signed with the provided openSUSE key. This means that you can then only boot openSUSE Linux. Not even Fedora or Debian will be accepted. Because if we already have secure boot &amp;hellip; why not use it properly?&lt;/p&gt;&#xA;&lt;p&gt;In this guide we&amp;rsquo;ll be using the &lt;code&gt;sbctl&lt;/code&gt; utility, which is part of the default Tumbleweed repositories.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# zypper in sbctl&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol&gt;&#xA;&lt;li&gt;Put the UEFI Firmware into &amp;ldquo;Custom mode&amp;rdquo; in Secure boot and erase all keys. In the VM it looks like the following:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Secure Boot Configuration in the OVMF Firmware&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;336px&#34; data-flex-grow=&#34;140&#34; height=&#34;456&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2026/08/04/Secure-Boot-openSUSE-keys/UEFI-SB-Custom-Mode.png&#34; width=&#34;640&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This should disable secure boot and put the system into setup mode. Reboot the system and check the status:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# sbctl status&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Installed:&#x9;✗ sbctl is not installed&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Setup Mode:&#x9;✗ Enabled&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Secure Boot:&#x9;✗ Disabled&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Vendor Keys:&#x9;microsoft&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Create keys&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;We need to create our own Platform Key (which is awesome!). This is the master key that allows modifications of the other key types.&#xA;The Platform Key itself cannot sign a boot binary.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# sbctl create-keys&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will create the key hierarchy/structure in &lt;code&gt;/var/lib/sbctl/keys&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Ensure you have backups of those keys!!!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Obtain SUSE/openSUSE keys&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;3.1 Get SUSE keys (Needed for SLES, not needed for openSUSE)&lt;/p&gt;&#xA;&lt;p&gt;We need two SUSE Keys from &lt;a class=&#34;link&#34; href=&#34;https://www.suse.com/support/security/keys/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.suse.com/support/security/keys/&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The SUSE Secure Boot Signing Certificate Authority certificate (SB CA) to be enrolled in the KEK (to allow enrollment of future keys)&lt;/li&gt;&#xA;&lt;li&gt;The actual SUSE Secure Boot Signing Key to be enrolled in the &lt;code&gt;db&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;3.2 Get the openSUSE keys (needed for openSUSE (duh!) not needed for SLES)&lt;/p&gt;&#xA;&lt;p&gt;Get the key from the &lt;code&gt;shim&lt;/code&gt; package of from &lt;a class=&#34;link&#34; href=&#34;build.opensuse.org/package/show/openSUSE:Factory/shim&#34; &gt;Factory&lt;/a&gt;. When &lt;code&gt;shim&lt;/code&gt; is installed,&#xA;you typically find the key in &lt;code&gt;/etc/uefi/certs/&lt;/code&gt;, e.g. here:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/etc/uefi/certs/4659838C-shim-opensuse.crt&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For openSUSE this key is used for &lt;code&gt;db&lt;/code&gt; and for &lt;code&gt;kek&lt;/code&gt;. You will need to use this key for both, using it only for &lt;code&gt;kek&lt;/code&gt; means you can&amp;rsquo;t boot&#xA;and using it only for &lt;code&gt;db&lt;/code&gt; means you cannot update.&lt;/p&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;Configure &lt;code&gt;sbctl&lt;/code&gt; to use the provided keys for &lt;code&gt;db&lt;/code&gt; and &lt;code&gt;kek&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;Goal: Putting the keys (in &lt;code&gt;der&lt;/code&gt; format) into the &lt;code&gt;/var/lib/sbctl/keys/custom/{db,kek}&lt;/code&gt;.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;We first need to create the &lt;code&gt;custom&lt;/code&gt; directories:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir -p /var/lib/sbctl/keys/custom/&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;db,kek&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;chmod &lt;span class=&#34;m&#34;&gt;0700&lt;/span&gt; /var/lib/sbctl/keys/custom/&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;db,kek&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To convert a &lt;code&gt;crt&lt;/code&gt; file to &lt;code&gt;der&lt;/code&gt; using &lt;code&gt;openssl&lt;/code&gt; do the following:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;openssl x509 -in FILE.crt -outform DER -out OUT.der&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Convert the obtains keys from step 3 to &lt;code&gt;der&lt;/code&gt; (see command above) and place the CA key in &lt;code&gt;/var/lib/sbctl/keys/custom/kek&lt;/code&gt;&#xA;and the Secure Boot Signing Key to &lt;code&gt;/var/lib/sbctl/keys/custom/db&lt;/code&gt;. For openSUSE it&amp;rsquo;s the same key in both locations.&lt;/p&gt;&#xA;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;Enroll keys&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;To only enroll your own keys use the following command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# sbctl enroll-keys --custom&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;sbctl&lt;/code&gt; might complain about immutable files but gives you instructions on how to resolve it:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# sbctl enroll-keys --custom&#xA;‼ File is immutable: /sys/firmware/efi/efivars/KEK-8be4df61-93ca-11d2-aa0d-00e098032b8c&#xA;‼ File is immutable: /sys/firmware/efi/efivars/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f&#xA;You need to chattr -i files in efivarfs&#xA;&#xA;# chattr -i /sys/firmware/efi/efivars/KEK-8be4df61-93ca-11d2-aa0d-00e098032b8c&#xA;# chattr -i /sys/firmware/efi/efivars/db-d719b2cb-3d3a-4596-a3bc-dad00e67656f&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Warning: this does not include the Microsoft keys, which might be needed to load some additional drivers (e.g. 3rd party graphics card drivers). Use &lt;code&gt;--microsoft&lt;/code&gt; to also include them, but that also means that everything signed with that key will be able to boot:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# sbctl enroll-keys --microsoft --custom&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Without the Microsoft keys, you might encounter this message:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# sbctl enroll-keys --custom&#xA;Found OptionROM in the bootchain. This means we should not enroll keys into UEFI without some precautions.&#xA;&#xA;There are three flags that can be used:&#xA;    --microsoft: Enroll the Microsoft OEM certificates into the signature database.&#xA;    --tpm-eventlog: Enroll OpRom checksums into the signature database (experimental!).&#xA;    --yes-this-might-brick-my-machine: Ignore this warning and continue regardless.&#xA;&#xA;Please read the FAQ for more information: https://github.com/Foxboron/sbctl/wiki/FAQ#option-rom&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This means there are components in your boot chain that might require additional keys. You have&#xA;essentially two options:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Use the Microsoft OEM certificate&lt;/li&gt;&#xA;&lt;li&gt;Try to enroll the OpRom checksums as well to allow booting those components (&lt;code&gt;--tpm-eventlog&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The &lt;code&gt;--tpm-eventlog&lt;/code&gt; option is needed if you play around in a VM. It might also be needed on&#xA;certain other hardware. Read &lt;a class=&#34;link&#34; href=&#34;https://github.com/Foxboron/sbctl/wiki/FAQ#option-rom&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/Foxboron/sbctl/wiki/FAQ#option-rom&lt;/a&gt; as the status&#xA;might has changed between writing this guide and you reading it.&#xA;And at this point it&amp;rsquo;s also safe to assume that &lt;code&gt;--yes-this-might-brick-my-machine&lt;/code&gt; will indeed brick your device, so&#xA;that&amp;rsquo;s not really an option IMHO.&lt;/p&gt;&#xA;&lt;p&gt;On the Dell test laptop this was not necessary, in the test VM using &lt;code&gt;--tpm-eventlog&lt;/code&gt; worked fine. But you do you.&lt;/p&gt;&#xA;&lt;ol start=&#34;6&#34;&gt;&#xA;&lt;li&gt;Reboot and verify&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Now &lt;code&gt;reboot&lt;/code&gt; and check if secure boot is enabled with your own keys:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# sbctl status&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Installed:&#x9;✓ sbctl is installed&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Owner GUID:&#x9;ad058ef7-3165-4726-bc63-97527fdfe8be&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Setup Mode:&#x9;✓ Disabled&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Secure Boot:&#x9;✓ Enabled&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Vendor Keys:&#x9;tpm-eventlog custom&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Test if your setup is only accepting the openSUSE keys e.g. by trying to boot a Fedora iso (or Ubuntu or something similar).&#xA;That should not be possible anymore because the boot process will only accept the SUSE/openSUSE keys from here onwards. Nice!&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>How to safely dispose a Yubikey</title>
            <link>https://feldspaten.org/2026/03/12/Dispose-Yubikey/</link>
            <pubDate>Thu, 12 Mar 2026 20:31:59 +0100</pubDate>
            <guid>https://feldspaten.org/2026/03/12/Dispose-Yubikey/</guid>
            <description>&lt;p&gt;Assuming one has an old Yubikey, that needs to be disposed. The Yubikey contained some sensitive key material and you want to be sure nobody every could access it.&#xA;For the record: Modern Yubikeys have a factory reset function, but we&amp;rsquo;re not in here for the easy way. We want to do it properly. By using an adequate amount of violence.&lt;/p&gt;&#xA;&lt;h2 id=&#34;stage-1-using-violence&#34;&gt;Stage 1: Using violence&#xA;&lt;/h2&gt;&lt;p&gt;Okay, long story short: use a drill and drill holes everywhere.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Yubikey with several drilled holes in it&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;320px&#34; data-flex-grow=&#34;133&#34; height=&#34;990&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Yubikey-Destroyed.jpg&#34; srcset=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Yubikey-Destroyed_hu_f4097b9273e8a2ea.jpg 800w, https://feldspaten.org/2026/03/12/Dispose-Yubikey/Yubikey-Destroyed.jpg 1320w&#34; width=&#34;1320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Mission accomplished. This method is easy and it will destroy the key, if you find the right chip(s).&#xA;If you&amp;rsquo;re lazy as I was here, then don&amp;rsquo;t search for schematics online, but just drill holes until you find something that appears to be a control chip. And then continue to drill until you&amp;rsquo;re sure you hit them all.&lt;/p&gt;&#xA;&lt;p&gt;So, that&amp;rsquo;s exactly what I&amp;rsquo;ve done here. If you look closely, one of the holes hit the main chip:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Jackpot!&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;320px&#34; data-flex-grow=&#34;133&#34; height=&#34;990&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Jackpot.jpg&#34; srcset=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Jackpot_hu_c971eb8b1a9090fe.jpg 800w, https://feldspaten.org/2026/03/12/Dispose-Yubikey/Jackpot.jpg 1320w&#34; width=&#34;1320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Be sure that you hit all the chips and you&amp;rsquo;re good to go. This is a safe method to ensure the chips are destroyed and it&amp;rsquo;s also an enjoyable way to do so. And it gives you peace of mind that the valuable secrets are not getting into wrong hands.&lt;/p&gt;&#xA;&lt;h2 id=&#34;stage-2-being-sure&#34;&gt;Stage 2: Being sure&#xA;&lt;/h2&gt;&lt;p&gt;At this point you can either trust that you hit all the potential chips, check online schematics (if they are available) or &amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;&amp;hellip; use a grinder!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;A grinder&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;320px&#34; data-flex-grow=&#34;133&#34; height=&#34;990&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinder.jpg&#34; srcset=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinder_hu_6da207449e56a22b.jpg 800w, https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinder.jpg 1320w&#34; width=&#34;1320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;A grinder is able to reveal the hidden secrets of a Yubikey. Because those things are build to last. They are sturdy and difficult to damage or destroy.&#xA;I&amp;rsquo;ve considered using a hammer, but I doubt without use of excessive force, it would do the job. Those things are sturdy, resilient and supposed to last.&lt;/p&gt;&#xA;&lt;p&gt;However, a grinder is made to grind sturdy things:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;A bench grinder and a grinded Yubikey&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;320px&#34; data-flex-grow=&#34;133&#34; height=&#34;990&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-1.jpg&#34; srcset=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-1_hu_c49c95775d6e7c58.jpg 800w, https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-1.jpg 1320w&#34; width=&#34;1320&#34;&gt;&#xA;&lt;img alt=&#34;Backside of a grinded Yubikey&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;320px&#34; data-flex-grow=&#34;133&#34; height=&#34;990&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-2.jpg&#34; srcset=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-2_hu_79bb19796531b631.jpg 800w, https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-2.jpg 1320w&#34; width=&#34;1320&#34;&gt;&#xA;&lt;img alt=&#34;Frontside of a grinded Yubikey&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;320px&#34; data-flex-grow=&#34;133&#34; height=&#34;990&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-3.jpg&#34; srcset=&#34;https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-3_hu_39d7760bf8933baf.jpg 800w, https://feldspaten.org/2026/03/12/Dispose-Yubikey/Grinded-3.jpg 1320w&#34; width=&#34;1320&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This allows you to check if you hit all the chips and investigate the secrets of your now disposed Yubikey.&lt;/p&gt;&#xA;&lt;p&gt;And this is how you safely dispose a Yubikey :-)&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Create a Certificate Authority with bare OpenSSL</title>
            <link>https://feldspaten.org/2026/03/07/Create-OpenSSL-CA/</link>
            <pubDate>Sat, 07 Mar 2026 14:06:33 +0100</pubDate>
            <guid>https://feldspaten.org/2026/03/07/Create-OpenSSL-CA/</guid>
            <description>&lt;p&gt;In this post we go through the steps to create your own personal Certificate Authority (CA) from scratch using only &lt;code&gt;openssl&lt;/code&gt;.&lt;br&gt;&#xA;This can be useful for your own homelab or your own server in a local LAN.&#xA;Intentionally the design is simplified and we omit more advanced things like &lt;a class=&#34;link&#34; href=&#34;https://openssl-ca.readthedocs.io/en/latest/create-the-intermediate-pair.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;intermediate certificates&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;We use &lt;code&gt;rsa&lt;/code&gt; because my first experiments with &lt;code&gt;ed25519&lt;/code&gt; failed at the time of writing for reasons I didn&amp;rsquo;t wanted to investigate further.&lt;/p&gt;&#xA;&lt;p&gt;Requirements: &lt;code&gt;openssl&lt;/code&gt;. And that&amp;rsquo;s it!&lt;/p&gt;&#xA;&lt;h2 id=&#34;create-ca-key-and-certificate&#34;&gt;Create CA key and certificate&#xA;&lt;/h2&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;NOTE: &lt;strong&gt;The CA key is your crown jewel and one must protect it as such. Never ever share this key or let it be compromised!&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;We create the CA key and encrypt it with a password for additional security (&lt;code&gt;-aes256&lt;/code&gt;). I always use a key size of 4096 bit for additional security. Nowadays the default rsa key size is 2048 bit, which is also a bit faster when doing the TLS handshake.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# openssl genrsa -aes256 -out CA.key 4096&#xA;# openssl req -x509 -new -nodes -key CA.key -days 1825 -out CA.crt&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The &lt;code&gt;CA.key&lt;/code&gt; is your CA key. This key is the trust of the whole CA and it must be kept secret and protected with uttermost care. Never share this key or let it be compromised, otherwise the whole trust of your CA setup is jeopardized.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;CA.crt&lt;/code&gt; is the certificate, which can be made public and needs to be imported on the clients such that they can verify signed certificates.&#xA;This certificate needs to be installed on clients and allows them to validate, if a signed server certificate is valid for this CA.&lt;/p&gt;&#xA;&lt;p&gt;To show the fingerprint of the certificate run&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# openssl x509 -in CA.crt -noout -fingerprint&#xA;# openssl x509 -in CA.crt -noout -fingerprint -sha256&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Those fingerprints can be used to verify a distributed certificate before deployment. This step is however optional although I recommend doing so to ensure the certificate is the one you intent to install.&lt;/p&gt;&#xA;&lt;h3 id=&#34;ca-serial-file&#34;&gt;CA serial file&#xA;&lt;/h3&gt;&lt;p&gt;Each certificate requires a serial number. This is assigned by the CA at the time of signing. The data type is &lt;code&gt;ASN1_INTEGER&lt;/code&gt;, which is a positive integer 160 bit long (See RFC3280). The CA keeps track of it&amp;rsquo;s own serial number via a &lt;code&gt;CA.srl&lt;/code&gt; file.&lt;/p&gt;&#xA;&lt;p&gt;We start the CA serial number with a HEX &lt;code&gt;01&lt;/code&gt; value:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# echo 01 &amp;gt; CA.srl&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This file will update itself every time a certificate is signed and allows OpenSSL to keep track of the CA serial number.&lt;/p&gt;&#xA;&lt;h2 id=&#34;sign-a-server-certificate&#34;&gt;Sign a server certificate&#xA;&lt;/h2&gt;&lt;p&gt;First you need to create the server key file and a server &lt;strong&gt;certificate sign request&lt;/strong&gt; (CSR) file. The server key file remains secret on the server and should never reach the CA - the CA only needs the certificate signing request. The CSR is a file that allows the CA to create a signed certificate for the server.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# openssl genrsa -out server.key 4096&#xA;# openssl req -new -key server.key -out server.csr&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now transfer the &lt;code&gt;server.csr&lt;/code&gt; file to the CA, where we will generate a signed certificate file (&lt;code&gt;.crt&lt;/code&gt;) from it.&lt;/p&gt;&#xA;&lt;p&gt;For the certificates to work on modern web browsers we need to add the domain/hostname of the server via &lt;strong&gt;Subject Alternative Name&lt;/strong&gt; (SAN) extensions. For instance, Firefox from 101.0 onwards no longer uses the certificate Common Name (CN) field for matching domain names to certificates but relies only on the SAN fields (See also &lt;a class=&#34;link&#34; href=&#34;https://www.rfc-editor.org/rfc/rfc2818&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;RFC2818&lt;/a&gt; page 5, beginning).&lt;/p&gt;&#xA;&lt;p&gt;The following command creates a simple SAN with one DNS entry defined by &lt;code&gt;HOSTNAME=&lt;/code&gt; at the beginning of the command.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# HOSTNAME=server.local openssl x509 -req -in server.csr -CA CA.crt -CAkey CA.key -CAserial CA.srl -out server.crt -days 1825 -sha256 -extensions SAN -extfile &amp;lt;(cat /etc/ssl/openssl.cnf &amp;lt;(printf &amp;#34;\n[SAN]\nsubjectAltName=DNS:$HOSTNAME&amp;#34;))&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Note: There are better configurable ways of doing this via the &lt;code&gt;openssl.cnf&lt;/code&gt; configuration file (see above).&#xA;I decided to use this approach however because it allows me to script the whole CA certificate generation process within one line.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;This generates the signed server certificate file &lt;code&gt;server.crt&lt;/code&gt;. The CSR file &lt;code&gt;server.csr&lt;/code&gt; can be deleted. Verify if the certificate is properly signed via&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;openssl verify -CAfile CA.crt server.crt&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This certificate can now be used to serve content which is secured by the CA certificate.&lt;/p&gt;&#xA;&lt;p&gt;And that&amp;rsquo;s it. Congratulations, you have now your own Certificate Authority.&lt;/p&gt;&#xA;&lt;h1 id=&#34;trust-the-ca-on-your-system&#34;&gt;Trust the CA on your system&#xA;&lt;/h1&gt;&lt;p&gt;In the section above we outlined all steps to create and run your own CA. But the clients still need to be configured to trust your CA, otherwise it doesn&amp;rsquo;t bring you much. In the following subsection I outline how to do this on Linux (at least on openSUSE).&lt;/p&gt;&#xA;&lt;h2 id=&#34;linux&#34;&gt;Linux&#xA;&lt;/h2&gt;&lt;p&gt;On openSUSE Tumbleweed it&amp;rsquo;s enough to install the &lt;code&gt;CA.crt&lt;/code&gt; file to &lt;code&gt;/etc/pki/trust/anchors/&lt;/code&gt; and then run &lt;code&gt;update-ca-certificates&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# cp CA.crt /etc/pki/trust/anchors/homelab.crt&#xA;# update-ca-certificates&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;references&#34;&gt;References&#xA;&lt;/h1&gt;&lt;p&gt;This post has been mostly based on &lt;a class=&#34;link&#34; href=&#34;https://openssl-ca.readthedocs.io/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://openssl-ca.readthedocs.io/&lt;/a&gt;, which is an excellent source of information about running your own OpenSSL based Certificate Authority.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>The Kindle is scarier than I thought</title>
            <link>https://feldspaten.org/2026/02/07/Kindle-scarier-than-thought/</link>
            <pubDate>Sat, 07 Feb 2026 20:03:10 +0100</pubDate>
            <guid>https://feldspaten.org/2026/02/07/Kindle-scarier-than-thought/</guid>
            <description>&lt;p&gt;We all know that Kindles are evil, and Amazon tracks everything what you read and bla bla bla &amp;hellip; But this story really shows how much they collect about you.&lt;/p&gt;&#xA;&lt;p&gt;A friend of mine published recently a book and shared an interesting screenshot of the &lt;a class=&#34;link&#34; href=&#34;https://en.wikipedia.org/wiki/Kindle_Direct_Publishing&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Kindle Direct Publishing&lt;/a&gt; page.&#xA;The screenshot shows a dashboard with a field on many pages of the book have been read in the last month.&#xA;The metrics is called the KENP (Kindle Edition Normalized Pages) count and according to the KDP amazon help page (which I&amp;rsquo;m not going to link here) it&amp;rsquo;s a monthly report updated on the 15th of every month.&lt;/p&gt;&#xA;&lt;p&gt;I can see the usefulness of this report for authors and for the publishers. But think this through - what data does Amazon need to collect from your reading device such that they can provide this?&#xA;This means that Amazon has a detailed dataset about your reading habits - what you read, how often, how long, when, &amp;hellip;&#xA;I find that freaking scary and I say that as someone who published a curated &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/lists/books/&#34; &gt;list of books that I read and recommend&lt;/a&gt; publicly on this blog on the open internet.&lt;/p&gt;&#xA;&lt;p&gt;My point is that an example like this, transforms the abstract fear that &amp;ldquo;your data is being collected&amp;rdquo; into something specific and tangible.&#xA;Amazon wouldn&amp;rsquo;t be able to show the KENP count per month to publishers, if they wouldn&amp;rsquo;t collect data about how far in every book you are at every point in time.&#xA;This means that Amazon literally looks over your shoulder as you read. Your Kindle collects all kind of information about your reading habbits.&#xA;If it wouldn&amp;rsquo;t, Amazon couldn&amp;rsquo;t provide this information to publishers.&lt;/p&gt;&#xA;&lt;p&gt;And now add your spending habits or an Alexa device that gets to know your daily routine, shopping lists, a partial search history and more.&lt;/p&gt;&#xA;&lt;h2 id=&#34;and-now-what&#34;&gt;And now what?&#xA;&lt;/h2&gt;&lt;p&gt;Nothing of this is new. But it shows how much data our surveillance overlords are siphoning off the devices we are supposed to call our own.&lt;/p&gt;&#xA;&lt;p&gt;My Kindle is put into permanent Airplane mode when &lt;a class=&#34;link&#34; href=&#34;https://www.heise.de/en/news/Kindle-Amazon-stops-direct-downloads-for-USB-transfer-of-e-books-10281763.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Amazon stopped providing e-books as downloads&lt;/a&gt;. Since then I&amp;rsquo;m in the quest of finding a good alternate e-book store for my Kindle, which turns out to be surprisingly difficult. I still use and love my Kindle. But it will never see the Internet ever again, it&amp;rsquo;s now a permanent offline e-book reader.&lt;/p&gt;&#xA;&lt;p&gt;In my experience is the e-book store situation rather dire, and I think we consumers are part of the problem.&#xA;We all have shoved more money than we like to admit to Amazon, and they cultivated a de-facto Monopoly on the e-book market until is was too late. Remember the famous Bezos&amp;rsquo; quote &amp;ldquo;Your margin is my opportunity&amp;rdquo;?&#xA;Sure there are other ecosystems like the Tolino, but they do not come even close to the comfort and the selection of Amazon. But they aren&amp;rsquo;t such a surveillance disaster as the Kindle ecosystem.&lt;/p&gt;&#xA;&lt;p&gt;I do my part in contributing to a solution, by avoiding Amazon as much as I can.&#xA;I go to the alternative e-book stores. While other e-book stores do not provide the same selection as Amazon, they provide almost everything.&#xA;Most books I now get from somewhere. The main difficulty is to get DRM-free books, but hey, neither does Amazon.&lt;/p&gt;&#xA;&lt;p&gt;The book of the friend I wrote above? Yeah, I ordered it via Amazon, because I wanted to support a friend and it was the only place where it was available. It was also no e-book.&#xA;So be it. The other 9 I didn&amp;rsquo;t order there but as an epub elsewhere.&lt;/p&gt;&#xA;&lt;p&gt;And while I still own a Kindle as my e-book reader, I&amp;rsquo;m happy that it became an offline reader already some time ago.&#xA;Because then such stories or screenshot still shock me, but at least I don&amp;rsquo;t feel exposed or naked anymore.&lt;/p&gt;&#xA;&lt;p&gt;Any my next e-book reader will likely be a Tolino.&lt;/p&gt;&#xA;&lt;p&gt;Cheers.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Tiramisù</title>
            <link>https://feldspaten.org/2026/01/10/Tiramisu/</link>
            <pubDate>Sat, 10 Jan 2026 10:25:38 +0100</pubDate>
            <guid>https://feldspaten.org/2026/01/10/Tiramisu/</guid>
            <description>&lt;img src=&#34;https://feldspaten.org/2026/01/10/Tiramisu/tiramisu.jpg&#34; alt=&#34;Featured image of post Tiramisù&#34; /&gt;&lt;p&gt;Imagine the following: You&amp;rsquo;re stuck at a Telescope site. You have some off time, and it&amp;rsquo;s cold outside. Like really cold. You need to sustain your body weight. All you have are the ingredients listed below and your only chance of survival is to make a delicious Tiramisù. This exact situation has arised during my HESS shift in Namibia, when we have been forced to &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/2016/02/18/impro-waffeln-mit-jogurt/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;improvise Waffels&lt;/a&gt; because of course that has happened (none of this happened, except the Waffels, which turned out to be really good, despite being heavily improvised on the spot).&lt;/p&gt;&#xA;&lt;p&gt;But in case you (or I) am stuck somewhere and I need to find a proven Tiramisù recipe, here it is. The following recipe is enough for 6 people and fits perfectly in a small Ikea tray.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;2 egg yolk (optional)&#xA;500g mascarpone&#xA;150g sugar&#xA;1 tablespoon Rum (optional)&#xA;200ml cream&#xA;2 packages ladyfingers (size and amount may vary for you)&#xA;300ml coffee or cocoa&#xA;Cocoa powder for finish&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Make the coffee. Make some more so you can drink some while making the rest.&lt;/li&gt;&#xA;&lt;li&gt;Mix the egg yolks with the mascarpone&lt;/li&gt;&#xA;&lt;li&gt;Whip the cream and add it to the crema&lt;/li&gt;&#xA;&lt;li&gt;Dunk each of the lady fingers once into the coffee and lay on the tray&lt;/li&gt;&#xA;&lt;li&gt;After each layer put a layer of cream&lt;/li&gt;&#xA;&lt;li&gt;Repeat until the last layer of cream, then put cocoa on top using a sieve&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;2 layers are typically enough, but the Ikea form could be used up to 3 layers.&lt;/p&gt;&#xA;&lt;p&gt;For the &lt;strong&gt;Irish cream&lt;/strong&gt; variation of my Tiramisù, replace 100-150ml of the coffee with Bailyes (or Amarula). This gives a really nice touch.&lt;/p&gt;&#xA;&lt;p&gt;If you want to make it without the eggs, then just leave the egg yolks out without further modifications. The crema will be a bit stiffer than usual, but still ok. Consider adding more cream if you like it creamier.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Achievement unlocked: Electric vehicle</title>
            <link>https://feldspaten.org/2026/01/07/Achievement-unlocked-EV/</link>
            <pubDate>Wed, 07 Jan 2026 20:42:51 +0100</pubDate>
            <guid>https://feldspaten.org/2026/01/07/Achievement-unlocked-EV/</guid>
            <description>&lt;p&gt;Fossil based mobility was our biggest individual CO2 footprint, and with our new amazing electric car, this is now a thing of the past. &lt;a class=&#34;link&#34; href=&#34;https://www.nature.com/articles/s41893-020-0488-7&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Electric cars are better for the environment&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For me the most amazing part is a triviality: The fact that you can charge your car at home. We went for a small drive today when possible (the weather conditions are currently challenging) and drove the battery down to 64%. Now the car is outside, happily buzzing to the tunes of the electric charging station next to our garage. I don&amp;rsquo;t have to drive to a gas station anymore to refuel our car. Can&amp;rsquo;t wait for summer, when the car is refueled by our solar panels :-)&lt;/p&gt;&#xA;&lt;p&gt;I can&amp;rsquo;t wait for better weather to go on little and big adventure trips with the family. This is just freaking awesome! 😃&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Migrated to Leap 16</title>
            <link>https://feldspaten.org/2026/01/06/Migrated-to-Leap-16/</link>
            <pubDate>Tue, 06 Jan 2026 09:15:00 +0100</pubDate>
            <guid>https://feldspaten.org/2026/01/06/Migrated-to-Leap-16/</guid>
            <description>&lt;p&gt;Happy new year fellas!&lt;/p&gt;&#xA;&lt;p&gt;As part of the new year&amp;rsquo;s cleanup procedures, this blog now runs on openSUSE Leap 16 and I hope it will for the next years to come.&lt;/p&gt;&#xA;&lt;p&gt;Leap 16 is a new codestream, so it deserves a complete new installation. I&amp;rsquo;m still fixing some issues with SELinux, some missing packages and new configuration schemas, but overall things are already working quite nicely.&lt;/p&gt;&#xA;&lt;p&gt;Since Leap 15 there have been many changes, including SELinux, &lt;a class=&#34;link&#34; href=&#34;https://en.opensuse.org/openSUSE:Usr_merge&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;usr merge&lt;/a&gt; and a package overhaul. Sadly the Kernel doesn&amp;rsquo;t support &lt;code&gt;io_uring&lt;/code&gt; yet, and also Postgres 18 is not yet ready, but I&amp;rsquo;m positive this will change for 16.1 then.&lt;/p&gt;&#xA;&lt;p&gt;And I&amp;rsquo;ve already found a couple of bugs that I need to file once I&amp;rsquo;m back at work. Happy new year :-)&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Civilization 5 on Linux</title>
            <link>https://feldspaten.org/2025/12/25/Civ5-on-Linux/</link>
            <pubDate>Thu, 25 Dec 2025 13:26:47 +0100</pubDate>
            <guid>https://feldspaten.org/2025/12/25/Civ5-on-Linux/</guid>
            <description>&lt;p&gt;There&amp;rsquo;s a known issue with Civilization 5 on Linux, where it randomly crashes with a segfault. On Reddit the issue is discussed and the proposed solution is to limit the number of simultaneous threads to 8 or below.&lt;/p&gt;&#xA;&lt;p&gt;On my system I found that this was already the case and further lowering it to 4 reduced the number of crashes (but they never went fully away) while the game seems to still run smoothly.&lt;/p&gt;&#xA;&lt;p&gt;I run Steam as Flatpak and the coanfig file is here located in &lt;code&gt;~/.local/share/Aspyr/Sid Meier&#39;s Civilization 5 or ~/.var/app/com.valvesoftware.Steam/.local/share/Aspyr/Sid Meier&#39;s Civilization 5&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[User Settings]&#xA;MaxSimultaneousThreads = 4&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Happy playing!&lt;/p&gt;&#xA;&lt;h2 id=&#34;related-links&#34;&gt;Related links&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.reddit.com/r/linux_gaming/comments/k4yzzt/sidciv_5_random_crashes/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.reddit.com/r/linux_gaming/comments/k4yzzt/sidciv_5_random_crashes/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
        </item><item>
            <title>FreeBSD 15 on Raspberry Pi CM4</title>
            <link>https://feldspaten.org/2025/10/08/FreeBSD-15-on-CM4/</link>
            <pubDate>Wed, 08 Oct 2025 20:36:19 +0200</pubDate>
            <guid>https://feldspaten.org/2025/10/08/FreeBSD-15-on-CM4/</guid>
            <description>&lt;p&gt;As a follow-up of my &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/2025/09/29/FreeBSD-on-CM4/&#34; &gt;previous adventure on getting FreeBSD 14.3 running on the CM4&lt;/a&gt; - Forget about FreeBSD 14, just use FreeBSD 15. It works out of the box.&lt;/p&gt;&#xA;&lt;h2 id=&#34;sata-disks&#34;&gt;SATA disks&#xA;&lt;/h2&gt;&lt;p&gt;One issue was with the SATA Controller of the Turing Pi though, but luckily &lt;a class=&#34;link&#34; href=&#34;https://forums.freebsd.org/threads/kernel-ahcich-timeout-in-slot.51868/page-2&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;this forum post&lt;/a&gt; already resolved the issue for me.&lt;/p&gt;&#xA;&lt;p&gt;So, when botting I noticed that the external SATA HDD was not recognised and I saw messages like this in the &lt;code&gt;dmesg&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ahcich5: Timeout on slot 0 port 0&#xA;ahcich5: is 00000000 cs 00000000 ss 00000000 rs 00000001 tfd 150 serr 00000000 cmd 0004c017&#xA;(aprobe5:ahcich5:0:0:0): SETFEATURES SET TRANSFER MODE. ACB: ef 03 00 00 00 40 00 00 00 00 46 00&#xA;(aprobe5:ahcich5:0:0:0): CAM status: Command timeout&#xA;(aprobe5:ahcich5:0:0:0): Retrying command&#xA;ahcich5: Timeout on slot 0 port 0&#xA;ahcich5: is 00000000 cs 00000000 ss 00000000 rs 00000001 tfd 150 serr 00000000 cmd 0004c017&#xA;(aprobe5:ahcich5:0:0:0): SETFEATURES SET TRANSFER MODE. ACB: ef 03 00 00 00 40 00 00 00 00 46 00&#xA;(aprobe5:ahcich5:0:0:0): CAM status: Command timeout&#xA;(aprobe5:ahcich5:0:0:0): Error 5, Retries exhausted&#xA;ahcich5: Timeout on slot 0 port 0&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For me, adding the following to the &lt;code&gt;/boot/device.hints&lt;/code&gt; file fixed the issue for me after a reboot:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# disable MSI to try to fix repeated CAM CRC/timeout errors and possible panic on zfs import&#xA;# https://forums.freebsd.org/threads/kernel-ahcich-timeout-in-slot.51868/page-2&#xA;hint.ahci.0.msi=0&#xA;hint.ahcich.0.sata_rev=2&#xA;hint.ahcich.1.sata_rev=2&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And then, the disk got recognized and I could start replicating stuff onto it. Nicely done!&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Leap 16.0 on a Turing Pi RK1</title>
            <link>https://feldspaten.org/2025/10/02/Leap-16.0-on-a-Turing-Pi-RK1/</link>
            <pubDate>Thu, 02 Oct 2025 21:23:26 +0200</pubDate>
            <guid>https://feldspaten.org/2025/10/02/Leap-16.0-on-a-Turing-Pi-RK1/</guid>
            <description>&lt;p&gt;&lt;em&gt;Holy moly, it works!&lt;/em&gt; Pre-generated assets are at the end of the post.&lt;/p&gt;&#xA;&lt;p&gt;After yesterday&amp;rsquo;s &lt;a class=&#34;link&#34; href=&#34;https://news.opensuse.org/2025/10/01/next-chapter-opens-with-leap-release/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;openSUSE Leap 16.0 Release&lt;/a&gt; (yay!) and because I&amp;rsquo;m still too sore to go for my usual Thursday run, I took this evening to get openSUSE Leap 16.0 working on a &lt;a class=&#34;link&#34; href=&#34;https://turingpi.com/product/turing-rk1/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Turing RK 1&lt;/a&gt;. Thursday evenings are my me time, and I&amp;rsquo;m glad I could make this work in one sitting!&lt;/p&gt;&#xA;&lt;p&gt;The main problem was, that the u-boot bootloader for the RK1 is part of the provided firmware images, and even after frankensteining the U-Boot bootloader from the provided Ubuntu 22.04 images, the system would not boot the kernel for the Leap 16 installer. I run into the same issues as &lt;a class=&#34;link&#34; href=&#34;https://bugzilla.suse.com/show_bug.cgi?id=1226804&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;this bug filed for Tumbleweed&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So, I needed to build a new U-Boot using &lt;a class=&#34;link&#34; href=&#34;https://quozul.dev/posts/2024-10-12-build-custom-image-for-turing-pi-rk1/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;this amazing guide&lt;/a&gt; from another kind person on the Internet.&lt;/p&gt;&#xA;&lt;h2 id=&#34;building-u-boot&#34;&gt;Building U-Boot&#xA;&lt;/h2&gt;&lt;p&gt;On a different Leap 16.0 system (yay, bootstrapping!), I did the following:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/u-boot/u-boot.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/rockchip-linux/rkbin.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/ARM-software/arm-trusted-firmware.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then we first need to build the &lt;code&gt;atf-bl31&lt;/code&gt; from the &lt;code&gt;arm-trusted-firmware&lt;/code&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; arm-trusted-firmware&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git checkout lts-v2.12.6   &lt;span class=&#34;c1&#34;&gt;# or newer&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;CROSS_COMPILE&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;aarch64-suse-linux- make &lt;span class=&#34;nv&#34;&gt;PLAT&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;rk3588 bl31 -B -j &lt;span class=&#34;m&#34;&gt;16&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# note down the location of the bl31.elf file, typically it&amp;#39;s &amp;#39;build/rk3588/release/bl31/bl31.elf&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then we can build u-boot, but we need to use the &lt;code&gt;rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin&lt;/code&gt; (or newer) binary from &lt;code&gt;rkbin&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; u-boot&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git checkout v2025.07     &lt;span class=&#34;c1&#34;&gt;# or newer&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;ROCKCHIP_TPL&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;../rkbin/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nv&#34;&gt;BL31&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;../rkbin/bin/rk35/rk3588_bl31_v1.45.elf &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nv&#34;&gt;ARCH&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;arm64 &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nv&#34;&gt;CROSS_COMPILE&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;aarch64-suse-linux- &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  make -j16&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This should build u-boot. There is a warning, which we can ignore:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;...&#xA;  BINMAN  .binman_stamp&#xA;Image &amp;#39;simple-bin&amp;#39; is missing optional external blobs but is still functional: tee-os&#xA;&#xA;/binman/simple-bin/fit/images/@tee-SEQ/tee-os (tee-os):&#xA;   See the documentation for your board. You may need to build Open Portable&#xA;   Trusted Execution Environment (OP-TEE) and build with TEE=/path/to/tee.bin&#xA;&#xA;  OFCHK   .config&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This should give you the bootloader files, we need &lt;code&gt;idbloader.img&lt;/code&gt; and &lt;code&gt;u-boot.itb&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;create-the-bootloader-image&#34;&gt;Create the bootloader image&#xA;&lt;/h2&gt;&lt;p&gt;To only create the bootloader image (with no partitions):&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;dd &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/dev/zero &lt;span class=&#34;nv&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;bootloader.img &lt;span class=&#34;nv&#34;&gt;bs&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;512&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;count&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;32767&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;dd &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;idbloader.img &lt;span class=&#34;nv&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;bootloader.img &lt;span class=&#34;nv&#34;&gt;bs&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;512&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;seek&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;64&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;conv&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;notrunc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;dd &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;u-boot.itb &lt;span class=&#34;nv&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;bootloader.img &lt;span class=&#34;nv&#34;&gt;bs&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;512&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;seek&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;16384&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will produce a &lt;code&gt;bootloader.img&lt;/code&gt; file, which you can flash onto the RK1. This should boot (hopefully), however if you want to install a system on the eMMC, you will find that there is no partition table, and creating one will overwrite the bootloader.&lt;/p&gt;&#xA;&lt;p&gt;So let&amp;rsquo;s create an image with a partition table.&lt;/p&gt;&#xA;&lt;h2 id=&#34;create-bootloader-image-with-partition-table&#34;&gt;Create bootloader image with partition table&#xA;&lt;/h2&gt;&lt;p&gt;The overall storage map is documented on &lt;a class=&#34;link&#34; href=&#34;https://opensource.rock-chips.com/wiki_Partitions&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://opensource.rock-chips.com/wiki_Partitions&lt;/a&gt;. We&amp;rsquo;ll be using this table to generate our own image file with a GPT and a temporary boot and root partition.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;dd &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/dev/zero &lt;span class=&#34;nv&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;bootloader.img &lt;span class=&#34;nv&#34;&gt;bs&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;512&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;count&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;466944&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;parted bootloader.img mklabel gpt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;parted bootloader.img mkpart boot ext4 32768s 262143s&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;parted bootloader.img mkpart root btrfs 262144s 100%&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;dd &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;idbloader.img &lt;span class=&#34;nv&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;bootloader.img &lt;span class=&#34;nv&#34;&gt;bs&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;512&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;seek&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;64&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;conv&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;notrunc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;dd &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;u-boot.itb &lt;span class=&#34;nv&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;bootloader.img &lt;span class=&#34;nv&#34;&gt;bs&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;512&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;seek&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;16384&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;conv&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;notrunc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;parted bootloader.img print&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can flash this &lt;code&gt;bootloader.img&lt;/code&gt; to the Turing RK1. When you enter the setup now, you will find two existing partitions: boot and system. They are empty and you can delete them. They act as a template, so that you will not create a partition where the bootloader resides.&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;!! Do not create any partitions before sector 32768 or you will overwrite the bootloader !!&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;installing-opensuse-leap-160&#34;&gt;Installing openSUSE Leap 16.0&#xA;&lt;/h2&gt;&lt;p&gt;I started the Turing RK1 and installed Leap 16.0 from USB stick. The RK1 boots U-Boot from the eMMC flash and then the USB thumb drive.&#xA;I also walked through the agama installation from my main computer via the Web interface. How cool is this!&lt;/p&gt;&#xA;&lt;p&gt;Sidenote: The agama installer requires a one-time root password from the remote host. This root password can be obtained via the serial terminal&#xA;on the Turing Pi BMC board. If your RK1 is on the Node 1 then that would be&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;picocom /dev/ttyS2 -b &lt;span class=&#34;m&#34;&gt;115200&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Important: When selecting the partition layout, ensure that you do not overwrite u-boot! I did so by deleting the &amp;ldquo;system&amp;rdquo; partition but leaving the pre-generated &amp;ldquo;boot&amp;rdquo; partition in place. Then I let agama figure out a partition scheme AFTER the first partition. Like this I could ensure, that the bootloader would not be overwritten. Keep in mind that &amp;ldquo;boot&amp;rdquo; and &amp;ldquo;system&amp;rdquo; partitions here are just empty partitions, they are suggestions but you can create your own layout as well.&lt;/p&gt;&#xA;&lt;p&gt;But again, ensure the first partition starts at sector 32768 (or higher) otherwise you will overwrite your bootloader.&lt;/p&gt;&#xA;&lt;h2 id=&#34;assets&#34;&gt;Assets&#xA;&lt;/h2&gt;&lt;p&gt;Here are my images. Feel free to use them:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;RK1_uboot.img.xz&#34; &gt;RK1_uboot.img.xz&lt;/a&gt; - Plain bootloader, no partitions&lt;/li&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;RK1_uboot_with_GPT.img.xz&#34; &gt;RK1_uboot_with_GPT.img.xz&lt;/a&gt; - Image with GPT partition table and U-boot for the Turing RK1&lt;/li&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;SHA256SUMS&#34; &gt;SHA256SUMS&lt;/a&gt; - Checksums&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
        </item><item>
            <title>FreeBSD 14.3 on Raspberry Pi CM4</title>
            <link>https://feldspaten.org/2025/09/29/FreeBSD-on-CM4/</link>
            <pubDate>Mon, 29 Sep 2025 20:28:11 +0200</pubDate>
            <guid>https://feldspaten.org/2025/09/29/FreeBSD-on-CM4/</guid>
            <description>&lt;p&gt;&lt;em&gt;Update - &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/2025/10/08/FreeBSD-15-on-CM4/&#34; &gt;Just use FreeBSD 15&lt;/a&gt; - it just works!&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m in the process to modernize our very much aging backup machine. Instead of spending about 300 bucks on new hardware, I want to get it running on hardware that I already have - and what I have is a Turing Pi and a Raspberry Pi Compute Module 4 (8 GiB). The Turing Pi has two SATA ports for Node 3, which are just about perfect for what I intent to do. And for the backup machine I want to use FreeBSD, because my main NAS runs openSUSE and in such a configuration I have a different operating system as backup machine.&#xA;In this configuration I hope to be more resilient also against (very very very) unlike system corruption issues. Knock on wood.&lt;/p&gt;&#xA;&lt;p&gt;Also: FreeBSD is an awesome system, and that alone is already an argument for doing this.&lt;/p&gt;&#xA;&lt;h2 id=&#34;tldr&#34;&gt;TLDR;&#xA;&lt;/h2&gt;&lt;p&gt;You need to fix two issues:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Limit the system memory &lt;a class=&#34;link&#34; href=&#34;https://wiki.freebsd.org/arm/Raspberry%20Pi#Raspberry_Pi_4_with_4GB.2B-_RAM_Won.27t_Boot&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;as described here&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# /boot/config.txt&#xA;[pi4]&#xA;total_mem=4015&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Do not boot the CM4 with an attached ASMedia SATA Controller, e.g. Node 3 on a Turing Pi board&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;my-story&#34;&gt;My story&#xA;&lt;/h2&gt;&lt;p&gt;FreeBSD provides pre-build Raspberry Pi images and several posts suggests that the CM4 should also work with it. So let&amp;rsquo;s try to run and uh no &amp;hellip;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;pci1: &amp;lt;OFW PCI bus&amp;gt; on pcib1&#xA;...&#xA;far: 0x0000000000000000&#xA; esr: 0x00000000bf000002&#xA;panic: Unhandled System Error&#xA;cpuid = 0&#xA;time = 1&#xA;KDB: stack backtrace:&#xA;#0 0xffff00000053427c at kdb_backtrace+0x58&#xA;#1 0xffff000004de48c at vpanic+0x1d4&#xA;#2 0xffff0000004de2b4 at panic+0x44&#xA;#3 0xffff0000008cc4a8 at do_serror+0x3c&#xA;#4 0xffff0000008a8af8 at handle_serror+0x3c&#xA;Uptime: 1s&#xA;Resetting system ...&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Well, that didn&amp;rsquo;t went well. Several Google hits later I discovered &lt;a class=&#34;link&#34; href=&#34;https://forums.freebsd.org/threads/freebsd-on-rpi-cm4.82923/#post-610964&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;some older issues&lt;/a&gt; with some boards where one would need to add &lt;code&gt;devmatch_enable=&amp;quot;NO&amp;quot;&lt;/code&gt; to &lt;code&gt;/etc/rc.conf&lt;/code&gt;. This was for FreeBSD 13.2 but it &lt;a class=&#34;link&#34; href=&#34;https://angerman.net/articles/cm4/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;kept&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://hackacad.net/post/2024-12-16-freebsd-uptime-compute-blade-raspberry-cm4/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;popping&lt;/a&gt; up, so I gave it a try.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;panic: Unhandled System Error&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Hmpf.&lt;/p&gt;&#xA;&lt;p&gt;Several unsuccessful attempts later, including adding some more &lt;a class=&#34;link&#34; href=&#34;https://github.com/raspberrypi/firmware/tree/master/boot&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Raspberry Pi Firmware blobs&lt;/a&gt; to the image, I finally stumbled across an important section in the &lt;a class=&#34;link&#34; href=&#34;https://wiki.freebsd.org/arm/Raspberry%20Pi#Raspberry_Pi_4_with_4GB.2B-_RAM_Won.27t_Boot&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;FreeBSD Wiki page of the Raspberry Pi 4&lt;/a&gt;, which I should definitely have checked out earlier:&lt;/p&gt;&#xA;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;A crash occurs with RPI4 devices that have 4GB or more of memory.&#xA;&amp;hellip;&#xA;This is a known memory issue in these models with FreeBSD 14.2 due to overlapping address spaces. Perform the following workaround to get FreeBSD 14.2 to boot [&amp;hellip;]&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;I did not see the mentioned error message, but what the heck, if this is document I can give it a try. It just adding &lt;code&gt;total_mem=4015&lt;/code&gt; to the &lt;code&gt;[pi4]&lt;/code&gt; section in &lt;code&gt;/boot/config.txt&lt;/code&gt;. Drummroll please and &amp;hellip;&amp;hellip;&amp;hellip;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;panic: Unhandled System Error&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&amp;amp;@#!%!&lt;/p&gt;&#xA;&lt;p&gt;Okay okay okay, maybe I just screwed this up, so let&amp;rsquo;s re-do everything very carefully. This is in general a sane thing to do, especially when frustration rises as I tend to make more mistakes then as I become distracted.&lt;/p&gt;&#xA;&lt;p&gt;Several failed attempts later, I finally stumbled across a different angle to approach the problem, namely this bug: &lt;a class=&#34;link&#34; href=&#34;https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277605&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;FreeBSD 14-Release crashes on the RPI CM4 with PCIE to PCI bridge&lt;/a&gt;. From the bug report:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;pci1: &amp;lt;OFW PCI bus&amp;gt; on pcib1&#xA; x0: 0x000000000000dead&#xA; x1: 0xffff000000f24840&#xA; x2: 0x0000000000000000&#xA; ....&#xA;panic: Unhandled System Error&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Looks very familiar, so the issue is with the ASMedia ASM1083 - not sure if it&amp;rsquo;s exactly this model on the Turing Pi but the error report and panic crash looks very similar to my issue.&#xA;So I plugged the CM4 out of Node 3 (where the SATA Controller is) and into Node 4 and&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;panic: Unhandled System Error&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;WHAT THE HECK!?! Oh wait, there&amp;rsquo;s still the Memory issue, so let&amp;rsquo;s try to combine and the two and &amp;hellip;.&lt;/p&gt;&#xA;&lt;p&gt;Bingo! That worked! Finally. So, in order to get FreeBSD 14.3 work on a CM4 with 8 GiB RAM, I needed to limit the memory to 4 GiB in the &lt;code&gt;/boot/config.txt&lt;/code&gt; AND also not run it on the Node port with the attached ASMedia SATA Controller.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;devmatch_enable=NO&lt;/code&gt; was not needed on my system, but I also have a CM4 without Wifi, so your mileage might vary.&lt;/p&gt;&#xA;&lt;p&gt;The next steps is to update the system and see if I can make it then boot and work together with the SATA controller. That&amp;rsquo;s my hope, because if this works, this would be a neat little backup system and FreeBSD would be a really good fit for what I want to do here.&lt;/p&gt;&#xA;&lt;h2 id=&#34;addendum&#34;&gt;Addendum&#xA;&lt;/h2&gt;&lt;h3 id=&#34;edit-the-freebsd-image&#34;&gt;Edit the FreeBSD image&#xA;&lt;/h3&gt;&lt;p&gt;Note: This works on FreeBSD, this will not work in Linux!&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# mdconfig -a -t vnode -f FreeBSD-14.3-RELEASE-arm64-aarch64-RPI.img -u 0&#xA;# mkdir /mnt/boot /mnt/image&#xA;# mount -t msdosfs /dev/md0s1 /mnt/boot&#xA;# mount -t ufs /dev/md0s2a /mnt/image&#xA;# vim /mnt/boot/config.txt                      # boot config&#xA;# vim /mnt/image/etc/rc.conf                    # rc.conf&#xA;# umount /mnt/boot&#xA;# umount /mnt/image&#xA;# mdconfig -d -u 0&#xA;# sync&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;boot-config&#34;&gt;Boot config&#xA;&lt;/h3&gt;&lt;p&gt;This is what I needed to add to &lt;code&gt;/boot/config.txt&lt;/code&gt; to make it boot:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# /boot/config.txt&#xA;&#xA;[pi4]&#xA;total_mem=4015&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
        </item><item>
            <title>Weird UK cell network behaviour</title>
            <link>https://feldspaten.org/2025/08/28/Weird-UK-cell-network-behaviour/</link>
            <pubDate>Thu, 28 Aug 2025 19:42:19 +0200</pubDate>
            <guid>https://feldspaten.org/2025/08/28/Weird-UK-cell-network-behaviour/</guid>
            <description>&lt;p&gt;Last week I was in the UK and the UK mobile network is &amp;hellip; weird.&lt;/p&gt;&#xA;&lt;p&gt;I have no idea but for some reason on SOME of the cell towers I didn&amp;rsquo;t had connectivity without VPN.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Screenshot of my Android phone showing a timeout error when accessing feldspaten.org&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;110px&#34; data-flex-grow=&#34;46&#34; height=&#34;2340&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2025/08/28/Weird-UK-cell-network-behaviour/Screenshot.png&#34; srcset=&#34;https://feldspaten.org/2025/08/28/Weird-UK-cell-network-behaviour/Screenshot_hu_dfd3a7578c97f27e.png 800w, https://feldspaten.org/2025/08/28/Weird-UK-cell-network-behaviour/Screenshot.png 1080w&#34; width=&#34;1080&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;My wife has the same carrier as I have and didn&amp;rsquo;t encounter those issues. Also, it&amp;rsquo;s not everywhere, it&amp;rsquo;s just on some of the cell towers. I didn&amp;rsquo;t had noticeable issues while traveling, but in the hotel I couldn&amp;rsquo;t access the internet while my wifey could. Outside it was also not working, but 1-2 kilometer further it was working. At the other side of the town it was again broken.&lt;/p&gt;&#xA;&lt;p&gt;When traveling back I had one location where it also was not working.&lt;/p&gt;&#xA;&lt;p&gt;And the weird thing is, that when it was not working, I could connect via my VPN of choice and then it worked without any issues.&lt;/p&gt;&#xA;&lt;p&gt;I have no idea what&amp;rsquo;s going on here, but this is just weird.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Cake Evelyn</title>
            <link>https://feldspaten.org/2025/08/17/Cake-Evelyn/</link>
            <pubDate>Sun, 17 Aug 2025 14:59:35 +0200</pubDate>
            <guid>https://feldspaten.org/2025/08/17/Cake-Evelyn/</guid>
            <description>&lt;img src=&#34;https://feldspaten.org/2025/08/17/Cake-Evelyn/Cake-Evelyn.jpg&#34; alt=&#34;Featured image of post Cake Evelyn&#34; /&gt;&lt;p&gt;This is a custom recipe I made for a little friend of mine, who cannot have eggs. It&amp;rsquo;s just a simple lemon yogurt cake with semolina and no eggs.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;250g flour&#xA;100g semolina&#xA;100g sugar&#xA;350g greek yogurt&#xA;100g vegetable oil&#xA;1 package vanilla sugar&#xA;1 package baking powder&#xA;1 Lemon&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Optional: Add &lt;code&gt;100g sugar&lt;/code&gt; more, if you like the case to be sweet. We prefer them not too sweet, but that&amp;rsquo;s up to you.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;First mix all dry ingredients to avoid clumping&lt;/li&gt;&#xA;&lt;li&gt;Add the wet ingredients, starting with the yogurt and then add the vegetable oil&lt;/li&gt;&#xA;&lt;li&gt;Add both the lemon zest and the lemon juice. Add a second lemon, if you want&lt;/li&gt;&#xA;&lt;li&gt;Bake at 180°C for 50 minutes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Enjoy!&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>How to run a Signal-Proxy with Podman</title>
            <link>https://feldspaten.org/2025/08/16/Signal-Proxy-and-Podman/</link>
            <pubDate>Sat, 16 Aug 2025 14:46:44 +0200</pubDate>
            <guid>https://feldspaten.org/2025/08/16/Signal-Proxy-and-Podman/</guid>
            <description>&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://support.signal.org/hc/en-us/articles/360056052052-Proxy-Support&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Signal Proxy&lt;/a&gt; allows users in countries who are subject to network limitations and censorship to connect to the Signal network via a Proxy server. The idea is simple: Any government cannot reliably censor a horde of volunteers who spin up a swarm of proxies. This decentralization allows to create a horde of small targets, too small and numerous for any state actor to reliably go against. It was for example used to allow people from &lt;a class=&#34;link&#34; href=&#34;https://signal.org/blog/run-a-proxy/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Iran&lt;/a&gt; to connect to Signal, when the main servers have been blocked.&lt;/p&gt;&#xA;&lt;p&gt;There is the &lt;a class=&#34;link&#34; href=&#34;https://github.com/signalapp/Signal-TLS-Proxy&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Signal TLS Proxy&lt;/a&gt; repository, which contains &lt;code&gt;docker compose&lt;/code&gt; instructions. This blog posts helps you to translate those instructions to &lt;code&gt;podman&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In short: Use my &lt;a class=&#34;link&#34; href=&#34;https://codeberg.org/grisu48/quadlets/src/branch/main/signal-proxy.container&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;quadlet&lt;/a&gt; and an webserver who does the TLS termination for you. You will need a valid TLS certificate.&lt;/p&gt;&#xA;&lt;h2 id=&#34;instructions&#34;&gt;Instructions&#xA;&lt;/h2&gt;&lt;p&gt;I assume you have a valid domain and a webserver (e.g. &lt;code&gt;nginx&lt;/code&gt;, &lt;code&gt;apache&lt;/code&gt;) running there with a valid TLS certificate.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Get the quadlet from my codeberg repo or take the following template:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Description&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;signal proxy service container&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Wants&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;network-online.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;After&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;network-online.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;RequiresMountsFor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;%t/containers&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Container]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Image&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;docker.io/library/nginx:stable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ContainerName&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;signal-proxy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;HostName&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;signal.podman.local&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Network&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;podman&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;AutoUpdate&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;registry&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# TODO: Pull and use the nginx.conf from https://github.com/signalapp/Signal-TLS-Proxy/tree/main/data/nginx-relay&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Volume&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/etc/signal/nginx.conf:/etc/nginx/nginx.conf:ro,Z&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Timezone&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;local&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ReadOnly&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;PodmanArgs&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;--memory 128m&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Service]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Restart&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;always&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Install]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Start by default on boot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;WantedBy&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;multi-user.target default.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You see that the Container needs a &lt;code&gt;nginx.conf&lt;/code&gt; file stored at &lt;code&gt;/etc/signal/nginx.conf&lt;/code&gt;. Download the most recent &lt;a class=&#34;link&#34; href=&#34;https://github.com/signalapp/Signal-TLS-Proxy/tree/main/data/nginx-relay&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;nginx.conf&lt;/a&gt; file from the Signal-TLS-Proxy repo&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Subscript to repo updates, because if that &lt;code&gt;nginx.conf&lt;/code&gt; file changes you will need to update the container&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Done. And I also leave it here, as those are mostly instructions for myself to finally build that container so you don&amp;rsquo;t need to do the &lt;code&gt;nginx.conf&lt;/code&gt; configuration yourself 🙂&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>VLAN and Bonds and Bridges in NetworkManager</title>
            <link>https://feldspaten.org/2025/08/14/NetworkManager-VLAN-Bond-Bridges/</link>
            <pubDate>Thu, 14 Aug 2025 21:57:32 +0200</pubDate>
            <guid>https://feldspaten.org/2025/08/14/NetworkManager-VLAN-Bond-Bridges/</guid>
            <description>&lt;p&gt;Over the last decade, &lt;a class=&#34;link&#34; href=&#34;https://www.networkmanager.dev/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;NetworkManager&lt;/a&gt; has become one of the most widespread network managing solution.&#xA;Only recently I managed to get my own homelab setup for one of my hypervisors with bonds, vlans and bridges working. Network Bonds to establish backup links, over which I have a default bridge and two separated network bridge adapters, both on their own VLAN. Like this I can transparently connect certain guests into separated networks, all from the hypervisor.&lt;/p&gt;&#xA;&lt;p&gt;My setup looks like the following:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;           -------&#xA;---eth0---|       |------------------------------- br0        (192.168.0.50/24)&#xA;          | Bond0 |---- vlan.homelab (id=100) ---- br-homelab (192.168.100.24/24)&#xA;---eth1---|       |---- vlan.iot (id=201) -------- br-iot     (172.16.87.2/22)&#xA;           -------&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;On this hypervisor I have now three bridge adapters at my disposal:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;br0&lt;/code&gt; is the default network with no VLAN&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;br-homelab&lt;/code&gt; is my homelab network on VLAN 100&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;br-iot&lt;/code&gt; is the separated IoT VLAN because they need to be sandboxed&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;While there are a couple of tutorials available online describing how to achieve this using &lt;code&gt;nmcli&lt;/code&gt; commands, I find the configuration files more descriptive for a sysadmin. Therefore this blog post, so you can use them as a template.&lt;/p&gt;&#xA;&lt;p&gt;If you start from scratch, you might want to use the &lt;code&gt;nmtui&lt;/code&gt; utility and create the interfaces therein. Keep the following things in mind:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;The Bond is the parent for the default bridge and all vlan interfaces&lt;/li&gt;&#xA;&lt;li&gt;Bridge adapters go behind a VLAN device or directly behind the bond device&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;configuration-files&#34;&gt;Configuration files&#xA;&lt;/h2&gt;&lt;p&gt;All of the following configuration files must be placed in &lt;code&gt;/etc/NetworkManager/system-connections&lt;/code&gt;, owner &lt;code&gt;root:root&lt;/code&gt; and file permissions &lt;code&gt;0400&lt;/code&gt; or &lt;code&gt;0600&lt;/code&gt; (only root should be able to read), otherwise NetworkManager will refuse to use them.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s start first with the Ethernet adapters and the bond:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# wired1.nncommection&#xA;[connection]&#xA;id=eth0&#xA;permissions=&#xA;interface-name=eth0&#xA;slave-type=bond&#xA;master=bond0&#xA;type=ethernet&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# wired2.nncommection&#xA;[connection]&#xA;id=eth1&#xA;permissions=&#xA;interface-name=eth1&#xA;slave-type=bond&#xA;master=bond0&#xA;type=ethernet&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# bond0.nncommection&#xA;[connection]&#xA;id=bond0&#xA;permissions=&#xA;interface-name=bond0&#xA;type=bond&#xA;autoconnect-ports=1&#xA;controller=br0&#xA;port-type=bridge&#xA;[bond]&#xA;mode=active-backup&#xA;miimon=100&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now let&amp;rsquo;s configure the default bridge. I have a static IPv4 address and use IPv6 auto-config with one static server address. The &lt;code&gt;2001:DB8::/32&lt;/code&gt; prefix is not my actual prefix, but pref &lt;a class=&#34;link&#34; href=&#34;https://www.rfc-editor.org/rfc/rfc3849.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;RFC3849&lt;/a&gt; the prefix for documentation purposes. You also see a neat trick - IPv4 addresses like 192.168.0.50 fit perfectly in a &lt;code&gt;/64&lt;/code&gt; subnet by using &lt;code&gt;::192:168:0:50&lt;/code&gt; as suffix. If you want to remember the IP addresses of your servers, this is one strategy you can use.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# br0.nmconnection&#xA;[connection]&#xA;id=br0&#xA;permissions=&#xA;interface-name=br0&#xA;type=bridge&#xA;[ipv4]&#xA;method=manual&#xA;address1=192.168.0.50/24&#xA;dns=192.168.0.1&#xA;[ipv6]&#xA;method=auto&#xA;address1=2001:DB8:::192:168:0:50/64&#xA;[bridge]&#xA;stp=false&#xA;forward-delay=15&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This should already give you basic connectivity. Next come the VLAN interfaces and their bridges.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# vlan_homelab.nmconnection&#xA;[connection]&#xA;id=vlan.homelab&#xA;type=vlan&#xA;controller=br-homelab&#xA;interface-name=vlan.homelab&#xA;port-type=bridge&#xA;&#xA;[ethernet]&#xA;&#xA;[vlan]&#xA;flags=1&#xA;id=100&#xA;parent=bond0&#xA;&#xA;[bridge-port]&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# br_homelab.nmconnection&#xA;[connection]&#xA;id=br-homelab&#xA;type=bridge&#xA;autoconnect-ports=1&#xA;interface-name=br-homelab&#xA;&#xA;[ethernet]&#xA;&#xA;[bridge]&#xA;stp=false&#xA;&#xA;[ipv4]&#xA;method=auto&#xA;&#xA;[ipv6]&#xA;addr-gen-mode=default&#xA;method=auto&#xA;&#xA;[proxy]&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And the configuration for the IoT VLAN works then in the same way.&lt;/p&gt;&#xA;&lt;h2 id=&#34;last-tips&#34;&gt;Last tips&#xA;&lt;/h2&gt;&lt;p&gt;While working, I needed to see if I get VLAN packages into the system and found the following &lt;code&gt;tcpdump&lt;/code&gt; commands useful:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;tcpdump -i bond0 -nn -e  vlan               # check for VLAN packages on the bond&#xA;tcpdump -i eth0 &amp;#39;vlan 100&amp;#39;                  # listen for vlan packages from id=100 at the eth0 interface&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Happy hacking!&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Opinion: Small money doesn&#39;t exist</title>
            <link>https://feldspaten.org/2025/08/03/Small_Money/</link>
            <pubDate>Sun, 03 Aug 2025 21:45:43 +0200</pubDate>
            <guid>https://feldspaten.org/2025/08/03/Small_Money/</guid>
            <description>&lt;p&gt;I recently found a handful of coins on the parking lot of our supermarket. Nothing big, just a few coins all below 50 cents. Since in the Netherlands almost all money transactions are done digital, I have one of those wallets that doesn&amp;rsquo;t contain a pocket for coins anymore. I typically still carry some loose coins in that small little pocket in my jeans (if I wear jeans) and so I just put them in my pocket.&lt;/p&gt;&#xA;&lt;p&gt;While I was walking home, I realized, that I have no use any more for this small money. I carry still some 1 Euro or 2 Euro pieces around - for those few annoying times when you still need them (looking at you some supermarket carts! Or Toilets in Germany &amp;hellip; ) - but everything below 1 Euro or 50 Cent basically doesn&amp;rsquo;t exist anymore in my day. I honestly do not know what to do with those coins. I cannot pay with them, because I never pay in cash anymore, they are too few to put into my bank account. So either I store them, probably until the end of days, or at some point I will just donate them because that&amp;rsquo;s probably the best use I can make out of them. When one of those donation collection organisation go around, typically around Christmas time.&lt;/p&gt;&#xA;&lt;p&gt;Those coins, while still having some value, I find difficult to integrate into my life, and so they appear to be just some kind of parallel money. Maybe just because cash is rarely used here.&lt;/p&gt;&#xA;&lt;p&gt;Small money somehow doesn&amp;rsquo;t exist anymore. At least for peeps like me in their daily life. I don&amp;rsquo;t know if that&amp;rsquo;s a good thing or not, it kinda feels like a bit of both.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;My hand holding a handful of coins in the hand&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;180px&#34; data-flex-grow=&#34;75&#34; height=&#34;1920&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2025/08/03/Small_Money/coins.jpg&#34; srcset=&#34;https://feldspaten.org/2025/08/03/Small_Money/coins_hu_6c6b1ac0d67d4526.jpg 800w, https://feldspaten.org/2025/08/03/Small_Money/coins.jpg 1440w&#34; width=&#34;1440&#34;&gt;&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Heatpump - The first year</title>
            <link>https://feldspaten.org/2025/05/31/Heatpump-2024/</link>
            <pubDate>Sat, 31 May 2025 14:19:00 +0200</pubDate>
            <guid>https://feldspaten.org/2025/05/31/Heatpump-2024/</guid>
            <description>&lt;p&gt;Last winter season was the first season for our new heatpump in our permanent home. The first season was more of a stress test for the heatpump, as our roof isolation was not present, and much of the heating energy was wasted. This year was expensive and hopefully not representative for the years to come.&lt;/p&gt;&#xA;&lt;h2 id=&#34;winter-season-2024&#34;&gt;Winter season 2024&#xA;&lt;/h2&gt;&lt;p&gt;For this and future measurements I will consider the winter season to start on 01.10 and end on 01.04.&lt;/p&gt;&#xA;&lt;p&gt;For the Winter season 2024 (01.10.2024 - 01.04.2025) we used in total &lt;code&gt;3.7 MWh&lt;/code&gt; of power and &lt;code&gt;629 m³&lt;/code&gt; gas. At a current rate of ~0.30€/kWh and 1.35€/m³ this is about 2000€ for energy costs for the whole winter season. I&amp;rsquo;m curious how the summer months will look like, so we get a baseline for the continuous usage.&lt;/p&gt;&#xA;&lt;p&gt;The heat pump used 3.0 MWh of the total 3.7 MWh (netto usage) we spent over the winter.&#xA;I measure this directly at the socket of the heat pump with a smart plug.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s how much power we used in the months. Values are rounded to the next digit in the table.&lt;/p&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Month&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Netto usage&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Imported&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Exported&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Produced&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;October&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;371 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;316 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;107 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;181 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;November&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;801 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;649 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;8 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;57 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;December&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;838 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;700 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;0 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;32 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;January&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;915 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;752 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;6 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;54 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;February&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;600 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;564 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;79 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;144 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;March&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;233 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;466 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;244 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;384 kWh&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;This is a lot of energy spent on heating. Because our roof is not yet fully isolated, I assume that we lost a lot of energy through the cracks between the wooden boards. On some days one could feel cold air coming in - not good, but we didn&amp;rsquo;t manage to finish the isolation before. So, we need to see next year how much of a difference it makes. I have some expectations, especially because the gas usage was surprisingly very high.&lt;/p&gt;&#xA;&lt;p&gt;For comparison, in our first house in Almere we used in winter 2020 about 952 m³ of gas (and 1.3 MWh) in a house that was heated by gas only. In winter 2021 it was 850m³. In the house in Veldhoven, where we had only a heatpump for heating we used about 2.7 MWh of power - in a place that also always felt a bit cold.&lt;/p&gt;&#xA;&lt;p&gt;So the priority for next season is to get the roof isolated. And then we expect the power and gas consumption to go both down considerably.&#xA;The first year was more of a stress test, as it was really running non-stop at high throughput. It shows that it works, but we certainly lost a lot of energy due to the bad (or better non-existing) isolation.&lt;/p&gt;&#xA;&lt;h3 id=&#34;tldr&#34;&gt;TL;DR&#xA;&lt;/h3&gt;&lt;p&gt;The usage for the winter season 2024 (01.10.2024 - 01.04.2025) was as follows&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Total power usage: 3.7 MWh&#xA;Heatpump power usage: 3.0 MWh&#xA;Gas used: 629m³&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Assumption: Excessive energy loss due to not isolated roof.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Automatic backups with restic and systemd services</title>
            <link>https://feldspaten.org/2025/03/24/Automatic-backups-with-restic-and-systemd-services/</link>
            <pubDate>Mon, 24 Mar 2025 20:34:41 +0100</pubDate>
            <guid>https://feldspaten.org/2025/03/24/Automatic-backups-with-restic-and-systemd-services/</guid>
            <description>&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://restic.net/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Restic&lt;/a&gt; is a mature, effective and secure backup solution that covers a wide range of use cases. I use it heavily for all of my backups. The program itself is peak open source: it&amp;rsquo;s free (as in BSD-2-Clause license), runs on any modern OS, runs on systems low on resources and it can be learned in 30 minutes by reading the well-written &lt;a class=&#34;link&#34; href=&#34;https://restic.readthedocs.io/en/stable/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;documentation&lt;/a&gt;. It provides almost everything you need. Except for one thing, which we&amp;rsquo;re looking at today: Fully automated backups using a systemd service and timer.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m too lazy to run restic on a regular basis myself on my servers. Over the last years I iterated several times over my workflow and I think it reached an acceptable level of maturity. It started with simple cron jobs, later systemd units which ran bash scripts and now I&amp;rsquo;m down to a systemd-only service unit and a timer. This triggers backups on well defined intervals, and creates new snapshots in a fully automated way. If the systemd timer/service fails I get notifications via my existing monitoring utility.&lt;/p&gt;&#xA;&lt;h3 id=&#34;threat-model-considerations&#34;&gt;Threat model considerations&#xA;&lt;/h3&gt;&lt;p&gt;Before we start with the actual automation, an important security caveat: I store the backup password in plain text on the server system. The file can only be read by root. This means an attacker who can obtain root rights will be able to access the restic backups, including the snapshot history. In my threat scenario an attacker with root rights does not obtain anything moreby being able to access the backup, so this is fine.&lt;/p&gt;&#xA;&lt;p&gt;Consider your own threat model if this is fine for you. In most practical cases I think it&amp;rsquo;s reasonable safe to assume that an attacker with root rights does not get anything more than they already have, when they can access to the backup system, given they already have root access to the underlying machine.&lt;/p&gt;&#xA;&lt;h3 id=&#34;pre-requirements&#34;&gt;Pre-requirements&#xA;&lt;/h3&gt;&lt;p&gt;This automation only covers the creation of new snapshots. You will need to have the backup repository initialized yourself before you can start.&lt;/p&gt;&#xA;&lt;p&gt;You can do this yourself using the following, or (even better) &lt;a class=&#34;link&#34; href=&#34;https://restic.readthedocs.io/en/stable/010_introduction.html#quickstart-guide&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;consult the quick start guide&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ restic -r REPOSITORY init&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I won&amp;rsquo;t cover the details here, as the documentation does a much better job already.&lt;/p&gt;&#xA;&lt;p&gt;When using ssh (&lt;code&gt;sftp&lt;/code&gt; in the repository argument), you likely want to also setup passwordless ssh key authentication to the host you&amp;rsquo;re pushing the data to. Please ensure this is done in a safe way, e.g. you never login as root onto the target machine for pushing backups, ecc.&lt;/p&gt;&#xA;&lt;h2 id=&#34;automating-restic-with-systemd-services&#34;&gt;Automating restic with systemd services&#xA;&lt;/h2&gt;&lt;p&gt;We store the restic secrets and configuration in an environment file, which can only be read by root, e.g. &lt;code&gt;/etc/.restic.env&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-env&#34; data-lang=&#34;env&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;RESTIC_REPOSITORY&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&amp;lt;sftp:USER@REMOTE:PATH&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;RESTIC_PASSWORD&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&amp;lt;redacted&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;RESTIC_COMPRESSION&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&amp;lt;auto&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;max&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;none&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Replace the variables above to your liking. We need the repository, the password and (optionally) the compression. The file should have &lt;code&gt;0400&lt;/code&gt; mode and be owned by root, so that the secrets are not exposed to anyone else.&lt;/p&gt;&#xA;&lt;p&gt;Then we create the systemd unit and timer files, e.g. &lt;code&gt;/etc/systemd/system/restic-backup.service&lt;/code&gt; and &lt;code&gt;/etc/systemd/system/restic-backup.timer&lt;/code&gt;. Those files can have &lt;code&gt;0644&lt;/code&gt; mode as the secrets ares stored elsewhere.&#xA;In my case I create the backup and also remove old snapshots according to a retention policy in the same service unit.&#xA;I also perform a backup check at the end to ensure the repository is in a healthy state, however both steps are optional.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# /etc/systemd/system/restic-backup.service&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Description&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;Generate a restic backup snapshot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;After&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;network.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Service]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Type&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;oneshot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;WorkingDirectory&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/root&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStart&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/usr/bin/restic backup /etc /root /srv /home /var/log --tag auto&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStart&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/usr/bin/restic forget --prune --keep-hourly 6 --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --tag auto&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStart&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/usr/bin/restic check --read-data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;EnvironmentFile&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/etc/.restic.env&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Environment&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;XDG_CACHE_HOME=/var/cache&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Nice&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;19&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;IOSchedulingClass&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;best-effort &lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;IOSchedulingPriority&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;7&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;TimeoutSec&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;3600&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Restart&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;no&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Install]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;WantedBy&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;multi-user.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I also add &lt;code&gt;Nice&lt;/code&gt; and &lt;code&gt;IOSchedulingPriority&lt;/code&gt; to the restic commands, so that the backup runs in the background. This gives priority to other system services, both in terms of CPU and in terms of IO load, so that creating a backup will not have that much of an impact on the performance of running services.&lt;/p&gt;&#xA;&lt;p&gt;Adapt the retention policy in the &lt;code&gt;restic forget&lt;/code&gt; command to your liking. I also mark the automatic backups with the &lt;code&gt;auto&lt;/code&gt; tag, which is optional, but I do like it.&lt;/p&gt;&#xA;&lt;p&gt;And the corresponding timer unit:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# /etc/systemd/system/restic-backup.timer&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Description&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;Daily backups&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Timer]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;OnCalendar&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;daily&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Persistent&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Install]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;WantedBy&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;timers.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After creating those, you need to reload the systemd daemon and enable the timer. Then check the service by manually running the &lt;code&gt;restic-backup.service&lt;/code&gt; once, and see if everything works as expected. To do so, follow the following procedure:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# systemctl daemon-reload&#xA;# systemctl enable --now restic-backup.timer&#xA;# systemctl start restic-backup.service&#xA;# journalctl -eu restic-backup.service&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That&amp;rsquo;s it. Happy backup-ing!&lt;/p&gt;&#xA;&lt;h3 id=&#34;additional-notes&#34;&gt;Additional notes&#xA;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;Type=oneshot&lt;/code&gt; with &lt;code&gt;Type=simple&lt;/code&gt; to not block on the start operation.&lt;/li&gt;&#xA;&lt;li&gt;The initial service run can take some time. Be patient.&lt;/li&gt;&#xA;&lt;li&gt;Systemd services require a full path. I use openSUSE, so the paths are made for that. You might need to adapt it to your needs.&lt;/li&gt;&#xA;&lt;li&gt;Don&amp;rsquo;t forget to monitor your backups externally. Do not rely on silent automation!&lt;/li&gt;&#xA;&lt;li&gt;No backups without restore test.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
        </item><item>
            <title>Shoutout to Dutch free software: KNMI</title>
            <link>https://feldspaten.org/2025/02/10/Shoutout-KNMI/</link>
            <pubDate>Mon, 10 Feb 2025 20:23:43 +0100</pubDate>
            <guid>https://feldspaten.org/2025/02/10/Shoutout-KNMI/</guid>
            <description>&lt;p&gt;Just a quick shoutout to the Dutch weather provider KNMI, who open sourced the official Android App plus Infrastructure on &lt;a class=&#34;link&#34; href=&#34;https://gitlab.com/KNMI-OSS/KNMI-App&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Gitlab&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The Koninklijk Nederlands Meteorologisch Instituut (royal Dutch metrological institute) is a scientific institute of the Dutch government responsible for weather, climate and seismology. Clarification: They are responsible for monitoring the weather, not for making the weather. (We live in trying times). They are part of the &lt;a class=&#34;link&#34; href=&#34;https://www.government.nl/ministries/ministry-of-infrastructure-and-water-management&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Ministry of Infrastructure and Water Management&lt;/a&gt;, who keep our feet dry.&lt;/p&gt;&#xA;&lt;p&gt;Good job KNMI! This is great news 😃&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Nepenthes tarpit</title>
            <link>https://feldspaten.org/2025/02/07/Nepenthes-tarpit/</link>
            <pubDate>Fri, 07 Feb 2025 13:16:25 +0100</pubDate>
            <guid>https://feldspaten.org/2025/02/07/Nepenthes-tarpit/</guid>
            <description>&lt;p&gt;I recently discovered &lt;a class=&#34;link&#34; href=&#34;https://zadzmo.org/code/nepenthes/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Nepenthes&lt;/a&gt;, a tarpit for LLM web crawlers. It&amp;rsquo;s essentially a reverse &lt;a class=&#34;link&#34; href=&#34;https://en.wikipedia.org/wiki/Slowloris_%28cyber_attack%29&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Slowloris&lt;/a&gt; that spits out markov-chain nonsense. A nice way to catch unwanted guests and feed them what they are searching for.&lt;/p&gt;&#xA;&lt;p&gt;I &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/2024/08/13/Don%27t-spam-my-forge/&#34; &gt;had my fair share&lt;/a&gt; with those nasty LLM crawlers and so I setup &lt;a class=&#34;link&#34; href=&#34;https://teergrube.feldspaten.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;my own tarpit&lt;/a&gt;. The robots.txt file disallows everything, so unless you are not respecting the big STOP sign you have nothing to fear.&lt;/p&gt;&#xA;&lt;h2 id=&#34;setup&#34;&gt;Setup&#xA;&lt;/h2&gt;&lt;p&gt;Follow the instructions from &lt;a class=&#34;link&#34; href=&#34;https://zadzmo.org/code/nepenthes/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://zadzmo.org/code/nepenthes/&lt;/a&gt;. I use a container.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Configure &lt;code&gt;docker/config.yaml&lt;/code&gt; to your liking. The default values are fine.&lt;/li&gt;&#xA;&lt;li&gt;Build the container using the &lt;code&gt;docker/Containerfile&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Train the markov chain. To do so, you need a big text file. &lt;a class=&#34;link&#34; href=&#34;https://en.wikipedia.org/wiki/Wikipedia:Good_articles/By_length&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Wikipedia&lt;/a&gt; is a good resources, I used Homer&amp;rsquo;s Iliad from Project Gutenberg. Everyone should use a different file, so that the output is different. One can use multiple files.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;curl -X POST -d @iliad.txt -H &amp;#39;Content-type: text/plain&amp;#39; http://localhost:8893/train&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;http://localhost:8893&lt;/li&gt;&#xA;&lt;li&gt;Grap a drink and enjoy&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;final-note&#34;&gt;Final note&#xA;&lt;/h2&gt;&lt;p&gt;And now the link is in circulation. I wonder how long it will take to catch the first baddies.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>12025 - Less is more</title>
            <link>https://feldspaten.org/2025/01/08/The-year-of-less/</link>
            <pubDate>Wed, 08 Jan 2025 12:07:54 +0100</pubDate>
            <guid>https://feldspaten.org/2025/01/08/The-year-of-less/</guid>
            <description>&lt;p&gt;Welcome to the year 12025 human era. For me this will be the year of less.&lt;/p&gt;&#xA;&lt;p&gt;Last year was intensive. We got a child, our own house, we did renovations, work also got more intensive, we moved, we learned to live with a kid and it felt like a constant run against the clock to get the thousand different things somehow sorted.&#xA;It was worth it for sure, but it was costing a lot of energy. Last year was unsustainable.&lt;/p&gt;&#xA;&lt;p&gt;So, to get back on track and be a more pleasant human being for me and for the people around me, I decided that this year will be the year of less.&#xA;This means: Less things that we have to do, less stuff, less struggle, less good intentions, less ongoing unfinished business.&#xA;I probably still try to accomplish too much, and this has become a bad habit. I realized that at the end of the day, doing a few things good is probably more rewarding than doing many things half-hearted and leave them unfinished for way too long.&lt;/p&gt;&#xA;&lt;p&gt;12025 will be also a turbulent and troublesome year. And it helps for the personal resilience to get your sh*t together and don&amp;rsquo;t feel constantly overloaded with everything. Being a father is already enough to fill most days, even without the unpleasant times ahead. I do see a need for adaptation and overall resilience in order to master the stormy waters ahead.&lt;/p&gt;&#xA;&lt;p&gt;So, this is my new years resolution. 12025 for me will be the year of less. Because less is more. I believe it will be good thing 😀&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>ARM needs to become more mainstream</title>
            <link>https://feldspaten.org/2024/12/15/ARM-needs-to-become-more-mainstream/</link>
            <pubDate>Sun, 15 Dec 2024 15:48:54 +0100</pubDate>
            <guid>https://feldspaten.org/2024/12/15/ARM-needs-to-become-more-mainstream/</guid>
            <description>&lt;p&gt;&lt;em&gt;&amp;hellip; or at least more upstream&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Recently I tried to migrate our home NAS from our good old (TM) Intel Celeron N3150 to a more modern &lt;a class=&#34;link&#34; href=&#34;http://radxa.com/products/rock5/5itx/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Radxa Rock 5 ITX&lt;/a&gt;. The new board fits perfectly to the needs of our home: Small, enough peripherals for what I need, low-power yet strong enough to host our home services on it for the next years to come. And it doesn&amp;rsquo;t cost an arm and a leg, although it&amp;rsquo;s not cheap either. And it&amp;rsquo;s ARM based.&lt;/p&gt;&#xA;&lt;p&gt;ARM boards are still a bit tricky, but since I have a &lt;a class=&#34;link&#34; href=&#34;http://radxa.com/products/rock5/5b/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Radxa Rock 5B&lt;/a&gt; already, I kinda know what to expect. The Rock 5B performs well. It&amp;rsquo;s small, low power yet still performant enough. In short, it is a good little board for many many use cases and it runs perfectly fine with a single NVME SSD disk. I have some smaller issues on the older Kernel of the openSUSE Leap Micro 5.5 on it, and discovered that the most annoying one disappears with the newer Kernel of classical openSUSE Leap 15.6. HDMI is still not working, but that&amp;rsquo;s just a minor annoyance for me, as the UART serial port works perfectly fine. I anyways run it headless after the installation, so except for when shit hits the fan, I anyways don&amp;rsquo;t need it. All in all this is a fine little fella, it has some rough edges but it does a decent job.&lt;/p&gt;&#xA;&lt;p&gt;Both boards boots fine once a &lt;a class=&#34;link&#34; href=&#34;https://github.com/edk2-porting/edk2-rk3588&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;custom firmware&lt;/a&gt; is installed on it. On the Rock 5B I still don&amp;rsquo;t see the eMMC, but that never bothered me much. I just installed the main system on the NVME and that worked perfectly fine. All in all, there are some quirks, but one gets the hang on them, and at the end of the day it is just fine. Not perfect, but fine. It gets the job done and doesn&amp;rsquo;t use much power, which is awesome.&lt;/p&gt;&#xA;&lt;p&gt;So, with all of that said, I prepared the whole system to replace the old NAS. I have installed a base system and configured it. I then disconnected the the old board out, swapped the new one in and &amp;hellip; discovered that the SATA ports are not available because the &lt;a class=&#34;link&#34; href=&#34;https://gitlab.collabora.com/hardware-enablement/rockchip-3588/notes-for-rockchip-3588/-/blob/main/mainline-status.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;SATA subsystem is only supported on Kernel 6.5&lt;/a&gt;, while Leap is still on 6.4. &lt;em&gt;grml&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I just blindly assumed that a board based on the similar Rock 5B (released early 2022) would be sufficiently supported by now, so technically this mess is on me. I am also somehow prepared for issues like this, because while ARM matures slowly, they are still to be treaded as development boards and not commodity products. I expected some issues when I bought it, and this is not the first time I end up with a board and have to fiddle around to make it work.&lt;/p&gt;&#xA;&lt;p&gt;But I still wonder &amp;hellip; I mean, I want ARM to succeed, I really really do. I also want RISC-V to succeed. But I still wonder &amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;I still wonder, why it is so common when buying a ARM board, especially not a cheap one like the Radxa Rock boards, that it seldom just runs out-of-the-box in the same way as a off-the-shelf x86_64 board does?&lt;/p&gt;&#xA;&lt;p&gt;I remember countless times when I need to fiddle around with U-Boot. Or just stick to the custom Debian/Ubuntu builds (looking at you Turing Pi RK1) that are not-so-open and often poorly supported. Or that require a non-mainstream U-Boot. Or what else &amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;Mainline Linux support is still lacking way way way behind when compared to x86_64. And I feel, that if we want to make ARM server boards successful, there is no other way around than improve the mainline Linux support. So that ultimately the out-of-the-box experience is such that people can just buy stuff off-the-shelf hardware and install any mainstream Linux distro on it, just the same way as we do nowadays with most x86_64 boards.&lt;/p&gt;&#xA;&lt;p&gt;My issue will eventually go away with a newer kernel, either built myself or by mainstream openSUSE.&#xA;In the meantime I hope that most of the &lt;a class=&#34;link&#34; href=&#34;https://gitlab.collabora.com/hardware-enablement/rockchip-3588/notes-for-rockchip-3588/-/blob/main/mainline-status.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;RK3588 stuff gets upstreamed soon&lt;/a&gt;, so that the in the next years the main distros will ship a kernel, that will support this hardware before it becomes obsolete.&lt;/p&gt;&#xA;&lt;p&gt;And I hope, that the available ARM boards of tomorrow become mainstream enough, that everyone can just but them off-the-shelf, install their preferred mainstream Linux distribution on it, and doesn&amp;rsquo;t find themselves in a situation, where the SATA ports are simply not showing up.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m looking forward to that day, and I&amp;rsquo;m certain it will come. It will be a good day. Until then, I guess ARM hardware is still reserved to the few of us, that are willing to take some risk and invest a certain amount of time in fiddling with them to make them work.&lt;/p&gt;&#xA;&lt;p&gt;Because at the end of the day &amp;hellip; There&amp;rsquo;s also some fun in fiddling with the hardware you got, because that makes me sometimes love and appreciate it even more.&lt;/p&gt;&#xA;&lt;p&gt;Cheers.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Recall is uninstallable, Microsoft says</title>
            <link>https://feldspaten.org/2024/11/01/Recall-is-uninstallable/</link>
            <pubDate>Fri, 01 Nov 2024 15:07:33 +0100</pubDate>
            <guid>https://feldspaten.org/2024/11/01/Recall-is-uninstallable/</guid>
            <description>&lt;p&gt;Multiple online sources report that Microsoft claims &lt;a class=&#34;link&#34; href=&#34;https://www.theverge.com/2024/10/29/24282821/microsoft-windows-recall-feature-optional-uninstall&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Recall to be an opt-in experience and you can remove it&lt;/a&gt;. I cannot find any direct article from Microsoft itself, but there are &lt;a class=&#34;link&#34; href=&#34;https://www.windowslatest.com/2024/09/30/uninstall-windows-recall-ai-in-windows-11/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;others&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.bleepingcomputer.com/news/microsoft/microsoft-windows-recall-now-can-be-removed-is-more-secure/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;confirming&lt;/a&gt; it with direct references to Microsoft spokepeople.&lt;/p&gt;&#xA;&lt;p&gt;I have my doubts that this will age well, and that&amp;rsquo;s why I&amp;rsquo;m posting this here. In a typical Microsoft move we will first see it slowly creeping into Windows, then users will be nudged into enabling it until enough are accustomed to it and then they will remove the option to opt-out. If we&amp;rsquo;re lucky we get a checkbox that will disable it, with no guarantee that the next Windows Update will not accidentally enable it for you. The internet is &lt;a class=&#34;link&#34; href=&#34;https://www.reddit.com/r/Windows10/comments/n1hoz0/windows_please_stop_changing_my_settings_with/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;full&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.reddit.com/r/WindowsHelp/comments/18ymz6x/windows_11_desktop_background_changed_by_itself/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;of&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://techcommunity.microsoft.com/t5/discussions/the-whole-interface-in-windows-10-changed-automatically-after-i/m-p/4190769&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;examples&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://answers.microsoft.com/en-us/msoffice/forum/all/why-did-onedrive-relinkre-activate-itself-after-a/b1101eec-daa9-4237-a3f1-a9b165495811&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;of&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://answers.microsoft.com/en-us/windows/forum/all/latest-update-changed-my-onedrive-settings/b9ef128f-14f3-486f-8242-cd73d39e32a9&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;this&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://answers.microsoft.com/en-us/windows/forum/all/did-onedrive-just-get-auto-enabled-on-accounts/f28d95f5-a639-4087-b703-2b251b7a7ed5&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;behaviour&lt;/a&gt;, &lt;a class=&#34;link&#34; href=&#34;https://www.reddit.com/r/Windows11/comments/1dnr3p7/windows_11_is_now_automatically_enabling_onedrive/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;especially&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.thurrott.com/windows/windows-11/305040/microsoft-is-silently-reversing-some-onedrive-enshittification-in-windows-11&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;around&lt;/a&gt; &lt;a class=&#34;link&#34; href=&#34;https://www.reddit.com/r/technology/comments/1dnprc5/windows_11_is_now_automatically_enabling_onedrive/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;OneDrive&lt;/a&gt;. Similar to forced telemetry this is going to be yet another privacy-disregarding move from a company that thinks they know better.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s not forget that &lt;a class=&#34;link&#34; href=&#34;https://www.bleepingcomputer.com/news/microsoft/microsofts-new-windows-11-recall-is-a-privacy-nightmare/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Recall is a privacy nightmare&lt;/a&gt; by design, and there is little what even Microsoft can do about it. This will fall down on the feet of many users with or without their knowledge.&lt;/p&gt;&#xA;&lt;p&gt;November 1, we are in the &amp;ldquo;pretend that the user has a choice&amp;rdquo;-phase of the Recall feature. This will not last.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>When fascism knocks on the door</title>
            <link>https://feldspaten.org/2024/10/06/When-fascism-knocks-on-the-door/</link>
            <pubDate>Sun, 06 Oct 2024 16:07:53 +0200</pubDate>
            <guid>https://feldspaten.org/2024/10/06/When-fascism-knocks-on-the-door/</guid>
            <description>&lt;p&gt;Fascism isn&amp;rsquo;t knocking on the door with a &amp;ldquo;hello, I&amp;rsquo;m fascism, please empower me&amp;rdquo;.&lt;br&gt;&#xA;Fascism knocks on your door with &amp;ldquo;this person over there steals your butter. Vote for me, I will make sure they&amp;rsquo;re not going to have any more butter on their bread&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;Fascism is subtile until it isn&amp;rsquo;t. And then it&amp;rsquo;s probably too late.&lt;/p&gt;&#xA;&lt;p&gt;#fuckfascism&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>mqtt to Influxdb with telegraf</title>
            <link>https://feldspaten.org/2024/10/01/Mqtt-to-Influxdb-with-telegraf/</link>
            <pubDate>Tue, 01 Oct 2024 22:07:08 +0200</pubDate>
            <guid>https://feldspaten.org/2024/10/01/Mqtt-to-Influxdb-with-telegraf/</guid>
            <description>&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://mqtt.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Mqtt&lt;/a&gt; is a lightweight publish-subscriber protocol for message queues, typically used with IoT devices, but also for monitoring services. As such, messages have typically a ephemeral character. I use several Zigbee sensors together with &lt;a class=&#34;link&#34; href=&#34;https://www.zigbee2mqtt.io/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;zigbee2mqtt&lt;/a&gt; in our house and I wanted to collect and store all the mqtt messages in a database to keep track of what&amp;rsquo;s going on. In this blog post I describe how to write all mqtt messages into an InfluxDB database using &lt;code&gt;telegraf&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;First we will discuss how &lt;a class=&#34;link&#34; href=&#34;https://www.influxdata.com/time-series-platform/telegraf/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;telegraf&lt;/a&gt; can be used to write mqtt messages to influxdb. Then there is &lt;a class=&#34;link&#34; href=&#34;#systemd-podman-service&#34; &gt;a tutorial&lt;/a&gt; on how to implement this as a systemd service using a &lt;code&gt;podman&lt;/code&gt; container.&lt;/p&gt;&#xA;&lt;h2 id=&#34;mqtt2influxdb&#34;&gt;Telegraf as mqtt2influxdb bridge&#xA;&lt;/h2&gt;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://www.influxdata.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;InfluxDB&lt;/a&gt; is often a good choice for mqtt-based messages because it&amp;rsquo;s a) a natural time series and b) typically already &lt;code&gt;json&lt;/code&gt; data following a scheme, even if not a strict one. Measurement of various sensors typically follow this pattern, this makes InfluxDB in my opinion a very good fit for many lab measurements, such as this one (yes it&amp;rsquo;s our home, but I tread it as a laboratory for those experiments).&lt;/p&gt;&#xA;&lt;p&gt;Measurements are organized in different buckets, indexed with a unique timestamp and a measurement name with an arbitrary number of fields, which is an exact match for all of the sensors that I have. Each measurement happens at a given time, is identified by a name and can contain multiple readings (&amp;ldquo;fields&amp;rdquo;): Take for instance simple temperature/humidity sensor. Every other second it reports it&amp;rsquo;s reading as one single measurement, containing two different readings: one for the temperature and one for the humidity:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;home/zigbee/livingroom&amp;#34;&lt;/span&gt; &lt;span class=&#34;err&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;#34;battery&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;60&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;#34;humidity&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;60.4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;#34;last_seen&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1727811333827&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;#34;temperature&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;21.4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Everything until here works nicely out of the box with &lt;a class=&#34;link&#34; href=&#34;https://www.zigbee2mqtt.io/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;zigbee2mqtt&lt;/a&gt;. My task was to bridge the mqtt messages to Influxdb, or in other words, how to write the mqtt messages into an InfluxDB database. I figured that &lt;a class=&#34;link&#34; href=&#34;https://www.influxdata.com/time-series-platform/telegraf/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;telegraf&lt;/a&gt; (a monitoring agent from the same company that also provides InfluxDB) is a capable tool for doing this task. I typically use it as a monitoring agent for many of my server systems, that&amp;rsquo;s why I came up using &lt;code&gt;telegraf&lt;/code&gt; for this task as well.&lt;/p&gt;&#xA;&lt;p&gt;To see how it works, see the following configuration file &lt;code&gt;telegraf.conf&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;# agent configuration (optional)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;agent&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;omit_hostname&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;## zigbee2mqtt input&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;inputs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;mqtt_consumer&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;servers&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;tcp://192.168.0.101:1883&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;topics&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;home/zigbee/+&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;data_format&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;json&amp;#34;&lt;/span&gt; &lt;span class=&#34;c&#34;&gt;# see https://docs.influxdata.com/telegraf/v1/data_formats/input/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;json_strict&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c&#34;&gt;# take the measurement name from the mqtt topic&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;inputs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;mqtt_consumer&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;topic_parsing&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;topic&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/zigbee/+&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;measurement&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;_/_/measurement&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;## InfluxDB output&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;outputs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;influxdb_v2&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;urls&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;http://192.168.0.102:8086&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;token&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;&amp;lt;redacted&amp;gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;organization&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;bucket&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This configuration is all you need to already write the readings from zigbee2mqtt to your InfluxDB database.&#xA;It expects the input fields to be &lt;code&gt;json&lt;/code&gt; formatted, and will parse the measurement name from the topic. For me this works e.g. with the mqtt message we already saw above:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;home/zigbee/livingroom&amp;#34;&lt;/span&gt; &lt;span class=&#34;err&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;#34;battery&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;60&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;#34;humidity&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;60.4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;#34;last_seen&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;1727811333827&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;&amp;#34;temperature&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;21.4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here &lt;code&gt;telegraf&lt;/code&gt; correctly deduces the measurement name to be the &amp;ldquo;livingroom&amp;rdquo; measurement with the readings in &lt;code&gt;json&lt;/code&gt; format. InfluxDB can directly work with those, no further processing needed.&lt;/p&gt;&#xA;&lt;h2 id=&#34;translating-multiple-metrics-into-one-multi-field-metric&#34;&gt;Translating multiple metrics into one multi-field metric&#xA;&lt;/h2&gt;&lt;p&gt;I also have a &lt;a class=&#34;link&#34; href=&#34;https://smartgateways.nl/product/slimme-meter-wifi-gateway-met-display/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;smart meter wifi gateway&lt;/a&gt;, pushes the readings from our power smart meter to mqtt. This works great, the readings I&amp;rsquo;m getting are like the following:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;home/smartgateway/dsmr/reading/electricity_delivered_1 21972.75&#xA;home/smartgateway/dsmr/reading/electricity_returned_1 2487.19&#xA;home/smartgateway/dsmr/reading/electricity_delivered_2 17605.84&#xA;home/smartgateway/dsmr/reading/electricity_returned_2 5700.87&#xA;home/smartgateway/dsmr/reading/electricity_currently_delivered 0.26&#xA;home/smartgateway/dsmr/reading/electricity_currently_returned 0.00&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Here every reading is in it&amp;rsquo;s own topic, and with the above configuration this would result in every single reading being a own measurement.&#xA;This works, but is not ideal. It would be better to have them all aggregated into one measurement, with the different topics being different fields.&lt;/p&gt;&#xA;&lt;p&gt;In order to aggregate multiple readings into one single multi-value measurement, &lt;code&gt;telegraf&lt;/code&gt; ships the &lt;a class=&#34;link&#34; href=&#34;https://github.com/influxdata/telegraf/blob/master/plugins/processors/pivot/README.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;pivot processor plugin&lt;/a&gt;. This allows to rotate single values metrics (here e.g. &lt;code&gt;electricity_delivered_1 value=21972.75&lt;/code&gt;) into one multi-field metric (e.g. &lt;code&gt;smartgateway electricity_delivered_1=21972.75 electricity_returned_1=2487.19 ...&lt;/code&gt;).&#xA;This means it transforms the following independent readings:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;electricity_delivered_1 value=21972.75&#xA;electricity_returned_1 value=2487.19&#xA;electricity_delivered_2 value=17605.84&#xA;electricity_returned_2 value=5700.87&#xA;electricity_currently_delivered value=0.26&#xA;electricity_currently_returned value=0.00&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Into one single measurement:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;smartgateway electricity_delivered_1=21972.75,electricity_returned_1=2487.19electricity_delivered_2=17605.84,electricity_returned_2=5700.87,electricity_currently_delivered=0.26,electricity_currently_returned=0.00&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This provides an elegant way to better organize the database datastructures. Less clutter and more compact and concise data is something that makes your life much easier in the short and in the long run, at least in my experience.&lt;/p&gt;&#xA;&lt;p&gt;See the following example &lt;code&gt;telegraf.conf&lt;/code&gt; configuration file to achieve this for our smart gateway:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;## Smart gateway&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;inputs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;mqtt_consumer&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;servers&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;tcp://192.168.0.101:1883&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;topics&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/electricity_tariff&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/electricity_delivered_1&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/electricity_delivered_2&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/electricity_returned_1&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/electricity_returned_2&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/electricity_currently_delivered&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/electricity_currently_returned&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/consumption/gas/delivered&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;data_format&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;value&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;data_type&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;float&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c&#34;&gt;# Parse the tariff as int (while the rest is a float value)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;inputs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;mqtt_consumer&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;topic_parsing&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;topic&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/electricity_tariff&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;measurement&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;_/measurement/_/_/_&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;tags&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;_/_/_/_/field&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;data_format&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;value&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;data_type&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;int&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c&#34;&gt;# Parse the electricity readings&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;inputs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;mqtt_consumer&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;topic_parsing&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;topic&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/reading/+&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;measurement&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;_/measurement/_/_/_&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;tags&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;_/_/_/_/field&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;c&#34;&gt;# Parse the gas readings&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;inputs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;mqtt_consumer&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;topic_parsing&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;topic&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;home/smartgateway/dsmr/consumption/gas/delivered&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;measurement&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;_/measurement/_/_/_/_&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;tags&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;_/_/_/_/field/_&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;# Aggregate the readings into one measurement&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;processors&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;pivot&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;tag_key&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;field&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;value_key&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;value&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c&#34;&gt;# Insert here: The InfluxDB section&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;telegraf&lt;/code&gt; supports a wide array of configuration options, from different &lt;a class=&#34;link&#34; href=&#34;https://docs.influxdata.com/telegraf/v1/data_formats/input/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;input formats&lt;/a&gt; (here we use &lt;code&gt;json&lt;/code&gt; but also plain &lt;code&gt;value&lt;/code&gt; fields) as well as many &lt;a class=&#34;link&#34; href=&#34;https://github.com/influxdata/telegraf/blob/master/plugins/inputs/mqtt_consumer/README.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;mqtt configuration&lt;/a&gt; options. The provided example configuration in their documentation are understandable and a useful information resource.&lt;/p&gt;&#xA;&lt;h2 id=&#34;systemd-podman-service&#34;&gt;Running mqtt2influxdb as system service using podman&#xA;&lt;/h2&gt;&lt;p&gt;I realized my small &lt;code&gt;mqtt2influxdb&lt;/code&gt; gateway/bridge as a simple systemd service, running a &lt;code&gt;podman&lt;/code&gt; container. To achieve this you need:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A &lt;code&gt;telegraf.conf&lt;/code&gt; file (stored in &lt;code&gt;/etc/mqtt2influxdb&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;podman&lt;/code&gt; (although &lt;code&gt;docker&lt;/code&gt; works as well, but not as systemd service)&lt;/li&gt;&#xA;&lt;li&gt;The quadlet file described below&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#container-units-container&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;quadlets&lt;/a&gt; are container template files, that systemd transforms into units via its service generator. Quadlets are cool because they get rid of a lot of boilerplate code. They are nothing special and can also be replaced by a traditional systemd unit file (e.g. as the ones &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/2022/07/09/On-the-joy-of-podman-and-auto-updates/&#34; &gt;I wrote about here&lt;/a&gt;).&#xA;I implemented my &lt;code&gt;mqtt2influxdb&lt;/code&gt; service via the following quadlet configuration in &lt;code&gt;/etc/containers/systemd/mqtt2influxdb.container&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Description&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;mqtt to influxdb writer&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Container]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Update version to your liking or use latest&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Image&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;docker.io/telegraf:1.32&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ContainerName&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;mqtt2influxdb&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;AutoUpdate&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;registry&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Volume&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/etc/mqtt2influxdb/telegraf.conf:/etc/telegraf/telegraf.conf:ro&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;AddCapability&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;cap_net_raw&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Service]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Restart&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;always&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Install]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Start by default on boot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;WantedBy&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;multi-user.target default.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After storing this, do a &lt;code&gt;systemctl daemon-reload &amp;amp;&amp;amp; systemctl start mqtt2influxdb.service&lt;/code&gt;.&#xA;Quadlets don&amp;rsquo;t need to be enabled, they will be started automatically on boot time.&lt;/p&gt;&#xA;&lt;p&gt;That&amp;rsquo;s all what you need for your own &lt;code&gt;mqtt2influxdb&lt;/code&gt; gateway. &lt;code&gt;telegraf&lt;/code&gt; is a mighty tool and makes this whole task easily achievable, without the need to hack together your own bridge. That will be a project for another rainy day.&lt;/p&gt;&#xA;&lt;p&gt;Cheers.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Achievement unlocked: House</title>
            <link>https://feldspaten.org/2024/09/20/Achievement-unlocked:-House/</link>
            <pubDate>Fri, 20 Sep 2024 20:26:43 +0200</pubDate>
            <guid>https://feldspaten.org/2024/09/20/Achievement-unlocked:-House/</guid>
            <description>&lt;img src=&#34;https://feldspaten.org/2024/09/20/Achievement-unlocked:-House/homey.jpg&#34; alt=&#34;Featured image of post Achievement unlocked: House&#34; /&gt;&lt;p&gt;&lt;em&gt;Life goal unlocked: Living in our own home.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;We recently did the move to our new permanent home in the beautiful town on Nuenen. The move was a bit chaotic and the last months have been quite an experience. But that lies in the past, we&amp;rsquo;re still living between the boxes and there are many things still to be done in our home. But we have a place that we can call our own. Achievement unlocked! 🌟&lt;/p&gt;&#xA;&lt;p&gt;I hope that I will find some more time in the coming months to post some smaller stories about the past and ongoing renovations, but for now the long valley of silence has been broken. Slowly the network infrastructure is booting up (yesterday I setup the Turing Pi cluster again), so things are moving towards operational again. Nice.&lt;/p&gt;&#xA;&lt;p&gt;Also: It&amp;rsquo;s good to be home! :-)&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Don&#39;t spam my forge</title>
            <link>https://feldspaten.org/2024/08/13/Don&#39;t-spam-my-forge/</link>
            <pubDate>Tue, 13 Aug 2024 21:30:01 +0200</pubDate>
            <guid>https://feldspaten.org/2024/08/13/Don&#39;t-spam-my-forge/</guid>
            <description>&lt;p&gt;Please, don&amp;rsquo;t spam my forgejo instance.&lt;/p&gt;&#xA;&lt;p&gt;Someone is trying to pull stuff from non-existing repositories from my forgejo instance and puts &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/2024/08/07/Starving-your-database/&#34; &gt;a significant load&lt;/a&gt; onto my server.&lt;/p&gt;&#xA;&lt;p&gt;No hard feelings, please just check your bots 🙂 I don&amp;rsquo;t log IP addresses per request and would like to keep it that way. Thank you!&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Starving your database</title>
            <link>https://feldspaten.org/2024/08/07/Starving-your-database/</link>
            <pubDate>Wed, 07 Aug 2024 14:06:48 +0200</pubDate>
            <guid>https://feldspaten.org/2024/08/07/Starving-your-database/</guid>
            <description>&lt;img src=&#34;https://feldspaten.org/2024/08/07/Starving-your-database/load-timeseries.png&#34; alt=&#34;Featured image of post Starving your database&#34; /&gt;&lt;p&gt;&lt;em&gt;How does it look when your database is starved from memory and runs into trouble?&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Recently &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/2024/06/17/Migrated-to-ARM/&#34; &gt;feldspaten moved to a ARM server&lt;/a&gt; and by doing so, I drastically reduced the amount of system resources.&#xA;Previously I rented a dedicated root server, which was certainly overkill and I didn&amp;rsquo;t see the need for it anymore. Servers just got so powerful that renting the fraction of one is just enough for everything I need.&lt;/p&gt;&#xA;&lt;p&gt;As part of the migration I also limited the resources for every system service. Most of them run as containers now, where this is trivial to achieve.&#xA;I use mostly postgresql and this service was also limited in it&amp;rsquo;s resources.&#xA;However it looks like I went a bit too low and this caused some operational interruptions in the last days, thanks to scrapers scraping my &lt;code&gt;forgejo&lt;/code&gt; instance.&#xA;The database just got overwhelmed by the load of those bastards. And this is how it looks like when that happens in Grafana, after I increased the available memory again:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Load average gauge showing load of more than 1000% on load15&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;569px&#34; data-flex-grow=&#34;237&#34; height=&#34;198&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2024/08/07/Starving-your-database/load-gauge.png&#34; width=&#34;470&#34;&gt;&#xA;&lt;img alt=&#34;Load average timeseries showing a massive peak&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;611px&#34; data-flex-grow=&#34;254&#34; height=&#34;311&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2024/08/07/Starving-your-database/load-timeseries.png&#34; width=&#34;793&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;On the load gauges one can see, what difference it makes to give the postgresql database enough memory. The &lt;code&gt;load1&lt;/code&gt; is back to about 10%, while load5 and load15 still need to &amp;ldquo;calm down&amp;rdquo;. In the timeseries graph one can see the large peak in system load once the database run into trouble. And after increasing the &lt;code&gt;shared_buffers&lt;/code&gt; from 32 to 512 MB and restarting the database.&lt;/p&gt;&#xA;&lt;p&gt;The load gauge immediately dropped after restarting the database with more memory. And now it (hopefully) stays low.&#xA;This is how the load peak looks in the monitoring system:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Peak load shown in a time series&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;616px&#34; data-flex-grow=&#34;257&#34; height=&#34;305&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2024/08/07/Starving-your-database/calmed-down.png&#34; width=&#34;784&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This graph just shows the same as above but at a later time, so that one can see the full peak and how the server settled down again.&lt;/p&gt;&#xA;&lt;h2 id=&#34;lessons-learned&#34;&gt;Lessons learned&#xA;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Monitor your systems. That saves you from deeper trouble. And always have backups.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I could react on time and prevent this little incident of becoming a problem. The fix was simple and luckily I caught it on time, before the database went completely haywire.&lt;/p&gt;&#xA;&lt;p&gt;This issue could also have been prevented by allocating enough resources from the start, but that&amp;rsquo;s against the exercise I&amp;rsquo;m right now doing right now.&#xA;The intention is to reduce the resources needed, and reducing the memory for postgresql is part of the game. But I had monitoring in place and was prepared for some &amp;ldquo;migration pain&amp;rdquo; or issues like this to occur. The fix was easy and in the end I have now a better tuned system and a better understanding of how much resources I really need. Plus the the resource usage is still low. Maybe not minimal, but low. I consider this a good thing for the planet 🌍🙂.&lt;/p&gt;&#xA;&lt;p&gt;Throwing resources at the problem is certainly a way of preventing issues of this kind in the first place. But it&amp;rsquo;s also wasteful. And one doesn&amp;rsquo;t learn how much resources you actually need to run your services. I&amp;rsquo;m not saying that approach is wrong, it really depends on your goals and use case.&#xA;Mine is to be more resource friendly, and resource tuning is just part of the journey to minimal power and resource usage.&lt;/p&gt;&#xA;&lt;p&gt;For me in particular: &lt;code&gt;512MB&lt;/code&gt; of shared buffers appears to be more than enough for a not-too-busy postgresql server that serves multiple services like &lt;a class=&#34;link&#34; href=&#34;https://github.com/matrix-org/synapse/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;synapse&lt;/a&gt; or &lt;a class=&#34;link&#34; href=&#34;https://forgejo.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;forgejo&lt;/a&gt; (and some smaller ones). And, given nowadays hardware, I will not use less than &lt;code&gt;128MB&lt;/code&gt; of shared buffers in the future anymore for postgresql.&lt;/p&gt;&#xA;&lt;p&gt;Also, once again: monitor your systems. That can save you from deeper trouble.&lt;/p&gt;&#xA;&lt;p&gt;And always have backups.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>In memoriam: Peter Fouché</title>
            <link>https://feldspaten.org/2024/07/01/Peter-Fouche/</link>
            <pubDate>Mon, 01 Jul 2024 20:31:38 +0200</pubDate>
            <guid>https://feldspaten.org/2024/07/01/Peter-Fouche/</guid>
            <description>&lt;p&gt;Peter Fouché, a combat medic and founder of the charitable organization &lt;a class=&#34;link&#34; href=&#34;https://projectkonstantin.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;project Konstantin&lt;/a&gt; has died on the 27. June from a Russian sharpnel while trying to save lifes.&#xA;&lt;a class=&#34;link&#34; href=&#34;https://www.bbc.com/news/articles/cp38xlkk5pzo&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;The BBC&lt;/a&gt; rightfully writes he &amp;ldquo;has died like a hero in the battlefield&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Peter Fouché&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;426px&#34; data-flex-grow=&#34;177&#34; height=&#34;576&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2024/07/01/Peter-Fouche/peter-fouche.jpg&#34; srcset=&#34;https://feldspaten.org/2024/07/01/Peter-Fouche/peter-fouche_hu_18f7faa94c4640e2.jpg 800w, https://feldspaten.org/2024/07/01/Peter-Fouche/peter-fouche.jpg 1024w&#34; width=&#34;1024&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;RIP Peter Fouché, you have been so much more than I could ever be 🫡.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Excellent AI Rant</title>
            <link>https://feldspaten.org/2024/06/20/Excellent-AI-Rant/</link>
            <pubDate>Thu, 20 Jun 2024 10:24:49 +0200</pubDate>
            <guid>https://feldspaten.org/2024/06/20/Excellent-AI-Rant/</guid>
            <description>&lt;p&gt;An excellent summary of the benefits of &amp;ldquo;A&amp;quot;I: &lt;a class=&#34;link&#34; href=&#34;https://ludic.mataroa.blog/blog/i-will-fucking-piledrive-you-if-you-mention-ai-again/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;I Will Fucking Piledrive You If You Mention AI Again&lt;/a&gt;.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>feldspaten migrated to ARM</title>
            <link>https://feldspaten.org/2024/06/17/Migrated-to-ARM/</link>
            <pubDate>Mon, 17 Jun 2024 14:37:10 +0200</pubDate>
            <guid>https://feldspaten.org/2024/06/17/Migrated-to-ARM/</guid>
            <description>&lt;p&gt;feldspaten.org runs now on a much more resource-friendly ARM-Ampera based cloud instance on Hetnzer.&#xA;Previously I had dedicated root server, which made sense for the time being. But nowadays the cloud offerings are economical and powerful enough to fulfil all of my needs. Storage is still a bit expensive, but it&amp;rsquo;s still cheaper than a dedicated root server for what I use.&lt;/p&gt;&#xA;&lt;p&gt;Since I only need the fraction of a full server, migrating to a shared cloud instance made sense. It&amp;rsquo;s fast enough, it costs less and it&amp;rsquo;s friendly to the planet.&lt;/p&gt;&#xA;&lt;p&gt;The main reason for the migration is that it&amp;rsquo;s environmental friendlier. I only use the fraction of a full server, and ARM is (in general) more power-efficient than the previously used Intel Xeon. Also my servers were most of the time under no load, so that&amp;rsquo;s another argument for using a shared server.&lt;/p&gt;&#xA;&lt;p&gt;This is part of a self-proclaimed &amp;ldquo;do what YOU can&amp;rdquo; initiative against climate change and resource exhaustion.&#xA;I don&amp;rsquo;t need a dedicated server anymore, so it&amp;rsquo;s better to leave it for someone else to use.&#xA;Also, I can reduce the environmental impact of my services by moving it to a shared resource pool. It&amp;rsquo;s just a little but still: Little by little goes a long way. And it&amp;rsquo;s also those little changes, that aggregate over time. 🌲🌳&lt;/p&gt;&#xA;&lt;p&gt;So for now nothing should change, but there will be some turbulences while I also migrate the rest.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Persistent container environment with podmansh</title>
            <link>https://feldspaten.org/2024/05/31/Persistent-container-podmansh/</link>
            <pubDate>Fri, 31 May 2024 19:56:17 +0200</pubDate>
            <guid>https://feldspaten.org/2024/05/31/Persistent-container-podmansh/</guid>
            <description>&lt;p&gt;&lt;code&gt;podmansh&lt;/code&gt; executes a login shell within a podman container and allows you to have a containerized platform for users to login. It&amp;rsquo;s &lt;a class=&#34;link&#34; href=&#34;[documentation]%28https://docs.podman.io/en/v5.0.3/markdown/podmansh.1.html%29&#34; &gt;documentation&lt;/a&gt; relies on Quadlet provided containers, which is great in general, but comes with one caveat: Containers are ephemeral. I wanted to have a custom sandbox for my user, where I can get even local root, but because everything is contained in a container, it never touches the base system. If a user (read: me) borks their local container, the actual OS is not affected. Plus, every user can get their own container with the system of their liking. &lt;code&gt;phoenix&lt;/code&gt; can use Tumbleweed, &lt;code&gt;neo&lt;/code&gt; can use Fedora, &lt;code&gt;grisu&lt;/code&gt; can use Debian, all on the same host.&lt;/p&gt;&#xA;&lt;p&gt;In this blog post describe how I managed to get a persistent openSUSE Tumbleweed container environment for &lt;code&gt;phoenix&lt;/code&gt; every time I ssh onto one of my servers using &lt;code&gt;podmansh&lt;/code&gt;. There&amp;rsquo;s a TLDR and a detailled description &lt;a class=&#34;link&#34; href=&#34;#top-to-bottom&#34; &gt;top to bottom&lt;/a&gt;, so that you can follow the process and stop at any point, when you feel like you know what&amp;rsquo;s going on. &lt;code&gt;podmansh&lt;/code&gt; is conceptionally very simple and that&amp;rsquo;s what makes it elegant, but also a bit tricky for my use case.&lt;/p&gt;&#xA;&lt;h2 id=&#34;tldr&#34;&gt;TL;DR&#xA;&lt;/h2&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Note: &lt;code&gt;phoenix&lt;/code&gt; is my user and it has UID 1000. I will use the Tumbleweed container from &lt;code&gt;registry.opensuse.org/opensuse/tumbleweed&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Replace the configuration accordingly to your own needs. Don&amp;rsquo;t be afraid to try.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;As &lt;code&gt;root&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a &lt;code&gt;podmansh&lt;/code&gt; service starting the &lt;code&gt;podmansh&lt;/code&gt; container. This service needs to be started as user &lt;code&gt;phoenix&lt;/code&gt;:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# /etc/systemd/user/podmansh.service&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Description&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;podmansh container&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;After&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;local-fs.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;RequiresMountsFor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;%t/containers&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Service]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Type&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;oneshot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStartPre&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/usr/bin/mkdir -p %h/data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStartPre&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;-/usr/bin/podman create --name=podmansh -ti --init --user %U -w=%h --userns=keep-id -v %h/data:%h:Z -v %h/.ssh:%h/.ssh --hostname %H registry.opensuse.org/opensuse/tumbleweed sleep infinity&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStart&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/usr/bin/podman start podmansh&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;RemainAfterExit&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;yes&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Install]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;RequiredBy&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;default.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Alternative: Remove the &lt;code&gt;podman create ...&lt;/code&gt; from the unit and run this locally yourself.&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Edit the volume mounts (&lt;code&gt;-v&lt;/code&gt; in &lt;code&gt;podman create ...&lt;/code&gt;) to your liking. And the container image. And whatever else you want to modify.&lt;/li&gt;&#xA;&lt;li&gt;Enable the systemd linger, so that the user services are started at boot time&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# loginctl enable-linger 1000&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As &lt;code&gt;phoenix&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enable the services:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ systemctl --user daemon-reload&#xA;$ systemctl --user enable --now podmansh.service&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Ensure if the &lt;code&gt;podmansh&lt;/code&gt; container is running, otherwise check why it doesn&amp;rsquo;t start (&lt;code&gt;podman log podmansh&lt;/code&gt; might help you)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ podman ps&#xA;CONTAINER ID  IMAGE                                             COMMAND         CREATED      STATUS      PORTS       NAMES&#xA;79e7a706c0a0  registry.opensuse.org/opensuse/tumbleweed:latest  sleep infinity  7 hours ago  Up 7 hours              podmansh&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Modify the container to your needs (e.g. set root password, install &lt;code&gt;sudo&lt;/code&gt;, &amp;hellip;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ podman exec -ti --user=0 podmansh /bin/bash&#xA;&#xA;# zypper ref &amp;amp;&amp;amp; zypper -n in vim sudo &amp;amp;&amp;amp; visudo&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As &lt;code&gt;root&lt;/code&gt; again (on the host, not in the container!):&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Change the login shell to &lt;code&gt;podmansh&lt;/code&gt;:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# chsh -s /usr/bin/podmansh phoenix&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now the next time the user &lt;code&gt;phoenix&lt;/code&gt; connects via ssh to that machine, the user will be sent to their own &lt;code&gt;podmansh&lt;/code&gt; container. Neat!&lt;/p&gt;&#xA;&lt;h2 id=&#34;top-to-bottom&#34;&gt;Top to bottom&#xA;&lt;/h2&gt;&lt;p&gt;&lt;code&gt;podmansh&lt;/code&gt; is just a wrapper around executing &lt;code&gt;podman exec -ti podmansh /bin/sh&lt;/code&gt;. This means upon login, podman tries to just &lt;strong&gt;attach&lt;/strong&gt; &lt;strong&gt;(not start or run!)&lt;/strong&gt; to the running &lt;code&gt;podmansh&lt;/code&gt; container and throw/jail the user therein. It&amp;rsquo;s just awesome how little it needs to be functional, this is elegant by its own simplicity.&lt;/p&gt;&#xA;&lt;p&gt;In practise this means all you need to have is a running &lt;code&gt;podmansh&lt;/code&gt; container with &lt;code&gt;/bin/sh&lt;/code&gt; in it. &lt;em&gt;From podman 5.1 onwards you will be able to configure the container name and shell, for now it&amp;rsquo;s hardcoded but that&amp;rsquo;s in my humble opinion just a minor issue&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a class=&#34;link&#34; href=&#34;https://docs.podman.io/en/v5.0.3/markdown/podmansh.1.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;documentation&lt;/a&gt; provides you with an example using Quadlet in &lt;code&gt;/etc/containers/systemd/users/${USERID}/podmansh.container&lt;/code&gt;. This is also elegant in it&amp;rsquo;s own way because this will automatically spin up a new container whenever a user session is started, and also tear it down afterwards. The downside is that Quadlet only supports ephemeral containers, so you will get a new one every session and everything you did in the last session is forgotten to the streams of time.&lt;/p&gt;&#xA;&lt;p&gt;Having an ephemeral session container has it&amp;rsquo;s advantages. But if you&amp;rsquo;re a lazy bastard as I am, then you might want to have a persistent container because it avoids me having to setup a CI somewhere that creates a container with everything I need/want to have in it. If I want to have a new package, I just install it and it will be there the next day when I login again. I could also setup a CI that builds my own container, but that appears overkill to me for this particular task. Your mileage might vary.&lt;/p&gt;&#xA;&lt;p&gt;My goal is to have a persistent Tumbleweed container for my &lt;code&gt;phoenix&lt;/code&gt; user, but with local &lt;code&gt;sudo&lt;/code&gt; rights so I can install whatever I need within that container without ever coming near the actual OS. If I ever bork the container, I can just throw it away and start new. The host OS won&amp;rsquo;t be bothered with whatever unholy mess &lt;code&gt;phoenix&lt;/code&gt; has made in his own sandbox container.&lt;/p&gt;&#xA;&lt;p&gt;To reach that goal all we need is to make sure, that we have a &lt;code&gt;podmansh&lt;/code&gt; container running as user &lt;code&gt;phoenix&lt;/code&gt; when &lt;code&gt;phoenix&lt;/code&gt; logs in. I solved this goal by creating a user systemd unit, that starts the container. This together with using a systemd linger that starts a user session at boot time works nice and you have your user container ready when you login. They will be restarted after a reboot.&lt;/p&gt;&#xA;&lt;p&gt;So, let&amp;rsquo;s first create a user systemd service:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# /etc/systemd/user/podmansh.service&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Description&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;podmansh container&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;After&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;local-fs.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;RequiresMountsFor&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;%t/containers&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Service]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStartPre&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/usr/bin/mkdir -p %h/data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStartPre&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;-/usr/bin/podman create --name=podmansh -ti --init --user %U -w=%h --userns=keep-id -v %h/data:%h:Z -v %h/.ssh:%h/.ssh --hostname %H registry.opensuse.org/opensuse/tumbleweed sleep infinity&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;Type&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;oneshot&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;ExecStart&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;/usr/bin/podman start podmansh&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;RemainAfterExit&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;yes&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;[Install]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;na&#34;&gt;RequiredBy&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;default.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The only really important part is that the container needs to have the name &lt;code&gt;podmansh&lt;/code&gt;. Everything else you can (and should) modify to your needs. Change the mount points, the hostname, permissions, &amp;hellip;. Whatever you like. It&amp;rsquo;s your environment.&lt;/p&gt;&#xA;&lt;p&gt;Mind the &lt;code&gt;ExecStartPre=-/usr/bin/podman create&lt;/code&gt;. You can leave out this command entirely and just create the container. I like this because this means the container would be automatically re-created if it doesn&amp;rsquo;t exist. The &lt;code&gt;-&lt;/code&gt; at the beginning tells systemd, that it&amp;rsquo;s ok if this command fails - that&amp;rsquo;s necessary because the container will exist after the first run, and creating a container with a name that already exists results in an error (unless you use &lt;code&gt;--replace&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;If you place this as &lt;code&gt;/etc/systemd/user/podmansh.service&lt;/code&gt; this will be available to all users. You can customize this on a per user level by putting it into &lt;code&gt;/etc/systemd/user/${USERID}/podmansh.service&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I want to be able to modify the ssh keys from within the container as well, that&amp;rsquo;s why the volume mount &lt;code&gt;%h/.ssh:%h/.ssh&lt;/code&gt; is included as well.&lt;/p&gt;&#xA;&lt;p&gt;One should be in principle be able to mount the whole home directory directly using &lt;code&gt;-v %h:%h&lt;/code&gt;. I decided against that, because there are certain parts like the container and systemd configuration that I want to keep apart from the container data file, in case I ever need to change that. That&amp;rsquo;s why the container home directory is actually located in &lt;code&gt;~/data&lt;/code&gt;. This is how I like it. You can (and should), of course, configure it however you like.&lt;/p&gt;&#xA;&lt;p&gt;Ok, now we have the service and we can start it. Run the following commands as user &lt;code&gt;phoenix&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ systemctl --user daemon-reload&#xA;$ systemctl --user enable --now podmansh.service&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And now check if the &lt;code&gt;podmansh&lt;/code&gt; container is running:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ podman ps&#xA;CONTAINER ID  IMAGE                                             COMMAND         CREATED      STATUS      PORTS       NAMES&#xA;79e7a706c0a0  registry.opensuse.org/opensuse/tumbleweed:latest  sleep infinity  7 hours ago  Up 7 hours              podmansh&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;Note: Don&amp;rsquo;t do &lt;code&gt;sudo -u phoenix -s&lt;/code&gt;. This will not work and give you cryptic &lt;code&gt;crun&lt;/code&gt; errors (at least it did for me). It&amp;rsquo;s best to login directly on the system or &lt;code&gt;ssh&lt;/code&gt; to the system (without &lt;code&gt;podmansh&lt;/code&gt; in place).&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;This works for now, but there&amp;rsquo;s one problem: The container won&amp;rsquo;t be started after a reboot. Only after a user session is established. To start the container at boottime, you can enable a &lt;a class=&#34;link&#34; href=&#34;https://www.man7.org/linux/man-pages/man1/loginctl.1.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;user lingering&lt;/a&gt; - this establishes a session at boot time and it then starts your container. As root you can do this for user &lt;code&gt;phoenix&lt;/code&gt; (UID 1000):&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# loginctl enable-linger 1000&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;At this point all the pieces are in principle there and you could switch the shell to &lt;code&gt;/usr/bin/podmansh&lt;/code&gt; (or wherever &lt;code&gt;podmansh&lt;/code&gt; is located in your distribution).&#xA;Careful however,because you might still need to do some manual configuration on the container before it&amp;rsquo;s ready for you.&lt;/p&gt;&#xA;&lt;p&gt;I use a fresh Tumbleweed container, where there is no root password set or &lt;code&gt;sudo&lt;/code&gt; installed. And since I configured the systemd service to drop me as user &lt;code&gt;phoenix&lt;/code&gt; and not as &lt;code&gt;root&lt;/code&gt;, I couldn&amp;rsquo;t run commands as &lt;code&gt;root.&lt;/code&gt; I resolved this by dropping me a root &lt;code&gt;bash&lt;/code&gt; and then installing and configuring &lt;code&gt;sudo&lt;/code&gt;. Because the container is persistent, I only need to do this once.&lt;/p&gt;&#xA;&lt;p&gt;So, on the host as user &lt;code&gt;phoenix&lt;/code&gt; you can spawn a &lt;code&gt;bash&lt;/code&gt; (or whatever) shell as root (&lt;code&gt;--user=0&lt;/code&gt;) and do those final modifications:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ podman exec -ti --user=0 podmansh /bin/bash&#xA;&#xA;(now you&amp;#39;re in the container, run the following there)&#xA;&#xA;# zypper ref &amp;amp;&amp;amp; zypper -n in vim sudo &amp;amp;&amp;amp; visudo&#xA;...&#xA;#Defaults targetpw   # ask for the password of the target user i.e. root&#xA;#ALL   ALL=(ALL) ALL   # WARNING! Only use this together with &amp;#39;Defaults targetpw&amp;#39;!&#xA;phoenix ALL=(ALL:ALL) NOPASSWD: ALL&#xA;...&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now we&amp;rsquo;re ready to switch the user shell to &lt;code&gt;podmansh&lt;/code&gt;. On the host (not in the container), as root, you can switch the login shell for &lt;code&gt;phoenix&lt;/code&gt; to use &lt;code&gt;podmansh&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# chsh -s /usr/bin/podmansh phoenix&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And now, every time I login onto that server as phoenix, I have my own persistent Tumbleweed container, where I can get local root privileges without risking to bork the host OS.&lt;/p&gt;&#xA;&lt;p&gt;And I find this beautiful.&lt;/p&gt;&#xA;&lt;h2 id=&#34;references&#34;&gt;References&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://docs.podman.io/en/v5.0.3/markdown/podmansh.1.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://docs.podman.io/en/v5.0.3/markdown/podmansh.1.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://lists.podman.io/archives/list/podman@lists.podman.io/thread/PZI3ADCHR3CD44HLYM5R6GHHVRGFJ6Y4/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://lists.podman.io/archives/list/podman@lists.podman.io/thread/PZI3ADCHR3CD44HLYM5R6GHHVRGFJ6Y4/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;credits&#34;&gt;Credits&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;Petr Lautrbach with very helpful feedback on the podman mailing list. His answer pointed me in the right direction. Thanks!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
        </item><item>
            <title>Performance of different blocksizes on a Samsung Pro SSD using zfs</title>
            <link>https://feldspaten.org/2024/05/05/Performance-impact-of-different-blocksizes-on-a-Samsung-Pro-SSD-while-using-zfs/</link>
            <pubDate>Sun, 05 May 2024 07:27:19 +0200</pubDate>
            <guid>https://feldspaten.org/2024/05/05/Performance-impact-of-different-blocksizes-on-a-Samsung-Pro-SSD-while-using-zfs/</guid>
            <description>&lt;p&gt;I got a Samsung 990 Pro NVME SSD, which by default reports a blocksize of 512B. The purpose of this device is to host virtual machine workloads on the zfs filesystem. Because of performance and replication considerations I was wondering, if switching from 512B to 4k blocksize (as used in most modern HDD) would result in a performance impact, so I ran some simulations.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;TLDR: Stick with the device provided blocksize, if performance is an objective.&lt;/strong&gt; The impact is likely small, and if replication is another objective you need to stay consistent between the pools.&lt;/p&gt;&#xA;&lt;p&gt;You find all results also in my &lt;a class=&#34;link&#34; href=&#34;https://codeberg.org/grisu48/storage-fio/src/branch/main/experiments/01_Samsung_990_Pro_zfs_blocksizes&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;storage-fio&lt;/a&gt; repository.&lt;/p&gt;&#xA;&lt;h2 id=&#34;results&#34;&gt;Results&#xA;&lt;/h2&gt;&lt;p&gt;&lt;em&gt;I start with the results for the impatient reader. See the &lt;a class=&#34;link&#34; href=&#34;#simulations&#34; &gt;simulation&lt;/a&gt; and the &lt;a class=&#34;link&#34; href=&#34;#setup&#34; &gt;setup&lt;/a&gt; description below.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;I ran three kind of simulations: A baseline, a simulation of mostly reading VMs and a simulation of mostly writing VMs.&#xA;Those simulations suggest that sticking with the drive-provided 512B block size has a performance advantage over a 4k block size.&#xA;In both VM scenarios I observed a higher overall bandwidth and lower latency with the 512B configuration. However I also observe that the 4k configuration behaves more predictably, as the standard deviation in all scenarios with 4k as block size is considerably smaller.Also, given that the standard deviation for 512B workloads is significantly larger than for 4k, a direct comparison seems unjust.&lt;/p&gt;&#xA;&lt;p&gt;Those simulations provide a argument for using a 512B block sizes for the simulated VM workloads, but the actual numbers are to be taken with a grain of salt. The argument is to be taken qualitatively and not quantitatively.&lt;/p&gt;&#xA;&lt;p&gt;See the &lt;a class=&#34;link&#34; href=&#34;results.txt&#34; &gt;results.txt&lt;/a&gt; file for the extracted data table and &lt;a class=&#34;link&#34; href=&#34;data.tar.gz&#34; &gt;data.tar.gz&lt;/a&gt; for the raw data files from &lt;code&gt;fio&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;simulation-stats&#34;&gt;Simulation stats&#xA;&lt;/h2&gt;&lt;p&gt;Simulation 2 (mostly reading VMs) has on average 20% more throughput and latency, although also a standard deviation 20% larger. Interestingly the write throughput is 20% higher for the 4k case here so they somehow compensate each other.&lt;/p&gt;&#xA;&lt;p&gt;In simulation 3 (mostly writing VMs) the 512B configuration outperforms the 4k by about 30% in terms of read bandwidth and 60% in write bandwidth. But also here with a 30% and 60% respectively larger standard deviation. The latency is also about 30% lower for the 512B configuration. Here 512B really shows an increased performance compared to my 4k configuration.&lt;/p&gt;&#xA;&lt;p&gt;Looking at both the bandwidth and the runtime stats of the whole simulation give consistent results with the previous statements:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;simulation1 (baseline) is somehow similar and not that interesting&lt;/li&gt;&#xA;&lt;li&gt;simulation2 (mostly reading VMs) gives &lt;code&gt;45.3/24.4MiB/s&lt;/code&gt; at a runtime of &lt;code&gt;23s&lt;/code&gt; for 512B vs. &lt;code&gt;38.9/20MiB/s&lt;/code&gt; at a runtime of &lt;code&gt;27s&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;simulation3 (mostly writing VMs) gives &lt;code&gt;15.7/29.1MiB/s&lt;/code&gt; at &lt;code&gt;36.5s&lt;/code&gt; for 512B and &lt;code&gt;12.2/22.6MiB/s&lt;/code&gt; at &lt;code&gt;47s&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;em&gt;Please note that values are group stats and not directly translatable to nvme performance characteristics.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Given the larger standard deviation I find the overall runtime stats the more robust metric to look at. Here I see a runtime increase from 23 to 27s, which is consistent with the roughly 20% shown earlier&#xA;and 37 to 47s, which is also consistent with the described roughly 30% of simulation 3.&#xA;One could look at the histogram distribution that &lt;code&gt;fio&lt;/code&gt; gives, but that’s beyond something I want to do now.&lt;/p&gt;&#xA;&lt;h1 id=&#34;simulations&#34;&gt;Simulations&#xA;&lt;/h1&gt;&lt;p&gt;Find here the various simulation descriptions. Read:Write ratios are given as e.g. 60:40, meaning that 60% of the workload i read and 40% is write.&lt;/p&gt;&#xA;&lt;p&gt;I setup a data limit of 4 GiB for each simulation job to provide a statistical large enough sample.&lt;/p&gt;&#xA;&lt;h2 id=&#34;simulation-1-baseline&#34;&gt;Simulation 1: Baseline&#xA;&lt;/h2&gt;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;simulation1&#34; &gt;Simulation 1&lt;/a&gt; acts as a generic baseline determination using 4 mixed random write and read workloads.&#xA;It simulates a 4 VM scenario where we have 3 VMs acting as mostly reading and 1 VM acting as a balanced 50:50 read/write workload on sequential data.&lt;/p&gt;&#xA;&lt;p&gt;The 3 reading VMs have a read/write ratio of 90:10. The writing VM has a read/write ratio of 50:50. Reads and write happen sequentially.&lt;/p&gt;&#xA;&lt;h2 id=&#34;simulation-2-mixed-readwrite-mostly-read&#34;&gt;Simulation 2: Mixed read/write, mostly read&#xA;&lt;/h2&gt;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;simulation2&#34; &gt;Simulation 2&lt;/a&gt; simulates a 4 VM scenario with mostly read-intenstive workloads on a random mixed reads and writes pattern. It simulates 4 VMs, where 3 VMs are read-intensitve (80:20), one VM is write intensive (20:80).&lt;/p&gt;&#xA;&lt;p&gt;Reads and writes happen randomly.&lt;/p&gt;&#xA;&lt;h2 id=&#34;simulation-3-mixed-readwrite-mostly-write&#34;&gt;Simulation 3: Mixed read/write, mostly write&#xA;&lt;/h2&gt;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;simulation3&#34; &gt;Simulation 3&lt;/a&gt; is the same as simulation 2 but with 1 VM acting as mostly read and 3 VMs acting as mostly write.&lt;/p&gt;&#xA;&lt;p&gt;Reads and writes happen randomly.&lt;/p&gt;&#xA;&lt;h1 id=&#34;setup&#34;&gt;Setup&#xA;&lt;/h1&gt;&lt;p&gt;I use a &lt;a class=&#34;link&#34; href=&#34;https://turingpi.com/product/turing-rk1/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Turing Pi RK1&lt;/a&gt; (aarch64, RK3588 CPU) with 32 GiB RAM. The NVME SSD under test is the Samsung 990 Pro. Reported block size is 512B, as shown by &lt;code&gt;parted&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Model: NVMe Device (nvme)&#xA;Disk /dev/nvme0n1: 2000GB&#xA;Sector size (logical/physical): 512B/512B&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The used system for this test openSUSE Leap 15.6 with &lt;code&gt;fio-3.23&lt;/code&gt; and zfs 2.2.4-1:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;zfs-2.2.4-1&#xA;zfs-kmod-2.2.4-1&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The used Kernel for all of those tests were &lt;code&gt;6.4.0-150600.16-default&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Creation of the zpools happened via the following commands:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# zpool create ashift /dev/nvme0n1                         # Use default blocksize&#xA;# zpool create ashift12 -o ashift=12 -f /dev/nvme0n1       # 4k blocksize&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To check the corresponding &lt;code&gt;ashift&lt;/code&gt; value (used block size as a power of 2), I used&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# zdb -C | grep ashift&#xA;ashift12:&#xA;    name: &amp;#39;ashift12&amp;#39;&#xA;            ashift: 12&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To create the datasets I used a simple &lt;code&gt;zfs create&lt;/code&gt; command. No additional parameters have been passed:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;zfs create ashift12/storage-test&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;fio&lt;/code&gt; is run with the provided simulation files, and the output is piped to a text file using &lt;code&gt;tee&lt;/code&gt;, e.g.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;fio simulations/simulation3 | tee results/zfs/ashift12/simulation3&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;summmary&#34;&gt;Summmary&#xA;&lt;/h1&gt;&lt;p&gt;In short: If performance is your objective, it appears that using the device defaults is king. I notice a performance difference in both tested workloads (mostly reading, mostly writing) in favor of 512B vs 4k.&#xA;While the 4k workload seems to have a more predictible performance characteristic due to the much smaller standard deviation, the overall runtimes (See &lt;a class=&#34;link&#34; href=&#34;#simulation-stats&#34; &gt;Simulation stats&lt;/a&gt;) give a more robust metric that support the previous statement.&lt;/p&gt;&#xA;&lt;p&gt;In my setup here, I will however still use a 4k block size, because I want to have zfs replication working together with my NAS, where I also use 4k. Also given that the expected workload is mostly idling, I do not think that I will notice any difference in practical terms at all. So while the arguments stated here hold, I don&amp;rsquo;t think they translate into any meaningful performance differences for the expected workload at all, because there will simply never be such a high load on the NVME disk.&lt;/p&gt;&#xA;&lt;p&gt;Still, if you end up in a similar situation as I did, consider running your own experiments using e.g. &lt;code&gt;fio&lt;/code&gt;, try to simulate the expected workload as good as you can, and then make a educated estimation what might be the best in your case.&lt;/p&gt;&#xA;&lt;p&gt;If in doubt, the provided defaults are typically not wrong.&lt;/p&gt;&#xA;&lt;h1 id=&#34;weblinks&#34;&gt;Weblinks&#xA;&lt;/h1&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://discourse.practicalzfs.com/t/block-size-alignment-with-512b-ssd/1441&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://discourse.practicalzfs.com/t/block-size-alignment-with-512b-ssd/1441&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://codeberg.org/grisu48/storage-fio/src/branch/main/experiments/01_Samsung_990_Pro_zfs_blocksizes&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://codeberg.org/grisu48/storage-fio/src/branch/main/experiments/01_Samsung_990_Pro_zfs_blocksizes&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
        </item><item>
            <title>Suspicious UPS scam SMS are suspicious</title>
            <link>https://feldspaten.org/2024/04/04/Suspicious-UPS-scam-SMS-are-suspicious/</link>
            <pubDate>Thu, 04 Apr 2024 21:02:31 +0200</pubDate>
            <guid>https://feldspaten.org/2024/04/04/Suspicious-UPS-scam-SMS-are-suspicious/</guid>
            <description>&lt;p&gt;Recently I expected a package from UPS from a domestic provider. In the course of this delivery I got two scam SMS, the first just hours after a SMS from UPS about a pending delivery.&#xA;Based on the close proximity to an actual delivery times and the received text messages on my phone, I find it hard to believe this was a coincidence.&lt;/p&gt;&#xA;&lt;p&gt;A short &lt;del&gt;murder&lt;/del&gt; mystery story.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-happened&#34;&gt;What happened&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;On 21.03.2024 (Thursday) I received a legitimate SMS from UPSPkgInfo about an incoming package for the next day.&lt;/li&gt;&#xA;&lt;li&gt;On the 22.03.2024 (Friday) during the night I received a scammy text message from a German phone number (???) stating that I should visit mijn-pakket.info to pickup the package.&#xA;The Website is a scam trying to convince people to pay non-existing customs. I decided to ignore the text message, but the delivery didn&amp;rsquo;t came that day, so I started to question my decision. Still I wanted to be safe and decided to wait until the next week before doing anything.&lt;/li&gt;&#xA;&lt;li&gt;On the 24.03.2024 (Sunday) I received another text message, now from a Dutch 06 number about pending customs. It tried to lure me to go to another scammy site, mijnpakketophalen.com. Again a scam site, trying to make me pay false customs.&lt;/li&gt;&#xA;&lt;li&gt;The actual UPS package arrived on the 25.03.2024 (Monday). Of course I didn&amp;rsquo;t had any customs to pay&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The customs are of course a scam. They tried to lure people into paying them. For this package I knew there are no customs due, because it&amp;rsquo;s shipped domestically.&lt;/p&gt;&#xA;&lt;h3 id=&#34;scammy-sites-are-scammy&#34;&gt;Scammy sites are scammy&#xA;&lt;/h3&gt;&lt;p&gt;Both domains references in the SMSes are a scam. A quick search revealed several complains on trust rating websites, some people even explicitly warning about the ongoing scam.&lt;/p&gt;&#xA;&lt;p&gt;A friend of mine pointed out the cool &lt;a class=&#34;link&#34; href=&#34;https://crt.sh&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;crt.sh&lt;/a&gt; service, which allows the fellow nerd to see a time correspondence of the TLS certificates.&#xA;This tool reveals some nice insights about the domains:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://crt.sh/?q=mijn-pakket.info&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://crt.sh/?q=mijn-pakket.info&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://crt.sh/?q=mijnpakketophalen.com&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://crt.sh/?q=mijnpakketophalen.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Screenshot of the listed certificates from crt.sh of mijn-pakket.info&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;rt.sh_mijn-pakket-certificates.png&#34;&gt;&#xA;&lt;img alt=&#34;Screenshot of the listed certificates from crt.sh of mijnpakketophalen.com&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;1300px&#34; data-flex-grow=&#34;541&#34; height=&#34;182&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2024/04/04/Suspicious-UPS-scam-SMS-are-suspicious/crt.sh_mijnpakketophalen-certificates.png&#34; srcset=&#34;https://feldspaten.org/2024/04/04/Suspicious-UPS-scam-SMS-are-suspicious/crt.sh_mijnpakketophalen-certificates_hu_b01aa8be05625dc0.png 800w, https://feldspaten.org/2024/04/04/Suspicious-UPS-scam-SMS-are-suspicious/crt.sh_mijnpakketophalen-certificates.png 986w&#34; width=&#34;986&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Notice something?&lt;/p&gt;&#xA;&lt;p&gt;Both sites are new and have no history. mijn-pakket.info was used at some point in time in 2020, then left abandoned for 4 years and only recently reactivated on the 2024-03-21. Just days before I got the first SMS. This is highly suspicious and suggests this domain was used for a specific scam campaign. Same is also valid for the other site.&lt;/p&gt;&#xA;&lt;p&gt;And now for comparison, this is how a highly legitimate site (TM) looks like:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Screenshot of the listed certificates from crt.sh of www.feldspaten.org&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;115px&#34; data-flex-grow=&#34;48&#34; height=&#34;2179&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2024/04/04/Suspicious-UPS-scam-SMS-are-suspicious/crt.sh_www.feldspaten.org.png&#34; srcset=&#34;https://feldspaten.org/2024/04/04/Suspicious-UPS-scam-SMS-are-suspicious/crt.sh_www.feldspaten.org_hu_9b5b0a2aec4a02e4.png 800w, https://feldspaten.org/2024/04/04/Suspicious-UPS-scam-SMS-are-suspicious/crt.sh_www.feldspaten.org.png 1050w&#34; width=&#34;1050&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is my blog because of course it is. It has a decent history of certificates, is registered for a long(er) time and in general looks awesome :-)&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-time-correspondence-suggests-a-leak&#34;&gt;The time correspondence suggests a leak&#xA;&lt;/h3&gt;&lt;p&gt;I never got such scam SMS before. And the fact that I got two while I was waiting for a package is highly suspicious. The first SMS came only hours after the legitimate UPS SMS.&#xA;While it is theoretically possible, that I was just unlucky and got those scammy SMS just by coincidence exactly hours after I received a notification about a pending package, I believe the likelihood is somewhere in the &amp;ldquo;winning the lottery twice in the same week&amp;rdquo; category. Possible, but actually no. This doesn&amp;rsquo;t happen.&lt;/p&gt;&#xA;&lt;p&gt;So, this leaves me with three possibilities on where the attackers could have obtained the necessary information for creating such an attack&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;My email was hacked&lt;/li&gt;&#xA;&lt;li&gt;The telephone provider was hacked&lt;/li&gt;&#xA;&lt;li&gt;UPS was hacked&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;After investigating, the first possibility appears unlikely to me because in the email correspondence with my seller there are not enough information. My phone number is missing (but could theoretically be found elsewhere, somewhere in my Sent folder or something, possibly). But, the timing of the delivery was totally unknown to the attacker. I never got any delivery information via email. The delivery timing was a crucial for the first scam SMS and this information could not have been obtained from my email account.&lt;/p&gt;&#xA;&lt;p&gt;The second possibility is also feasible, but I find it difficult to estimate the likelihood of it though. I find it possible but unlikely.&lt;/p&gt;&#xA;&lt;p&gt;The third possibility is thinkable. UPS or an affiliate partner could leak their delivery information, thus allowing such scam campaigns. I believe those deivery information are a lucrative attack target, and the number of bad actors out there with a hunger for such information is given. However I&amp;rsquo;m not suggesting anything concrete - this is just a hypothesis. UPS for sure invests a lot of resources in keeping their systems secure. I am not saying UPS has a security breach, I am saying that given how close those scammy SMS have been to a expected delivery, somewhere the attackers must have obtained delivery information. And a &lt;strong&gt;possible&lt;/strong&gt; UPS hack would be a &lt;strong&gt;thinkable&lt;/strong&gt; option.&lt;/p&gt;&#xA;&lt;p&gt;I am not pointing fingers, and this is definitely NOT a smoking gun.&#xA;I&amp;rsquo;m just a random guy on the internet sharing his thoughts, and they can be completely wrong.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-did-i-do&#34;&gt;What did I do&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;I reported the scammy sites to the provider and the CSIRT&lt;/li&gt;&#xA;&lt;li&gt;In the evening aleady, Firefox warned people about ongoing scam on the sites&lt;/li&gt;&#xA;&lt;li&gt;I reached out to UPS on Monday and tried to contact them about this story. I&amp;rsquo;m still waiting for a response.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Contacting UPS is not easy. I used their bulky contact form, needed to register an account, and could only write 500 characters. This was barely enough to write them that I have reasons to believe, their system could be compromised and invited them to contact me via email for more details. I&amp;rsquo;m still waiting for a reply.&lt;/p&gt;&#xA;&lt;p&gt;Update: UPS didn&amp;rsquo;t reacted. I tried to reach out to them but didn&amp;rsquo;t hear back. I waited for more than a week and now decided to publish this blog post.&lt;/p&gt;&#xA;&lt;p&gt;Update 09.04.2024: I got an email from UPS from their fraud section stating that this is a legitimate communication. I assume that in the flood of daily mails they receive they just looked at the first picture.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Plasma 6 lands in Tumbleweed</title>
            <link>https://feldspaten.org/2024/03/14/Plasma-6-lands-in-Tumbleweed/</link>
            <pubDate>Thu, 14 Mar 2024 21:42:25 +0100</pubDate>
            <guid>https://feldspaten.org/2024/03/14/Plasma-6-lands-in-Tumbleweed/</guid>
            <description>&lt;img src=&#34;https://feldspaten.org/2024/03/14/Plasma-6-lands-in-Tumbleweed/neofetch.png&#34; alt=&#34;Featured image of post Plasma 6 lands in Tumbleweed&#34; /&gt;&lt;p&gt;Plasma 6 lands in openSUSE Tumbleweed and it&amp;rsquo;s awesome!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;KDE Plasma 6 screenshot is awesome&#34; class=&#34;gallery-image&#34; data-flex-basis=&#34;426px&#34; data-flex-grow=&#34;177&#34; height=&#34;1080&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2024/03/14/Plasma-6-lands-in-Tumbleweed/Plasma6.png&#34; srcset=&#34;https://feldspaten.org/2024/03/14/Plasma-6-lands-in-Tumbleweed/Plasma6_hu_53e065978dc8371d.png 800w, https://feldspaten.org/2024/03/14/Plasma-6-lands-in-Tumbleweed/Plasma6_hu_daf3d31c1af24d4a.png 1600w, https://feldspaten.org/2024/03/14/Plasma-6-lands-in-Tumbleweed/Plasma6.png 1920w&#34; width=&#34;1920&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Overall it works really nice. There are some small issues, I filed some smaller bugs, but overall the transition went rather smooth - knowing that the graphical system would crash during installation from a friend - I just installed it via text console.&lt;/p&gt;&#xA;&lt;p&gt;Plasma 6 uses Wayland and it works better now than the last time I tried it. Screen sharing via Jitsi and via Slack work nicely. There are some rough edges, but it is usable now. And with that I can continue and push forward.&lt;/p&gt;&#xA;&lt;p&gt;Hello Plasma 6. It feels nice! Kudos to the openSUSE KDE packaging team and the KDE community itself. Well done!&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>openSUSE Tumbleweed on a VisionFive 2 (RISC-V)</title>
            <link>https://feldspaten.org/2024/02/24/Tumbleweed-on-VisionFive-2/</link>
            <pubDate>Sat, 24 Feb 2024 08:02:03 +0100</pubDate>
            <guid>https://feldspaten.org/2024/02/24/Tumbleweed-on-VisionFive-2/</guid>
            <description>&lt;img src=&#34;https://feldspaten.org/2024/02/24/Tumbleweed-on-VisionFive-2/visionfive2.png&#34; alt=&#34;Featured image of post openSUSE Tumbleweed on a VisionFive 2 (RISC-V)&#34; /&gt;&lt;p&gt;I find RISC-V an interesting architecture as a truly open hardware platform. Maybe at some point in the future this platform might run on our desktop and server systems. For RISC-V as a non-microcontroller, i.e. a &amp;ldquo;real computer&amp;rdquo;, it&amp;rsquo;s still early days and I wanted to get started with testing openSUSE on it. So recently I purchased a &lt;a class=&#34;link&#34; href=&#34;https://feldspaten.org/2023/11/20/MilkV-CM/&#34; &gt;Milk-V CM&lt;/a&gt; to get started. Unfortunately there are no builds for this board yet and my first attempts to get it running turned out unsuccessful. So, I decided to step half a step back and purchase one of the current de-factor reference platforms for Linux RISC-V development: The &lt;a class=&#34;link&#34; href=&#34;https://www.starfivetech.com/en/site/boards&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;StarFive VisionFive 2&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The VisionFive 2 is awesome. It comes with decent memory options (2/4/8 GB), a SD card slot (makes it easy to quickly test an image), a M.2 slot (M-key), two network ports, an okay-ish CPU speed for development and a nicely looking metal case, because of the heck of it. Hardware-wise I think this board could become part of my homelab once we&amp;rsquo;re out of the early first steps. It&amp;rsquo;s also a bit pricy for the performance you get, but it&amp;rsquo;s a development board so I find it fair.&lt;/p&gt;&#xA;&lt;p&gt;To start, there are some Debian-based builds for the VisionFive 2, as there are for the MilkV CM.&#xA;My journey was however to get openSUSE running there without any non-upstreamed additional pathes coming from the vendor. Just to get the scope of this post right.&lt;/p&gt;&#xA;&lt;p&gt;So let&amp;rsquo;s get this show on the road: Getting Tumbleweed running on a StarFive VisionFive 2.&lt;/p&gt;&#xA;&lt;h1 id=&#34;getting-tumbleweed-running-on-a-starfive-visionfive-2&#34;&gt;Getting Tumbleweed running on a StarFive VisionFive 2&#xA;&lt;/h1&gt;&lt;p&gt;For the unpatient, here first the caveats and difficulties that I encountered while being on this journey:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;I needed to update the bootloader to get GRUB working&lt;/li&gt;&#xA;&lt;li&gt;HDMI doesn&amp;rsquo;t work yet, you need a UART connection&lt;/li&gt;&#xA;&lt;li&gt;Some builds were broken, I needed a couple of attempts until it finally worked&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The process is relatively straight-forward, once you know what to do about them. We will address and solve all of one of them, one by one in the following.&lt;/p&gt;&#xA;&lt;h2 id=&#34;getting-the-image-and-prepare-the-sd-card&#34;&gt;Getting the image and prepare the SD card&#xA;&lt;/h2&gt;&lt;p&gt;openSUSE provides custom images for the VisionFive 2 boards. See &lt;a class=&#34;link&#34; href=&#34;https://en.opensuse.org/HCL:VisionFive2&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://en.opensuse.org/HCL:VisionFive2&lt;/a&gt; for the link or &lt;a class=&#34;link&#34; href=&#34;https://download.opensuse.org/repositories/devel:/RISCV:/Factory:/Contrib:/StarFive:/VisionFive2/images/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;go to the repostiory&lt;/a&gt; directly. You can flash this image directly to an SD card, insert it into the board and it should boot.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ xzcat openSUSE-Tumbleweed-RISC-V-JeOS-starfivevisionfive2.riscv64-2024.01.16-Build23.10.raw.xz | sudo dd of=/dev/mmcblk0 bs=4M iflag=fullblock =flag=sync status=progress&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Bit first you might need to update the bootloader.&lt;/p&gt;&#xA;&lt;h2 id=&#34;update-the-bootloader&#34;&gt;Update the bootloader&#xA;&lt;/h2&gt;&lt;p&gt;I took the easy path and updated the bootloader from a running system on the board itself. I used the &lt;a class=&#34;link&#34; href=&#34;https://github.com/starfive-tech/VisionFive2&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;official release&lt;/a&gt;, booted into the Debian and then followed the &lt;a class=&#34;link&#34; href=&#34;https://doc-en.rvspace.org/VisionFive2/Quick_Start_Guide/VisionFive2_SDK_QSG/spl_new.html#updating_spl_and_u_boot-vf2__section_zpj_cqt_yvb&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;update procedure&lt;/a&gt; (the link looks not really robust, I keep it here but don&amp;rsquo;t be surprised if it won&amp;rsquo;t work in the future anymore)&lt;/p&gt;&#xA;&lt;p&gt;First, transfer the &lt;a class=&#34;link&#34; href=&#34;https://github.com/starfive-tech/VisionFive2/releases&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;most recent&lt;/a&gt; &lt;code&gt;u-boot-spl.bin.normal.out&lt;/code&gt; and &lt;code&gt;visionfive2_fw_payload.img&lt;/code&gt; files to the board. Then, list the partition table to figure out where to flash what&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# cat /proc/mtd&#xA;dev: size erasesize name&#xA;mtd0: 00040000 00001000 &amp;#34;spl&amp;#34;&#xA;mtd1: 00010000 00001000 &amp;#34;uboot-env&amp;#34;&#xA;mtd2: 00300000 00001000 &amp;#34;uboot&amp;#34;&#xA;mtd3: 00100000 00001000 &amp;#34;data&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Here, the &lt;code&gt;u-boot-spl.bin.normal.out&lt;/code&gt; file needs to go to &lt;code&gt;/dev/mtd0&lt;/code&gt; (&amp;ldquo;spl&amp;rdquo;) and the &lt;code&gt;visionfive2_fw_payload.img&lt;/code&gt; file to &lt;code&gt;/dev/mtd2&lt;/code&gt; (&amp;ldquo;uboot&amp;rdquo;). We use the &lt;code&gt;flashcp&lt;/code&gt; tool to flash the corresponding partitions&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# apt install mtd-utils&#xA;# flashcp -v u-boot-spl.bin.normal.out /dev/mtd0&#xA;# flashcp -v visionfive2_fw_payload.img /dev/mtd2&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Do a &lt;code&gt;reboot&lt;/code&gt; and you should be good to go!&lt;/p&gt;&#xA;&lt;h2 id=&#34;booting-into-tumbleweed&#34;&gt;Booting into Tumbleweed&#xA;&lt;/h2&gt;&lt;p&gt;From here, the system should just boot from the SD card.&lt;/p&gt;&#xA;&lt;p&gt;The next difficulty was to realize, that the HDMI is not yet working. So I didn&amp;rsquo;t got any signal and assumed the build was broken. It isn&amp;rsquo;t - you simply don&amp;rsquo;t get any video output. But you get a serial terminal via UART.&lt;/p&gt;&#xA;&lt;p&gt;So, what I did is to use a USB-TTL UART module and connected it to the board. The &lt;a class=&#34;link&#34; href=&#34;https://doc-en.rvspace.org/VisionFive2/40-Pin_GPIO_Header_UG/VisionFive2_40pin_UG/gpio_pinout%20-%20vf2.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;pin layout&lt;/a&gt; is the following:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Pin 6   GND&#xA;Pin 8   TX  (connect RX)&#xA;Pin 10  RX  (connect TX)&#xA;&#xA;&#xA;+---------------------------------------------------------------------- ... --+&#xA;| 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 30                     |&#xA;| 1 3 5 7 9  11 13 15 17 19 21 23 25 27 29 31 33 35 37 39                     |&#xA;|                                                                             |&#xA;|                                                                             |&#xA;.                                                                             .&#xA;.                                                                             .&#xA;.                                                                             .&#xA;|&#xA;+---------------------------------------------------------------------- ... --+&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I typically use &lt;code&gt;picocom&lt;/code&gt; to interact with my UART module&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# picocom /dev/ttyUSB0&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This worked, I saw the booting messages and was happy. Until I run into the next issues.&lt;/p&gt;&#xA;&lt;h2 id=&#34;broken-builds&#34;&gt;Broken builds&#xA;&lt;/h2&gt;&lt;p&gt;So, I saw GRUB in the UART, could select Tumbleweed and was already excited. That didn&amp;rsquo;t last long however&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[   31.223179][    C2] Unable to handle kernel paging request at virtual address ffffffa279fcc200&#xA;[   31.231813][    C2] Oops [#1]&#xA;[   31.234791][    C2] Modules linked in: xhci_pci xhci_pci_renesas xhci_hcd usbcore nvme nvme_core mmc_block usb_common nvme_auth t10_pi axp20x_regulator dw_mmc_starfive dw_mmc_pltfm axp20x_i2c axp20x dw_mmc mfd_core regmap_i2c spidev mmc_core jh7110_crypto dw_axi_dmac_platform crypto_engine pcie_starfive clk_starfive_jh7110_aon starfive_wdt virt_dma phy_jh7110_dphy_rx spi_cadence_quadspi pinctrl_starfive_jh7110_aon pinctrl_starfive_jh7110_sys spi_pl022 sfctemp phy_jh7110_pcie clk_starfive_jh7110_stg phy_jh7110_usb btrfs blake2b_generic xor raid6_pq libcrc32c dm_mirror dm_region_hash dm_log dm_mod efivarfs&#xA;[   31.288608][    C2] CPU: 2 PID: 29 Comm: ksoftirqd/2 Not tainted 6.7.0-rc8-73-default #1 openSUSE Tumbleweed (unreleased) 46e9439e13f0d6e63af16b21017504b41e41385c&#xA;[   31.303129][    C2] Hardware name: StarFive VisionFive 2 v1.3B (DT)&#xA;[   31.309402][    C2] epc : put_css_set_locked+0xae/0x250&#xA;[   31.314654][    C2]  ra : put_css_set_locked+0x8e/0x250&#xA;[   31.319895][    C2] epc : ffffffff83adbac4 ra : ffffffff83adbaa4 sp : ffffffc80011bc10&#xA;[   31.327817][    C2]  gp : ffffffff859605a0 tp : ffffffd8c02a3a00 t0 : 0000000000000000&#xA;[   31.335739][    C2]  t1 : 0000000000ff0000 t2 : ffffffff84c00d48 s0 : ffffffc80011bc60&#xA;[   31.343006][   T72] usb 1-1: new high-speed USB device number 2 using xhci_hcd&#xA;[   31.343659][    C2]  s1 : ffffffd8c1c75560 a0 : ffffffd8c02a3a00 a1 : 0000000200000022&#xA;[   31.358794][    C2]  a2 : ffffffda7970c000 a3 : 0000000200000020 a4 : 0000000000000000&#xA;[   31.366720][    C2]  a5 : ffffffa279fcc200 a6 : 0000000000ff0000 a7 : ffffffff8017000f&#xA;[   31.374642][    C2]  s2 : ffffffd8c1c75448 s3 : ffffffd8c1c75400 s4 : ffffffd8c1c755b0&#xA;[   31.382563][    C2]  s5 : 0000000000000122 s6 : 0000000000000100 s7 : ffffffff85d2d6c8&#xA;[   31.390486][    C2]  s8 : ffffffd8c0e4dc40 s9 : 0000000000000001 s10: ffffffff83aa21e0&#xA;[   31.398407][    C2]  s11: ffffffff858f1518 t3 : 0000000000000001 t4 : 0000000000000001&#xA;[   31.406328][    C2]  t5 : 00000000f5257d14 t6 : 0000000000702bb7&#xA;[   31.412339][    C2] status: 0000000200000100 badaddr: ffffffa279fcc200 cause: 000000000000000d&#xA;[   31.420957][    C2] [&amp;lt;ffffffff83adbac4&amp;gt;] put_css_set_locked+0xae/0x250&#xA;[   31.427504][    C2] [&amp;lt;ffffffff83ae1848&amp;gt;] cgroup_free+0x3a/0x56&#xA;[   31.433355][    C2] [&amp;lt;ffffffff83a1a31a&amp;gt;] __put_task_struct+0x36/0x138&#xA;[   31.439817][    C2] [&amp;lt;ffffffff83a21cbe&amp;gt;] delayed_put_task_struct+0xbc/0xde&#xA;[   31.446710][    C2] [&amp;lt;ffffffff83aa20ce&amp;gt;] rcu_do_batch+0x120/0x3ea&#xA;[   31.452820][    C2] [&amp;lt;ffffffff83aa5c0e&amp;gt;] rcu_core+0x160/0x3ac&#xA;[   31.458583][    C2] [&amp;lt;ffffffff83aa60d4&amp;gt;] rcu_core_si+0xc/0x14&#xA;[   31.464345][    C2] [&amp;lt;ffffffff84391498&amp;gt;] __do_softirq+0x178/0x36a&#xA;[   31.470459][    C2] [&amp;lt;ffffffff83a25030&amp;gt;] run_ksoftirqd+0x3a/0x4e&#xA;[   31.476483][    C2] [&amp;lt;ffffffff83a47042&amp;gt;] smpboot_thread_fn+0x142/0x1c2&#xA;[   31.483025][    C2] [&amp;lt;ffffffff83a41dd8&amp;gt;] kthread+0xca/0xe6&#xA;[   31.488526][    C2] [&amp;lt;ffffffff84391256&amp;gt;] ret_from_fork+0xe/0x1c&#xA;[   31.494476][    C2] Code: 76f3 1001 2703 0202 070e 975e 6310 f713 0026 97b2 (6394) 16fd&#xA;[   31.502292][   T72] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.20&#xA;[   31.502573][    C2] ---[ end trace 0000000000000000 ]---&#xA;[   31.511486][   T72] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0&#xA;[   31.516742][    C2] Kernel panic - not syncing: Fatal exception in interrupt&#xA;[   31.516752][    C2] SMP: stopping secondary CPUs&#xA;[   31.516797][    C2] Kernel Offset: 0x3a00000 from 0xffffffff80000000&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Boom. Ok, I thought the kernel simply doesn&amp;rsquo;t support this hardware. There&amp;rsquo;s an &lt;a class=&#34;link&#34; href=&#34;https://rvspace.org/en/project/JH7110_Upstream_Plan&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;upstream plan&lt;/a&gt; however that shows the opposite, so it might be that this is just a kernel regression. Later on I realized that the image contains pre-release kernels, so expect some difficulties when dealing with those images. We don&amp;rsquo;t have openQA setup yet, so those builds are not being validated. They come fresh out of the Factory.&lt;/p&gt;&#xA;&lt;p&gt;It took me two more builds until it finally worked with the &lt;code&gt;openSUSE-Tumbleweed-RISC-V-JeOS-starfivevisionfive2.riscv64-2024.01.16-Build23.10.raw.xz&lt;/code&gt; build. The login credentials as the same as with any other JeOS image - user &lt;code&gt;root&lt;/code&gt; password &lt;code&gt;linux&lt;/code&gt;. Please change the password ASAP because this super secure password (TM) is already taken by someone else &lt;code&gt;/s&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Take home message: If you run into kernel issues/panic, it might be that the current build contains a broken kernel (or any other component). Be patient, and wait for a new build with a newer kernel that (hopefully) fixes your issues. There is no QA yet - but that&amp;rsquo;s exactly the reason why I perform this stunt.&lt;/p&gt;&#xA;&lt;h1 id=&#34;welcome-to-the-future&#34;&gt;Welcome to the Future!&#xA;&lt;/h1&gt;&lt;p&gt;But when it boots it feels nice :-)&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;                                     ......            root@archon.home&#xA;     .,cdxxxoc,.               .:kKMMMNWMMMNk:.        ----------------&#xA;    cKMMN0OOOKWMMXo. A        ;0MWk:&amp;#39;      &amp;#39;:OMMk.     OS: openSUSE Tumbleweed riscv64&#xA;  ;WMK;&amp;#39;       &amp;#39;lKMMNM,     :NMK&amp;#39;             &amp;#39;OMW;    Host: StarFive VisionFive 2 v1.3B&#xA; cMW;             WMMMN   ,XMK&amp;#39;                 oMM.   Kernel: 6.8.0-rc5-84-default&#xA;.MMc             &amp;#39;&amp;#39;^*~l. xMN:                    KM0   Uptime: 12 hours, 26 mins&#xA;&amp;#39;MM.                   .NMO                      oMM   Packages: 980 (rpm)&#xA;.MM,                 .kMMl                       xMN   Shell: bash 5.2.26&#xA; KM0               .kMM0&amp;#39; .dl&amp;gt;~,.               .WMd   Terminal: /dev/pts/1&#xA; &amp;#39;XM0.           ,OMMK&amp;#39;    OMMM7&amp;#39;              .XMK    CPU: (4) @ 1.500GHz&#xA;   *WMO:.    .;xNMMk&amp;#39;       NNNMKl.          .xWMx     Memory: 196MiB / 7922MiB&#xA;     ^ONMMNXMMMKx;          V  &amp;#39;xNMWKkxllox0NMWk&amp;#39;&#xA;         &amp;#39;&amp;#39;&amp;#39;&amp;#39;&amp;#39;                    &amp;#39;:dOOXXKOxl&amp;#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I&amp;rsquo;m running &lt;code&gt;nginx&lt;/code&gt; now on it for the sake of running it.&lt;/p&gt;&#xA;&lt;p&gt;Expect still issues on this board. e.g. &lt;code&gt;mariadb&lt;/code&gt; doesn&amp;rsquo;t work yet due to a &lt;a class=&#34;link&#34; href=&#34;https://bugzilla.opensuse.org/show_bug.cgi?id=1219684#c1&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;nasty SIGILL&lt;/a&gt;. But that&amp;rsquo;s why I do it - it&amp;rsquo;s time to test and improve the support on RISC-V so that this can become an awesome hardware platform in the future. A truly open CPU and firmware.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>I love free Software</title>
            <link>https://feldspaten.org/2024/02/14/I-love-free-Software/</link>
            <pubDate>Wed, 14 Feb 2024 15:29:24 +0100</pubDate>
            <guid>https://feldspaten.org/2024/02/14/I-love-free-Software/</guid>
            <description>&lt;img src=&#34;https://feldspaten.org/2024/02/14/I-love-free-Software/ILFS_Card_2024_en.png&#34; alt=&#34;Featured image of post I love free Software&#34; /&gt;&lt;p&gt;I love Free Software because it empowers people and allows them to use, repair and maintain devices beyond an arbitrary defined lifespan.&#xA;Free software helps to reduce e-waste and to conserve energy-intensive resources on our already burning planet #ilovefs #ilovefreesoftwareday&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>ssh authentication via Yubikeys</title>
            <link>https://feldspaten.org/2024/02/03/ssh-authentication-via-Yubikeys/</link>
            <pubDate>Sat, 03 Feb 2024 17:52:59 +0100</pubDate>
            <guid>https://feldspaten.org/2024/02/03/ssh-authentication-via-Yubikeys/</guid>
            <description>&lt;p&gt;&lt;em&gt;Note: In an older version of this article, some of the things stated here were wrong. Sorry for that.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;I recently played with my Yubikey to establish them as second factor for my ssh keys.&#xA;The process is straight-forward, however it took me some time to go through Yubico&amp;rsquo;s documentation. Here I write the process down in my own words.&lt;/p&gt;&#xA;&lt;p&gt;ssh public key authentication can be hardened to require a hardware token like the Yubikeys (series 5 onwards). My Yubikey 4 is not supported, it&amp;rsquo;s too old - FIDO2 is required. From OpenSSH 8.2 and 8.3 respectively (for resident keys) onwards, yubikeys are supported.&#xA;I do only require them for Linux, although the &lt;a class=&#34;link&#34; href=&#34;https://developers.yubico.com/SSH/Securing_SSH_with_FIDO2.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;documentaton&lt;/a&gt; mentions some not-officially-supported-but-should-work methods to get it also working on Windows and MacOS.&lt;/p&gt;&#xA;&lt;h2 id=&#34;discoverable-resident-and-non-discoverable-non-resident-keys&#34;&gt;Discoverable (resident) and non-discoverable (non-resident) keys&#xA;&lt;/h2&gt;&lt;p&gt;Before we start, there are two different keys: &lt;a class=&#34;link&#34; href=&#34;https://developers.yubico.com/Passkeys/Passkey_concepts/Discoverable_vs_non-discoverable_credentials.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Discoverable (or resident) and non-discoverable (or non-resident) keys&lt;/a&gt;. Resident keys are stored on the Yubikey, while non-resident key use the Yubikey&amp;rsquo;s master key, but do not store anything on it. For &lt;code&gt;ssh&lt;/code&gt;, non-resident keys should be preferred because of two reasons:&#xA;First, they do not consume any of the sparse certificate slot on the Yubikey.&#xA;Second, if the Yubikey gets lost or stolen, an attacker cannot possibly obtain the ssh private key based on the Yubikey alone.&lt;/p&gt;&#xA;&lt;p&gt;In the case of resident keys, the Yubikey uses PIV slots to store the ssh keys (RSA or EC). The Yubikey 5 has 25 slots available, but they are shared with other PIV certificates, so be careful to not waste them. &lt;a class=&#34;link&#34; href=&#34;https://fy.blackhats.net.au/blog/2023-02-02-how-hype-will-turn-your-security-key-into-junk&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Firstyear wrote this might become a problem&lt;/a&gt;, because for every passkey you will need one of those slots. Therefore again, non-resident keys should be preferred.&lt;/p&gt;&#xA;&lt;h1 id=&#34;tldr&#34;&gt;TL;DR&#xA;&lt;/h1&gt;&lt;p&gt;&lt;em&gt;Tested on my openSUSE Tumbleweed laptop against a Leap 15.5 and a MicroOS server&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Non-Discoverable (non-resident) key:    Require additional identity file, do not occupy storage on Yubikey&#xA;Discoverable (resident) key:            Can in principle be used anywhere, occupy one slot on the Yubikey per ssh key&#xA;&#xA;Recommended: non-resident keys&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;&#xA;&lt;li&gt;Insert your Yubikey (Firmware 5.2.3 or higher)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://support.yubico.com/hc/en-us/articles/4402836718866-Understanding-YubiKey-PINs&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Set a PIN for FIDO2 on the Yubikey&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Generate the key pairs:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Non-discoverable keys (&lt;strong&gt;recommended&lt;/strong&gt;, more secure, cannot be used without the credentials id file, do not occupy slot on Yubikey):&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ssh-keygen -t ed25519-sk&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Discoverable/resident keys (will occupy one of the sparse credential slots on the Yubikey, not recommended)&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ssh-keygen -t ed25519-sk -O resident -O application=ssh:my-hostname -O verify-required&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;Transfer the public key to the remote host &lt;code&gt;REMOTE&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ssh-copy-id -i ~/.ssh/id_ed25519_sk REMOTE&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;Check if the login works by enforcing the new identity. &lt;code&gt;ssh&lt;/code&gt; should ask you for your PIN:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ssh -i ~/.ssh/id_ed25519_sk -o &amp;#39;IdentitiesOnly yes&amp;#39; REMOTE&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And that&amp;rsquo;s it!&lt;/p&gt;&#xA;&lt;h1 id=&#34;step-by-step-guide&#34;&gt;Step-by-step guide&#xA;&lt;/h1&gt;&lt;h2 id=&#34;remote-system-configuration&#34;&gt;Remote system configuration&#xA;&lt;/h2&gt;&lt;p&gt;&lt;em&gt;this was not needed in my case. I leave it here for you, if you need it&lt;/em&gt;. See the &lt;a class=&#34;link&#34; href=&#34;https://developers.yubico.com/SSH/Securing_SSH_with_FIDO2.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;official documentation&lt;/a&gt; for more information.&lt;/p&gt;&#xA;&lt;p&gt;OpenSSH supports FIDO2 authentication by default since somewhere in OpenSSH 8, but it might not check for the user verification via PIN.&#xA;In case you run into trouble, add the following to your &lt;code&gt;sshd_config&lt;/code&gt; on the OpenSSH server end:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;PubkeyAuthOptions verify-required&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;On the client side, you can also append &lt;code&gt;verify-required&lt;/code&gt; to an &lt;code&gt;authorized_keys&lt;/code&gt; entry:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sk-ssh-ed25519@openssh.com ENTRY verify-required&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;I did not need to do those changes on openSUSE Leap 15.5 and MicroOS.&lt;/p&gt;&#xA;&lt;h2 id=&#34;create-non-discoverable-keys-recommended&#34;&gt;Create Non-discoverable keys (recommended)&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Insert your Yubikey (Firmware 5.2.3 or higher)&lt;/li&gt;&#xA;&lt;li&gt;You probably need to set a PIN for the Yubikey, otherwise it doesn&amp;rsquo;t work&lt;/li&gt;&#xA;&lt;li&gt;Generate a new key using &lt;code&gt;ed25519&lt;/code&gt; (or &lt;code&gt;ecdsa&lt;/code&gt; if you really want. Replace &lt;code&gt;my-hostname&lt;/code&gt; with your identifier&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: Prefer &lt;code&gt;ed25519&lt;/code&gt; over &lt;code&gt;ecdsa&lt;/code&gt; because of concerns over the trustworthiness of NIST produced curves used in ECDSA.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ssh-keygen -t ed25519-sk&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;A key pair, &lt;code&gt;id_ed25519_sk&lt;/code&gt; and &lt;code&gt;id_ed25519_sk.pub&lt;/code&gt; is generated. The private key is not the actual private key, but part of the key generation process. This secret is used in conjunction with the Yubikey to generate the private key. This makes it more secure than resident keys, because you always need this identity key AND the Yubikey.&#xA;The public key &lt;code&gt;id_ed25519_sk.pub&lt;/code&gt; is the actual public key.&#xA;You can (and should) add an additional passphrase to further harden the ssh key.&lt;/p&gt;&#xA;&lt;p&gt;Use &lt;code&gt;ssh-copy-id&lt;/code&gt; to copy the public key to a remote host, e.g. &lt;code&gt;REMOTE&lt;/code&gt; (the &lt;code&gt;-i ...&lt;/code&gt; option is optional):&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ssh-copy-id -i ~/.ssh/id_ed25519_sk REMOTE&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And then you can check the key login via the following - &lt;code&gt;ssh&lt;/code&gt; should ask for your PIN&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ssh -i ~/.ssh/id_ed25519_sk -o &amp;#39;IdentitiesOnly yes&amp;#39; REMOTE&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;create-discoverable-keys&#34;&gt;Create discoverable keys&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Insert your Yubikey (Firmware 5.2.3 or higher)&lt;/li&gt;&#xA;&lt;li&gt;You might need to &lt;a class=&#34;link&#34; href=&#34;https://support.yubico.com/hc/en-us/articles/4402836718866-Understanding-YubiKey-PINs&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;set a PIN for the Yubikey&lt;/a&gt; for FIDO2, otherwise it&amp;rsquo;s refused or not secure. Do it.&lt;/li&gt;&#xA;&lt;li&gt;Generate a new key using &lt;code&gt;ed25519&lt;/code&gt; (or &lt;code&gt;ecdsa&lt;/code&gt; if you really really want). Replace &lt;code&gt;my-hostname&lt;/code&gt; with your identifier&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ssh-keygen -t ed25519-sk -O resident -O application=ssh:my-hostname -O verify-required&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This generates a new keypair &lt;code&gt;~/.ssh/id_ed25519_sk&lt;/code&gt; and &lt;code&gt;~/.ssh/id_ed25519_sk.pub&lt;/code&gt;. Note that the private key is mostly just a reference to the secret stored on the Yubikey, although it does not appear that way. The public key &lt;code&gt;id_ed25519_sk.pub&lt;/code&gt; is the actual public key.&lt;/p&gt;&#xA;&lt;p&gt;From here, the rest is the same as above. Copy the key using &lt;code&gt;ssh-copy-id&lt;/code&gt; and then test it using the above stated arguments for &lt;code&gt;ssh&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;list-and-delete-keys-resident-keys-only&#34;&gt;List and delete keys (resident keys only)&#xA;&lt;/h2&gt;&lt;p&gt;Reminder: For ssh, non-resident keys should be preferred to save the sparse credential slots on the Yubikey. See &lt;a class=&#34;link&#34; href=&#34;https://fy.blackhats.net.au/blog/2023-02-02-how-hype-will-turn-your-security-key-into-junk&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Firstyear&amp;rsquo;s blog post&lt;/a&gt; on why this is an issue.&lt;/p&gt;&#xA;&lt;p&gt;The Yubikey uses it&amp;rsquo;s PIV module to store RSA and EC keys used for ssh. Mine (Yubikey 5) has 25 slots available. Per ssh key one slot is occupied and you might need those slots also for other applications. If you want to really use passkeys, then you can only store 25 passkeys on a Yubikey, so don&amp;rsquo;t be wasteful. Use non-resident keys for ssh.&lt;/p&gt;&#xA;&lt;p&gt;However, in case you still need resident keys, you can list the currently used certificates via&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ykman fido credentials list&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And to delete a certain credential the &lt;code&gt;delete&lt;/code&gt; subcommand with the corresponding key id, e.g. for &lt;code&gt;da7fdc&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ykman fido credentials delete da7fdc&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Cave: &lt;a class=&#34;link&#34; href=&#34;https://developers.yubico.com/yubico-piv-tool/Actions/delete_certificate.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;The private key does not get deleted unless it is overwritten&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h1 id=&#34;outlook&#34;&gt;Outlook&#xA;&lt;/h1&gt;&lt;p&gt;Once I figured the difference between discoverable and non-discoverable keys and how they interact with ssh, it&amp;rsquo;s pretty much straight-forward to use a Yubikey to secure your ssh keys. I have this now setup for my primary Yubikey and one device and will need to do the same for my secondary computer (I use non-discoverable keys).&lt;/p&gt;&#xA;&lt;p&gt;I think that Yubikey-based ssh authentication can improve the security. But before I&amp;rsquo;m comfortable to limit ssh authentication to this method and remove my old keys, I need a secondary Yubikey. I currently have a older Yubikey 4, which is not supported. And I do not feel comfortable to have only one Yubikey that opens important ssh connections. It&amp;rsquo;s a single point of failure (or loss), that would lock me out otherwise.&lt;/p&gt;&#xA;&lt;p&gt;Also I noticed that it&amp;rsquo;s less convenient because I need to insert the Yubikey PIN for every ssh connection. &lt;code&gt;ssh-add&lt;/code&gt; allows to unlock the key passphrase, but still for every connection I get a PIN prompt. Perhaps there is a way to avoid this and unlock the Yubikey for a certain time, but that&amp;rsquo;s something that I still need to figure out.&lt;/p&gt;&#xA;&lt;p&gt;For now this works pretty well, and I look forward to play a bit more with my Yubikeys.&lt;/p&gt;&#xA;&lt;h2 id=&#34;minus-points-for-azure&#34;&gt;Minus points for Azure&#xA;&lt;/h2&gt;&lt;p&gt;And 100 minus points to Azure, who still do not support ed25519 keys. Sorry, this annoys me that much, that I just had to rant about it.&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Praising atomic, transactional server systems (openSUSE)</title>
            <link>https://feldspaten.org/2024/01/24/Praise-transactional-updates/</link>
            <pubDate>Wed, 24 Jan 2024 13:59:54 +0100</pubDate>
            <guid>https://feldspaten.org/2024/01/24/Praise-transactional-updates/</guid>
            <description>&#xA;    &lt;blockquote&gt;&#xA;        &lt;p&gt;&lt;em&gt;Immutability done right.&lt;/em&gt;&lt;/p&gt;&#xA;&#xA;    &lt;/blockquote&gt;&#xA;&lt;p&gt;Since our little one is born, I have little-to-no spare time anymore to do proper server maintenance. Luckily I was prepared for this, and automated as much of the recurring tasks that I could. This post is a praise of our openSUSE transactional systems (Leap, Leap-Micro, MicroOS, Tumbleweed), because they make my life as a spare time home and family/friends sysadmin much easier.&lt;/p&gt;&#xA;&lt;p&gt;Almost all openSUSE flavors provide a transactional system role. Some like MicroOS got as far, as to only run astransactional system. Transactional system means, that you have a immutable (&amp;ldquo;read-only&amp;rdquo;) root filesystem, where only a small subset of the folder hierarchy (&lt;code&gt;/etc&lt;/code&gt;, &lt;code&gt;/srv&lt;/code&gt;, &lt;code&gt;/var&lt;/code&gt;) is writable. Package installation, updates, ecc. need to be performed as a &amp;ldquo;transaction&amp;rdquo;, i.e. in a new file system snapshot that does not mess with the current running system. Only after a system reboot, the effect of a transaction will be applied to the system. If something goes wrong, you can do a snapshot rollback, which can be a lifesaver.&lt;/p&gt;&#xA;&lt;p&gt;Already since some time I run almost all of my servers as transactional servers. They are a bit more annoying that traditional systems to setup because transactional systems behave a bit differently, but you get increased reliability and resilience in return.&#xA;By default you have automatic updates turned on, which check for system updates during the night, install them into a new snapshot and reboot the system to apply the changes. For most use cases this is the best fully automated update strategy that I&amp;rsquo;ve seen and used so far. Exceptions exists however.&lt;/p&gt;&#xA;&lt;p&gt;In the last three weeks I didn&amp;rsquo;t had much time to perform typical maintenance tasks like installing updates myself. But that&amp;rsquo;s ok, because they are anyways automated. I knew my servers would take care of themselves. And I also knew that if an update goes wrong, I could just boot into an older snapshot and fix it from there. This was much appreciated peace-of-mind, knowing that at least this part is not to be worried about.&lt;/p&gt;&#xA;&lt;p&gt;In the openSUSE world, the transactional role isn&amp;rsquo;t limited to MicroOS, Leap Micro or Tumbleweed. Also Leap has a transactional system role that I heavily use.&#xA;To me, a transactional Leap system is a solid work horse that runs stable and reliable, and this extra protection and easy maintenance makes it in my eyes an awesome server system. I wouldn&amp;rsquo;t like to miss it.&lt;/p&gt;&#xA;&lt;p&gt;Of course, there are some caveats with transactional systems. Just to name one, the system behaves differently than most people are used to, which means they have a higher entrance barrier.&#xA;But if you&amp;rsquo;re a non-rookie sysadmin it&amp;rsquo;s a technology that pays off learning in my opinion.&#xA;There are some more edges that I want to talk about in a future blog post, but for now I just wanted to praise the (openSUSE) transactional server systems, as they have made my server maintenance work in the last weeks a breeze.&lt;/p&gt;&#xA;&lt;p&gt;Cheers.&lt;/p&gt;&#xA;&lt;p&gt;(This blog runs on a transactional MicroOS server)&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>Achievement unlocked: Fatherhood</title>
            <link>https://feldspaten.org/2024/01/18/Fatherhood/</link>
            <pubDate>Thu, 18 Jan 2024 13:34:37 +0100</pubDate>
            <guid>https://feldspaten.org/2024/01/18/Fatherhood/</guid>
            <description>&lt;p&gt;I&amp;rsquo;m happy to announce that last week our first child was born. We&amp;rsquo;re more than happy and I&amp;rsquo;m now on parental leave for some time.&lt;/p&gt;&#xA;&lt;p&gt;We&amp;rsquo;re super happy and excited and tired and everything! This is so far the proudest achievement and most important thing in my life.&#xA;It also feels like a big milestone. Things have changed, and I believe they have changed for the better, despite the new state of permanent tiredness that comes with it.&lt;/p&gt;&#xA;&lt;p&gt;Beware, from now onwards dad jokes will be more present.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;Life achievement unlocked: Fatherhood 👪&lt;/p&gt;&#xA;</description>
        </item><item>
            <title>feldspaten operational again</title>
            <link>https://feldspaten.org/2024/01/17/System-operational/</link>
            <pubDate>Wed, 17 Jan 2024 12:08:20 +0100</pubDate>
            <guid>https://feldspaten.org/2024/01/17/System-operational/</guid>
            <description>&lt;p&gt;Sorry for the outage last week. I did a domain transfer and it didn&amp;rsquo;t went as smooth as I hoped for. It took my new hoster some time to fix an internal nameserver issue.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m still puzzled why this transfer went haywire. I did a couple of transfers in the last months and all of them went smoothly. Only the most important domain then screwed up. Well, I guess that&amp;rsquo;s just Murphy&amp;rsquo;s law.&lt;/p&gt;&#xA;&lt;p&gt;The main pain was the outage of my mail server for about 5 days. While I see that some of the mails still are delivered afterwards, I don&amp;rsquo;t know how many got lost. Well, I just can hope, nothing really important was in there.&lt;/p&gt;&#xA;&lt;p&gt;And, of course, it&amp;rsquo;s always DNS.&lt;/p&gt;&#xA;&lt;p&gt;Cheers.&lt;/p&gt;&#xA;</description>
        </item></channel>
</rss>
