From b9f57526eabc486f5f04d90a0c2ab444310ed968 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 21 Feb 2026 11:18:28 +0200 Subject: add desk rack --- gemfeed/2026-02-22-my-desk-rack.gmi.tpl | 95 ++++++ gemfeed/atom.xml | 475 +++++++-------------------- gemfeed/index.gmi | 1 + gemfeed/my-deskrack/deskrack-backside.jpg | Bin 0 -> 229308 bytes gemfeed/my-deskrack/deskrack-cdtransport.jpg | Bin 0 -> 258389 bytes gemfeed/my-deskrack/deskrack-frontview.jpg | Bin 0 -> 275617 bytes gemfeed/my-deskrack/deskrack-supernote.jpg | Bin 0 -> 162581 bytes gemfeed/my-deskrack/deskrack.jpg | Bin 0 -> 326831 bytes index.gmi | 1 + 9 files changed, 219 insertions(+), 353 deletions(-) create mode 100644 gemfeed/2026-02-22-my-desk-rack.gmi.tpl create mode 100644 gemfeed/my-deskrack/deskrack-backside.jpg create mode 100644 gemfeed/my-deskrack/deskrack-cdtransport.jpg create mode 100644 gemfeed/my-deskrack/deskrack-frontview.jpg create mode 100644 gemfeed/my-deskrack/deskrack-supernote.jpg create mode 100644 gemfeed/my-deskrack/deskrack.jpg diff --git a/gemfeed/2026-02-22-my-desk-rack.gmi.tpl b/gemfeed/2026-02-22-my-desk-rack.gmi.tpl new file mode 100644 index 00000000..67ba5329 --- /dev/null +++ b/gemfeed/2026-02-22-my-desk-rack.gmi.tpl @@ -0,0 +1,95 @@ +# My desk rack: DeskPi RackMate T0 + +> Published at 2026-02-21T11:17:15+02:00 + +``` + ┌─────────────────┐ + │ ● ● AIR │ ← air-quality monitor + ├─────────────────┤ + │ ╔═╗ CD │ ← CD transport + │ ║ ◉║ S/PDIF │ + │ ╚═╝ │ + ├─────────────────┤ + │ ▓▓▓ USB PWR │ ← PinePower + ├─────────────────┤ + │ ░░░ (phones) │ ← 1U shelf + ├─────────────────┤ + │ ◉◉◉◉◉ LAN │ ← 5-port switch + ├─────────────────┤ + │ [E50] [L50] │ ← DAC + AMP + │ DAC AMP │ + └─────────────────┘ + RackMate T0 +``` + +On my desk sits a small rack that keeps audio gear, power, and network in one place: the DeskPi RackMate T0. Here's what lives in it and how it's wired. + +=> https://deskpi.com/products/deskpi-rackmate-t1-rackmount-10-inch-4u-server-cabinet-for-network-servers-audio-and-video-equipment DeskPi RackMate T0 + +=> ./my-deskrack/deskrack.jpg DeskPi RackMate T0 on the desk + +<< template::inline::toc + +## What's in the rack (top to bottom) + +### Top: CD transport and air-quality monitor + +At the top is the S.M.S.L PL200T, a CD transport with anti-vibration design. It outputs digital audio over coaxial S/PDIF into the DAC in the rack. On top of the transport sits a small air-quality monitor so I can keep an eye on the room. + +=> https://www.smsl-audio.com/portal/product/detail/id/908.html S.M.S.L PL200T CD Transport + +=> ./my-deskrack/deskrack-cdtransport.jpg CD transport and air-quality monitor on top + +A CD transport is not the same as a CD player. A CD player has a built-in DAC (digital-to-analog converter) and outputs analogue audio—you plug it into an amp or active speakers and you're done. A CD transport only reads the disc and outputs a digital signal (e.g. coaxial or optical S/PDIF). It has no DAC. You feed that digital stream into an external DAC, which then does the conversion. The idea is to separate the mechanical part (spinning the disc, reading the pits) from the conversion stage, so you can use one DAC for CDs, streaming, and other sources, and upgrade or swap the transport and the DAC independently. + +In the age of streaming and files, putting on a real CD is still a pleasure. You own the disc and the sound isn't at the mercy of a subscription or a server. You pick an album, put it in, and listen from start to finish—no endless scrolling, no algorithm. The format is fixed (16-bit/44.1 kHz), so what you hear is consistent and often better than heavily compressed streams. And there's something satisfying about the ritual: handling the case, the disc, and the artwork instead of tapping a screen. + +### Power and charging: PinePower Desktop + 1U shelf + +Below that is the PinePower Desktop from Pine64, used as a desktop power and USB charging station for phones and other devices. The rack has one free 1U space under the PinePower where I put the devices that are charging, so cables and gadgets stay in one spot. + +=> https://www.pine64.org PinePower Desktop (Pine64) + +### Network: 5-port mini switch + +Next is a compact 5-port Ethernet switch. The uplink goes to a wall socket behind the desk; the other ports feed the computer, laptop, and anything else that needs wired LAN on the desk. Next to the switch you can see my Nothing ear buds. + +=> https://nothing.tech/products/ear Nothing ear buds + +### Bottom: DAC and headphone amp + +At the bottom of the rack are the Topping E50 (DAC) and Topping L50 (headphone amplifier). The E50 converts digital to analogue; the L50 drives the headphones. They drive my Hifiman Sundara headphones. + +=> https://www.tpdz.net Topping E50 DAC +=> https://www.tpdz.net Topping L50 Headphone Amplifier +=> https://hifiman.com/products/detail/sundara Hifiman Sundara + +### Music sources + +* CD transport: coaxial (S/PDIF) from the S.M.S.L PL200T into the Topping E50. +* Streaming: USB from the desktop computer and/or laptop on the desk into the E50, so I can play from either machine. + +### Left side: cable management + +On the left of the rack are two cable holders to keep power and signal cables tidy. + +## Next to the rack + +Right beside the rack is my Supernote Nomad, which I use for notes and reading and have written about elsewhere on this blog. It’s the small tablet-shaped device on the right side of the rack. + +=> ./my-deskrack/deskrack-supernote.jpg Supernote Nomad (small tablet on the right of the rack) +=> https://supernote.com/pages/supernote-nomad Supernote Nomad (product page) + +=> ./my-deskrack/deskrack-frontview.jpg Front view of the rack +=> ./my-deskrack/deskrack-backside.jpg Back of the rack + +## Bedside: another HiFi setup + +I have a second setup for high-res listening next to my bed. On the nightstand sit my FiiO K13 R2R (an R2R DAC/amp) and my Denon AH-D9200 headphones. I connect the K13 to my laptop via USB and use it for high-resolution files and streaming when I'm not at the desk. + +=> https://www.fiio.com Fiio K13 R2R +=> https://www.denon.com Denon AH-D9200 + +That's the full desk rack: CD transport and air monitor on top, PinePower and charging shelf, switch, then Topping E50 and L50 at the bottom, with the Hifiman Sundara as the main output and the Supernote Nomad sitting next to it. I hope that you found this interesting. + +E-Mail your comments to `paul@nospam.buetow.org` :-) diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index 1c07ac0a..5bcf3e5e 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,11 +1,132 @@ - 2026-02-20T21:23:33+02:00 + 2026-02-21T11:17:15+02:00 foo.zone feed To be in the .zone! gemini://foo.zone/ + + My desk rack: DeskPi RackMate T0 + + gemini://foo.zone/gemfeed/2026-02-22-my-desk-rack.gmi + 2026-02-21T11:17:15+02:00 + + Paul Buetow aka snonux + paul@dev.buetow.org + + On my desk sits a small rack that keeps audio gear, power, and network in one place: the DeskPi RackMate T0. Here's what lives in it and how it's wired. + +
+

