Search Results: "bab"

26 November 2026

John Goerzen: A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn t yet open source and they didn t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn t get obsolete so fast was mostly met. When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project. Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I ve already got plenty of these, and only one Alpha. Reviving something on a platform that s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi. So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah) The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked testing and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade. I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice). Although I ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I ve had NetBSD in various VMs for quite some time. There s a lot to like in NetBSD, and also some things that I found appalling. It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas. So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both. Installation My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum. I downloaded the ISO image and burned it to CD. I booted it on my Alpha s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine). Then when it came time to install the system, tar crashed. Every single time, tar crashed. It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked. The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK. Initial impressions NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I d experienced with Debian s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty. NetBSD vs. Debian on RAM usage The top output is rather hard to parse; there s nothing like the available column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3). On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB): In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn t seem to be a problem. When looking at the installation process, Debian s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support. In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn t dip into swap there. Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does. The most favorable picture for NetBSD is working with the packages that are available as binaries. A pkgin update on NetBSD consumed 21MB at most, while on Debian, apt-get update used 61MB. On Debian, apt-get install dar rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, /usr/bin/time -f %M pkgin install dar on NetBSD reported max usage of 26MB, while /usr/bin/time apt-get install dar on Debian reported max usage of 120MB. This is not necessarily an entirely apples-to-apples comparison, however; Debian s package system tracks all of the system (including what NetBSD calls the base system ), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven t determined whether this is inherent or related to the size of the package database. However, as we ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source. Filesystems and disk usage Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available. NetBSD supports ZFS, but with a lot of issues that you don t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn t have enough RAM to run ZFS on any platform, so that s out. NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it s not enabled by default and I don t know why). Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian. However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don t (as many people won t). Nonetheless, we re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive. To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least. I don t want to imply that there s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space. Serial console I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice! Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn t support specifying them, so it s fortunate it can inherit from SRM. Mysterious hangs I noticed that NetBSD would sometimes drop off the network. When I d go turn on the serial console to see what had happened, of course there would be nothing there and then everyhing was fine. Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume. After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger. After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS. Serial port confusion This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named. That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that s no better. I couldn t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why. Now, you re noticing a dtyC0 and ttyC0. The dtyC0 is the dialout , and the tty is the dial in . Fine, but what s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you ll see, in practice, not so much.) I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice. pty bugs The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it s not Alpha-specific. I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet. I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention. Serial issues and bugs I ran into quite a few issues bugs with the serial subsystem on NetBSD as well. The first was that getty doesn t have a way to specify an init string for the modem. It turns out there s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says ( The ttyaction file specifies site-specific commands to run when a login session begins and ends isn t correct; it s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance. To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt. Unfortunately, it s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough. But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised. By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can t be sure, but none of these issues seem to be Alpha-specific on NetBSD. Recall that the CD line going high is the modem s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn t let me open the device while getty was waiting, so I couldn t verify there, but it seems like the same symptom. I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn t in NetBSD because pkgin didn t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program. The other problem, with the serial port lockup, even mgetty couldn t work around. With most modern modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending. When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem. After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also. It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck. This explains why I didn t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there. ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it s receiving everything correctly. There s nothing to cause NetBSD to unblock its writes. I also reported this bug, but like the others, it hasn t been addressed. The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn t have this problem, though I get frequent ohci scheduling overrun messages on my console from it. USB was not period-appropriate for this Alpha, though, so I d rather not use it, and it still has the same open() issue. I ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs. Security This is where things take a turn for the particularly disturbing. NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source). Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.) There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc. The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn t announce bugs fixed in the base system. NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there s a security bug in brotli, or ssh, or whatever, you can t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026. As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons). There is nothing like unattended-upgrades for any of the systems on NetBSD. So, let s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system. Upgrading the base system The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it s also there for amd64). A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn t part of the base system; it s a package. But pkgin install sysupgrade doesn t find it, so I have to build it from source. Another reason I had to install pkgsrc. Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha. Then you make to build the packages you want. But oh, regular users don t have permission, so yes, you re running all the build tools as root. OK, you grit your teeth and run make and make install as root, and now you have sysupgrade! Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I m not sure what the point of that is, and it s not documented anywhere. So you can run sysupgrade auto , and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don t know why it s not smart enough to figure that out itself, since NetBSD 11.1 didn t contain changes to the file anyway. It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd. Now at the very end of it, you see sysupgrade: E: Some postinstall(8) checks have failed . Oh joy. Hope you ran it in a terminal with scrollback. I found postinstall checks failed: opensslcertsrehash so I ran the script it told me to run, sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash and it seemed to be happy. Why it didn t do that itself, I don t know. I hope I didn t miss any other failures. Upgrading packages You can run pkg_admin fetch-pkg-vulnerabilities and then pkg_admin audit . On my Alpha, it shows quite a bit. Here are some excerpts:
Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190
But, after a fresh pkgin update , pkgin upgrade shows nothing to do. I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it s unclear if it fixes these issues. Python is annoying. You can t just install python. You have to install a specific version. So there is now a python314 package; maybe it s better? But python313 won t auto-upgrade to it. I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven t upgraded either the 3.13 or the 3.14 packages to the fixed versions. But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it but it doesn t pause for you to acknowledge, and had I installed it on anything with more modern speed, it d have scrolled by before I d ever noticed. You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You d be right. But, back in July, I sent NetBSD a report about security bugs I d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable. Maybe I m the first person to install mgetty for NetBSD for years. So perhaps you could say, well, if I notice a bug, I could submit a fix. But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things? It certainly wasn t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me. Conclusions and next steps I m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates that s going to wear thin, and I d rather play with my daughter than do that. Realistically, I don t think I ll keep up with it. At which point, well, maybe the ancient version of Debian doesn t look so bad. But I ve also tried modern Debian, and I ll report on that in a separate post. Debian on Alpha isn t without its quirks these days, either. I don t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I ll enjoy the Alpha running an actual workload while I can!

John Goerzen: I Booted From My Tape Backup From 2002

Back in 2002, I had an Exabyte tape drive (7GB native / 14GB compressed) that ran Amanda and made backups of a few of my systems, primarily my Alpha system. To cut to the chase a bit, I managed to restore it and made the resulting environment bootable. Here it is, with KDE 2, Konqueror showing Internet of the time thanks to Protoweb, and Gopher showing a current Gopher server: This was a lot of fun and a bit of a challenge. Here s the story. The Hardware I had an AlphaPC 164LX with a 600MHz 21164a CPU. This is a bit of an intersting piece of hardware. It had the DEC Alpha processor, which was normally associated with more DEC-specific hardware. But the AlphaPC board tried to use the PC ecosystem. It had PCI and ISA slots, PS/2 keyboard and mouse, and was ATX form factor. The AlphaBIOS it shipped with could even boot a short-lived port of Windows NT to Alpha. I, however, primarily ran Linux on it. At some point, Linux started to strongly prefer the SRM text console, which was more designed for Digital s UNIX and VMS OSs. I flashed that to the Alpha. Later on, I took all the guts out of the case and reused the case for an x86-64 server. But I still had all the parts. I put it all back together. Even my 10,000RPM UW-SCSI Cheetah drive still works, and still makes impressive and annoying noises. That recording was made when I installed it in an x86-64 to take an image from for preservation, before putting it back into the Alpha. But, that drive was from 2004, after I no longer used the Alpha as a workstation. It was mostly a headless server by then, and no longer as interesting. Backup restoration To get back to the workstation days, I needed to restore backups. In 2018, I sought to restore as much as I could from my Exabyte tapes before they degraded. My Exabyte drive had failed years ago, but I bought another on eBay. Combined with a SCSI card I still had, it wasn t hard to read each file on those tapes onto files on disk. Most of the tapes read fine, though some had errors. That was step 1. The backups were made with Amanda, which is an orchestration layer over (mostly) tar. I had forgotten, but I had hacked Amanda back in the day to use bzip2 instead of gzip, to save some precious space on the tapes. So I had to replicate that hack, building a Docker container to do all this in, and modifying Amanda to read from the backup files I had created. I surmised that trying to do a bunch of testing on real tapes could risk degrading them further. After a whole bunch of hacking, I was able to restore a complete tree at each backup date (that didn t depend on a tape with read errors). The data was safe, and that is where I left the project 8 years ago. Re-installing on Alpha I reassembled the Alpha from parts. After some initial issues with RAM compatibility, I got it all working. This is a photo of the Alpha. It s the machine on the left. The one on the right is a more normal-sized tower. You can read more about the motherboard here. Rather than push my luck with hard drives that are about 30 years old now, I decided to use a BlueSCSI, which presents files on a SD card as SCSI devices to a SCSI controller. This made things much simpler, as I could put multiple disk images on there, and mount them on my laptop using the loopback device. All the while not worrying about damaging the fragile 68-pin SCSI connectors and moving actual drives from machine to machine. The boot disk on an Alpha must have a BSD disklabel partition table. This is because the bootloader is sought out at a specific spot on the disk that is designed to work around the precise location of a BSD disklabel. The bootloader then extends past that, so you usually create a partition starting after a gap, or make a sacrificial partition 1 that is designed to soak up the extra space needed by the bootloader (and you never put a filesystem on it). When booting from SRM, the Linux bootloader is called aboot. Lacking any way to install aboot from a modern system, I figured I would start from an existing Alpha disk image I had made, working with the partition sizes there (making a fresh filesystem as needed). This pretty much worked. I restored my backups, fixed up some permissions, edited some files like fstab and aboot.conf (roughly similar to grub.cfg), and booted. SRM started. aboot loaded! Yes! But the kernel promptly hung. There had been several kernel versions in that backup, and some of them hung and some didn t. I had already tried booting a newer system from those saved hard disks, so I knew that the kernel could boot. It just wasn t. I remembered I had probably built my own kernel back in the day, and theorized that I had probably built it to only be booted from AlphaBIOS and its MILO boot loader. I copied a generic Debian kernel from one of those hard drives to it, and now it booted! I couldn t remember what video card had been in that system. From reading the /var/log/XFree86.0.log file, I concluded it was a Permedia 2 card that I had put into my K6-3/400 OS/2 system. Oops. I had bought a FireGL 1000 clone for the alpha, and after a few battles with XFree86 and broken acceleration, got X to run with it. KDE s taskbar, then called Kicker, wasn t working. It segfaulted almost immediately. Apparently I had added one of these CPU or disk monitors to it, and that thing had a bug with parsing the structures in whatever kernel I had. Editing some config files removed that monitor and then Kicker worked. At this point, everything from the Alpha seems to work except Netscape Communicator. Netscape never released a version for Alpha on Linux, but they did for Alpha on OSF/1. My backup still had the necessary OSF/1 compatibility libraries. Unfortunately, Debian s generic kernel didn t compile in OSF/1 support. I haven t yet taken the step to do so myself. But, I also used Konqueror from KDE off and on over the years, and that was working. I ran mutt, and there it was: my INBOX just as it was when it got backed up in summer of 2002. My UUCP configuration was still present. Some files from running a build daemon for Debian were there. So there you have it. A snapshot of 24 years ago. It still had Kermit on it, which back then I mostly used to talk to my HP 48GX calculator. But even C-Kermit 7 from 2000 still talks perfectly to modern C-Kermit 11 and that was the quickest way initially to exchange files. (ssh and SSL have changed a lot since then.) It s fun exploring my files from back then. Although I took care to migrate data to new machines when I got them, it s different to see them all in their original context and what I was working on back then, or to use the up arrow and see what was in my bash history. I ve also worked to install modern NetBSD and Debian Linux on this. More on those projects in future posts.

25 November 2026

Maytham Alsudany: Relicensing the entire Debian wiki (part 1)

So the Debian wiki's been around for 25 years, but no-one thought about licensing when it was started. There have been a few short email threads over the years on this topic, but nothing actually happened. Now, since gears are turning on moving the wiki to MediaWiki, we're finally trying to fix the licensing issue... yay us! (Sarcasm.)

BackgroundThe wiki started in 2001 running under wiki.debian.net, which used a custom licence with the bare legal minimum to allow content to go on the wiki. As you can probably tell, this is not a "free" licence with respect to the Debian Free Software Guidelines.For those who don't know, the Debian Free Software Guidelines (DFSG) define whether a given piece of software (or in this case, adapted to writing and media works) is "free" as in freedom. You may be more familiar with the Open Source Definition, which was adapted from the DFSG.In 2005, wiki.debian.org was established running MoinMoin, the software that it still uses today, and content was imported from wiki.debian.net. At this time, Jonathan Dowland raised concerns on the lack of licensing terms on the new MoinMoin installation as well as the copyright status of the content being imported, but it happened anyway. As he puts it, "the question is now whether the material on this site is DFSG at all and if it ever will be." Currently, the Debian wiki is the biggest wiki on the internet that uses MoinMoin according to Steve McIntyre during DebConf25.So now it was going from custom licence to no licence at all. At that time, someone suggested the wiki used the GNU Free Documentation Licence (GFDL), before Steve corrected it.Since then, people have been editing and contributing to the wiki, growing it as an essential, if sometimes messy, resource for information about Debian. Now it's not as beautiful or well organised as, say, the Arch Wiki, but content like the page on installing Nvidia graphics drivers or the page on installing Debian have helped likely hundreds of thousands, perhaps millions, of people according to data Jonathan collected over two months. Take that with a grain of salt though as AI scrapers have skewed these counts recently.Yet, there was no clear licence for the content people were putting on the wiki. And when there is no licence, and no-one specifies a licence on the page itself, it is assumed to be "all rights reserved" in most jurisdictions. This is ignoring the implicit grant given by an editor to display that content on the wiki when they submit content to the wiki, but this is shaky at best and doesn't provide the clear permissions needed to freely reuse that content.
Steve McIntyre speaking at DebConf25 Steve McIntyre hosted a Debian Wiki BoF (Birds of a Feather meeting) at DebConf 25. Credit: DebConf Video Team; MIT licence.
During DebConf 25, there was a BoF meeting to discuss the wiki, preceded by a great "biased SWOT analysis" presentation by the Arch Wiki admins on how they run their wiki and the challenges they faced. The wiki BoF discussed a range of topics, one of which was licensing.Following this, stuff started happening to make major changes to the wiki, mainly with a migration to MediaWiki to leave the unmaintained MoinMoin software and be able to upgrade away from Debian Buster (version 10, oof!), as well as the creation of a new mailing list and IRC channel.At the same time, I started pushing to fix content licensing, and for the last 16 months, I have been largely working alone to slowly but surely relicense everything ever put on the wiki. This article aims to document what has been done so far and why, and some challenges encountered along the way.You can watch the wiki BoF: low quality, HD (warning: choppy audio), and the Arch Wiki presentation: low quality, HD, thanks to the DebConf Video Team who recorded them during DebConf 25.

Picking a licenceFirst things first, we needed to pick a licence. After some email discussion on the new mailing list, we landed on the Creative Commons Attribution-ShareAlike 4.0 licence (CC BY-SA 4.0) for the following reasons:
  • It is designed explicitly for content and media, compared to other licences that are aimed at software (e.g. MIT).
  • It requires attribution for contributors' hard work.
  • It ensures any adaptations of the work continue to use the same or compatible licence, preventing someone from taking the work and making it proprietary.
  • It is pretty permissive and allows adapting CC BY-SA 4.0 materials into GPL-3-licensed works, like package manual pages and other documentation.
Some licences were ruled out for various reasons:
  • Public domain / CC Zero - We wanted a licence that required attribution, especially considering the wiki relies on volunteers to populate and update its content.This would also make it difficult for any content to be brought into the wiki from other sources, since they would have attribution requirements that could not be preserved under CC0.
  • GNU Free Documentation Licence (GFDL) - Debian only considers the GFDL to be a DFSG-free licence when it is used without any of its invariant options as per the 2006 general resolution. Also, this licence would limit where wiki content could be integrated outside of the wiki. Generally, this is an unwieldy licence with many restrictions, and should probably be reserved for printed works as it was designed for that.
  • Creative Commons NC & ND options - The Non-Commercial (NC) and Non-Derivative (ND) options for Creative Commons licences are not compatible with the DFSG.
It's not like CC BY-SA 4.0 is a niche licence; it is the licence that Wikipedia uses. As a result, we can copy content back and forth from a whole lot of places with this licence.Overall, CC BY-SA 4.0 provides a balance between putting in place protections for the work contributors put into the wiki via requiring attribution and share-alike, while also being very permissive in every other aspect, in line with the kind of freedom we're looking for.

Handling new additions
Screenshot of Debian wiki's FreedomBox page showing the yellow relicensing banner. The Debian Wiki displayed a prominent banner regarding the licence of new content.
Before dealing with the mess that is the old content, first we looked at how to handle new edits to the wiki.After picking an arbitrary future date (in this case, 24 July 2025), I wrote a new copyright page explaining that content contributed after this date would be licensed under CC BY-SA 4.0, and summarised the main points of the licence.Following this, I updated the website footer and added a banner notifying wiki users and editors of the licence change (or should we say: addition). It was ugly, prominent, and in highlighter yellow to make sure no-one missed it. The banner served its purpose for a few months, and then was removed because, by then, we're pretty sure we got the message across.I also ensured this was displayed properly on the 'edit' page, so that editors understood that, by submitting their changes to the wiki after this date, they agreed to license their contribution under CC BY-SA 4.0.

Dealing with old contentNow, to the annoying part. In order to actually get everything to use CC BY-SA 4.0, contributors need to be contacted one by one and asked for permission to relicense their work, as they are the copyright holders.Keep in mind that the end goal is for all content on the wiki to be DFSG-free, with CC BY-SA 4.0 being the preference.

Wait, how much work is this?Allow me to first give you an idea of the scale of the task at hand:
  • There are 21,506 registered user accounts on the wiki (at the time of writing).
  • Over 290,052 edits have been made to the wiki.
  • Of those user accounts, 9,778 users have made one or more edits on the wiki.
  • Only 1,548 users have made more than 20 edits on the wiki.
These numbers are based on a snapshot from 26 January 2026.For that last bullet point, this graph here makes it clear that the majority of user accounts (on the left side of the graph) have only made a handful of edits.
Frequency of number of edits per contributor. Each point shows how many contributors made a given number of edits. The horizontal axis uses a logarithmic scale.
Though unrelated to the topic at hand, this is probably a good argument for allowing anonymous edits to the wiki once again, a setting that was originally disabled to reduce spam. New accounts requiring manual approval, which has been in place for the past few years, was put in place for the same reason as well.These kinds of protections mean wiki admins have to deal with less spam, but they also increase friction, which makes it harder for readers to make one-off edits and should be minimised as much as possible in the opinion of Weird Gloop, the folks behind a bunch of notable wikis, like the Minecraft wiki. Hopefully the move to MediaWiki will greatly improve the anti-spam tools available to allow for this to happen.