My desk rack: DeskPi RackMate T0


+
+
+    ┌─────────────────┐
+    │   ●  ●  AIR     │  ← air-quality monitor
+    ├─────────────────┤
+    │  ╔═╗  CD        │  ← CD transport
+    │  ║ ◉║  S/PDIF   │
+    │  ╚═╝             │
+    ├─────────────────┤
+    │  ▓▓▓  USB PWR   │  ← PinePower
+    ├─────────────────┤
+    │  ░░░  (phones)  │  ← 1U shelf
+    ├─────────────────┤
+    │  ◉◉◉◉◉  LAN     │  ← 5-port switch
+    ├─────────────────┤
+    │  [E50] [L50]    │  ← DAC + AMP
+    │   DAC   AMP     │
+    └─────────────────┘
+         RackMate T0
+
+
+On my desk sits a small rack that keeps audio gear, power, and network in one place: the DeskPi RackMate T0. Here's what lives in it and how it's wired.
+
+DeskPi RackMate T0
+
+DeskPi RackMate T0 on the desk
+
+

Table of Contents


+
+
+

What's in the rack (top to bottom)


+
+

Top: CD transport and air-quality monitor


+
+At the top is the S.M.S.L PL200T, a CD transport with anti-vibration design. It outputs digital audio over coaxial S/PDIF into the DAC in the rack. On top of the transport sits a small air-quality monitor so I can keep an eye on the room.
+
+S.M.S.L PL200T CD Transport
+
+CD transport and air-quality monitor on top
+
+A CD transport is not the same as a CD player. A CD player has a built-in DAC (digital-to-analog converter) and outputs analogue audio—you plug it into an amp or active speakers and you're done. A CD transport only reads the disc and outputs a digital signal (e.g. coaxial or optical S/PDIF). It has no DAC. You feed that digital stream into an external DAC, which then does the conversion. The idea is to separate the mechanical part (spinning the disc, reading the pits) from the conversion stage, so you can use one DAC for CDs, streaming, and other sources, and upgrade or swap the transport and the DAC independently.
+
+In the age of streaming and files, putting on a real CD is still a pleasure. You own the disc and the sound isn't at the mercy of a subscription or a server. You pick an album, put it in, and listen from start to finish—no endless scrolling, no algorithm. The format is fixed (16-bit/44.1 kHz), so what you hear is consistent and often better than heavily compressed streams. And there's something satisfying about the ritual: handling the case, the disc, and the artwork instead of tapping a screen.
+
+

Power and charging: PinePower Desktop + 1U shelf


+
+Below that is the PinePower Desktop from Pine64, used as a desktop power and USB charging station for phones and other devices. The rack has one free 1U space under the PinePower where I put the devices that are charging, so cables and gadgets stay in one spot.
+
+PinePower Desktop (Pine64)
+
+

Network: 5-port mini switch


+
+Next is a compact 5-port Ethernet switch. The uplink goes to a wall socket behind the desk; the other ports feed the computer, laptop, and anything else that needs wired LAN on the desk. Next to the switch you can see my Nothing ear buds.
+
+Nothing ear buds
+
+

Bottom: DAC and headphone amp


+
+At the bottom of the rack are the Topping E50 (DAC) and Topping L50 (headphone amplifier). The E50 converts digital to analogue; the L50 drives the headphones. They drive my Hifiman Sundara headphones.
+
+Topping E50 DAC
+Topping L50 Headphone Amplifier
+Hifiman Sundara
+
+

Music sources


+
+
    +
  • CD transport: coaxial (S/PDIF) from the S.M.S.L PL200T into the Topping E50.
  • +
  • Streaming: USB from the desktop computer and/or laptop on the desk into the E50, so I can play from either machine.
  • +

+

Left side: cable management


+
+On the left of the rack are two cable holders to keep power and signal cables tidy.
+
+

Next to the rack


+
+Right beside the rack is my Supernote Nomad, which I use for notes and reading and have written about elsewhere on this blog. It’s the small tablet-shaped device on the right side of the rack.
+
+Supernote Nomad (small tablet on the right of the rack)
+Supernote Nomad (product page)
+
+Front view of the rack
+Back of the rack
+
+

Bedside: another HiFi setup


+
+I have a second setup for high-res listening next to my bed. On the nightstand sit my FiiO K13 R2R (an R2R DAC/amp) and my Denon AH-D9200 headphones. I connect the K13 to my laptop via USB and use it for high-resolution files and streaming when I'm not at the desk.
+
+Fiio K13 R2R
+Denon AH-D9200
+
+That's the full desk rack: CD transport and air monitor on top, PinePower and charging shelf, switch, then Topping E50 and L50 at the bottom, with the Hifiman Sundara as the main output and the Supernote Nomad sitting next to it. I hope that you found this interesting.
+
+E-Mail your comments to paul@nospam.buetow.org :-)
+
+
+
Loadbars resurrected: From Perl to Go after 15 years @@ -18392,358 +18513,6 @@ http://www.gnu.org/software/src-highlite --> 2023-04-01 "Never split the difference" book notes
2023-03-16 "The Pragmatic Programmer" book notes