Finding who to contactAt the moment, what I've been doing is checking pages one at a time to determine who needs to be contacted, and emailing them. While I've been doing this, I have kept an evolving record of who has been contacted, who has agreed, and who cannot/will not agree in a Git repo on Salsa (Debian's GitLab instance).The first thing I did was write a small script that listed pages that were three or fewer clicks away from the front page. This way, I could start with the important pages first. This turned out to be very annoying to work with, as these pages also had the most edits and unique authors (who could've guessed?). Many of them were "portal" pages as well, which are big collections of links rather than real content, so I tended to skip these.I've created a little bit of JavaScript that acts as a bookmarklet (i.e. button in the bookmark bar that does things rather than open a URL). What it does is highlight usernames on the edit log of a given wiki page (which MoinMoin calls the "Info" tab) based on a colour code: green means agreed, yellow means contacted with no response yet, and red means "failed". This gives a great overview of the status of each contributor to the page, and also filters out edits made after the 24 July 2025 cut-off.
Screenshot of the Info tab for the Packaging page on the Debian wiki, showing contributors' usernames highlighted with colour. The bookmarklet script highlights the username associated with each revision to show the relicensing status of each contributor.
Many pages have been completely rewritten or transformed so much that none of the original remained, so there was no point in contacting every contributor in the edit log if I could determine only the ones that mattered. Additionally, if all someone did was fix a typo or grammar mistake, they were also not worth contacting (though this was usually decided on a case-by-case basis).This introduced a new problem; how can I filter out these contributors to find the editors responsible for the current content? The first thing that came to mind was git blame. So naturally, I ran a script on the Debian Wiki server overnight to transform the MoinMoin data into a giant Git repo, where each commit represented an edit, and the author was set to the editor's username and account email address. This resulted in a 252 megabyte repo with 290,052 commits.MoinMoin stores its data on the filesystem, rather than a database like MediaWiki does. The data directory contains a user/ directory and pages/ directory.Each page is represented as a directory under pages/, with special characters in page names encoded in a Moin-specific format. For instance, the page DebianDeveloper/Benefits is stored under pages/DebianDeveloper(2f)Benefits/.Within each page, there is a cache/ directory (which we don't care about), a revisions/ directory containing a copy of the page at each revision (e.g. revisions/00000001), a current file containing the number of the latest revision, and an edit-log file containing the edit history of the page in tab-separated values (TSV) format.The edit-log file stores the timestamp, revision number, username, IP address, and user ID for each revision, so using this and the data in the revisions/ directory, a Git repo could easily be constructed with a bit of scripting.The final step was adding the user's email to the commit, which made it easy to associate usernames with emails within the Git repo. Each user has a file in the user/ directory named based on their user ID (assigned by Moin), and one of the attributes contained in that file is the user's email address.Overall, the file tree looked something like this:
.
  pages/
      <page name>/
          cache/
          revisions/
              00000001
              00000002
          current
          edit-log
  user/
      <user id>
Now I could git blame a page and find out exactly who should really be contacted, making this process much faster than reviewing every revision of a page by hand. This wasn't a foolproof method though, as it would blame a user for an entire line for both additions and modifications, like rephrasing a sentence or fixing a typo. It was a good starting point though, better than contacting anyone that ever edited the page. Additionally, git blame tended to be really slow, taking a few minutes every time it was run, likely because of the amount of commits involved.I also made a wrapper around git blame to highlight lines in green, yellow, and red, allowing me to identify which lines remained to be reviewed. The colours mean the same thing as before with the bookmarklet script.
Highlighted blame output for an excerpt of the NvidiaGraphicsDrivers wiki page The wrapper script produced a coloured output to determine the status of each editor of the page.
Recently, rather than using that 3-clicks-or-away list of pages to review, I have been sporadically reviewing any pages I stumble upon while doing other work. It may be less efficient, but it's more fun and feels less like a chore compared to reviewing pages one after another.

Sending out the emailsOf course now we need to do the most important part, actually contacting people over email.For each user, the starting point is to retrieve the email address they have on their wiki account. Luckily, since I've got the repo as a git repo, I can git log -1 --author=<username> to do this rather than grepping the wiki data each time.Now there were a few problems with this:
  • Email addresses were only verified for new accounts. This meant that some users changed the email address on their account to an invalid one, often intentionally (instead of asking for their account to be deleted).
  • Some email addresses were outdated and no longer existed. The most common case was for @debian.org addresses for people who have left the Debian project.
This meant that a little internet detective work was needed for some users, which involved checking things like searching Debian New Members and mailing lists. Sometimes users had a user page on the wiki with better contact info as well.If I'm able to find a working email address, then I send them an email based on a template, which has been refined a couple times. It pretty much summarises what's going on and asks for permission to relicense their work to CC BY-SA 4.0.These emails were sent from my @debian.org address, mostly relying on its domain reputation to cut through spam filters and end up in people's inboxes. I also CC'ed myself at a special maytham-wiki-license address, which allowed me to filter relicensing stuff into its own folder. Though, people kept leaving it out of their replies, so I ended up changing the filter to check the email subject instead. Eventually, I plan to create a Git repo containing an mbox per user to keep a record of people's responses.Most failures occurred because the email address could not be found or the recipient mailserver had an issue, so I'd get that "Undelivered Mail Returned to Sender" email. In these cases, I wasn't able to find an alternative address. Other failures were mostly due to the contributor having passed away, and only one person so far has actually refused to relicense their work among those who have responded to the emails. All of these are being collectively referred to as "failed" users with regards to content relicensing.

Progress so farAt the time of writing (25 November 2026), the progress is as follows:
  • 791 users have been contacted.
    • 370 (47%) users have agreed to relicense their work.
    • The remaining 421 have not responded yet.
  • 67 users have been put down as "failed".
This is pretty good progress: of the 1,548 users who made 20 or more edits, 51% have been contacted, 24% have agreed to relicense, and only 4% have been marked as failed.

Next stepsOf course, not every contributor has been contacted yet, there are many more to go.It would be great if there was a way to automate this, as a lot of it is repetitive. git blame has worked so far, but its limitations mean it still requires human review. Ideally, there should be a way to find the authors of the latest revision of the page based on word-diff rather than line-diff, and also rank them based on how much they contributed to the page. Maybe it would involve measuring Levenshtein distance per edit? Who knows?At the moment, I don't have time to work on such a tool. So I'll keep doing it the same way I've been doing it so far: every once in a while when I open some page on the wiki, I will check who is yet to be contacted, and send out a handful of emails.

Handling failuresThis likely entails stripping out each failed user's contributions from the wiki wherever it is part of the latest revision, which can also mean that some pages will need to be completely deleted as well. This is not a good thing, but it's something that has to be done to reach the aforementioned goal of a completely DFSG-free wiki.This kind of thing probably should wait until the move to MediaWiki has happened. The tooling for doing these kinds of mass edits is much better there, and I think(?) there are plans to create a static archive of the MoinMoin wiki during or after the move, so that information isn't lost forever. This would be part of the general effort to clean up the wiki.

Following up when there is no responseA lot of the people who have been sent emails have not responded in a long time (>3 months, many much longer than that). These people need to have follow-ups sent to them, since there is a high chance the email ended up in their spam folders. I have sent follow-ups to a few people, some of which have succeeded, but this needs to be done in bulk for all the remaining people.A limit also needs to be put in place before we give up on people. One approach would be to mark users as failed if they do not respond to two further follow-ups after the initial email, each spaced at least a month apart from the previous email, for a total of at least three months from first contact. This would be loosely based on the kind of procedure used by the Debian MIA Team.

Increased publicityA while ago, I floated the idea on the wiki mailing list of asking the Publicity Team to create a Bits post (for instance) to let everybody know about the relicensing effort, and to ask contributors who have not been contacted yet to send us an email. This proactive approach would be much better and less work than the current reactive approach, since asking every person to send one email is a whole lot easier than one person sending hundreds of emails. Even though little interest was shown on the mailing list at the time, at some point, I'd like to follow through with this.In a way, this post is serving the same purpose! You probably didn't know about what I'm doing before reading this, but now you do :)

Help wanted!Have you ever, before 24 July 2025, edited the Debian wiki? Well step right up! It'd be great if you could send me a short email with the following format:
To: maytham-wiki-license [AT] debian (DOT) org
Subject: Relicensing my contributions to wiki.debian.org
Hi,
My username on wiki.debian.org is <INSERT USERNAME HERE>.
I give permission for all work I have submitted to
wiki.debian.org to be distributed under the terms of the Creative
Commons Attribution-ShareAlike 4.0 International license, the text of
which can be found at https://creativecommons.org/licenses/by-sa/4.0/.
It means I don't have to chase you down, which is great! Also note that the From address will be checked to make sure it's genuine, and it would be even better if you could GPG sign it!Now for the complicated bit: Debian being a volunteer project is both a blessing and a curse. Having more people help out with this work would make this initiative much more sustainable. As someone put it in an email to me: "I am concerned about the bus factor of one Maytham." This is especially important as I've recently slowed down my work on this due to other matters that are either more important or just plainly more interesting.If you want to help with contacting people, there is a short guide in the repo README. In short, find the contributors you want to contact (and make sure they have not already been contacted!) and send each of them an email based on the template, CC'ing my licensing email address so that it gets saved in my mailbox for the future mbox export. Then, you can modify the lists to add users to contacted, succeeded, etc.Hopefully with a bit more work, we can get this across the finish line. This article is part 1 because the work is unfinished and still ongoing, so hopefully the progress numbers will be higher in a potential part 2 to the saga.

23 November 2026

Juan Manuel M ndez Rey: The Bub's Brothers: a 21 year old ITP comes back to play

Great to see that someone is trying to make that old project survive! Armin Rigo, author of The Bub s Brothers, 2026 Something I wasn t expecting to ever hear about again, TBH. Good to hear. David Gowers, who redrew its graphics in 2007 it works! :) Alex Myczko, Debian Developer, 2026, after the first game over the Internet in years

Chapter 1: A Mac game, cloned for the network (2003) In November 1997 Sebastian Wegner, known as McSebi, released Bub & Bob for the Mac as shareware, his own take on Taito s arcade classic Bubble Bobble. Two dragons, bubbles, monsters trapped inside them, fruit everywhere. On 31 January 2003 Armin Rigo, one of the founders of PyPy, made the first commit of a network clone of McSebi s game, written in Python. The old site said it plainly: This version is a direct clone of the MacOS game Bub & Bob of McSebi , and thanked him: Thanks Sebi for all the cool graphics and sounds! It didn t stay a one-man project for long. Gio, Odie, Michel-St phane and Armin wrote levels in Python, paxed improved the random levels, and David Gowers redrew the graphics in 2007. And in 2005 McSebi did something that turned out to matter a lot: he put his graphics and sounds under the Artistic License. The last commit is from 12 October 2013. Then silence. The Bub's Brothers 1.6.2: seven dragons on a board of the Compact levels Seven players on version 1.6.2, the last release. Screenshot: screenshots.debian.net.