-Back to the main site
- - -
- - KISS high-availability with OpenBSD - - gemini://foo.zone/gemfeed/2024-04-01-KISS-high-availability-with-OpenBSD.gmi - 2024-03-30T22:12:56+02:00 - - Paul Buetow aka snonux - paul@dev.buetow.org - - I have always wanted a highly available setup for my personal websites. I could have used off-the-shelf hosting solutions or hosted my sites in an AWS S3 bucket. I have used technologies like (in unsorted and slightly unrelated order) BGP, LVS/IPVS, ldirectord, Pacemaker, STONITH, scripted VIP failover via ARP, heartbeat, heartbeat2, Corosync, keepalived, DRBD, and commercial F5 Load Balancers for high availability at work. - -
-

KISS high-availability with OpenBSD


-
-Published at 2024-03-30T22:12:56+02:00
-
-I have always wanted a highly available setup for my personal websites. I could have used off-the-shelf hosting solutions or hosted my sites in an AWS S3 bucket. I have used technologies like (in unsorted and slightly unrelated order) BGP, LVS/IPVS, ldirectord, Pacemaker, STONITH, scripted VIP failover via ARP, heartbeat, heartbeat2, Corosync, keepalived, DRBD, and commercial F5 Load Balancers for high availability at work.
-
-But still, my personal sites were never highly available. All those technologies are great for professional use, but I was looking for something much more straightforward for my personal space - something as KISS (keep it simple and stupid) as possible.
-
-It would be fine if my personal website wasn't highly available, but the geek in me wants it anyway.
-
-PS: ASCII-art below reflects an OpenBSD under-water world with all the tools available in the base system.
-
-
-Art by Michael J. Penick (mod. by Paul B.)
-                                               ACME-sky
-        __________
-       / nsd tower\                                             (
-      /____________\                                           (\) awk-ward
-       |:_:_:_:_:_|                                             ))   plant
-       |_:_,--.:_:|                       dig-bubble         (\//   )
-       |:_:|__|_:_|  relayd-castle          _               ) ))   ((
-    _  |_   _  :_:|   _   _   _            (_)             ((((   /)\`
-   | |_| |_| |   _|  | |_| |_| |             o              \\)) (( (
-    \_:_:_:_:/|_|_|_|\:_:_:_:_/             .                ((   ))))
-     |_,-._:_:_:_:_:_:_:_.-,_|                                )) ((//
-     |:|_|:_:_:,---,:_:_:|_|:|                               ,-.  )/
-     |_:_:_:_,'puffy `,_:_:_:_|           _  o               ,;'))((
-     |:_:_:_/  _ | _  \_:_:_:|          (_O                   ((  ))
-_____|_:_:_|  (o)-(o)  |_:_:_|--'`-.     ,--. ksh under-water (((\'/
- ', ;|:_:_:| -( .-. )- |:_:_:| ', ; `--._\  /,---.~  goat     \`))
-.  ` |_:_:_|   \`-'/   |_:_:_|.  ` .  `  /()\.__( ) .,-----'`-\(( sed-root
- ', ;|:_:_:|    `-'    |:_:_:| ', ; ', ; `--'|   \ ', ; ', ; ',')).,--
-.  ` MJP ` .  ` .  ` .  ` . httpd-soil ` .    .  ` .  ` .  ` .  ` .  `
- ', ; ', ; ', ; ', ; ', ; ', ; ', ; ', ; ', ; ', ; ', ; ', ; ', ; ', ;
-
-
-
-

Table of Contents


-
-
-

My auto-failover requirements


-
-
    -
  • Be OpenBSD-based (I prefer OpenBSD because of the cleanliness and good documentation) and rely on as few external packages as possible.
  • -
  • Don't rely on the hottest and newest tech (don't want to migrate everything to a new and fancier technology next month already!).
  • -
  • It should be reasonably cheap. I want to avoid paying a premium for floating IPs or fancy Elastic Load Balancers.
  • -
  • It should be geo-redundant.
  • -
  • It's fine if my sites aren't reachable for five or ten minutes every other month. Due to their static nature, I don't care if there's a split-brain scenario where some requests reach one server and other requests reach another server.
  • -
  • Failover should work for both HTTP/HTTPS and Gemini protocols. My self-hosted MTAs and DNS servers should also be highly available.
  • -
  • Let's Encrypt TLS certificates should always work (before and after a failover).
  • -
  • Have good monitoring in place so I know when a failover was performed and when something went wrong with the failover.
  • -
  • Don't configure everything manually. The configuration should be automated and reproducible.
  • -

-

My HA solution


-
-

Only OpenBSD base installation required


-
-My HA solution for Web and Gemini is based on DNS (OpenBSD's nsd) and a simple shell script (OpenBSD's ksh and some little sed and awk and grep). All software used here is part of the OpenBSD base system and no external package needs to be installed - OpenBSD is a complete operating system.
-
-https://man.OpenBSD.org/nsd.8
-https://man.OpenBSD.org/ksh
-https://man.OpenBSD.org/awk
-https://man.OpenBSD.org/sed
-https://man.OpenBSD.org/dig
-https://man.OpenBSD.org/ftp
-https://man.OpenBSD.org/cron
-
-I also used the dig (for DNS checks) and ftp (for HTTP/HTTPS checks) programs.
-
-The DNS failover is performed automatically between the two OpenBSD VMs involved (my setup doesn't require any quorum for a failover, so there isn't a need for a 3rd VM). The ksh script, executed once per minute via CRON (on both VMs), performs a health check to determine whether the current master node is available. If the current master isn't available (no HTTP response as expected), a failover is performed to the standby VM:
-
- -
#!/bin/ksh
-
-ZONES_DIR=/var/nsd/zones/master/
-DEFAULT_MASTER=fishfinger.buetow.org
-DEFAULT_STANDBY=blowfish.buetow.org
-
-determine_master_and_standby () {
-    local master=$DEFAULT_MASTER
-    local standby=$DEFAULT_STANDBY
-
-    .
-    .
-    .
-    
-    local -i health_ok=1
-    if ! ftp -4 -o - https://$master/index.txt | grep -q "Welcome to $master"; then
-        echo "https://$master/index.txt IPv4 health check failed"
-        health_ok=0
-    elif ! ftp -6 -o - https://$master/index.txt | grep -q "Welcome to $master"; then
-        echo "https://$master/index.txt IPv6 health check failed"
-        health_ok=0
-    fi
-    if [ $health_ok -eq 0 ]; then
-        local tmp=$master
-        master=$standby
-        standby=$tmp
-    fi
-
-    .
-    .
-    .
-}
-
-
-The failover scripts looks for the ; Enable failover string in the DNS zone files and swaps the A and AAAA records of the DNS entries accordingly:
-
- -
fishfinger$ grep failover /var/nsd/zones/master/foo.zone.zone
-        300 IN A 46.23.94.99 ; Enable failover
-        300 IN AAAA 2a03:6000:6f67:624::99 ; Enable failover
-www     300 IN A 46.23.94.99 ; Enable failover
-www     300 IN AAAA 2a03:6000:6f67:624::99 ; Enable failover
-standby  300 IN A 23.88.35.144 ; Enable failover
-standby  300 IN AAAA 2a01:4f8:c17:20f1::42 ; Enable failover
-
-
- -
transform () {
-  sed -E '
-	/IN A .*; Enable failover/ {
-	    /^standby/! {
-	        s/^(.*) 300 IN A (.*) ; (.*)/\1 300 IN A '$(cat /var/nsd/run/master_a)' ; \3/;
-	    }
-	    /^standby/ {
-	        s/^(.*) 300 IN A (.*) ; (.*)/\1 300 IN A '$(cat /var/nsd/run/standby_a)' ; \3/;
-	    }
-	}
-	/IN AAAA .*; Enable failover/ {
-	    /^standby/! {
-	        s/^(.*) 300 IN AAAA (.*) ; (.*)/\1 300 IN AAAA '$(cat /var/nsd/run/master_aaaa)' ; \3/;
-	    }
-	    /^standby/ {
-	        s/^(.*) 300 IN AAAA (.*) ; (.*)/\1 300 IN AAAA '$(cat /var/nsd/run/standby_aaaa)' ; \3/;
-	    }
-	}
-	/ ; serial/ {
-	    s/^( +) ([0-9]+) .*; (.*)/\1 '$(date +%s)' ; \3/;
-	}
-  '
-}
-
-
-After the failover, the script reloads nsd and performs a sanity check to see if DNS still works. If not, a rollback will be performed:
-
- -
#! Race condition !#
-   
-if [ -f $zone_file.bak ]; then
-    mv $zone_file.bak $zone_file
-fi
-
-cat $zone_file | transform > $zone_file.new.tmp 
-
-grep -v ' ; serial' $zone_file.new.tmp > $zone_file.new.noserial.tmp
-grep -v ' ; serial' $zone_file > $zone_file.old.noserial.tmp
-
-echo "Has zone $zone_file changed?"
-if diff -u $zone_file.old.noserial.tmp $zone_file.new.noserial.tmp; then
-    echo "The zone $zone_file hasn't changed"
-    rm $zone_file.*.tmp
-    return 0
-fi
-
-cp $zone_file $zone_file.bak
-mv $zone_file.new.tmp $zone_file
-rm $zone_file.*.tmp
-echo "Reloading nsd"
-nsd-control reload
-
-if ! zone_is_ok $zone; then
-    echo "Rolling back $zone_file changes"
-    cp $zone_file $zone_file.invalid
-    mv $zone_file.bak $zone_file
-    echo "Reloading nsd"
-    nsd-control reload
-    zone_is_ok $zone
-    return 3
-fi
-
-for cleanup in invalid bak; do
-    if [ -f $zone_file.$cleanup ]; then
-        rm $zone_file.$cleanup
-    fi
-done
-
-echo "Failover of zone $zone to $MASTER completed"
-return 1
-
-
-A non-zero return code (here, 3 when a rollback and 1 when a DNS failover was performed) will cause CRON to send an E-Mail with the whole script output.
-
-The authorative nameserver for my domains runs on both VMs, and both are configured to be a "master" DNS server so that they have their own individual zone files, which can be changed independently. Otherwise, my setup wouldn't work. The side effect is that under a split-brain scenario (both VMs cannot see each other), both would promote themselves to master via their local DNS entries. More about that later, but that's fine in my use case.
-
-Check out the whole script here:
-
-dns-failover.ksh
-
-

Fairly cheap and geo-redundant


-
-I am renting two small OpenBSD VMs: One at OpenBSD Amsterdam and the other at Hetzner Cloud. So, both VMs are hosted at another provider, in different IP subnets, and in different countries (the Netherlands and Germany).
-
-https://OpenBSD.Amsterdam
-https://www.Hetzner.cloud
-
-I only have a little traffic on my sites. I could always upload the static content to AWS S3 if I suddenly had to. But this will never be required.
-
-A DNS-based failover is cheap, as there isn't any BGP or fancy load balancer to pay for. Small VMs also cost less than millions.
-
-

Failover time and split-brain


-
-A DNS failover doesn't happen immediately. I've configured a DNS TTL of 300 seconds, and the failover script checks once per minute whether to perform a failover or not. So, in total, a failover can take six minutes (not including other DNS caching servers somewhere in the interweb, but that's fine - eventually, all requests will resolve to the new master after a failover).
-
-A split-brain scenario between the old master and the new master might happen. That's OK, as my sites are static, and there's no database to synchronise other than HTML, CSS, and images when the site is updated.
-
-

Failover support for multiple protocols


-
-With the DNS failover, HTTP, HTTPS, and Gemini protocols are failovered. This works because all domain virtual hosts are configured on either VM's httpd (OpenBSD's HTTP server) and relayd (it's also part of OpenBSD and I use it to TLS offload the Gemini protocol). So, both VMs accept requests for all the hosts. It's just a matter of the DNS entries, which VM receives the requests.
-
-https://man.OpenBSD.org/httpd.8
-https://man.OpenBSD.org/relayd.8
-
-For example, the master is responsible for the https://www.foo.zone and https://foo.zone hosts, whereas the standby can be reached via https://standby.foo.zone (port 80 for plain HTTP works as well). The same principle is followed with all the other hosts, e.g. irregular.ninja, paul.buetow.org and so on. The same applies to my Gemini capsules for gemini://foo.zone, gemini://standby.foo.zone, gemini://paul.buetow.org and gemini://standby.paul.buetow.org.
-
-On DNS failover, master and standby swap roles without config changes other than the DNS entries. That's KISS (keep it simple and stupid)!
-
-

Let's encrypt TLS certificates


-
-All my hosts use TLS certificates from Let's Encrypt. The ACME automation for requesting and keeping the certificates valid (up to date) requires that the host requesting a certificate from Let's Encrypt is also the host using that certificate.
-
-If the master always serves foo.zone and the standby always standby.foo.zone, then there would be a problem after the failover, as the new master wouldn't have a valid certificate for foo.zone and the new standby wouldn't have a valid certificate for standby.foo.zone which would lead to TLS errors on the clients.
-
-As a solution, the CRON job responsible for the DNS failover also checks for the current week number of the year so that:
-
-
    -
  • In an odd week number, the first server is the default master
  • -
  • In an even week number, the second server is the default master.
  • -

-Which translates to:
-
- -
# Weekly auto-failover for Let's Encrypt automation
-local -i -r week_of_the_year=$(date +%U)
-if [ $(( week_of_the_year % 2 )) -eq 0 ]; then
-    local tmp=$master
-    master=$standby
-    standby=$tmp
-fi
-
-
-This way, a DNS failover is performed weekly so that the ACME automation can update the Let's Encrypt certificates (for master and standby) before they expire on each VM.
-
-The ACME automation is yet another daily CRON script /usr/local/bin/acme.sh. It iterates over all of my Let's Encrypt hosts, checks whether they resolve to the same IP address as the current VM, and only then invokes the ACME client to request or renew the TLS certificates. So, there are always correct requests made to Let's Encrypt.
-
-Let's encrypt certificates usually expire after 3 months, so a weekly failover of my VMs is plenty.
-
-acme.sh.tpl - Rex template for the acme.sh script of mine.
-https://man.OpenBSD.org/acme-client.1
-Let's Encrypt with OpenBSD and Rex
-
-

Monitoring


-
-CRON is sending me an E-Mail whenever a failover is performed (or whenever a failover failed). Furthermore, I am monitoring my DNS servers and hosts through Gogios, the monitoring system I have developed.
-
-https://codeberg.org/snonux/gogios
-KISS server monitoring with Gogios
-
-Gogios, as I developed it by myself, isn't part of the OpenBSD base system.
-
-

Rex automation


-
-I use Rexify, a friendly configuration management system that allows automatic deployment and configuration.
-
-https://www.rexify.org
-codeberg.org/snonux/rexfiles/frontends
-
-Rex isn't part of the OpenBSD base system, but I didn't need to install any external software on OpenBSD either as Rex is invoked from my Laptop!
-
-

More HA


-
-Other high-available services running on my OpenBSD VMs are my MTAs for mail forwarding (OpenSMTPD - also part of the OpenBSD base system) and the authoritative DNS servers (nsd) for all my domains. No particular HA setup is required, though, as the protocols (SMTP and DNS) already take care of the failover to the next available host!
-
-https://www.OpenSMTPD.org/
-
-As a password manager, I use geheim, a command-line tool I wrote in Ruby with encrypted files in a git repository (I even have it installed in Termux on my Phone). For HA reasons, I simply updated the client code so that it always synchronises the database with both servers when I run the sync command there.
-
-https://codeberg.org/snonux/geheim
-
-E-Mail your comments to paul@nospam.buetow.org :-)
-
-Other *BSD and KISS related posts are:
-
-2025-12-07 f3s: Kubernetes with FreeBSD - Part 8: Observability
-2025-10-02 f3s: Kubernetes with FreeBSD - Part 7: k3s and first pod deployments
-2025-07-14 f3s: Kubernetes with FreeBSD - Part 6: Storage
-2025-05-11 f3s: Kubernetes with FreeBSD - Part 5: WireGuard mesh network
-2025-04-05 f3s: Kubernetes with FreeBSD - Part 4: Rocky Linux Bhyve VMs
-2025-02-01 f3s: Kubernetes with FreeBSD - Part 3: Protecting from power cuts
-2024-12-03 f3s: Kubernetes with FreeBSD - Part 2: Hardware and base installation
-2024-11-17 f3s: Kubernetes with FreeBSD - Part 1: Setting the stage
-2024-04-01 KISS high-availability with OpenBSD (You are currently reading this)
-2024-01-13 One reason why I love OpenBSD
-2023-10-29 KISS static web photo albums with photoalbum.sh
-2023-06-01 KISS server monitoring with Gogios
-2022-10-30 Installing DTail on OpenBSD
-2022-07-30 Let's Encrypt with OpenBSD and Rex
-2016-04-09 Jails and ZFS with Puppet on FreeBSD
-
Back to the main site
diff --git a/gemfeed/index.gmi b/gemfeed/index.gmi index c9eb415d..47a398b8 100644 --- a/gemfeed/index.gmi +++ b/gemfeed/index.gmi @@ -2,6 +2,7 @@ ## To be in the .zone! +=> ./2026-02-22-my-desk-rack.gmi 2026-02-22 - My desk rack: DeskPi RackMate T0 => ./2026-02-15-loadbars-resurrected-from-perl-to-go.gmi 2026-02-15 - Loadbars resurrected: From Perl to Go after 15 years => ./2026-02-14-meta-slash-commands-for-prompts-and-context.gmi 2026-02-14 - Meta slash-commands to manage prompts, skills, and context for coding agents => ./2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi 2026-02-02 - A tmux popup editor for Cursor Agent CLI prompts diff --git a/gemfeed/my-deskrack/deskrack-backside.jpg b/gemfeed/my-deskrack/deskrack-backside.jpg new file mode 100644 index 00000000..01041ef6 Binary files /dev/null and b/gemfeed/my-deskrack/deskrack-backside.jpg differ diff --git a/gemfeed/my-deskrack/deskrack-cdtransport.jpg b/gemfeed/my-deskrack/deskrack-cdtransport.jpg new file mode 100644 index 00000000..2bd384c8 Binary files /dev/null and b/gemfeed/my-deskrack/deskrack-cdtransport.jpg differ diff --git a/gemfeed/my-deskrack/deskrack-frontview.jpg b/gemfeed/my-deskrack/deskrack-frontview.jpg new file mode 100644 index 00000000..84013a43 Binary files /dev/null and b/gemfeed/my-deskrack/deskrack-frontview.jpg differ diff --git a/gemfeed/my-deskrack/deskrack-supernote.jpg b/gemfeed/my-deskrack/deskrack-supernote.jpg new file mode 100644 index 00000000..bbf2992a Binary files /dev/null and b/gemfeed/my-deskrack/deskrack-supernote.jpg differ diff --git a/gemfeed/my-deskrack/deskrack.jpg b/gemfeed/my-deskrack/deskrack.jpg new file mode 100644 index 00000000..703c7b86 Binary files /dev/null and b/gemfeed/my-deskrack/deskrack.jpg differ diff --git a/index.gmi b/index.gmi index b5c0914d..08c57139 100644 --- a/index.gmi +++ b/index.gmi @@ -30,6 +30,7 @@ Everything you read on this site is my personal opinion and experience. You can ### Posts +=> ./gemfeed/2026-02-22-my-desk-rack.gmi 2026-02-22 - My desk rack: DeskPi RackMate T0 => ./gemfeed/2026-02-15-loadbars-resurrected-from-perl-to-go.gmi 2026-02-15 - Loadbars resurrected: From Perl to Go after 15 years => ./gemfeed/2026-02-14-meta-slash-commands-for-prompts-and-context.gmi 2026-02-14 - Meta slash-commands to manage prompts, skills, and context for coding agents => ./gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi 2026-02-02 - A tmux popup editor for Cursor Agent CLI prompts -- cgit v1.2.3