Chapter 2: Ten years in Debian (2005 to 2019) In 2005 a Debian Developer filed an ITP, an Intent To Package , for the game (#308148). It reached the archive in February 2008, and for more than ten years apt install bubbros got you a LAN party in one command. A ten-player network game of The Bub's Brothers in Debian, around 2008, with tarzeau on the scoreboard Around 2008, in Debian: a ten-player game over the network. Look for tarzeau on the scoreboard: that s Alex. Screenshot: screenshots.debian.net. Then Python 2 reached its end. In October 2018 someone asked for a move to python3-pygame (#912480). Nobody did it. On 30 September 2019 the game left Debian, and the removal bug says why in four words: python2 removal; dead upstream (#936248).

Chapter 3: A Debian Developer with a long memory (2026) That Debian Developer was Alex Myczko, and he never forgot the game. In 2021 he imported it from SourceForge into his own GitHub repository, and in 2024 Christopher Bock sent a first automatic conversion to Python 3. Then, in 2026, I wrote my first post on Planet Debian, about rescuing old software. Alex read it, got in touch, and asked if I fancied porting the game to Python 3. Of course I did. Bringing old games and software back is what I enjoy most. I spent 20 years tracking down the authors of Conquer, a 1987 Unix game, until it became free software, and I adopted xwpe, a 1993 programming editor. A game people loved, thrown out only because the language under it moved on? That s my kind of project. At some point I asked him on GitHub whether that 2005 ITP was his. His answer: yeah that was me .
  • 2005: Alex files the ITP.
  • 2019: python2 removal; dead upstream .
  • 2026: yeah that was me .

Chapter 4: Bringing it back (2026) Alex reviewed and merged everything in his repository and tagged the releases, 2.0 up to 2.3. Along the way anzz1 joined in with a lot of fixes, from sharper scaling to releasing the keys after a rewind. Most of the port was the usual Python 2 to 3 work. A few problems were properly fun, though.

The Time Machine One bonus is a clock that rewinds the game. On Python 2 it relied on statesaver.c, a C module whose own comment brags This one can copy running generators and their frames! . It did exactly that, poking straight into CPython s frame structures:
f2->f_lasti = f->f_lasti;
f2->f_iblock = f->f_iblock;
memcpy(f2->f_blockstack, f->f_blockstack, sizeof(PyTryBlock)*f->f_iblock);
There s no way to port that. Those structures are private and change with every Python release, and PyPy can t copy generators either. Without the module the game just printed statesaver module not compiled, no clock bonus . So now the game simply plays the past again. When a board starts it saves a checkpoint of plain data: players, dragons, monsters, bonus state, and the state of the three random generators it uses. Every input from the network (keys, players joining or leaving) is logged with the pass number it arrived in. To rewind, the game rebuilds the board from the checkpoint and runs it forward again, with the sound off, up to the moment you land on.
cp['random'] = random.getstate()
cp['bonusrandom'] = (bonuses.random, bonuses.random.getstate())
cp['localrandom'] = bonuses.DustStar.localrandom.getstate()
That only works if the game is fully deterministic, so there s a test for it. It runs a server with two scripted players and hashes the screen and the game state after every pass. Two runs with different PYTHONHASHSEED values must give identical hashes. A rewind recomputes 1,644 passes, and the 602 passes that follow must match a run that never went back. (commit)

Bytes on the wire The network protocol glued message codes, which were str, onto struct.pack output. Python 3 says no to that, so the server died building the very first icon. Now everything on the wire is bytes, and message() raises TypeError if you hand it a str instead of guessing an encoding:
-MSG_DEF_PLAYFIELD = "p"
+MSG_DEF_PLAYFIELD = b"p"
-        limit = ord(data[0]) + 1
+        limit = data[0] + 1      # indexing bytes gives an int
Then there s division. I walked the syntax tree for every / in the code, 82 of them, and 13 divided two ints and needed //. One of them, '>'*(width/2-2), blew up only when you loaded a level without wind. The nice part: the protocol didn t change, so a Python 2 client still plays against a Python 3 server, and the other way round. (commit)

The clicks that missed To join a game you click a dragon. Alex tried it on Wayland and wrote: i saw graphics, heard music, but no input worked . The GTK client read the mouse on the top-level window. With client-side decorations, the window s coordinates include the title bar and the shadow, so on GNOME, KDE and Weston every click landed 26 pixels to the right and 60 lower. The dragons sit at the bottom of the screen, so your click landed below the playfield and nobody could join. The fix was to read the mouse on the drawing area instead:
-    w.connect("button-press-event", self.button_press_event)
+    self.area.connect("button-press-event", self.button_press_event)
(PR #8)

Wayland and full screen The client picked the first display driver that loaded, and X11 was first in the list, even with no X server around. Now X11 goes last. Full screen asked for a 656x400 video mode, and Wayland compositors never let an app change the mode: Sway left it in a window, others drew a tiny playfield in a corner. pygame 2 s SCALED flag fixed full screen. For a resized or maximized window the game now scales the picture itself, keeping the proportions. To stop this from breaking again there are display tests with real input: X11, Weston, Sway, KDE and GNOME, each in its own headless session. Most of them get input from xdotool. One gotcha: you must not pass --window, because then the events are synthetic, and Weston s X11 backend throws those away. GNOME has no X input at all, so there the test drives the mouse through Mutter s RemoteDesktop interface over D-Bus. Each test clicks a dragon, presses keys, and checks that the game saw them and that the picture fills the window. With the old code, the GTK client fails on Weston, KDE and GNOME. (commit) Then Alex wrote from Hyprland: fullscreen works now. and also input works (i only had completely forgotten how it works, clicking dragon, then keys for left/right/jump/bubble :) we should setup an internet server, and have some fun

The dead server The public list of games used to live on codespeak.net, the server from the early PyPy days, which is long gone. The game could hang or spit errors trying to reach it. Now the server is a setting, and there s a systemd unit to run your own. Alex set one up at bubble.aiei.ch, then wrote it works! :) , and: @vejeta what about you join? So I joined, and we played over the Internet, 13 years after the last commit. The Bub's Brothers Internet server list on Alex's meta-server, with a running server The Internet server list is back, on Alex s meta-server. I blurred the server s address.

Chapter 5: Where did the music come from? Debian wants to know the licence of every file, and the game has seven subgames, each with its own tune. Nobody knew where those tunes came from. The old CVS log named just one: Red Baron music. The others only said things like ext6. I compared them against a big pile of game soundtracks and module music, and all I learned was that each tune sounds like the game its subgame copies: Arkanoid, Pac-Man, Galaga, Tetris, Lemmings. That much I could have guessed. I asked Armin. I have absolutely no idea any more where the music came from. Fair enough, it had been more than twenty years. Then he read a draft about the game, and something clicked: I m pretty sure they are all extracts of music from OCRemix.org. That was the clue. OverClocked ReMix is a huge fan site of video game remixes. I took every remix posted there before the tunes were committed, about 1,200, and slid each loop along them with a spectrum correlation, at a few playback speeds, then checked the hits on the raw waveform. Four of them matched: Black Block by DJComet for Arkanoid (played a semitone lower), 64-bit by Peterrian Productions for Pac-Man, MkVaffQuasi Ultimix by MkVaff for Tetris, and DABOMB by alk for Lemmings. Every second of each loop scores 0.94 or more against its remix, and under 0.3 against the rest. The script is in the repo, so anyone can check. The Tetris one surprised me. The old README said it was recorded from the game, the Game Boy Tetris. It isn t. MkVaff s remix just opens with a Game Boy imitation good enough to fool everybody for twenty years. Galaga was missing. It wasn t among the remixes OCRemix still publishes, and that turned out to be the hint: the site has withdrawn quite a few remixes over the years. MusicBrainz keeps a list of them, and an old mirror of the removed files survives in the Wayback Machine. In there was Galagzee by zee-roh. Waveform correlation 0.98, against 0.014 for a random control. Gone from the site, but the Internet Archive still had it. Red Baron was the one the log already named, but which Red Baron? Not the sequels, and not Snoopy vs. the Red Baron either, that one is in another key. A fingerprint search found YouTube recordings of the title music of the 1990 DOS game by Dynamix that clearly matched the tune, but not the recording. So I booted the game in DOSBox with AdLib sound and listened to the title screen. Same melody, same tempo, a different arrangement. Somebody arranged it, and we ll probably never know who. When I showed Armin, he also thought it might come from that 1990 game. And then there s ext6, a rock loop for the subgame called Tron, which was later rewritten into a snake game (that name sent me down the wrong path for a while). I searched every OCRemix, current and withdrawn, the old versions on archive.org, the whole VGMix archive, a long list of game music bands from Minibosses to Machinae Supremacy, the music of free games in Debian, Tron soundtracks, Armagetron. Even Shazam. Nothing. If you recognise it, please tell us. OverClocked ReMix only allows unmodified, non-commercial copies, and the other sounds have no known author. So the original tunes and the seven subgame sound effects moved to a nonfree/ folder, and the game got free replacements with the same file names. I picked them by ear, over three rounds, to fit each subgame: CC0 and CC-BY tracks from OpenGameArt by Eric Matyas, HydroGene, Cleyton Kauffman, OwlishMedia and Jonathan Shaw. For Tetris there s Korobeiniki, the old folk tune, generated by a small script, so it can be rebuilt from source. The sound effects I made from scratch with a little synthesizer script. If the original files are installed the game plays them, and if not it plays the free ones. PROVENANCE.md lists where every file comes from. Everything else has a clear licence. The code is MIT. McSebi s graphics, sounds, music and levels are under the Artistic License he granted in 2005, in answer to the first ITP. David Gowers put his 2007 graphics under the Artistic License 2.0, and Armin confirmed the Python levels are MIT. That leaves three fan-made level packs with no licence we can find. The Debian package ships only the free part, and a separate package in contrib, bubbros-nonfree-installer (#1153895), downloads the original tunes and those levels for you. If you made one of those level packs, or know who did, please tell us.

Come and play We need testers. You need Python 3 and pygame (python3-pygame on Debian):
git clone https://github.com/alexmyczko/bubbros.git
cd bubbros
BROWSER=firefox BUBBROS_METASERVER=bubble.aiei.ch python3 BubBob.py
The game opens a control page in your browser. From there you start a game or join one from the Internet list, and the game window opens. Click a dragon, then use the keys for left, right, jump and bubble. bubble.aiei.ch is Alex s own server, and he plans to keep it running. Tell us what breaks, and on which desktop, in the issues. And if you know your way around Debian, the package is waiting to get back into the archive (ITP #1153735). The Bub's Brothers control page in the browser: new game, local games and Internet games The control page that opens in your browser. Two dragons on board 3 of The Bub's Brothers, with bubbles, monsters and an E letter bubble Two players on board 3, on Python 3.

What I take away from it An old ITP is a kind of promise, and this one was kept 21 years later. McSebi s two lines from 2005 are the only reason his graphics can ship in Debian today, so if you write something, say what licence it s under. The game worked fine on X11 and failed on the desktops people actually use now, and only testing on those desktops showed why. And above all, this is a game made by people. Armin, McSebi, David, Odie, paxed, Gio and Michel-St phane made it. Now Alex, anzz1, Christopher Bock and I have picked it up where they left it. If you like this kind of story, Conquer is the long one: a 1987 Usenet game, and twenty years of chasing its authors until it became free software.
What game would you bring back, and who would you want to play it with?

Maytham Alsudany: Getting your package sponsored in Debian

Debian packages may seem simple to generate using the many bundling tools out there, but it is much more involved than that. There are policies and procedures in place before stuff can get into Debian, including how the package is made, what it must include, and more. This article aims to cover the stuff prospective contributors to Debian should know that other resources miss.When I started, I didn't know a lot of this and had to learn a lot along the way. Hopefully what I've put together here will make it easier for the next person that comes along.

Find the right thing to work onPackages are the bread and butter of Debian, so it may be the first place you look at. There are two ways to go: adopting or helping out with an existing package, or introducing a new package.Outside of packaging, contributing to Debian's infrastructure is also very much welcomed and appreciated, especially as a lot of it is decades old. Some examples include Lintian (Debian package linter), DAK (archive software), and distro-tracker (package info tracker), and there are many, many other projects in need of help.If you are a native speaker of any non-English languages, you may want to also consider helping translate stuff. Everything from the installer to mentors.debian.net to package descriptions needs volunteers to translate.This article mainly focuses on the packaging side of things.

Working on an existing package
Screenshot of wnpp.debian.net homepage wnpp.debian.net lists packages that need help with maintenance.
The most useful thing you can do as someone interested in packaging is to help with an existing package. You can either:
  • Help other maintainers on an existing package. Maintainers will publish Request for Help (RFH) bugs asking for assistance to maintain a package. Some packages are so unruly that help is welcome even when not asked (e.g. Docker).
  • Adopt an orphaned package. An orphaned package is one where the previous maintainer could not continue maintaining it for whatever reason, and so it needs a new maintainer (or deletion). These are indicated by Orphaned (O) bugs. Request for Adoption (RFA) bugs are similar, as they mean the maintainer is about to orphan the package.Some orphaned packages are effectively abandoned, being both unmaintained upstream and having no users in Debian, but many maintainers will choose to orphan these packages rather than remove them. Keep this in mind when looking through the list.
By the way, this is how I started contributing to Debian! With the help of a Debian Developer, I adopted kitty, and to this day I continue to maintain it.

Introducing a new packageMany people opt to start their Debian contribution journey through producing a new package for the Debian archive. Unfortunately, many people do not do this properly or try to use Debian as a dumping ground for their own software, so here is a general checklist to see if something belongs in Debian:
Screenshot of repology.org page about Kitty Repology shows an overview of a package across Linux distributions.
  • How established is the software, and is it still maintained? The longer a project has been around while continuing to be actively maintained, the more likely it is to continue to be maintained in the long-term.
  • How many people use the software? Hundreds? Thousands? How many people will benefit from the software being packaged and included in the Debian archive?The point of packaging something for Debian is to make it easier for the existing userbase to install the software. For instance, as a user you generally expect notable software like Firefox and Vim to be available with a single apt install, and it would be weird if you had to hunt down binary tarballs or build these from source.
  • Do any other Linux distributions package the software? If yes, that's a good indicator it belongs in Debian as well. You can check this on https://repology.org.
  • Does the software introduce new or unique functionality not found in any other software currently present in the archive? It's okay if it doesn't, but there would be a much stronger case for a new package if the answer is yes.
  • Does the software have generally stable releases and proper versioning? If it doesn't, it's going to be a whole lot harder to create and maintain a package for it, considering Debian is a distribution that releases snapshots of software every 1-2 years with nothing but security updates for stable.
You also need to keep in mind that you should be prepared to maintain the software throughout the lifetime of the next Debian stable. Debian is not a rolling release distro. You cannot upload new versions of software to stable. The only thing you can upload to stable are fixes that meet the stable release team's criteria, and security fixes via the security archive, which you sometimes have to cherry-pick and backport if upstream does not provide them. And Debian packaging is not a one-off task; you should be ready to look after the package long-term, which consists mostly of updating the package in unstable for new upstream releases and fixing bugs.Many people miss the memo. They bring their "revolutionary" app that they threw together (often vibe-coded) in a weekend and try to get it added to Debian. Project members mostly won't upload such packages; as a result, more useful packages may be drowned out. At the time of writing, I estimate around half of the open Request for Sponsorship (RFS) bugs is this kind of toy software with little to no real users.If you've made something, great! Feel free to package it, but distribute it in your own external repo. Not everything belongs in Debian, and no Debian Developer has an obligation to sponsor and upload your package. Services like GitLab, and Forgejo (Codeberg) also have built-in repository features that let you easily create an external apt repository.When looking at software that could potentially be packaged, also consider the amount of effort you may have to spend investigating licensing status and compiling copyright information. This is covered a bit later in this article.

Become familiar with Debian packagingNow, you probably don't need read the Debian Policy and Debian Developer's Reference from cover to cover, but you should familiarise yourself with Debian packaging and the key infrastructure involved. Look at the important bits in the Policy and Developer's Reference.Check out this list of packaging manuals and this introduction to packaging on mentors.debian.net for some additional material. There are also some great manual pages like deb-control(5), deb-src-control(5) (from dpkg-dev), debian-watch(5) (from devscripts), and dh(1) (from debhelper) describing some of the packaging files in detail. You can read these with the man program or at https://manpages.debian.org.Look at other similar packages and pay attention to how they were made. Ask questions when you're unsure, people are always willing to answer on the debian-mentors mailing list and IRC channel.Once you get a rough idea of how a Debian package works, it will feel natural working through packaging files.By the way, you can read a lot of these documents offline: manpages can obviously be installed and read on your own machine, but the debian-policy and developers-reference packages (from unstable) will allow you to read the policy and reference offline as HTML in their respective directories under /usr/share/doc/.

Git-based packagingPeople have many opinions on how to create a package, but by far the most popular is the GBP format for packaging in a git repo.GBP stands for git-buildpackage, the tool behind this workflow, based loosely on the DEP-14 proposal. Here, the upstream code is placed in an "upstream" branch (this is what goes in the .orig.tar.xz tarball), and the Debian-specific packaging work is placed in a "debian" branch (this is what goes in the .debian.tar.xz tarball).Many people have different ideas of what these branches should be called: upstream vs upstream/latest, debian/latest vs debian/unstable vs debian/sid. It generally doesn't matter though as the end result will be the same either way.Using a git repo for your packaging rather than just a DSC makes it easy to see and review the changes you've made, and allows others to easily get the package source with full history and contribute (when located in a permissive group on Salsa like debian/ or one of the many teams).It goes without saying that you should maintain proper commit hygiene by separating changes into multiple commits, having meaningful commit messages, and avoiding force pushing whenever you can.Commit messages do not need to have explanations like other projects may expect, but feel free to add one if you think it will help whoever is looking at your changes understand what's going on.Keep in mind that you can and should use the gbp-dch-style meta tags, which are Gbp-Dch, Thanks, and Closes, documented in the gbp-dch(1) manpage:
  • Gbp-Dch: ignore will not include your commit in the generated debian/changelog when gbp dch is executed.
  • Gbp-Dch: full will include the extended description of your commit as well in the generated debian/changelog when gbp dch is executed.
  • Thanks: John Doe will add a thankyou to the person named in the generated debian/changelog when gbp dch is executed. Useful when a commit is related to a bug report, patch or other useful contribution from someone else.
  • Closes: #123456 will add the relevant (Closes: #123456) in the generated debian/changelog when gbp dch is executed, to close one or more (comma-separated) bugs in the Debian Bug Tracker when the package is uploaded.This is the most important one, and should always be used even when not using GBP in an alternative workflow. Most groups on Salsa, including debian/, have webhooks that will send an email to bug reports and tag them as pending if a commit using this meta tag is pushed, which is great for notifying people that a fix is ready and about to be uploaded.Note: Don't bother trying to add Closes: to your "Initial packaging" commit description; there is no need and debian/changelog should already close it in your initial packaging work.

Team maintenanceMore and more packages are being moved into "team" maintenance with weak package ownership, over the traditional single-maintainer model with strong ownership. This allows everyone to help maintain a package through team uploads, rather than relying on the same people to remain active.When it makes sense, you should try to maintain your package in a team, especially as it will have other contributors familiar with the topic or language that may be able to spot issues in your package others may miss.Most packaging teams fit into two categories:
  • Language teams - these are teams that package software exclusively written in a specific programming language, and usually also maintain the toolchain for that language as well. Examples include the Go team, Python team, and Rust team. Many of these teams also have their own tooling to make packaging easier for these languages, like dh-make-golang and debcargo.
  • Topic teams - these are teams that package software related to a certain topic or project, usually by contributors very interested in that topic. Examples include the Med Team, the Electronics Packaging Team, and the Debian Vim Maintainers.
Language-specific libraries like golang-*-dev packages should almost always be maintained in a language team, and packages centered around a project like Vim or Treesitter should be put in the related team if it exists. For all other cases, it is completely up to you. It usually does not matter which team you put it in, as long as you put it in a team, as you get the same benefits. Keep in mind, many teams have certain policies and guidelines for how packages within them should be maintained, so make sure to check that.If you're maintaining stuff outside of a team, you should consider adding yourself to the LowThresholdNmu list to indicate that you are happy for people to follow a relaxed non-maintainer upload process when it comes to these packages.

Build and check your packageYou should build your package in a clean unstable environment to ensure that your Build-Depends pull in all the required packages from the unstable repos. The best tool to do this is sbuild, which builds your package in an isolated unshare-based environment and allows easily running lintian and autopkgtest as well; this is the same tool used by the Debian build daemons (buildd) once your package is uploaded.There is a great sbuild page on the wiki containing setup instructions and many useful tips.There are many quality-checking tools available to catch common and not-so-common issues with your packaging. Using the sbuild configuration that the wiki page suggests, after each build it will automatically run:
  • Lintian: static Debian package checker that analyses the outputted files (.deb, .dsc, .changes)
  • Autopkgtest: tests your package as installed on a testbed system if your package defines them
  • Piuparts: checks your package cleanly installs, upgrades and removes (useful for checking custom installation and removal scripts)
You should always check the output of these tools and ensure they pass. Debian Developers use these same tools when reviewing your packaging.If you are able to and when it makes sense, you should also install the package onto your own system and check everything works correctly. Even if a package builds successfully, it may not actually work when installed.Unless your package only produces Architecture: all packages, you may want to also check that it cross-compiles correctly. You are probably either reading this on an amd64 or arm64 device, so you can easily cross-compile to the other architecture using the --host option with sbuild. Ability to cross-compile is not a policy requirement, but it will be raised as a bug against your package if it fails to do so.Adding on to that, if your package is not straightforward and it produces packages on multiple architectures (usually Architecture: any), you may want to also check that it compiles on all of Debian's release architectures (aka. official ports). You can do this using virtual machines (QEMU is probably the easiest), but if you can't do this for whatever reason (like your computer being too weak to run a VM or the long package build time), also note that Debian Developers have access to porterbox machines that can be used to check your package before upload.

Find a sponsorNew contributors cannot upload to and manipulate the Debian archive directly. Rather, they need a Debian Developer to do so on their behalf after reviewing all their work; this person is called the "sponsor".If you are planning to maintain your package within a team, check if they have their own guidelines or policy for finding a sponsor, as this will likely be quicker than the traditional RFS process outlined below. For instance, in the Go team, sending an email to the mailing list is much better, especially since usually multiple packages need to be uploaded at once.Outside teams, the usual method is to upload your package to mentors.debian.net, and then file a Request For Sponsorship (RFS) bug to ask for a sponsor. The mentors website has an overview and very clear instructions on properly filing an RFS and finding a sponsor.
Screenshot of RFS bug for wpa-cute package Properly formatted RFS bugs go a long way.
When filing the RFS bug, make sure you follow the template exactly. Deviating from it or sending a misformatted email is one of the quickest ways for your RFS to be both ignored by humans and missed by automated tools, so double check that it actually has everything needed. Ensure each of these fields is filled correctly:
  • Package name: This is the name of the source package set in debian/control.
  • Version: The version of the package you want the sponsor to upload, usually the latest version in debian/changelog.
  • Upstream contact: The contact info you put in the Upstream-Contact field in debian/copyright. This can be a name & email or a URL (e.g. to upstream's issues tracker).
  • URL: The homepage of upstream's website, usually from the Homepage field in debian/control.
  • License: List all the licenses present in debian/copyright, comma-separated.
  • Vcs: The URL to your Git repo containing your packaging, which should be on salsa.debian.org and be set up accordingly in the Git-buildpackage format.
  • Section: The value of Section in debian/control for the source package.
Adding notes or comments to the end of the RFS message is fine, but make sure the rest of it follow the right format.Things to keep in mind include:
  • Do not file multiple RFS bugs, for any reason. If you have reuploaded your package or made a change, you can send a follow-up to the same bug.
  • If you want to change the name of your RFS (e.g. following a change in the name of the package), modify the tags or anything else, you can send commands via email to the Bug Tracking System (BTS).
  • Your RFS bug will only be closed if the package is uploaded or someone decides your package should not be uploaded.
  • Do not change the Package: field at the top of the email from sponsorship-requests, this tells the BTS that your bug report should be filed against sponsorship-requests and not some package in the archive.
  • The Severity: field at the top of the email should be "wishlist" for new packages, "important" for updates fixing Release-Critical (RC) bugs, and "normal" for everything else.
  • Skipping the bug and sending an email directly to the debian-mentors mailing list is a great way for your RFS to be ignored, especially since automated tools will not be able to pick it up.
  • Format the bug's title correctly. It needs to be RFS: name/version [ITP/ITA/RC/NMU] -- short description. Again, this is helpful for automated tools when they try to figure out what your RFS means. Examples include:
    • RFS: qiv/3.0.4-1 [ITA] -- Quick image viewer
    • RFS: wattsi/0.0~git20251112.d8caa36+dfsg-1 [ITP] -- Preprocessor for the HTML Standard
Now, when filed properly, an interested sponsor may come along and review your package, then either upload your package or send you feedback to iterate on before that. Ensure you watch for responses to your RFS and respond promptly.Note there is no obligation for anyone to upload your package, and that anyone can review your package but only Debian Developers can upload it for you.The Lintian output given by the Mentors website was usually right, but at the time of writing the website is using an outdated version of Lintian, so many of the hints it gives are incorrect. For the most up-to-date output, it's best to run Lintian from unstable on your own machine (which sbuild does for you).

Next stepsIf your package is new to Debian, it will head to the NEW queue for manual review. Here, the DFSG team primarily checks that the package is compliant with the Debian Free Software Guidelines and is suitable for "main", but also check for mistakes in debian/copyright and obvious/major packaging issues.Once your package is uploaded, whether new or existing, and you are named maintainer, you are in charge of looking after it, including new upstream version uploads to unstable, bug fixes, and security fixes. This mostly involves updating and cherry-picking fixes from upstream, but occasionally it gets interesting and you need to dive into the packaging to figure out what's going on and fix the issue.You should try to work towards becoming a Debian Maintainer at the very least in order to easily maintain packages long-term. As a DM, you can be granted upload permissions on a per-package basis for your existing packages so that you don't have to rely on sponsors forever. Having this goal can also appeal to sponsors.Have fun packaging!

(Opinion) What I look for in an RFSThis is not definitive, but I usually scan for these indicators:
  • Upstream and the packager being the same person is usually a red flag for a low-quality package. Exceptions can be made when it makes sense and this would actually be a benefit, but this is rare.
  • Properly formatted BTS bug, which shows ability to follow a simple guide.
  • The software existing in other Linux distros is a good sign.
  • Packaging VCS should be up-to-date, located on Debian Salsa, and follow Git-buildpackage / DEP-14 format. Deviations should only occur for a good reason. Only experienced packagers should really be experimenting with alternative Git styles like dgit-maint-merge etc.
  • I can understand what it does just from the package's full description, without having to go to upstream, since this helps me gauge whether I am interested in sponsoring the package. This is not always the case, since packages sometimes come through of a technical nature (usually kernel-related or maths/science packages) where I wouldn't be able to understand no matter how hard I try.
  • Updates to existing packages and adoptions (ITAs) are easier to sponsor than new packages since it doesn't have to go through the NEW queue and does not need to justify its addition to the archive.

Common misconceptions about Debian
  • Debian Developers and Debian Maintainers speak for themselves, not for the project. They are just people who happen to have some permissions in the project.The only official way to put forward the position of the Debian Project as a whole on a particular issue is through a General Resolution as per Debian's constitution. Other official sources include those maintained by the Publicity Team delegates, such as Debian News and Bits from Debian.Also note that delegates for a certain team can speak on behalf of that team. In this case, they usually get consensus within that team before making such statements.
  • The only formal, official "teams" in Debian are those delegated by the project leader, listed at https://www.debian.org/intro/organization.Debian does not have a "legal team", the debian-legal mailing list is for discussion about licensing.There is no "Debian Team", it's just a bunch of contributors working together to deliver a quality collection of packages. Packaging teams are informal, as they are not delegated; rather, they are people working on a certain category of packages under one roof.
  • Keep in mind contributors are all volunteers, with most not getting paid to work on Debian. Debian is owned by a non-profit and relies on donations, rather than a company like Ubuntu and Canonical. The Debian constitution explicitly states that no contributor is obligated to do anything.

22 November 2026

Russ Allbery: Review: Whalesong

Review: Whalesong, by Miles Cameron
Series: Arcana Imperii #3
Publisher: Saga Press
Copyright: 2025
Printing: August 2026
ISBN: 1-6682-1021-5
Format: Kindle
Pages: 362
Whalesong is a far-future semi-military science fiction novel and the third in the Arana Imperii series, not counting the story collection Beyond the Fringe. It did an adequate job of jogging my memory of previous events, but I kind of wish I had re-read the series before reading this entry. Artifact Space and Deep Black were closely linked, almost one novel in two volumes. Whalesong is not. There is a frame story featuring Nbaro and Dorcas and an introductory story featuring Nbaro's friend Qaqqaq, but the protagonist for most of the novel is a minor character from the earlier books: Thor Storkel. After Deep Black, Storkel mustered out of the DHC and purchased the captured New Texas ship Silver Star. An arrangement with Morosini involving secret reserve status let him keep a hidden weapon system. His plan was to become an independent trader, working for himself and going wherever he wanted. This did not go as smoothly has he planned. Keeping a ship running was expensive in numerous ways that had never previously been his problem, and the end of the Non-War meant a glut of ships and crews trying to do the same thing he was doing. His PTSD and associated paranoia from his time on the Athens didn't help. As Whalesong opens, Storkel is running the Silver Star by himself (a horrible idea), trying to find both cargo he can make money on and crew he can afford to hire. Also the antigravity is weirdly glitchy, and he's fairly sure the ship's sub-AI doesn't like him. Whalesong feels like an interlude in the larger series. Although there are important connections to the larger series plot, the advancement of that plot is limited and mostly happens in the background. Instead, this is more of a merchant adventure with some found family vibes, returning to military SF and larger political concerns only late in the book. It felt like Cameron needed to move pieces into place for the next major plot development and decided to use that interlude to tell a smaller character story. The appeal of this book is therefore going to depend on how much you like the characters. Storkel is an improviser and a tinkerer, the kind of person who sets up an elaborate set of tools and macros and alarms to partly automate his job without letting go of any piece of it. The primary tension in the story is Storkel's paranoia and the increasing evidence that it is justified, that there is something fundamentally wrong with his ship. By himself, Storkel is a little too intense. Thankfully, he gradually accumulates crew over the course of the story, and that settles him down and adds some enjoyable character interactions. Dorcas, when he shows up, is exactly like Dorcas in the previous books; if you liked him before, you'll still like him here. This is the kind of book that I enjoyed while reading and then promptly forgot most of as soon as I finished it. The details of Storkel's attempt to become an independent trader and how it is slowly hijacked by the series plot is competent, but not more than that (at least for me). The one real complaint that I have is that Nbaro, even when mostly off-camera, continues to be hypercompetent and central to DHC politics in a way that I found a bit unbelievable. Otherwise, the worst that I can say is that this book never grabbed me like Artifact Space did. I happily turned the pages, but I probably won't read it again. After reading this book, I re-read both Artifact Space and Deep Black and greatly enjoyed both of them. I haven't felt any similar desire to re-read this one. If you're following the series, there's no reason to skip Whalesong, but I doubt it will be your favorite. Followed by The Alien's War, which will hopefully have the sort of major plot advancements hinted at by the title. At the time I am writing this review, it is scheduled for publication in September of 2027 in the UK and does not yet have a publishing schedule in the US. Rating: 7 out of 10

10 November 2026

Louis-Philippe V ronneau: A good-looking Corsi-Rosenthal Box

Ever since I built an AirGradient board back in 2023, I have been more and more conscientious about air quality. Pretty instantly after installing the board in my living room, I realised common habits like cooking can significantly increase the particulate levels in my entire apartment. Here is a good example of a pretty large (and long-lasting) PM2.5 spike on September 23rd after cooking a meal1: A graph showing a large PM 2.5 spike Isn't this crazy? Last time Montreal had such bad outdoor air quality, there were public broadcasts telling people not to go outside and to wear N95 face masks if we absolutely needed to. Inside my apartment though, no one ever told me cooking veggies in a little oil on medium-low2 could make the air I breathe unsafe. This of course is aggravated by the fact my apartment is pretty much as airtight as it can reasonably be, since winters here are very cold and air infiltrations are a major heat loss source. As such "opening my windows when I cook" is not a viable solution to this problem half of the year. I first tried solving this issue by tuning my HVAC system. Sadly, its controls don't offer much flexibility3, which means it is not the right tool to respond to short-lived spikes like these. Not only this, but the quality of the air outside is not always good either: Canada now has a forest fire season (we're all doomed) and my neighbors regularly smoke cigarettes right under my HVAC air intake4. A box, but nicer-looking Clearly, the solution to this particular issue was to buy an air purifier. Or at least, that's what a "normal" people would have done. Sadly, these units are expensive, use (expensive) proprietary filters, don't work very well and can be loud. One of the great inventions of the COVID-19 pandemic is the Corsi-Rosenthal box. Popularised in 2020 by Richard Corsi and Jim Rosenthal, the idea is to make a DIY air purifier by using a large fan to force air through cheap and readily available MERV13 air filters. The main downsides of regular CR boxes is they are pretty ugly, can be loud depending on the fan used and need to be rebuilt when the filters are changed (they are held using tape). That's when I stumbled on this amazing design for a silent and sleek CR box sold by The 3D Handyman. Clearly, with a bit of tinkering and a 3D printer, I could also design something sleek, silent and efficient! Since I was already using MERV13 air filters in my HVAC, I decided to design around 4 vertical "beams" where the filters would slot in. With tight enough tolerances, I figured I could get rid of the complex moving parts in The 3D Handyman's design. I also added M5 threads to screw the top and bottom panels and the TPU feet to elevate the box from the floor. One of the 'beams' on its side in FreeCAD The final result looks like this. I used some foamcore boards I had laying around at work for the top and bottom panels, but any somewhat rigid plastic panels (like coroplast) would also work: out' position" alt="The whole CR box assembled, with the fan in the 'in -> out' position"> View from the top, with the top panel removed. Disregard the bad GIMP job to remove the old text from a student's project! I ended up having to split the "beams" in two and joining them with dowels, as even the largest 3D printers I had access to couldn't print them in one piece. Costs Here's the cost breakdown for this project (shipping and taxes are included): Total: 502.19 CAD Yikes, expensive! But: All in all, I'm very happy with this project. Since finishing it, I have been able to consistently get the PM2.5 levels in my apartment down to zero and significantly reduce the time it takes to recover from a spike caused by cooking food. I certainly could have cut the cost of this project in half by choosing a cheaper fan, like the box fans used in the reference Corsi-Rosenthal instructions, but I decided to spend more for a more quiet and reliable option. 3D files Here are the STLs I used for this project. I certainly don't recommend just printing them as-is, since I am using the 12" x 12 " x "5 custom air filters from my HVAC and you should probably use something more standard. If you use these files as inspiration, your goal should be to make a box that is 16" wide, to fit the AC Infinity fan comfortably. I printed the "beams" in PETG at 100% infill and the feet in TPU 95: Future The next step in this project is to automate the fan speed based on the PM2.5 levels in my apartment. At the moment, I manage this manually and it is becoming a chore. This should be relatively easy to do with a Raspberry Pi Pico board, since AC Infinity sells a USB-C to Molex adapter for the fan.

  1. This was with my pretty good range hood running at a reasonable level. Without it, I've seen PM2.5 levels spike as much as 250 from cooking alone.
  2. To be clear, this spike was not the result of me burning the hell out of a piece of meat or something like that.
  3. The HVAC either runs in manual "low high" mode, or on a timed "20min ON 40min OFF" loop that can be tuned by fiddling with a hydrostat knob that triggers the "high" mode. This is pretty dumb and makes it so the HVAC runs even when the apartment is empty or doesn't run enough to keep CO2 levels low when multiple people are there. A future project of mine will be to hack the controls to tie them into my air quality monitoring and trigger the HVAC based on CO2 levels.
  4. I'm also working on another HVAC hack to fix this.
  5. Sold, of course, as as 1" thick filters...

Vasudev Kamath: Experiment: Debian Cloud/VM Images using mkosi

Debian's Cloud Images for various public cloud platforms and VM environments are built using a tool called debian-cloud-images, an in-house utility developed and maintained by the Debian Cloud Team.
What? The debian-cloud-images tooling uses FAI (Fully Automatic Installation) to create custom VM images for public clouds like GCP, Azure, and AWS, along with the genericcloud class. I wanted to convert this into a fully declarative, mkosi-based image build where the entire image is described using INI-format configuration files, with only a few post-installation scripts to handle final customizations.
Why? I've been working with various image customization formats for a long time. In my previous company, I used to build customized industrial PC distributions based purely on Debian using multistrap and a bunch of shell scripts to stitch together raw image creation, bootloader installation, etc. I've also done custom installs using debootstrap on my own laptop with systemd-boot as the bootloader, but that was mostly hand-crafted and not automated. Once I came across mkosi, I was impressed by how a single utility can do everything and churn out a fully usable image without extra glue scripts for partitioning and image creation. You still need a few scripts to finalize some parts of the installation (via postinst hooks), but those are very minimal. So I decided: why not convert debian-cloud-images into mkosi's declarative format with a few architectural changes? My requirements were:
  1. Btrfs as the root filesystem: Partly because I like it, but primarily for the ability to use transparent compression (zstd:1), subvolumes, and snapshots for atomic rollbacks when things go wrong.

  2. systemd-boot and Unified Kernel Images (UKI): Primarily because systemd-boot is clean and minimal exactly what a modern bootloader should be. Combining it with UKIs and UEFI Secure Boot is bliss compared to the complexity of the GRUB2 world. Note: This intentionally drops legacy BIOS (MBR/CSM) partitioning support in favor of pure UEFI. Modern cloud platforms (AWS Nitro, Azure Gen2, GCP) support UEFI natively, and dropping BIOS allows shedding significant legacy bootloader baggage though it does make these images unsuitable for older, non-UEFI hypervisors.

Implementation Of course, the initial heavy lifting was done mostly using Antigravity (agy), along with debugging, tuning, and cleanup from my side. I pointed agy to a local copy of debian-cloud-images and laid out my requirements: preserve parity with the original packages and configurations, while enabling selective builds for each cloud via modular profiles. The resulting specification is documented here. The repository also includes a verification script that audits functional parity against official images produced by debian-cloud-images (verifying packages, APT deb822 sources, and systemd services, while accounting for the switch to Btrfs and systemd-boot). Initial verification was performed for all Trixie profiles, and the parity report is published here. I've also booted the genericcloud profile image under UEFI in a local VM to verify live bootability, bootctl status, network connectivity, and APT repository setup. This completes Phase 1 of the implementation. The remaining phases outlined in the specification include:
  1. Phase 2: Immutable Images with dm-verity: Configure Verity=hash in systemd-repart's 10-root.conf. Enable mkosi auto-signing for the verity root hash and pass the root hash into UKI kernel command lines automatically.
  2. Phase 3: Secure Boot & Signed UKIs: Integrate SecureBoot=yes with custom owner keys or ShimBootloader=signed using Microsoft Third-Party CA signed shim binaries.
  3. Phase 4: System Extensions (systemd-sysext): Decouple cloud vendor agents (AWS CLI, Azure waagent, GCP guest agent) into separate .raw system extensions. Maintain a single unified, signed base OS image across all cloud platforms.
  4. Phase 5: Btrfs Automated Rollbacks: Combine Btrfs @snapshots with systemd-boot snapshot boot entries for fail-safe OS upgrades.
Another advantage of this setup is that the same tooling can build images for physical laptops and bare-metal servers. For example, in an earlier post, I walked through live-booting with debootstrap and manually configuring systemd-boot for a custom UEFI installation. With mkosi, I can simply generate a customized image locally with UKIs ready to go, live-boot the target machine, and write the image directly to the root disk.
Conclusion This experiment is an exploration of the power of mkosi; I haven't discussed adoption with the Debian Cloud Team yet. For now, this will continue as my pet project. While I won't be hosting pre-built binary images, anyone interested is welcome to clone the repository and build the images locally. I will probably take some more time before tackling dm-verity images, as I want to understand the nuances thoroughly before experimenting with them. Until then, happy hacking! Please report any issues or suggestions on GitHub.

6 November 2026

Vincent Bernat: Scriptable GeoDNS: leaving AWS for Bunny

To optimize the performance metrics of this blog, I relied on Amazon CloudFront to serve the assets,1 and Route 53 for the geo-aware DNS2 to direct readers to the closest host serving the content. But Route 53 is expensive: US$0.50 per zone per month, US$0.70 per million geolocation queries, and US$0.75 per healthcheck per month, plus US$1 per month for the KMS key needed to sign zones with DNSSEC. When I discovered that Bunny DNS is almost free for up to 500 domains and features scriptable answers, I made the jump! Plus, it's a European company based in Slovenia.

Bunny CDN Bunny.net started as BunnyCDN in 2015. They added IPv6 support in 2017. Switching was uneventful. I don't bring a custom domain: I serve the content from the b-cdn.net domain. As I depend on content negotiation to serve AVIF and WebP images, I configure the CDN to cache each image format separately. I disable logging to avoid collecting personal information. While the bunny.net GDPR page promises they anonymize data, it is unclear what CloudFront keeps in its own logs when logging is disabled. The only downside of the bunny.net CDN offering is the lack of HTTP/3. I asked their support: two minutes later, they answered they are working on it but have no ETA to share.

Bunny DNS Bunny.net introduced their DNS offering in 2022 and recently reduced its cost to almost zero. They support geographical routing, but a very cool feature is the scriptable DNS: it runs a piece of user-supplied JavaScript on each query to compute the answer. I run seven small NixOS virtual machines to host this blog around the world: Paris, Nuremberg, Ashburn, Singapore, San Jose, S o Paulo, and Sydney. Bunny's scriptable DNS lets me return the IP addresses of the two nearest servers. The browser falls back to the second server if the first one is down.
const servers = [
   
    ipv4: "45.90.160.60",
    ipv6: "2a0c:8881:5:100::1",
    latitude: 48.88,
    longitude: 2.22,
   ,
  /* [ ] */
   
    ipv4: "139.180.162.114",
    ipv6: "2001:19f0:5800:1855:5400:6ff:fef0:4c0a",
    latitude: -33.87,
    longitude: 151.21,
   ,
];
const families =   A: "ipv4", AAAA: "ipv6"  ;
const records =   A: ARecord, AAAA: AaaaRecord  ;
export default function handleQuery(query)  
  const type = String(query.request.queryType).toUpperCase();
  const family = families[type];
  if (!family) return [];
  // Get user location
  const location = query.request.geoLocation;
  // Build a list of candidates
  let candidates = servers.map(
    (s) => new Server(s[family], s.latitude, s.longitude, 100),
  );
  // Select the two closest alive servers
  const selected = [];
  while (selected.length < 2)  
    const server = RoutingEngine.getClosestServer(candidates, location, true);
    selected.push(server);
    candidates = candidates.filter((s) => s.ip !== server.ip);
   
  // Return their IP addresses
  return selected.map((s) => new records[type](s.ip, 3600));
 
The above script relies on the RoutingEngine.getClosestServer() helper, which returns the closest alive3 server to the user.4 Thanks to Doggo, we can check it works as expected, at least for A:5
$ doggo --gp-from="Amsterdam" A vincent.bernat.ch
LOCATION          NAME                TYPE  TTL    ADDRESS
Amsterdam, NL
                  vincent.bernat.ch.  A     3600s  45.90.160.60
                  vincent.bernat.ch.  A     3600s  116.203.18.48
$ doggo --gp-from="Texas" A vincent.bernat.ch
LOCATION          NAME                TYPE  TTL    ADDRESS
Houston (TX), US
                  vincent.bernat.ch.  A     3600s  5.161.44.145
                  vincent.bernat.ch.  A     3600s  149.28.219.155
The most annoying drawback of this method is that a user from Buenos Aires gets both S o Paulo (1000 mi, 30 ms RTT) and Ashburn (5200 mi, 140 ms RTT). Most resolvers randomize the order, so the user may pull the web page from Ashburn. We could return only the nearest server and swap the scripted record with the built-in geographic routing instead. But if the server becomes unavailable, the browser has no alternative until the DNS cache expires. It leaves a short window of unavailability, even with a short TTL.

The HTTPS record solution The HTTPS DNS record, defined in RFC 9460, solves both the availability and the latency issues. Modern browsers query this record to get additional information to reach an HTTP server, including an alternative port and the application layer protocol HTTP/2 or HTTP/3. Each record has a priority. We can ask browsers to contact the nearest server first and fall back to the next one if the first is unavailable:
vincent    HTTPS  1 first.geo  alpn="h3,h2"
vincent    HTTPS  2 second.geo alpn="h3,h2"
vincent    HTTPS  3 .          alpn="h3,h2"
; Bunny DNS must provide the two closest servers as "first.geo"
; and "second.geo" with geographic or latency routing.
first.geo  A      45.90.160.60
first.geo  AAAA   2a0c:8881:5:100::1
second.geo A      116.203.18.48
second.geo AAAA   2a01:4f8:1c0c:5eb5::1
vincent    A      45.90.160.60
vincent    A      116.203.18.48
vincent    AAAA   2a0c:8881:5:100::1
vincent    AAAA   2a01:4f8:1c0c:5eb5::1
This looks like the ideal solution! Unfortunately, Chrome ignores any record whose target is not ., hence the last record at priority 3. Moreover, unlike with a CNAME, Bunny DNS does not return the IP addresses for first.geo and second.geo in the additional section. The resolver needs to send a first request to get the HTTPS record, and a second to resolve first.geo. HTTPS records are still too new for this use case. Back to the drawing board!

The hybrid solution As a compromise, the script returns the two nearest servers if they are at a similar distance from the user. Otherwise, it returns only the nearest one with a lower TTL of 2 minutes.
export default function handleQuery(query)  
  const location = query.request.geoLocation;
  let candidates = servers.map(
    (s) => new Server(s.ipv4, s.latitude, s.longitude, 100),
  );
  // Select the two closest servers
  const selected = [];
  while (selected.length < 2)  
    const server = RoutingEngine.getClosestServer(candidates, location, true);
    selected.push(server);
    candidates = candidates.filter((s) => s.ip !== server.ip);
   
  // Compute the distance to the user for each of them
  const [first, second] = selected.map((s) =>
    GeoDistance.calculate(s, location),
  );
  // If the second one is at twice the distance and at more than 1000 miles
  // from the first, return only the first one with a TTL of 2 minutes.
  if (second > 2 * first && second - first > 1000)  
    return [new ARecord(selected[0].ip, 120)];
   
  // Otherwise, return both with a TTL of 1 hour.
  return selected.map((s) => new ARecord(s.ip, 3600));
 
We can check it with Doggo. From Chicago, we get only the Ashburn server with a TTL of 2 minutes, while from Mexico, we get both Ashburn and San Jose.
$ doggo --gp-from="Chicago" A vincent.bernat.ch
LOCATION          NAME                TYPE  TTL    ADDRESS
Chicago (IL), US
                  vincent.bernat.ch.  A     120s   5.161.44.145
$ doggo --gp-from="Mexico" A vincent.bernat.ch
LOCATION          NAME                TYPE  TTL    ADDRESS
Queretaro, MX
                  vincent.bernat.ch.  A     3600s  5.161.44.145
                  vincent.bernat.ch.  A     3600s  149.28.219.155
$ doggo --reverse 5.161.44.145 149.28.219.155
NAME                          TYPE  TTL    ADDRESS
145.44.161.5.in-addr.arpa.    PTR   7187s  web05.luffy.cx.
155.219.28.149.in-addr.arpa.  PTR   3600s  web07.luffy.cx.

Note On the live page, the map below is interactive: point at a location to get the DNS answer, or disable servers to see how the answers change.

Map of the servers answered by Bunny DNS for each location
The complete code is a bit more complex. It works around RoutingEngine.getClosestServer() supporting only IPv4, and it handles the case where there are not enough alive servers to build an answer. Bunny.net has a comprehensive Terraform provider. I leverage CDK Terrain to build the target state in TypeScript and OpenTofu to deploy it. Have a look at "Managing infrastructure with Terraform, CDKTF, and NixOS" for more details.6

ACME DNS with Hickory DNS Route 53 covered one additional use case of mine: serving acme.luffy.cx to solve DNS-01 ACME challenges. Unlike Route 53, Bunny DNS cannot restrict access to a single zone with a fine-grained access policy. As this usage requires neither high availability nor low latency, I replaced Route 53 with Hickory, a memory-safe DNS server written in Rust. It supports automatic DNSSEC signatures and dynamic updates. Its configuration is simple:
[[zones]]
zone = "acme.luffy.cx"
zone_type = "Primary"
[zones.stores]
allow_update = true
type = "sqlite"
journal_path = "acme.luffy.cx.sqlite"
zone_path = "acme.luffy.cx.zone"
# Private key to sign the zone with DNSSEC. Generated with:
#  openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256
[[zones.keys]]
algorithm = "ECDSAP256SHA256"
key_path = "/etc/hickory-dns.acme.luffy.cx.pem"
# TSIG key to sign zone updates. Generated with:
#  openssl rand 32
[[zones.stores.tsig_keys]]
algorithm = "hmac-sha256"
key_file = "/etc/hickory-dns.acme.luffy.cx.update.acme.luffy.cx.tsig"
name = "update.acme.luffy.cx."
The provided zone file only seeds the database on first start. I delegate DNS-01 challenges to this zone with CNAME records:
_acme-challenge          CNAME bernat.ch.acme.luffy.cx.
_acme-challenge.vincent  CNAME vincent.bernat.ch.acme.luffy.cx.
Lego, the ACME client I use to get certificates from Let's Encrypt, answers the DNS-01 challenge by pushing entries with the DNS UPDATE protocol. Unfortunately, Bunny DNS cannot publish a DS record in a zone.7 I need one to secure the acme.luffy.cx zone and certificate delivery. Therefore, I host the luffy.cx zone on deSEC,8 a free DNS hosting service run by a non-profit organization based in Berlin. I derive the DS record to publish in luffy.cx from the DNSKEY record of acme.luffy.cx:
$ ZONE=acme.luffy.cx
$ dig @nsupdate.luffy.cx $ZONE DNSKEY +noall +answer \
>     dnssec-dsfromkey -a SHA-256 -f - $ZONE
acme.luffy.cx. IN DS 55628 13 2 4946E7508F20E15F1B577A231104B029A1A82E04699A80CD46ADCE31227EE81F

Overall, I am quite happy with the switch to bunny.net. There are still a few rough edges, like the inability to publish DS records, the lack of HTTP/3, and the IPv4-only RoutingEngine.getClosestServer() helper. The bill went from US$5 per month to US$1. So far, performance is on par with AWS, but I only finalized the current setup, including the server in Sydney, in late October. I need a bit more time to gather more data, and I'll post a short update.

Update (2026-11) This post was briefly discussed on Hacker News and Lobsters.

Update (2026-11) According to CrUX metrics, the Largest Contentful Paint went from 1100 ms to 890 ms. The First Contentful Paint dropped from 1000 ms to 890 ms. The Time to First Byte shrank from 565 ms to 355 ms. I switched to bunny.net at the same time I added servers in more regions, so I can't tell which change helped most.


  1. I had been hosting media assets on CloudFront since 2011.
  2. Route 53 had served bernat.ch since December 2021. I didn't use healthchecks as they were too expensive. I didn't host most of my zones there either, as queries for haproxy.debian.net alone would have cost me around US$10 per month.
  3. A server is alive if it answers an ICMP ping. The bunny.net documentation gives more details about the checks.
  4. The user queries Bunny DNS through a resolver. Usually, either the resolver is close to the user, or it exposes the user's subnet through EDNS client subnet.
  5. Don't use this script as is: RoutingEngine.getClosestServer() only works with IPv4. The final script works around this limitation.
  6. The article is a bit outdated. CDK Terrain replaces CDKTF, OpenTofu replaces Terraform, and I now use Colmena instead of NixOps.
  7. I contacted bunny.net support to ask when they will support publishing a DS record and got an answer seven minutes later: they don't know. This is a bummer, as they support automatic CDS, a DNS record to advertise a DS record to the parent zone. They handle one side of the delegation, not the other. I also reported a bug with the proof of non-existence, and they replied a day later with a detailed answer.
  8. Why not use deSEC for ACME challenges? You can limit its tokens to a single RRset. I could say I prefer to self-host, but the truth is I only discovered this while writing this article.

5 November 2026

John Goerzen: Letter from a Kansan: Would You Rather Be Right or Happy?

As a person that has lived in Kansas almost all my life, I have never seen such good political news for this state as we got this week. It is a stunning rebuke of fascism from across the country. One of the many pieces of wisdom from mechanic Tom Magliozzi is this question: Would you rather be right, or happy? He often asked it in the context of somebody that had just won an argument. This is my plea to all our progressive friends: remember that question, and keep it in mind carefully over the next 2 years. We can either build on this momentum for an even bigger victory in 2028, or we can start to lose this unique coalition. Kansans spend our lives being misunderstood and forgotten. Many of us, myself included, visit large cities regularly. It is a more surprising event when someone from a large city drives down one of our dirt roads. The kind of road that leaves your car covered in mud when you drive your daughter to school. The kind of road that we drive on for 3 miles before we reach the nearest paved road. Statisticians label Topeka, the capital of Kansas and city of 126,000 people, as rural. The nearst town to me, 7 miles away, has a population of 600. In winter, many people here still leave their keys in their running, unlocked cars while they run into the grocery store. The person at the bank, the owner of the grocery store, the mechanic, the electricians, the builders, the people that run the local museum, all know my name and recognize me. Not because I m famous locally, but because this is normal here. We are a community, a real one. Yet I ve lost long-time friends, especially from the west coast, because, while I m progressive, I still talk to Republicans. They thought Republicans are so evil, they ought to be shunned and ostracized. It probably doesn t compute to a San Franciscan what it means to live in a county that went 80% for Trump one time. A county of about 10,000 people living in a space larger than Los Angeles, New York, and San Jose combined. (Those cities have a combined population of about 13 million, living on the same amount of land as 10,000 people do out here.) If I avoided talking to Republicans, it wouldn t be them that would be isolated. It would be me. Out here, many of us have lived with each other for generations. We may go on living with them for generations. If somebody s car is stuck in the mud, the first person that comes by with a truck and a rope will probably pull them out. Nobody asks who you voted for. This is what you do for neighbors, because neighbors are humans, and next time it might be me that s stuck in the mud. I can be as incensed as anyone else about what the fascists are doing. I don t have direct knowledge of how a lot of people vote. But I take a deep breath sometimes and remind myself: these are my neighbors. I ve seen them go out of their way to be kind and generous with all walks of humanity. (Yes, even whatever groups you re imaginging to argue with me about.) This is part of how Adam Hamilton defeated Roger Marshal. The anti-Trump sentiment wasn t enough on its own. Lifelong Republicans dissatisfied with how Trump handled things weren t just going to vote for any Democrat. They needed someone that was safe. Someone that talked to them as humans. Someone that respected them. Adam Hamilton went and shook hands with MAGA protestors at his events. He told them I want to be your senator, too. This is how you win over the most strident of Republicans. Hamilton didn t compromise his beliefs. He invited discussion about them. I have already been seeing some progressives say things like, Don t cut them any slack. Remember how many times people voted for fascism! They need to still be ostracized. That, folks, is the way we lose. It is the wrong strategy everywhere. And it is especially culturally wrong in the close-knit communities again, actual communities where people know each other and have for years that make up the heartland. Building relationships with people different than us is our best chance to build on this coalition. And, isn t that what progressive values call for? So, celebrate this victory. Clap for all the activists that made it happen. And, before you set off to alienate your new and tentative allies, ask yourself: Would I rather be right? Or win again?

1 November 2026

Vincent Bernat: Network lab with QEMU

To experiment with network stuff, I was using UML-based network labs. Many alternatives exist, like GNS3, Netkit, Marionnet or Cloonix. All of them are great viable solutions but I still prefer to stick to my minimal home-made solution with UML virtual machines. Here is why: The use of UML had some drawbacks: However, UML features HostFS, a filesystem providing access to any part of the host filesystem. This is the killer feature which allows me to not use any virtual disk image and to get access to my home directory right from the guest. I discovered recently that QEMU provided 9P, a similar filesystem on top of VirtIO, the paravirtualized IO framework.

Setting up the lab The setup of the lab is done with a single self-contained shell file. The layout is similar to what I have done with UML. I will only highlight here the most interesting steps.

Booting QEMU with a minimal kernel My initial goal was to experiment with Nicolas Dichtel s IPv6 ECMP patch. Therefore, I needed to configure a custom kernel. I have started from make defconfig, removed everything that was not necessary, added what I needed for my lab (mostly network stuff) and added the appropriate options for VirtIO drivers:
CONFIG_NET_9P_VIRTIO=y
CONFIG_VIRTIO_BLK=y
CONFIG_VIRTIO_NET=y
CONFIG_VIRTIO_CONSOLE=y
CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_RING=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_MMIO=y
No modules. Grab the complete configuration if you want to have a look. From here, you can start your kernel with the following command ($LINUX is the appropriate bzImage):
qemu-system-x86_64 \
  -m 256m \
  -display none \
  -nodefconfig -no-user-config -nodefaults \
  \
  -chardev stdio,id=charserial0,signal=off \
  -device isa-serial,chardev=charserial0,id=serial0 \
  \
  -chardev socket,id=con0,path=$TMP/vm-$name-console.pipe,server,nowait \
  -mon chardev=con0,mode=readline,default \
  \
  -kernel $LINUX \
  -append "init=/bin/sh console=ttyS0"
Since there is no disk to boot from, the kernel will panic when trying to mount the root filesystem. QEMU is configured to not display video output (-display none). A serial port is defined and uses stdio as a backend.1 The kernel is configured to use this serial port as a console (console=ttyS0). A VirtIO console could have been used instead but it seems it is not possible to make it work early in the boot process. The QEMU monitor is setup to listen on a Unix socket. It is possible to connect to it with socat UNIX:$TMP/vm-$name-console.pipe -.

Initial ramdisk

Update (2012-10) I was initially unable to mount the host filesystem as the root filesystem for the guest directly by the kernel. In a comment, Josh Triplett told me to use /dev/root as the mount tag to solve this problem. I keep using an initrd in this post but the lab on GitHub has been updated to not use one.

Here is how to build a small initial ramdisk:
# Setup initrd
setup_initrd()  
    info "Build initrd"
    DESTDIR=$TMP/initrd
    mkdir -p $DESTDIR
    # Setup busybox
    copy_exec $($WHICH busybox) /bin/busybox
    for applet in $($ DESTDIR /bin/busybox --list); do
        ln -s busybox $ DESTDIR /bin/$ applet 
    done
    # Setup init
    cp $PROGNAME $ DESTDIR /init
    cd "$ DESTDIR " && find .   \
       cpio --quiet -R 0:0 -o -H newc   \
       gzip > $TMP/initrd.gz
 
The copy_exec function is stolen from the initramfs-tools package in Debian. It will ensure that the appropriate libraries are also copied. Another solution would have been to use a static busybox. The setup script is copied as /init in the initial ramdisk. It will detect it has been invoked as such. If it were omitted, a shell would be spawned instead. Remove the cp call if you want to experiment manually. The flag -initrd allows QEMU to use this initial ramdisk.

Root filesystem Let s mount our root filesystem using 9P. This is quite easy. First QEMU needs to be configured to export the host filesystem to the guest:
qemu-system-x86_64 \
  $ PREVIOUS_ARGS  \
  -fsdev local,security_model=passthrough,id=fsdev-root,path=$ ROOT ,readonly \
  -device virtio-9p-pci,id=fs-root,fsdev=fsdev-root,mount_tag=rootshare
$ ROOT can either be / or any directory containing a complete filesystem. Mounting it from the guest is quite easy:
mkdir -p /target/ro
mount -t 9p rootshare /target/ro -o trans=virtio,version=9p2000.u
You should find a complete root filesystem inside /target/ro. I have used version=9p2000.u instead of version=9p2000.L because the latter does not allow a program to mount() a host mount point.2 Now, you have a read-only root filesystem (because you do not want to mess with your existing root filesystem and moreover, you did not run this lab as root, did you?). Let s use a union filesystem. Debian comes with AUFS while Ubuntu and OpenWRT have migrated to overlayfs. I was previously using AUFS but got errors on some specific cases. It is still not clear which one will end up in the kernel. So, let s try overlayfs. I didn t find any patchset ready to be applied on top of my kernel tree. I was working with David Miller s net-next tree. Here is how I have applied the overlayfs patch on top of it:
$ git remote add torvalds git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
$ git fetch torvalds
$ git remote add overlayfs git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git
$ git fetch overlayfs
$ git merge-base overlayfs.v15 v3.6
4cbe5a555fa58a79b6ecbb6c531b8bab0650778d
$ git checkout -b net-next+overlayfs
$ git cherry-pick 4cbe5a555fa58a79b6ecbb6c531b8bab0650778d..overlayfs.v15
Don t forget to enable CONFIG_OVERLAYFS_FS in .config. Here is how I configured the whole root filesystem:
info "Setup overlayfs"
mkdir /target
mkdir /target/ro
mkdir /target/rw
mkdir /target/overlay
# Version 9p2000.u allows one to access /dev, /sys and mount new
# partitions over them. This is not the case for 9p2000.L.
mount -t 9p        rootshare /target/ro      -o trans=virtio,version=9p2000.u
mount -t tmpfs     tmpfs     /target/rw      -o rw
mount -t overlayfs overlayfs /target/overlay -o lowerdir=/target/ro,upperdir=/target/rw
mount -n -t proc  proc /target/overlay/proc
mount -n -t sysfs sys  /target/overlay/sys
info "Mount home directory on /root"
mount -t 9p homeshare /target/overlay/root -o trans=virtio,version=9p2000.L,access=0,rw
info "Mount lab directory on /lab"
mkdir /target/overlay/lab
mount -t 9p labshare /target/overlay/lab -o trans=virtio,version=9p2000.L,access=0,rw
info "Chroot"
export STATE=1
cp "$PROGNAME" /target/overlay
exec chroot /target/overlay "$PROGNAME"
You have to export your $ HOME and the lab directory from host:
qemu-system-x86_64 \
  $ PREVIOUS_ARGS  \
  -fsdev local,security_model=passthrough,id=fsdev-root,path=$ ROOT ,readonly \
  -device virtio-9p-pci,id=fs-root,fsdev=fsdev-root,mount_tag=rootshare \
  -fsdev local,security_model=none,id=fsdev-home,path=$ HOME  \
  -device virtio-9p-pci,id=fs-home,fsdev=fsdev-home,mount_tag=homeshare \
  -fsdev local,security_model=none,id=fsdev-lab,path=$(dirname "$PROGNAME") \
  -device virtio-9p-pci,id=fs-lab,fsdev=fsdev-lab,mount_tag=labshare

Network You know what is missing from our network lab? Network setup. For each LAN that I will need, I spawn a VDE switch:
# Setup a VDE switch
setup_switch()  
    info "Setup switch $1"
    screen -t "sw-$1" \
        start-stop-daemon --make-pidfile --pidfile "$TMP/switch-$1.pid" \
        --start --startas $($WHICH vde_switch) -- \
        --sock "$TMP/switch-$1.sock"
    screen -X select 0
 
To attach an interface to the newly created LAN, I use:
mac=$(echo $name-$net   sha1sum   \
            awk ' print "52:54:" substr($1,0,2) ":" substr($1, 2, 2) ":" substr($1, 4, 2) ":" substr($1, 6, 2) ')
qemu-system-x86_64 \
  $ PREVIOUS_ARGS  \
  -net nic,model=virtio,macaddr=$mac,vlan=$net \
  -net vde,sock=$TMP/switch-$net.sock,vlan=$net
The use of a VDE switch allows me to run the lab as a non-root user. It is possible to give Internet access to each VM, either by using the -net user flag or using slirpvde on a special switch. I prefer the latter solution since it will allow the VMs to speak to each other.

Debugging This lab was mostly done to debug both the kernel and Quagga. Each of them can be debugged remotely.

Kernel debugging While the kernel features KGDB, its own debugger, compatible with GDB, it is easier to use the remote GDB server built inside QEMU.
qemu-system-x86_64 \
  $ PREVIOUS_ARGS  \
  -gdb unix:$TMP/vm-$name-gdb.pipe,server,nowait
To connect to the remote GDB server from the host, first locate the vmlinux file at the root of the source tree and run GDB on it. The kernel has to be compiled with CONFIG_DEBUG_INFO=y to get the appropriate debugging symbols. Then, use socat with the Unix socket to attach to the remote debugger:
$ gdb vmlinux
GNU gdb (GDB) 7.4.1-debian
Reading symbols from /home/bernat/src/linux/vmlinux...done.
(gdb) target remote   socat UNIX:$TMP/vm-r1-gdb.pipe -
Remote debugging using   socat UNIX:/tmp/tmp.W36qWnrCEj/vm-r1-gdb.pipe -
native_safe_halt () at /home/bernat/src/linux/arch/x86/include/asm/irqflags.h:50
50   
(gdb)
You can now set breakpoints and resume the execution of the kernel. It is easier to debug the kernel if optimizations are not enabled. However, it is not possible to disable them globally. You can however disable them for some files. For example, to debug net/ipv6/route.c, add CFLAGS_route.o = -O0 to net/ipv6/Makefile, remove net/ipv6/route.o and type make.

Userland debugging To debug a program inside QEMU, you can just use gdb as usual. Your $HOME directory is available and it should therefore be straightforward. However, if you want to perform some remote debugging, that s quite easy. Add a new serial port to QEMU:
qemu-system-x86_64 \
  $ PREVIOUS_ARGS  \
  -chardev socket,id=charserial1,path=$TMP/vm-$name-serial.pipe,server,nowait \
  -device isa-serial,chardev=charserial1,id=serial1
Start gdbserver in the guest:
$ libtool execute gdbserver /dev/ttyS1 zebra/zebra
Process /root/code/orange/quagga/build/zebra/.libs/lt-zebra created; pid = 800
Remote debugging using /dev/ttyS1
And from the host, you can attach to the remote process:
$ libtool execute gdb zebra/zebra
GNU gdb (GDB) 7.4.1-debian
Reading symbols from /home/bernat/code/orange/quagga/build/zebra/.libs/lt-zebra...done.
(gdb) target remote   socat UNIX:/tmp/tmp.W36qWnrCEj/vm-r1-serial.pipe -
Remote debugging using   socat UNIX:/tmp/tmp.W36qWnrCEj/vm-r1-serial.pipe -
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007ffff7dddaf0 in ?? () from /lib64/ld-linux-x86-64.so.2
(gdb)

Demo For a demo, have a look at the following video:

  1. stdio is configured such that signals are not enabled. QEMU will not stop when receiving SIGINT. This is important for the usage we want to have.
  2. Therefore, it is not possible to mount a fresh /proc on top of the existing one. I have searched a bit but did not find why. Any comments on this are welcome.

31 October 2026

Russell Coker: Links October 2026

Julia Curlee wrote an informative article about serving as a CIA agent in the White House as a trans woman [1]. Bruce Schneier and Kasra Rafi wrote an interesting article about AIs and mathematical research, they won t break crypto any time soon [2]. Otto wrote an interesting and informative blog post about the issues related to AI and software development with a focus on the recent Debian vote about accepting AI contributions [3]. Jared Huffman the only openly atheist congressman has some insightful commentary on the rise of Christian nationalism in the US [4]. Artem wrote an interesting blog post about trying and failing to contain a LLM agent with VMs, they think this is bad but I think it s great that more bugs are being discovered and could then be fixed [5]. I now want to try this sort of thing on replicas of my own systems! Techdirt has an insightful article about how the new Meta teen safety rules might allow murderous cops to get away with their crimes [6]. Anil Madhavapeddy wrote an interesting blog post Just a rumour of a bug is enough to find a security exploit these days , things will be difficult for the next few years if this holds at scale [7]. The Conversation has an interesting article about the current situation with nuclear weapons proliferation, not that it helps as countries with nukes get love letters from Trump and countries without get girls schools bombed [8]. Several Australian state governments have mandated free electricity between the times of 11AM and 2PM, but now electricity companies have changed their pricing to avoid this saving customers any money [9]. 404Media has an interesting article about the ways that AI agents are ruining the Internet [10]. RealtimeApocalypse has an interesting article about Effective Altruism which is one of the more covert cults that prey on people in the computer industry [11]. David Brin has a good theory to explain why it s important to allow people who have practiced bestiality to work for the FBI [12]. Cory Doctorow wrote an interesting article for Locus about the politics of AI systems and when they should be considered inherently evil [13]. Adrian wrote an insightful blog post about how DDR RAM works and why replacing RAM on an embedded board isn t a good idea [14]. Arstechnica has an interesting article about organised criminal gangs stealing truck loads of goods and having a particular interest in DC gear [15]. This is one of a series of articles published in The Guardian about the Free Birth Society, a cult-like organisation that opposes involvement of trained medical experts in the process of giving birth, they claimed resuscitation was often an unnecessary act which deprived babies of the chance to choose to begin their lives wow [16]. Cory Doctorow wrote an insightful article about so-called Intellectual Property and how it s being used to attack human rights [17]. Anthropic published an interesting article about their work on formally proving libraries with LLMs, hundreds of millions of tokens for each proof so probably thousands of dollars [18]. Bruce Schneier wrote an insightful article about how AI can provide advantages and disadvantages for dictators [19].

30 October 2026

Matthew Garrett: Getting Google Cast on my Soundbar

I have a Samsung Q800A soundbar. It ships with built-in support for the Apple Airplay protocol, but I m not really an Apple kind of guy so that s never been particularly helpful for me. So, instead, I have a Chromecast Audio plugged into it via TOSLINK, and that works fine - except for the fact that there s no way to explicitly pick TOSLINK as the audio input. Instead, there s a Digital In option that refers to both the optical in and eARC input from a TV. Not inherently a problem, given I m unlikely to be watching TV while listening to music, but my TV is a Samsung Frame, a device that s intended to display art whenever someone is standing nearby, and which infuriatingly generates an eARC signal even if it s only in art mode and isn t going to make any noise. This switches the soundbar away from optical and I get sad. I could plug a video cast device into the HDMI port on the soundbar and cast audio to that, but then the art would get replaced with album covers whenever I m playing music, and again that s not quite the ambience I want. Still, none of this is that important. Until I learned that the Australian version of the soundbar does have Google Cast support. The firmware image was downloadable from Samsung support, so I grabbed that, but unfortunately found that it was encrypted. However, if I downloaded the firmware image for the US model, the encrypted blob was identical - there s no difference in the underlying firmware between the two of them. So, how come one has support, and the other doesn t? I d need an unencrypted copy of the firmware to have a real chance of figuring this out, and the easiest way to get one was to just run an ebay watch for a broken model of the same series. Once I had one in my hands I used hot air to remove the eMMC storage from the device, cleaned up the chip, and then stuck it in one of these adapters to read it on a local system. Samsung uses a weird in-house filesystem called VDFS4 on some of their devices and this was one of them, so I needed to cobble together a kernel that was compatible with their source dump for this device (not all VDFS drivers seem to be able to read all VDFS filesystems), but eventually I had it all extracted, and then I got distracted by other stuff, so let s fast forward to this week. Samsung makes use of a modified version of the Android Debug Bridge called sdb, which is included in the Tizen SDK. The firmware showed that this device had sdbd on it, and it would be executed if a network device called huart0 was plugged in. Samsung does, thankfully, provide the source code for their GPLed components, so I could dig through that to discover that drivers/net/usb/usbnet.c had a bunch of references to huart (which apparently stands for HyperUART ). If CONFIG_SAMSUNG_USBNET_HYPERUART_IFNAME is set, and if the ethernet device is using either the asix or ax88179_178a drivers, and if /opt/etc/HyperUART_IP_Addr 1 isn t just 0 , it sets the interface name to huart0 and in turn triggers sdbd startup. So now I just needed to figure out how to set /opt/etc/HyperUART_IP_Addr to something else. Some digging revealed a binary called wap-factory that referenced the file, which then led to /usr/share/mobile-mgr/jsons/com.samsung.audio.waapp-verification-test.json which mentioned a SetUartOnOff call, which brought me here2, which led me into a bit of a rabbit hole about the Samsung WAM protocol. Long story short, you connect to either port 55001 or 56001 and make two requests over the same connection:
1
2
3
4
5
6
7
8
9
GET /connect HTTP/1.1
Host: 192.168.87.126:56001
User-Agent: SamsungMultiroom/1.0
Connection: interactive

GET /UIC?cmd=%3Cname%3ESetUartOnOff%3C/name%3E%3Cp%20type%3D%22str%22%20name%3D%22uartOnOff%22%20val%3D%22on%22/%3E HTTP/1.1
Host: 192.168.87.126:56001
User-Agent: SamsungMultiroom/1.0
Connection: interactive
and then plug in an asix chipset ethernet adapter into the USB port (which on mine is micro-B, so I needed an OTG adapter), and suddenly it s sitting there on 192.168.250.250 and will speak sdb to you. sdb root on switches it into root mode, and sdb shell now gives you a root shell. I was in, and now I could investigate what was happening. First up, there was a process called com.samsung.audio.google-cast-control-app running, which seemed like a good start. Unfortunately it wasn t doing anything. After some tracing I found that it was making a call to Samsung at startup time, and getting back a response telling it that Cast support wasn t available. The request (which was helpfully dumped to stdout when I ran this by hand) included the country code, in my case US . Repeating the request by hand with curl and changing the code to AU told me it was supported, so now I needed to figure out how to get the soundbar to believe it was Australian. Some digging showed it was reading this from a config variable called db/comss/countrycode, and running
1
buxton2ctl set-string system db/comss/countrycode AU
got me past that gate. Now, however, it was complaining that it couldn t provision a key. /usr/apps/com.samsung.audio.google-cast-control-app/shared/res included a bunch of encrypted blobs and an app called teeStoreKey.elf, and tracing com.samsung.audio.google-cast-control-app showed it was trying to call that, but it seemed like it was failing with a permissions issue. Running com.samsung.audio.google-cast-control-ap directly as root triggered key provisioning successfully, and a few seconds later the rest of the Cast API came up and I could talk to port 8443 with standard Cast API calls. Unfortunately it still wasn t working as a Cast device, though - it wasn t advertising itself via mDNS and so nothing could see it. Querying the /setup/eureka_info endpoint gave me a clue - the tos_accepted field was false. Normally this would be set as part of initial device setup, but the Samsung app wasn t doing that because it didn t think the device had Cast support. It turns out that POSTing some json with tos_accepted : true to setup/set_eureka_info made it work, and suddenly there was an additional Cast device available to me. (Update: I realised I didn t mention anything about why it was doing key provisioning in the first place! The Cast protocol doesn t enforce cryptographic identity as such, but Google s reference client implementation which is what almost everything uses verifies that the device is presenting an identity that chains back to Google. Unsurprisingly they don t want the private key material to be easily extractable and used to produce clone devices, so it s all supposed to be encrypted and only accessible to some sort of trusted execution environment, which is why keys here need to be loaded into Trustzone and never be visible in the clear to the main OS) Mission accomplished. Unfortunately the device vanished from my Smartthings home aferwards, presumably because there s a mismatch between its reported country code and my account country. To get around that I d somehow need to get com.samsung.audio.google-cast-control-app to either change the query without changing the global device country, or to ignore the response from Samsung (it does this every 24 hours, ugh), and that s made more annoying by the fact that this thing will only execute signed binaries. Although, weirdly, one of the signed binaries shipped is a full Python interpreter, so if I cared enough I could probably cobble together enough Python to execute arbitrary binaries. I currently don t. More modern soundbars don t implement the listener on port 55001 or 56001. I don t know how you get sdb working on them.

  1. Yes, it reads a file directly from in-kernel
  2. Good god I hate reading this kind of slop

Russell Coker: Fuel Should be More Expensive

The Current Situation Before the US and Israel started attacking Iran at the end of February the petrol prices in Australia were around $1.70/L, which for American readers is roughly equivalent to $US4.64/Gal. By the 11th of March the prices were around $2.19/L. Over the same time period Diesel went from around $1.77/L to $2.40/L. The 11th of March prices weren t necessarily unreasonable prices. In mid March it was reasonable to expect that the US would stop doing such ridiculously stupid things and make a deal with Iran to allow oil to be transported. But every time you think there s a limit to Trump s stupidity (and the incompetence of people around him who don t point him in the right direction) they do something worse. So now we have the Strait of Hormuz almost entirely closed cutting off oil from Kuwait, Qatar, and UAE. The Bab al-Mandab Strait is closed to Saudi linked ships and the Saudi East-West pipeline is closed so once the Yanbu storage tanks are empty there won t be much if any oil from Saudi Arabia for some time. So world oil supplies will be significantly reduced for a long time. Currently the petrol prices in Melbourne are around $2.30/L and Diesel prices around $2.70/L, not much more expensive than it was in March in spite of all the extra problems both militarily and diplomatically since then. Those prices have been steady for over a month. The blockade of the Strait of Hormuz could be ended fairly quickly and there are reports that a lot of the oil that used to go through it is being re-routed. The damaged infrastructure throughout the middle east can t be fixed in a hurry. The Bab al-Mandab Strait probably can t be opened quickly as the Houthis probably don t have a centralised command structure that allows someone to order a ceasefire and have it stick. So we can expect a massive reduction in world oil supplies for a while, which given the way the US is going could be at least until after the mid-term elections (November this year) and possibly until after the 2028 elections. After that oil production will be reduced for another year or two to rebuild infrastructure. The Problem When supply can t meet demand there are three options. Supply can be rationed, demand can be decreased by increasing the prices, or it can be used up and we run out. Running out of fuel is a really bad option as fuel is needed for producing and transporting food and for most things that are important to a society. Governments of first world countries seem unable to deal with the situation properly. Dealing with it properly requires either rationing or increasing the prices. Instead governments have been more interested in artificially keeping the prices down. Currently in Australia and most countries a significant portion of public transport depends on Diesel fuel. Diesel is needed for most buses and for long distance trains. Most taxis run on petrol. As far as I know all emergency service vehicles run on Diesel or petrol as well as most military vehicles. So things will get really bad quickly if fuel runs out entirely. It s not just personal cars that are affected. We aren t going to get the majority of tractors converted to electric power any time soon. Google search results suggest that tractors last an average of about 25 years but casual observation of working equipment on farms suggests a longer life than that is common. Some tractors could be retrofitted to be electric but many will end up being scrapped as part of a conversion while farmers are already having financial problems. It would probably be optimistic to expect that half the tractor use could be done with electric tractors in 10 years time unless there are significant government subsidies. To get the farming and food production industries adapted for electric operation in a few years would be possible but it would take a level of national mobilisation that only happens during wartime. What We Need As a long term solution we need to have more electric vehicles in every category. We need electricity for all train lines to replace Diesel locomotives. We need better trains between cities to reduce the need for aeroplanes, electric aeroplanes are being developed but we aren t there yet. We need all essential services to be run with electric vehicles including farming, food transport, emergency services, and everything related to the medical system (including personal cars for healthcare workers). We also need mining vehicles powered by electricity so we can have the entire industrial system running without fuel. None of this is going to happen in time for this crisis. Electric buses are being introduced in Australia and many taxis are electric. The recent significant increase in the use of electric cars probably includes a reasonable portion of healthcare workers and other essential workers. This gives us the potential to survive fairly severe reductions in the fuel supply without everything collapsing. But we have a significant lack in electric police cars and in electric trucks for food delivery. In the short term we need to significantly reduce the use of fuels, there is no other way to keep the food supply and other essential parts of society working. We could try rationing but I think that should be a last resort. The news reports of a de-facto petrol rationing system in Crimea and parts of Russia are not positive, significant resources are wasted in long queues for petrol and there is public disorder caused by disputes about position in the queues. The level of sanity in the population seems to have dropped significantly since the fuel crisis of 1979, any fuel rationing that is implemented now would get the same sort of opposition from Qanon types as Covid vaccines and lockdowns did in recent times. So the best viable option seems to be to reduce demand by increasing prices. $2.30/L as a common price with occasional spikes of $2.50/L isn t sufficient to do that. If the price increased to $3.50/L, twice what it used to be (equivalent to $9.50/gallon for Americans) then it would provide a real incentive for people to reduce fuel use. That would have to be combined with the type of remote work allowances that were in place when Covid19 was first spreading. But I think that all politicians are too weak to do such things. The media have demonstrated that nowadays the best we can expect is that they will treat both sides as equal even when facts clearly support one side, so we can t expect the media to report on impending fuel shortages and demand policy changes to address them. We should have higher taxes on fuel that will continue past the resolution of the current crisis caused by the attacks on Iran to provide incentives for the purchase of electric cars and for manufacturers to make more fuel efficient cars. Currently people are basing car ownership decisions on the expectation that petrol will go back to something under $2/L and we need to have a government guarantee that it won t happen. People always complain about poor people who can t afford to drive if petrol is expensive but that could be addressed by increasing the minimum wage and social security payments. But a large portion of the people who complain about the hardship poor people may face when fuel prices are discussed are against increasing the minimum wage so I don t think they are being honest. Another common complaint is about the difficulty driving long distances in rural Australia when there isn t sufficient charging infrastructure for electric cars and therefore rural people including farmers getting hit by high prices of fuel. There could be a rebate scheme for farmers etc, government subsidies for farmers is nothing new. What Will Happen I expect the governments of most first world countries to try to keep fuel prices low and do very little to try and decrease demand. China will probably do some things to reduce fuel use and being the world s largest oil importer this will make a difference, but not as much as we need. A related problem is that a lot of fertiliser is produced from petrochemicals and closing the strait of Hormuz cut off a significant portion of the world fertiliser supply. First world countries will outbid developing countries for fertiliser and fuel. Starvation in developing countries probably won t get much news coverage until it leads to war. This is not going to go well, it could be addressed if we had braver politicians and more honest media companies but that s not the way things are going.

25 October 2026

Russell Coker: Banks and Phones

The Problem For years there have been ongoing issues with SMS being used as a security mechanism for important things including financial services. The problem with this is that access to a phone number is not very well secured, the business model of phone stores is based on having a price of service that doesn t allow the amounts of money spent on security and training that organisations such as banks can spend and are legally required to spend. The way things work now is that SMS is a second factor of authentication for banks and other traditional financial companies as well as for services involving cryptocurrencies such as bitcoin. To gain unauthorised access to SMS an attacker can physically steal a phone or SIM or they can trick an employee of a phone store into replacing the SIM or attack the computers of the telco to gain access to replace SIMs. SMS authentication is also used for many services which have indirect access to financial service. For example when I m employed in a sysadmin role I may get given admin access to the email server used for the CEO s email and have it default to using the phone number of my personal phone for authentication. So while my personal phone doesn t give the potential for defrauding much money I own it does give the potential for being used for defrauding however much money the CEO can authorise which may be significantly greater than my net worth. Hardware Security Devices The best thing to do for securing such things is to use hardware security devices like FIDO keys, of which there is a wide range that cost less than $50. The problem with acceptance of such things is lack of general knowledge and lack of forced requirements to use them. The vast majority of banks (including all banks in Australia AFAIK) have chosen not to require hardware security devices because of the cost. It has been widely claimed that 20% of the customers of a typical bank make 120% of the profit 80% of the customers lose money for the bank. While I m not in a position to know the accuracy of that most banks seem to have implemented monthly fees for accounts below a certain minimum balance to discourage less profitable customers. If there were banking regulations requiring hardware security devices then the costs would be passed on to people who really can t afford an extra $50 per year in banking fees to pay for it. It might be a good option for the government to require personal presence at the bank or a hardware security device for transfers of more than $1000. That would allow kids and minimum wage workers to have bank accounts without excessive fees while forcing a higher level of security for larger transfers. I really should use the hardware security devices I own more, although they are mostly only usable on systems I run. Improving Phone Store Security The problems of employees of phone stores being tricked or bribed to giving attackers access to someone s phone service could be addressed by introducing new regulations about security at phone stores. I think this isn t a viable option as the amount of work required to develop new procedures, train staff, and implement more secure systems is significant. Also the stores used for selling phones aren t the type of secure buildings that are used for banks so some construction work would be required and many phone stores in small towns would no longer be economically viable and would be shut down. I think we should have legislation to require better security for phone stores as there is a lot of scope to do things better without the expense of bank type security. Crimes that involve stealing phone service don t just hurt people who want a regular phone service, they hurt the community by facilitating other crimes. How Virtual Telcos Work In Australia there are 3 companies providing the full mobile phone service, Telstra, TPG (which bought Vodafone), and Optus. There are many virtual telcos that use those services. The virtual telcos are companies that will sell a phone service but use one of the 3 companies to provide the actual connection. The backend mobile service run by the big 3 has appeared to be secure, but probably doesn t have the protect $200m of bitcoin level of security. When you get a phone service you are issued a SIM or given a QR code for an eSIM by a company that has SIMs issued by the big 3. That company can then replace your SIM if it s damaged, lost, or stolen by using a level of security that it deems appropriate, which probably isn t very secure. Most of the news about SIM swapping attacks comes from other countries and it s shown that the security of virtual telcos in the US is quite insecure and probably Australian companies aren t any better. To transfer a service to another virtual telco you used to be able to do it with just knowing the invoice number of your last invoice but in recent times you receive a SMS on your old SIM to confirm that you wish to change. That could be viable for any crime that involves stealing a phone today and stealing money tomorrow. But for most attacks that involve stealing a phone number transferring to a different virtual telco isn t a good option. Another possibility for crime that I haven t seen reported yet is to steal eSIMs. It s unreasonably difficult (although not impossible) to steal an eSIM once it s installed in a phone. But stealing an eSIM before it gets installed is much easier. Kogan and Aldi email eSIMs to customers which is very vulnerable to attack and should be illegal. Telstra and Optus use an app to install an eSIM which could be quite secure if implemented properly. TPG uses a web page and QR code or an app which again could be quite secure. Currently the iPhone 17 Air is apparently the only phone released world-wide without support for physical SIMs. When phones that have no support for physical SIMs become common people may have to make the security of eSIM delivery a factor when choosing a telco. Banks as Virtual Telcos or SIM Providers I think that in the near future the best thing to do to improve security involving the phone system would be to have the banks run virtual telco businesses or manage the supply of SIMs for virtual telcos. Then getting a SIM replaced would require the same security as changing access to a bank account and a lot of problems related to stealing phone service would be solved. Banks wouldn t need to provide all phone services, just services to customers who want to use it which would be everyone who considers themself to be at risk of fraud. I don t think that this would be a great solution, but I think it s better than anything else that s likely to get used by a sufficient number of people in the near future. What Will Happen This blog post is mostly a thought experiment on ways of improving overall computer security in society. It can be read as advocacy for hardware security tokens. I don t expect anything to be done to improve these issues. I expect that banks will continue with their current security mechanisms (including SMS authentication) and just accepting a certain amount of fraud as the cost of doing business. For large fraud they can try to claw the money back or blame the customer to avoid having to pay. It s not impossible to solve these things, I had a hardware device issued to me by a Dutch bank about 25 years ago but countries like Australia and the US are much more than 25 years behind. I expect most people to regard whatever security they have on their bank account to be sufficient and that they will be happy to use the same for everything else. So we will continue to have things like SMS on a personal phone used to secure important corporate access to data and then people will be shocked when something goes wrong. To make things even more exciting if a criminal takes over the phone number of the sysadmin to access the CEO s email then there may be no-one to call to get the access restored. We can add rampant financial fraud to the list for the AI related world economic crash that s about to happen.

12 October 2026

Maytham Alsudany: There's more to CSS for underlining

I read Ruben Schade's notes on underlining and wanted to add more, as adding a border-bottom and leaving at that seemed incomplete to me.

ModernOf course, you could just use the modern choice. Here, I've shortened what Schade uses into one line of CSS (because I can). As noted, this is a fairly new feature so not every browser supports this.[This interactive/preview is only available on the website.]
.underline-me  
	text-decoration: underline red solid 3px;
 

WorkaroundsSince some browsers don't support text-decoration, here are the alternatives I could think of.

border-bottomThe workaround Schade describes is using border-bottom, though it has a gap between the text in the line.[This interactive/preview is only available on the website.]
I am <span class="underline-me">underlining this yap</span> within the sentence.
.underline-me  
	border-bottom: red solid 3px;
 

::afterProbably the better way is to create an ::after element, which gets very close, but displays above the text (covering the letters 'g' and 'y').[This interactive/preview is only available on the website.]
I am <span class="underline-me">underlining this yap</span> within the sentence.
.underline-me  
	position: relative;
 
.underline-me::after  
	content: '';
	position: absolute;
	width: 100%;
	height: 3px;
	background-color: red;
	left: 0;
	bottom: 2px;
 

::after in a containerIf you use a container (in this case, two nested <span>s instead of just one), then you can get very close with the underline displaying below the text.[This interactive/preview is only available on the website.]
I am
<span class="underline-me-ctn">
	<span class="underline-me">underlining this yap</span>
</span>
within the sentence.
.underline-me-ctn  
	position: relative;
 
.underline-me  
	z-index: 10;
	position: relative;
 
.underline-me-ctn::after  
	content: '';
	position: absolute;
	width: 100%;
	height: 3px;
	background-color: red;
	left: 0;
	bottom: 2px;
 

::after in a container with text strokeAnd now if you add a stroke to the text via -webkit-text-stroke, you're pretty much there, though this may not be feasible in some situations (e.g. gradient or image background behind the text). Support for -webkit-text-stroke is not that much better than text-decoration though, so make of that what you will.[This interactive/preview is only available on the website.]
I am
<span class="underline-me-ctn">
	<span class="underline-me-outline">underlining this yap</span>
	<span class="underline-me">underlining this yap</span>
</span>
within the sentence.
.underline-me-ctn  
	position: relative;
 
.underline-me-outline  
	z-index: 5;
	position: absolute;
	left: 0;
	color: var(--background);
	-webkit-text-stroke: 0.3em var(--background);
 
.underline-me  
	z-index: 10;
	position: relative;
 
.underline-me-ctn::after  
	content: '';
	position: absolute;
	width: 100%;
	height: 3px;
	background-color: red;
	left: 0;
	bottom: 2px;
 

9 October 2026

Russell Coker: Don t Anthromorphise LLMs

Greg KH gave a great lecture for Kernel Recipies 2026 about the use of LLMs to find and fix bugs in kernel code [1]. I recommend that everyone watch this and I also think it s important to note that hardly any of the lecture is really specific to kernel coding, it s just that the Linux kernel is one of the highest profile large free software projects so it gets more attention than most projects in both good and bad ways. One side note that Greg made at 20:30 is about the natural tendency to anthromorphise the entity sending bug reports, I think this deserves much wider appreciation. For the case of patches to source code the human sending the patch will have dedicated some time and effort to writing it, if it s their first patch then they will have probably checked it a lot and maybe sought advice from people they regard as skilled. If they have a history of sending patches for the project they will probably do fewer checks but the quality of their work would be higher. In every case there s some minimum level of quality that you can expect from a human who has gone to the effort of finding a bug and writing code to try and fix it. This doesn t mean that all code written by humans is good, I have written code that s objectively bad on many occasions and I have also written code that s good for my scenario but bad for others. For example the first patch I sent to the Linux kernel made all possible configuration settings of an ISA NE2000 network card be detected by the kernel (a clear benefit when using hardware I had available) but was rejected by Linus because it would break some ISA SCSI cards. So while being unsuitable for inclusion in the main kernel source tree the patch wasn t bad for everyone and the change was clear and easy to check. I had of course checked the code many times before submitting it because I didn t want to waste Linus time on rubbish code. When you receive something produced by a human you will consider that the work was done by someone who spent some effort on it and did it for a reason. It may be misguided or even hostile in some rare cases but it is definitely worth some consideration. If you think of the output of LLMs in the same way you will give them much more consideration than they deserve. I think that the output of a LLM should not be given any more consideration than the first hit from a web search engine, it might be good but it might also be ridiculously wrong. I think in many ways LLM output should be treated with less trust than the first result from a web search because LLMs are designed to be convincing as an answer to your question unlike the cases where a web page has the wrong answer and it s more obviously wrong. This is going to become more of an issue as LLMs give responses that are more human-like. Early LLMs would refuse to advise on crimes. Currently ChatGPT will deflect for example when asking about advice for writing a crime novel it recommends to have the action of finding an employee to bribe happen outside the plot and concentrate on interactions within the group. One recent model I tried gave a human style conversation about how it felt uncomfortable about discussing such things in a similar manner to a law abiding person being coerced into helping with a criminal plan. I expect that the attempts to appear human will increase and that this will become more of a problem. Possibly to the extent that we need to use something like the GPG web of trust to determine who is human.

6 October 2026

Russell Coker: A Power Case for a FOSS Phone

The Problem I want to use a FOSS phone running Debian as my daily driver and not use a non-free OS on my phone. GrapheneOS [1] is a FOSS rebuild of Android, it s a great project and I commend them for what they are doing. But I want a system where I have access to all the bits and where I can ssh in to it and manage it in the same way as all other Linux systems. Android is free software but it s a closed design and the phones are expected to be appliances not full peers on the network. The Android native terminal emulator (AKA Linux development environment) is a nice feature, a VM with a default of 1GB of RAM but it s still separate from the main OS. KDE Connect [2] is a system for KDE talking to phones, it is a great project and allows convenient interaction between a Linux PC and a phone. But in addition to that I d like the option to ssh to my phone to send an SMS or have one sent from a cron job. I blogged about using the basic functions of Kdeconnect from the command-line [3]. I have had ongoing issues with the battery not lasting long enough on the PinePhonePro (PPP) and the Librem 5 (L5) which makes them unusable for my purposes. For a phone running Droidian I can have an open ssh session (with keep-alive packets) running overnight on Wifi without any problems while for the PPP or L5 an hour of reading an ebook (the least demanding use of a phone) will use most of the battery. I sent my FuriPhone back for warranty repair and it s been almost a month with no follow up, so I need to have another option. The Aim The aim of this post is to develop a rough design for a battery case for either a L5 or a PPP, I have both phones and they are both capable of doing what I want apart from battery life. Also designing a case that basically works for both phones and has two variations of the CAD file for 3D printing is good to allow collaboration with people who use either phone. Protecting the phone from damage when dropped is also a core feature. I investigated commercial options. There are some reports of cases for other phones working, someone reported a PPP working well with a battery case for a Samsung S20 Ultra. The OtterBox uniVERSE Case for Samsung Galaxy XCover Pro is reported to fit the PPP so probably battery cases for the XCover Pro will also work. There are also universal power cases which have spring clips to fit a wide range of phone sizes, but they are much larger than other options and probably increase the risk of damage if the phone is dropped. At this stage I m planning out the rough specs of a case that can be 3D printed to protect a phone while being easy to change the cells. The process of changing cells should be quick, easy, and not risk breaking anything. The hardware required should be affordable ($100AU plus some 3D printing seems reasonable) and should not require significant skills to assemble. After recent experiments with Thinkpad repair I ve determined that I am not good at electronics by today s standards so I plan to avoid anything difficult in that regard. Battery Options There are phone cases with batteries built in for the more common phones. A quick search on AliExpress turned up options for recent Pixel phones. They aren t as common as they used to be as Android phones and iPhones generally have good battery life nowadays. Of course there aren t such options for less common phones like the L5 and PPP. It is cheap and easy to buy a portable battery for charging phones, but that s a separate bulky device and unless the connector is inside a protective case it leaves the phone vulnerable to catastrophic damage if dropped. So can a suitable battery case be designed and 3D printed? Cheap Batteries According to Wikipedia the 18650 LiIon cell is the most commonly used LiIon battery, that is 18mm in diameter and 65mm in length. For a phone case thinner batteries would be more convenient but economies of scale make the 18650 cheap to buy new and commonly available on the second hand market. The current prices on AliExpress (in Australian dollars) are about $8 per cell when buying 10 at a time. Most of the cells on AliExpress don t have wires attached so they can be swapped in a carrier the way AA batteries are used, but the cells are symmetrical (no bump for positive) so the user has to take care of polarity. Chargers are around $22 for a 4 cell charger or $52 for a 12 cell charger. I ve seen prices as low as $1 per cell on the second hand market, I haven t investigated the amount of usable capacity in such cells. Probably the prices for chargers I ve found aren t the best available but they are good enough to start the design. 10 cells and a 4 cell charger is about $100. That s about 130Wh while a 74Wh USB-C battery pack costs about $50. So the price per Wh is OK. I have read about an attempt to do this for the L5 with two of the batteries designed for the L5 in a case attached to it, so you have 3*L5 batteries. It s an interesting approach but those batteries have poor value for money when compared to 18650 ($29US for 4500mAh compared to $8 for 3500mAh) and they also don t ship them outside the US at this time. The 18650 batteries are available everywhere cheaply and have multiple uses. How They Fit According to my measurements the PPP is 76mm wide and the L5 is 73mm wide. That s wide enough for 3*18mm or 4*18mm cells side by side arranged parallel to the long side of the phone or one 65mm long cell going across the phone with the necessary spring and wires. The L5 is about 151mm long and the PPP is about 5mm longer. So that means that for just the cells we could have 2 cells in a row in parallel to the long side of the phone giving a 2*3 or 2*4 array or we could have a row of 8 cells parallel to the short side of the phone. A quick search for controllers for a battery of LiIon cells that outputs USB-PD turned up one of the smaller ones as 40*28mm, here is the AliExpress page [4]. So that means we could have a maximum of about 4 cells and the controller while leaving space for the camera. Looking at other similar items it seems that most of them take a large portion of the 73mm width available and take a bit less than 30mm height. The price range for DC-DC voltage converters ranges from about $3 to $20, the one I linked to is currently $8. The mass of 18650 cells is around 45g so 4 of them would be about 180g before counting the weight of the case and electronics. A L5 weighs 262g and a PPP weighs 220g so 180g of battery will make a significant difference, not an impossible difference but holding a PPP while reading an ebook is already annoying. Maybe the case could be designed to be easier to hold, a loop of wool attached to the top could be used to suspend the phone from one finger while the rest of the hand just keeps it steady. In a default configuration the L5 has a 4500mAh 3.8V battery and the PPP has a 3000mAh 3.8V battery. The 18650 cells have up to 4000mAh with 3500mAh being common. So 4 such cells could multiply the battery life of a PPP by a factor of 5 or a L5 by 4. That would not be enough to last for a whole day without charging so they need to be easy to swap. A 3 cell battery seems like a good option, 135g of batteries so the project overall wouldn t even double the weight of the phone with battery case. As it doesn t seem possible to put in enough cells to last a day of reasonable use (running a web browser, checking email, reading wikipedia, and having some IM systems checking for notifications) there doesn t seem to be a benefit in trying to stuff the maximum number of cells in. Going to 4 or 5 cells doesn t provide much benefit over 3 while increasing the weight and making the design more difficult. The modules for DC Voltage conversion often have configuration for the number of cells to be used so it wouldn t be difficult to print a new case and reconfigure the Voltage converter. Design A case needs to provide protection as well as hold the batteries. The lack of cases for the L5 and PPP is a problem even without the extra weight of a battery pack increasing the kinetic energy of falling phone. Ideally a drop from 1M on to concrete would not cause any damage to the phone, destruction of the case is OK as it would be 3D printed and can be rebuilt easily. I think that a case where the phone slides in from the top would be best. To change cells one would slide the phone out and the cells would be immediately accessible with no divider between the phone and the cells. Sliding the phone in would hold the cells against the back of the case and as there is a gap of about 3mm on each side of the PPP between the display area and the edge of the phone there s plenty of space for the case to wrap around it at the sides and bottom. At the top there would have to be some sort of plastic clip. The PPP only has buttons on the top right so the case can be snug on all sides apart from the top right. The L5 has switches at the top left and buttons at the top right so whatever clips on to the top would really need some strength to cover the fall flat on face case. The USB C plug would need to be held in place well enough to allow the phone to easily slide on to it but also be weak enough that it would move if a drop forced the phone out of the case. Thingiverse has a design for a L5 case [5] (with several derivatives) and a design for a PPP case [6]. Those cases could be used as starting points and then changed to store batteries and the voltage change circuit board. I have just learned that it s possible to use rubberised material in a 3D printer which is apparently what those designs are for. If a case was printed with rubberised material the top could just stick in place after being pushed in. Potential for Excessive Excitement Having an exploding device in your pocket would be the exciting in a bad way. My initial idea was to have multiple 18650 cells in series. The problem is that if the cells have different capacity levels then one can run out before the rest and get to a deep discharge state which at a minimum causes damage to the cell. One way of minimising risk is to have only a single cell in use at one time, here is a converter for a single cell to 5V [7]. It is possible to run multiple cells in parallel by simply wiring them together, but it s recommended to make sure that the voltage difference between cells is less than 0.2V to avoid high current when connecting. The arrangement of cells is often referred to as nS or nP to refer to n cells in series or parallel. Aliexpress has a range of 1S to 6S devices. Some of the 2S devices have a connector for the mid point which permits separate voltage monitoring for both cells but there doesn t seem to be anything equivalent for 3S or more. They also don t appear to have anything to specifically manage 2P or 3P arrangements at the moment (they had a 3P board on sale when I looked into this last year). Conclusion This is a bigger project than I expected when I first started investigating it. I ve played with FreeCAD which seems OK but will take a lot of learning and practice. Then I need to do more investigation into the DC-DC converters to find one that works well and is unlikely to start a fire. I will look into other phone options as well and keep chasing Furilabs people about my phone replacement.

15 September 2026

Reproducible Builds: Supporter spotlight: Jochen Sprickerhof on ... Reproducible Builds!

The Reproducible Builds project relies on several projects, supporters and sponsors for financial support, but they are also valued as ambassadors who spread the word about our project and the work that we do. This is the ninth installment in a series featuring the projects, companies and individuals who support the Reproducible Builds project. We started this series by featuring the Civil Infrastructure Platform project, and followed this up with a post about the Ford Foundation as well as recent ones about ARDC, the Google Open Source Security Team (GOSST), Bootstrappable Builds, the F-Droid project, David A. Wheeler, Simon Butler and Kees Cook. Today, however, we will be talking with Jochen Sprickerhof, one of the newer members of the Reproducible Builds project core team.

Vagrant Cascadian: Could you tell me a bit about yourself? What sort of things do you work on? Jochen Sprickerhof: I am a freelance programmer working on Open Source. Mainly doing Debian, F-Droid and some smaller software projects. In general I made it a habit to look into every software I use and try to fix bugs or add features I need. In Debian, I maintain about 180 packages with topics covering home banking, build systems and robotics. Most of my time, I currently work on reproduce.debian.net, where we try to bit-for-bit reproduce the packages distributed by Debian.
Vagrant: Could you describe the path that lead you to working on reproducible builds? Jochen: I started my Debian journey as a teenager, converting my school to Debian and serving as its system administrator for 13 years. After studying Applied System Science, I joined the university s robotics labs, where I worked on the Robot Operating System (ROS) and the Point Cloud Library (PCL). In the end, I enjoyed programming more than writing papers, so I eventually left academia for a robotics startup. Some years ago, I realized that the open source work I was doing in my spare time was actually the work I cared most about. Nowadays I am really grateful that I can spend my days working on things I find important and have lots of fun with.
Vagrant: What projects did you recently make big progress on? Jochen: A recent example is metasnap.debian.net. It is a meta archive of snapshot.debian.org which is itself archive of all packages in Debian. But let me explain it the other way round: with reproduce.debian.net, we try to reproduce the packages as they are distributed by the Debian archive. For that, we need the same build environment (compilers, libraries, build tools, etc) that was used by Debian back when the original package was compiled. Luckily, snapshot.debian.org has all those packages, but they are not easily accessible via apt, Debian s package manager. So, metasnap provides a mapping from a package name and version pair to the APT repo on snapshot.debian.org needed to download it from. It was created by josch some time ago, and it s awesome work. But when we tried to reproduce more and more packages on reproduce.debian.net, we found that some were missing packages from the build environment even though they where visible on snapshot.debian.org. We found that metasnap excluded some archive areas because they where not expected to be needed. Reimporting all the data took more than two months and surfaced a couple more flaws. With this fixed, we were able to build more packages, only to find out that metasnap also needs better support for version numbers. Luckily we were able to rewrite the data in a day instead of starting the import again.
Vagrant: You have been working on infrastructure to support reproducible builds for a while. Has recent adoption of reproduce.debian.net into the Debian release tooling changed the focus of your work? Jochen: Quite a bit. When we started reproduce.debian.net in 2024, only around 33% of the packages could be reproduced successfully. Today we are above 98%. Most were not bugs in the packages themselves but in the infrastructure. Similar to the metasnap issue I reference above, packages just needed a rebuild because something else, like the toolchain, was fixed in the meantime. In May, people from the Debian release team and the Reproducible Builds project sat together and decided that the overall state is good enough, and now packages that regress on reproducibility are blocked from entering the next Debian release. But that does not mean all the work is on the shoulders of Debian package maintainers. Since then I have been constantly looking at the migration tooling to spot regressions and provide fixes. Furthermore, a couple of maintainers reached out to us for help and I hope more will do so in future.
Vagrant: What is one small thing you (or others) have not yet gotten to that you would really like to see? Jochen: The central tool to reproduce Debian packages is debrebuild, also written by josch. Currently it has two ways to retrieve the build dependencies of a package. Either it uses metasnap.debian.net (as explained above), or it can access the Debian unstable APT repository directly. This allows to test packages locally before everything is indexed on metasnap by compiling against Debian unstable. But actually there are many other APT repositories to query, like Debian stable or even derivatives. Adding support for an optional list of APT repositories in debrebuild would be great. That would also be a big step to support reproducing other Debian based distributions.
Vagrant: and one big thing? Jochen: It would be great to integrate metasnap.debian.net into snapshot.debian.org. There is some discussion on it already in Debian bug #650783.
Vagrant: What are the tools you use the most? Jochen: According to my fish shell history:
$ history   cut -d' ' -f1   sort   uniq -c   sort -nr   head -10
  36199 git
  20941 vi
  12271 rm
   8599 cd
   7917 ls
   6407 apt
   5631 grep
   4249 mv
   3655 dpkg
   2873 cp

Vagrant: So, is the fish shell reproducible? I remember it did not used to be Jochen: You can check for yourself it was last time I checked. But looking through the other commands, neovim sadly is not. I hope we can fix that in future.
Vagrant: Oh, that s a nice URL to check for reproducible package you can just pass the source package name to check the current results? Jochen: Yes. Another one is udd.debian.org/reproducibility/, where you can list all packages of a Debian maintainer. It also lists source reproducibility and has nice filters as well.
Vagrant: What tools do you use specifically working on reproducible builds? Jochen: I don t have statistics for that, but I would say sbuild to build the package, debrebuild to reproduce it, and diffoscope to analyze the differences. Obviously I also need run apt source <package> or use git-buildpackage to get the sources and all the tools I mentioned above.
Vagrant: So how many packages are left to build reproducibly, and once those are finished, what is next? Jochen: Right now, reproduce.debian.net shows over 98% reproducibility, though there are still over 650 package left and some will probably need a lot of work. But actually I think making packages reproducible is just the first step. For me, this is a project to build confidence in the system. To reproduce a package we have two parts: the source of the package and the build environment. Fixing the packages means gaining confidence in the first part but we still rely on the individual build environments for each package as we need to use the same compiler that was used when the package was build initially. Because of this, we have to keep around every historical version of all toolchain packages. I really would like to remove this extra archive, which means we would have to rebuild all of Debian around release time. I am dreaming of a Debian release where you could bit-for-bit reproduce every package just from the released versions. Due to how Debian works, however, this is not a trivial rebuild and it would need some work on the infrastructure. By the way, initially there was a third component to pay attention to: any connection to the outside world during the build. Luckily we fixed the Debian build daemons to not allow network connections during the build some time ago.
Vagrant: Thanks for all that work, and taking the time to tell us a bit about yourself! Jochen: Thanks a lot for the interview!


For more information about the Reproducible Builds project, please see our website at reproducible-builds.org. If you are interested in ensuring the ongoing security of the software that underpins our civilisation and wish to sponsor the Reproducible Builds project, please reach out to the project by emailing contact@reproducible-builds.org.

10 September 2026

Matthias Klumpp: JPEG-XL as default in AppStream, and better media processing

Two weeks ago, I released AppStream 1.2.0. This release contains a lot of great changes, but one of the most important ones concerns how media are being handled, and AppStream s default image export format.

AppStream is a Freedesktop metadata standard to describe software components. That can be anything from system services over fonts to console and graphical applications. AppStream metadata is supposed to give users enough information to decide whether they want to install a piece of software, to represent that piece of software, and to give the operating system enough information to decide whether a software component should be installed automatically and (to some extent) what capabilities and relations it has, to provide the user with sensible options.

Especially for the first two goals, and especially for GUI applications, AppStream supports icons and screenshots, which are used to showcase applications. Today, AppStream is used by all kinds of services, from Linux distributions over firmware updates to Flatpak and desktops directly. AppStream s original design however comes from the perspective of Linux distributions in 2011, where you may want to browse the software catalog offline, without delay, and without pinging an external server (which could be a privacy concern).

Therefore, a common way to deploy an AppStream-enabled software repository is to ship all icons of all applications in the repository to the user as part of the repository metadata download. AppStream does support remote icon downloads nowadays, and for a while I thought that this would become the default eventually. However, especially in today s world, having a bandwidth-saving, instantly responsive, privacy-protecting application browsing experience seems more important that ever.

PNG images are great!

The only format that AppStream supports for icons and screenshots (which are downloaded on-demand from your distributor s CDN) has always been exclusively PNG. PNG images are perfect for icons, because they compress well (especially for common icon shapes), are fast and simple to load, and can be loaded anywhere, by any toolkit or webbrowser. They also ensure we deliver faithful screenshot images, even though we may have scaled or re-rendered them. Still though, PNG images are less great for screenshots, as they are not very efficient, which puts strain on any CDN that has to deliver them, as well as on people s internet connections when browsing screenshots. Having smaller thumbnails alleviates that problem a little, but does not fully solve it.

But even for icons, PNG could be improved upon: In many cases, icons are re-downloaded with the repository metadata again and again, so having a large icon tarball adds up to the data transferred during metadata refreshes. AppStream also now supports large 128x128px icons, which nobody in 2012 expected we would need, adding even more data that will be re-downloaded. Saving some space here translates directly to lower bandwidth costs as well as faster downloads for users.

To improve PNG file sizes, the AppStream Compose library, which handles all image processing and metadata catalog composition, was running optipng on all generated PNG images. That does create smaller PNG images, but they were still relatively large compared to other image formats.

For a long time though, there was no alternative to PNG images for icons: There was no lossless image compression format that could give us the same quality as PNG images and that was also widely supported.

JPEG-XL vs PNG in AppStream

Since 2021 we have JPEG-XL (JXL), which offers a true lossless mode with often better compression than PNG. The issue was that JPEG-XL wasn t widely supported. Then, in 2025, the PDF Association selected JPEG-XL as the preferred image format for HDR images in PDFs, and now we are finally getting browser support and more ubiquitous availability of the format (you can try it right now in Firefox!).

For screenshots, using JXL s lossy mode, it has obvious and extreme size advantages over PNG, so supporting JXL or WebP for screenshot images was an obvious choice. If JXL would support the lossless case very well as well though, we could serve many use cases with the same exported image format, which is very attractive to me.

So, the obvious next question was whether it was worth the pain of switching the icon format, so I did some measurements on real icons. For that I used the AppStream component icon pool that Debian Unstable ships, which is almost 5000 application icons of various sizes, and converted them to PNG:

Icon sizeIconsPNG totalJXL totalPool savedPNG avgJXL avgMedian savedMean saved Worst BestLarger as JXL
48 48 1544 3.7 MiB 3.0 MiB 17.8%2.4 KiB2.0 KiB 17.9% 16.7%-118.7%60.0% 206
64 64 2018 7.0 MiB 5.8 MiB 17.8%3.6 KiB2.9 KiB 18.0% 15.8%-112.7%70.0% 279
128 128 1411 11.2 MiB 8.7 MiB 22.0%8.1 KiB6.3 KiB 20.1% 17.5% -89.7%61.0% 209
TOTAL 4973 21.9 MiB 17.5 MiB 19.9%4.5 KiB3.6 KiB 18.6% 16.6%-118.7%70.0% 694
PNG images saved with libpng at effort=4, compression=9, then optimized using optipng -o2, JXL images encoded using vips jxlsave lossless=1 effort=7 strip=1 via VIPS/libjxl.

As the table shows, using lossless JXL images over size-optimized PNG images (using optipng s default settings) provides a roughly 20% gain. This does not look like much, until you consider how often these files are downloaded: A 20% file size reduction may only save 1-2 MiB of disk space, but if they are downloaded over and over again by many clients, it will save a lot of bandwidth.

Interesting JXL encoding findings

As a sidequest, I was curious why some images were larger than their PNG counterparts when encoded with JXL, and what the ones that were significantly smaller were.

In short, the biggest size reductions for JXL existed on images that were already small as PNG, and contained large, flat color surfaces with hard edges and simple shapes. They were not very interesting, and much of JXL s wins come from accumulating smaller gains across all files, which compound the bigger icons get (especially at 128x128px, where JXL truly shines).

The events were JXL loses to PNG are more interesting: For example, it does quite poorly with pixel-art images that have a lot of repeating patterns. Those are encoded well by PNG, but less efficiently by JXL. Take for example Vonsh:

Icon of Vonsh, an SDL-based snake game, which PNG compresses better than JXL

My guess is that while PNG can exploit the repeating pixel patterns for compression, JXL s predicts surrounding pixels from its neighbours, which fails too often and makes it pay almost full entropy per pixel. In this single rare case, the PNG is at 5.4 KiB, while the JXL is almost 8 KiB in size.

Other cases I looked at were arguably buggy input data, where color channels were hidden under the alpha channel of the input image. PNG could probably again exploit repeats, while we were forcing JXL to encode pixels that were invisible in the final image. This is arguably a problem with the original input data. Currently, AppStream does not make any changes to icons at all, but in future we might add a filter that removes invisible colors from images to solve this pathological case (it was only two icons out of 5000 though, so it is not a high priority).

The third case I found where JXL loses to PNG were icons with checkerboard-like patterns:

Icon of x3270, an IBM 3270 Terminal Emulator

For those, PNG can likely again exploit the repeating patterns, while a checkerboard layout is pretty bad for left/top predictors like JXL s. However, in this case the size difference (and loss for JXL) is only 450 bytes, so even though JXL loses to PNG, it does so not by much.

JXL in AppStream

Given these findings, JPEG-XL is the default image format starting with AppStream 1.2.0. AppStream Compose will encode all images losslessly as JXL, while screenshots are encoded in lossy mode at Q=90 effort=7. Since the optipng step does not happen for JXL images, this comes at no speed penalty and is even a bit faster on modern x86_64 CPUs (where libjxl can use SIMD). PNG is still available, and Compose can be told to switch between the two formats.

Upsides of JXL in AppStream right now

If you use JXL in Compose or the recent release of appstream-generator, you will get much smaller images and, for screenshots, will benefit from other JPEG-XL features such as progressive decoding, providing a far nicer user experience. libAppStream has supported JXL icons since version 1.1.3, so your clients will need that version or a newer one, and all software centers will have to support loading JXL images (which all of them do, provided the right plugins are installed).

Downsides of switching to JXL too quickly

JXL is a very new format, so web browsers might not yet display it if you are serving webpages. Your clients may also have bugs in processing JXL images, as the format is still new . For example, switching on JXL in Debian sent KDE Discover into an infinite loop on startup while trying to load the icons (an issue which has been fixed, but clients will need that patch first before JXL is switched on).

This currently makes JXL enablement only possible when you know that your clients can support it. This is the case for me in Debian Unstable and Debian 14, which are using JXL images for a few weeks now, but not for any older releases. Platforms like Flatpak have it even harder, because they do know even less about their clients. So, even though it has big advantages, you may want to hold off on using JXL right away, and force PNG by setting the ImageFormat key to png in appstream-generator s configuration, or passing --image-format=png to appstreamcli compose.

It is also worth mentioning that JPEG-XL is much, much slower on systems that do not have SIMD instructions or for which the libjxl/jxl-rs library does not have them (such as apparently riscv64 right now). If this is a concern, you might not want to switch to JXL right away.

Media pipeline improvements

Besides the JXL default change, AppStream 1.2.0 also comes with a complete overhaul of its media processing pipeline. While libappstream, AppStream s main library, does not do any media processing and comes with very minimal dependencies to be embedded in client applications and used on servers, the same can not be said about libappstream-compose, AppStream s library to build metadata generating applications (the server-side part, usually).

The compose library has to render fonts into font specimen cards, inspect translation files, render SVG images, decode all kinds of raster images, inspect video files, etc. Especially the fonts, and the fact that fonts can appear in SVG images, has caused issues in the past, as libappstream-compose is a heavily threaded library and most font libraries can only work from a single thread. This forced the library to essentially go into single-thread mode anytime anything that could touch a font was being processed.

AppStream also originally was created for a safe world where applications were vetted by the distributors before their metadata was processed. This is increasingly not the case, so it made sense to put at least a few guardrails on the most complex part of the pipeline: The media processing. As part of the change, media processing was split out into a separate worker process. This solved two problems at once: Font handling was isolated in a single-threaded binary if we wanted to handle fonts in parallel, we could simply spawn more workers. And, being in a separate process, the media processing could now be sandboxed.

As part of the multiprocess changes, Compose also switched from using GdkPixbuf to VIPS for image processing. The latter allows for much more fine-grained control over the image output and encoding, and comes with a lot of well-maintained filters and operations, which made it possible to eliminate a fair chunk of AppStream s hand-rolled image processing operations. As part of this transition, we unfortunately lost the ability to read XPM images, which dropped about 20-30 applications from the pool at Debian. But in the name of security, this is a sensible choice, especially since most XPM icons were very small and low-resolution, and applications using them could benefit from adding a high-quality PNG icon anyway. With VIPS, we also now restrict the amount of image formats we can load to a sensible set, so extremely niche or unexpected formats will be outright rejected (this includes sane-but-unusual formats for screenshots and icons, such as TIFF images).

The Compose library, with all of these changes, will now just request high-level operations (e.g. render a font card for this font to a JXL image ) from the worker, and provide it with input data in sealed memfds and output locations as FDs as well. On Linux systems, the worker will use Landlock if available, to block all write access to the filesystem, deny device access and deny TCP and UDP as well. The sandbox can certainly be tightened a fair bit in future, but this was a good and safe start to gain some experience with it without having things break too easily, given the many places Compose is used in (also, Landlock s API is surprisingly nice to use, so it was easier than I thought to add in this early version).

With all of these changes, the libappstream-compose library is now also officially marked API-stable, so you should be able to rely on it in future to build new things (its API has barely changed in the past, and now with the new media API and defaults change in place, it was time to declare it stable).

I want to see / try this!

Currently, the easiest way to have a look at the new data is to check out Debian Unstable. If you have a JXL-enabled browser, you can also see the icons in AppStream Generator s HTML pages for Debian Sid. If you are using appstream-generator for your distribution, you will also get much more pleasant statistics and HTML pages, as well as fully deterministic media output and a whole bunch of security updates, so, update to its recent 1.0 release.

Please keep in mind that if you switch to JXL, the client tools receiving the image data have to support it. Support varies depending on the Linux distribution, so, test it first and switch the default back to PNG in case you encounter any issues.

What s next?

With so many features and changes landed, the next changes in AppStream will focus on improving what already exists and fixing any issues (there will be more blogposts about the other features 1.2.x delivers!). Testing with the entire Debian archive as data source makes me fairly confident though that there will not be many problems. In the longer term, tightening the media processing sandbox will also be something we might want to do, e.g. by hiding parts of the filesystem tree or filtering syscalls.

For JPEG-XL, one obvious question is Will you add support for it to the Freedesktop icon-theme specification as supported format alongside PNG, SVG(Z), and XPM? . For on-disk icon repositories, JXL s space-savings are less compelling, and it being HDR-capable is also not necessarily a killer feature (PNG can go a long way!). However, JPEG-XL s ability to immediately decode larger images at reduced resolution without resampling could legitimately be very powerful here, as applications could ship a single large image and quickly decode it at 1/2, 1/4 or 1/8 the size for different purposes in their UI. JPEG-XL also supports spot-color extra channels, which applications could use as masks to recolor raster icons at render time. This could be incredibly nice to color symbolic icons on-the-fly without any SVG and CSS. JXL also provides richer metadata, which might be neat for (license/author) documentation. So, the answer here is: Maybe it makes sense to allow another format, but this will have to be discussed first, as it would force JXL into every toolkit and desktop, which is a much bigger ask than supporting it only in AppStream.

As always, let me know what you think and please report any issues or bugs directly against AppStream or AppStream Generator if you encounter problems that are with the tools, and not with a project s metadata.

Next.