Search Results: "ean"

23 November 2026

C.J. Collier: Why Perl Lost the Cloud Era, and How Native gRPC, Protobuf, and GenAI SDKs Can Bring It Back

Disclaimer: The opinions stated here are my own, not those of my employer.

Every so often, someone asks why Perl once the undisputed duct tape of the Internet faded from mainstream greenfield software development. Was there a single cultural flashpoint that canceled Perl? Was it the fifteen-year wait for Perl 6? Or did Damian Conway s Perl Best Practices, Perl::Critic, and CPAN s Kwalitee metrics simply arrive too late?

Having spent time recently building a modern Protocol Buffers and gRPC cloud client stack for Perl, I ve come to a simple conclusion: languages don t fade solely because of syntax debates. They decline when the friction of talking to the current generation of infrastructure outweighs the language s natural strengths.

Here is a look back at why Perl lost momentum during the 2000s enterprise shift and why the GenAI and gRPC era offers an unexpected opening for a modern Perl resurgence.


1. What Actually Drove Perl s Decline?

Perl wasn t sidelined by a single societal scandal. Rather, several technical, historical, and organizational forces converged between 2000 and 2012:

TIMTOWTDI vs. Readability at Scale

Designed by Larry Wall a linguist by training Perl embraced natural-language expressiveness under the motto There s More Than One Way To Do It (TIMTOWTDI). Context sensitivity, topicalizers ($_), and compact regex idioms made Perl extraordinarily fast for an individual developer or sysadmin to write. Seat a hundred engineers in a shared codebase without shared guardrails, however, and TIMTOWTDI produces divergent dialects.

As software teams scaled in the late 1990s and 2000s, engineering leadership increasingly favored Python s counter-philosophy ( There should be one and preferably only one obvious way to do it ), prioritizing uniform, easily reviewable code over expressive flexibility. Tellingly, the public Google Style Guides repository maintains official prose guides for C++, C#, Go, Java, JavaScript, Python, Shell, and TypeScript while omitting Perl altogether, leaving open-source Google Perl projects to codify standards directly in executable .perlcriticrc and .perltidyrc configurations alongside core perlstyle and Perl Best Practices.

The Perl 6 (Raku) Waiting Game & Ecosystem Shifts

If one historical event hurt Perl s momentum above all else, it was the Perl 6 transition. Announced in 2000 as an ambitious, backward-incompatible redesign, Perl 6 took 15 years to reach a stable specification (ultimately renaming to Raku in 2019 as a distinct sister language). During that 2000 2015 window, much of the industry assumed Perl 5 was in maintenance mode even as Perl 5 underwent a major renaissance between 2007 and 2012 (Modern Perl, Perl 5.10+, Moose, Moo, PSGI/Plack, and cpanminus).

Meanwhile, Perl s traditional strongholds migrated elsewhere: CGI.pm and mod_perl gave way to PHP, Ruby on Rails, and Django; cloud and DevOps tooling (Puppet, Chef, Ansible, Docker, Kubernetes, Terraform) coalesced around Ruby, Python, and Go; and scientific computing shifted from Perl s 1990s bioinformatics dominance to Python s C-extension ecosystem (NumPy, SciPy, Pandas, PyTorch). Even the 2020 debates over a proposed jump to Perl 7 which never came to fruition, ultimately giving way to the Perl Steering Council and steady incremental modernization via use v5.36 and use v5.40 happened long after that 2000s market shift.

Why Perl Best Practices, Perl::Critic, and Kwalitee Didn t Reverse the Trend Alone

Damian Conway s Perl Best Practices (2005), static analysis via Perl::Critic (built on PPI), formatting via Perl::Tidy, and CPAN s Kwalitee metrics (Module::CPANTS::Analyse) solved many of the readability complaints associated with 1990s Perl. Enforce strict Perl::Critic policies and modern conventions, and Perl code becomes remarkably clear and intentional. Yet four structural factors kept those tools from reversing the broader industry trend:

  • Opt-in discipline vs. language defaults: Unlike Python s indentation grammar or Go s gofmt, clean Perl relies on opt-in team toolchain discipline and two Modern Perl teams can still choose different object dialects (blessed hashes, Moose, Moo, or Perl 5.38+ Corinna class blocks).
  • Static analysis limits ( Only perl can parse Perl ): Because BEGIN blocks, prototypes, and symbol-table manipulation make Perl 5 undecidable to parse statically in full generality, PPI excels at lint policies but cannot easily power the deep static type checking and automated million-line AST refactorings that enterprise monorepos rely on.
  • What Kwalitee actually measures: Coined as a tongue-in-cheek pun on Quality ( it looks like quality, it sounds like quality, but it s not quite quality ), Kwalitee measures CPAN distribution hygiene metadata, licenses, POD, use strict, and test suites making CPAN extraordinarily reliable, without addressing application-scale type safety.
  • The 2005 2011 timing gap: By the time Modern Perl matured, major tech companies had already locked in build systems, hermetic toolchains, and RPC code generators for Python and Java, leaving little appetite to fund parallel infrastructure for a second dynamic scripting language.

2. The Real Blocker Today: The Protobuf & gRPC Chasm

If you write Perl 5.36 5.40+ today with native subroutine signatures, try/catch, builtin booleans, Moo or Corinna class blocks, and strict Perl::Critic gates the language itself is clean, fast, and expressive.

The real wall a modern Perl engineer hits isn t syntax. It s infrastructure integration.

Over the past decade, cloud databases and AI services standardized on Protocol Buffers (Proto3 / Edition 2024) and gRPC over HTTP/2, using automated generators like GAPIC to ship official client libraries for Python, Go, Java, TypeScript, C#, Ruby, and PHP. Perl was left off that list. Even major commercial libraries such as the Google Ads API Perl Client Library had to build custom HTTP/1.1 REST/JSON wrappers because Perl lacked an official upb Protobuf runtime and native gRPC stack.

When calling Cloud Spanner or an LLM requires hand-rolling OAuth2 token flows, REST wrappers, and JSON payload builders for every service, Perl loses its greatest superpower: getting complex things done fast.


3. Closing the Gap: A Modular Cloud & AI Stack for Perl

To test whether modern API ergonomics can revitalize Perl for cloud and AI engineering, I ve been building an open-source modular stack (published on CPAN and GitHub) that brings first-class Protocol Buffers, gRPC, DBI drivers, and automated client generation to Perl:

Architecture diagram of the modular Perl Cloud, gRPC, and GenAI client stackFigure 1: Open-source Protocol Buffers, gRPC, and automated client-generation stack for Perl.

With this stack in place, querying Cloud Spanner over native gRPC in Perl requires zero hand-rolled REST boilerplate:

use strict;
use warnings;
use Google::Cloud::Spanner::V1;
use Google::Auth;
# 1. Initialize Application Default Credentials (ADC)
my $auth = Google::Auth->default();
# 2. Initialize Spanner Client over gRPC transport
my $spanner = Google::Cloud::Spanner::V1->new(
    credentials => $auth,
);
# 3. Execute SQL Query
my $result = $spanner->execute_sql(
    database => 'projects/my-proj/instances/my-inst/databases/my-db',
    sql      => 'SELECT 1 AS alive',
);

And calling Gemini via Google::Ai::Generativelanguage::V1 with automatic nested hashref-to-Protobuf coercion feels just as ergonomic as Python or Go:

use strict;
use warnings;
use Google::Ai::Generativelanguage::V1;
use Google::Auth;
my $gemini = Google::Ai::Generativelanguage::V1->new(
    credentials => Google::Auth->default(),
);
my $response = $gemini->generate_content(
    model    => 'models/gemini-2.5-pro',
    contents => [
         
            role  => 'user',
            parts => [   text => 'Summarize this stack trace in three bullets.'   ],
         ,
    ],
);

4. What This Means for Debian Developers and Systems Administrators

Nowhere is this gap and the opportunity to close it more tangible than on Debian.

While greenfield web startups may have moved on from Perl, Debian remains one of the largest, healthiest Modern Perl ecosystems on the planet. Core project tooling dpkg-dev (Dpkg::*), debhelper, lintian, devscripts (uscan, dch, debuild), debconf, and po4a is written in Perl, backed by more than 4,000 lib*-perl packages maintained by the Debian Perl Group (pkg-perl). And Debian 13 (trixie) ships Perl v5.40.1 right in base, giving every Debian machine native subroutine signatures, lexical try/catch, and builtin booleans out of the box.

Yet until now, a Debian developer or systems administrator who wanted to interface with Google Cloud from an existing Perl tool had to either install the multi-hundred-megabyte Python-bundled google-cloud-cli (gcloud / bq) just to shell out and scrape stdout, or rewrite working Perl automation into another language.

Having a native Perl gRPC, Protobuf, and Auth stack and pairing it with native Debian packaging changes day-to-day life on Debian in four concrete ways:

1. Keyless IAM Auth on Debian Cloud VMs

When running official Debian Cloud images on Compute Engine, GKE (with Workload Identity), or Cloud Run, Google::Auth->default() speaks directly to the local GCE metadata server (metadata.google.internal) to fetch and cache short-lived OAuth2 tokens for the attached IAM service account. Sysadmins no longer need to deploy long-lived service-account JSON keys into /etc/ or shell out to gcloud auth print-access-token inside cron jobs and systemd units.

2. Moving Beyond local::lib (and venv) to Native pkg-perl Packages

Right now, before these distributions land in the Debian archive, installing them cleanly from CPAN without polluting /usr requires local::lib (e.g., cpanm --local-lib=~/perl5) which is the exact Perl counterpart to maintaining an isolated Python venv on Debian 12 (bookworm) and Debian 13 (trixie) under PEP 668 (EXTERNALLY-MANAGED). Even under local::lib, keeping cloud RPC calls in-process avoids pulling in the ~500 MB google-cloud-cli bundle or splitting an existing Perl daemon across two runtimes.

The real goal on Debian, however, is eliminating per-user overlay trees altogether via native .deb packages maintained with the Debian Perl Group (pkg-perl) so administrators can install libgoogle-auth-perl, libgoogle-grpc-perl, and service clients straight from apt with dpkg verification, sbuild reproducibility, and autopkgtest-pkg-perl coverage.

3. Alignment with Debian s Packaged Libraries & Policy

Most of the runtime and build prerequisites already ship in Debian main (verified on trixie), making native packaging straightforward:

  • libssl-dev backs Google::Auth s XS crypto bindings, and libnghttp2-dev provides the shared system C library for Google::gRPC s C/XS HTTP/2 engine while libprotocol-http2-perl (already in Debian main) powers the 100% pure-Perl HTTP/2 fallback.
  • libmoo-perl, libtype-tiny-perl, libfuture-perl, liblog-any-perl, libperl-critic-perl, and perltidy are all available via apt today.
  • Draft placeholder before publishing: Add links to the WNPP ITP bugs and Salsa / pkg-perl packaging repositories (including coordinating upb packaging details under Debian Policy 4.13 for Protobuf).

4. Practical Workflows for DDs and Sysadmins

On a Debian 13 (trixie) host running Perl v5.40, streaming structured fleet telemetry to BigQuery or triaging failed sbuild / autopkgtest logs with Gemini fits naturally into idiomatic modern Perl using native v5.40 signatures and try/catch without a single shell-out:

#!/usr/bin/perl
use v5.40;
use Google::Auth;
use Google::Cloud::Bigquery::V2;
use Sys::Hostname qw(hostname);
sub record_package_audit ($pkg, $version, $status)  
    my $bq = Google::Cloud::Bigquery::V2->new(
        credentials => Google::Auth->default(), # GCE metadata server / ADC
    );
    try  
        $bq->insert_all(
            project_id => 'my-debian-fleet',
            dataset_id => 'ops_telemetry',
            table_id   => 'dpkg_audits',
            rows       => [
                 
                    json =>  
                        host    => hostname(),
                        package => $pkg,
                        version => $version,
                        status  => $status,
                     ,
                 ,
            ],
        );
     
    catch ($err)  
        warn "BigQuery telemetry insert failed: $errn";
     
 

Whether it is archiving buildd and QA metrics into BigQuery, storing distributed coordination state in Cloud Spanner, or summarizing 10,000-line FTBFS ( Fails To Build From Source ) logs via Google::Ai::Generativelanguage::V1, Debian maintainers and sysadmins can keep their automation in a single, auditable, dpkg-managed language rather than splitting glue code across Perl, bash, jq, and Python virtualenvs.


5. Why the GenAI Era Plays to Perl s Strengths and the Headwinds Ahead

In classical machine learning, Python s lead was anchored by in-process C/C++ tensor libraries (NumPy, PyTorch). In the LLM and AI Agent era, however, the heavy matrix math happens remotely behind an RPC endpoint. What happens on the client side?

  • Ingesting gigabytes of messy, compressed distributed-system event logs and diagnostic traces.
  • Running high-speed regular expressions and text distillation pipelines.
  • Validating structured outputs and coercing hashrefs into strict request schemas via Type::Tiny.
  • Orchestrating Unix CLI tools, SQL queries, and concurrent gRPC calls.

That is Perl s historic wheelhouse. Just as importantly, thousands of enterprises and veteran SREs still maintain battle-tested brownfield Perl systems; drop-in CPAN clients for Spanner, BigQuery, and Gemini let teams modernize those systems in place rather than forcing a costly rewrite into Python or Go simply to call a gRPC API.

Two realistic headwinds remain:

  1. The AI code-generation feedback loop: Modern LLM coding assistants are trained overwhelmingly on recent Python, TypeScript, Go, and Rust code, and can default to dated 2000s Perl idioms if left unguided. Embedding automated 00_critic.t, 00_tidy.t, and 00_pod.t author tests backed by concrete .perlcriticrc and .perltidyrc rulesets directly into generated Module::Starter::Protobuf skeletons turns out to be an ideal counterweight, acting as an automated guardrail that keeps AI-assisted Perl clean and idiomatic.
  2. The education and hiring pipeline: Universities and bootcamps standardized on Python and JavaScript over the past 15 years, so greenfield staffing decisions will continue to favor larger hiring pools.

Will ergonomic gRPC and GenAI SDKs make universities teach Perl 101 again? Unlikely. Will they make Perl a high-leverage powerhouse again for engineers and organizations who value its text-processing and Unix orchestration strengths? Without question because in an API-driven world, a language is only as alive as the services it can talk to natively.

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[2] 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

Dirk Eddelbuettel: RcppArmadillo 15.8.0-1 on CRAN: New Upstream

armadillo image Armadillo is a powerful and expressive C++ template library for linear algebra and scientific computing. It aims towards a good balance between speed and ease of use, has a syntax deliberately close to Matlab, and is useful for algorithm development directly in C++, or quick conversion of research code into production environments. RcppArmadillo integrates this library with the R environment and language and is widely used by (currently) 1396 other packages on CRAN, downloaded 53.2 million times (per the partial logs from the cloud mirrors of CRAN), and the CSDA paper (preprint / vignette) by Conrad and myself has been cited 743 times according to Google Scholar. This versions updates to the new 15.8.0 upstream Armadillo release made today. As detailed below, it expands the API a little but also updates a few interfaces including one related to sparse matrix operations. As usual, we ran two full reverse-depdency checks against the nearly 1400 packages. This resulted in one additional small change set upstream (and the second reverse-dependency run) along with a small and focusses extension on our side which Kevin very kindly and promptly offered after I was scratching my chin over what may be needed. The package has also already been updated for Debian, built for r2u and should build shortly in r-universe as well as at CRAN for the different binary releases. We also note that we once again had a perfectly clean CRAN: all incoming tests, including full reverse dependencies, passed without the need for a follow-up email and were 100% automated. Smooth sailing! All changes since the last CRAN release follow.

Changes in RcppArmadillo version 15.8.0-1 (2026-11-22)
  • Upgraded to Armadillo release 15.8.0 (Medium Roast Chill)
    • Added solve_factoriser class for reusing matrix factorisation to solve systems of linear equations
    • Added solve_lse() for solving linear least squares with equality constraints
    • More efficient handling of spones()
    • Reworked detection of aliasing for cubes
  • Added wrap() support for different sparse matrix expressions (Kevin Ushey in #514 fixing #513)

Courtesy of my CRANberries, there is a diffstat report relative to previous release. More detailed information is on the RcppArmadillo page. Questions, comments etc should go to the rcpp-devel mailing list off the Rcpp R-Forge page.

This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at GitHub.

Daniel Baumann: Debian: Modernizing iperf/iperf3 and introducing fireperf

Recently I spend some time on modernizing the packaging of the Internet Protocol bandwidth measuring tools iperf and iperf3 in Debian, as well as uploading fireperf to Debian.
Modernizing iperf

TL;DR: If you want to run your own iperf server,
run sudo apt install -yU iperf-server and you re done

Previously, src:iperf only built iperf. If you wanted to run an iperf server, you had to do it on your own, i.e. there was no systemd service for that. Apart from tidying the Debian package, src:iperf now builds the new iperf-client and iperf-server packages, the latter contains the systemd and ufw integration. iperf-server runs with a dynamic systemd user and systemd service hardening. The iperf package is now a transitional package, that also cleans up any leftovers from before the package split into iperf-client and iperf-server (e.g. when upgrading from trixie to forky). For historical reasons, iperf2 is packaged in debian as iperf, not iperf2. Now the iperf packages have provides for iperf2, iperf2-client, and iperf2-server respectively (so they can be installed by these names too). Updated iperf packages are available in sid, and backports for trixie are available at Debian Fast Forward. It might make sense in the future
  • given that iperf2 and iperf3 are completely different tools with different advantages and disadvantages depending on the use-case
  • therefore the one is not replacing the other (iperf2 in general is the better tool than iperf3, eventhough the common misconception is that iperf3 is supposedly better than iperf2 because the number 3 is greater than the number 2)
to maybe rename iperf to iperf2 to match both upstream naming and also to harmonize the packaging of iperf2 with other distributions.
Modernizing iperf3

TL;DR: If you want to run your own iperf3 server,
run sudo apt install -yU iperf3-server and you re done

Previously, src:iperf3 only built iperf3. If you wanted to run an iperf3 server, iperf3 had a debconf yes/no question which would then start one iperf3 server on the default port 5201. Apart from tidying the Debian package, src:iperf3 now builds the new iperf3-client and iperf3-server packages, the latter contains the systemd and ufw integration. iperf3-server runs with a dynamic systemd user instead of the previous local system account, and has systemd service hardening. Since iperf3 (contrary to iperf, also see here and here for iperv vs. iperf3) does not allow using multiple connections on the same port, you have to run multiple iperf3 servers, each on their own port, in order to serve more than one client at the time. The old debconf question for enabling a single iperf3 server has been removed as well as the obsolete sysvinit integration. In order to allow running multiple iperf3 servers at the same time (but on different ports), iperf3-server now contains a systemd service template so you can enable multiple iperf3 servers (e.g. 3 servers on subsequent port numbers, but you can run as many as you want on any ports you like) either manually with:

sudo systemctl enable --now iperf3-server@5201
sudo systemctl enable --now iperf3-server@5202
sudo systemctl enable --now iperf3-server@5203

or by using debconf interactively to do it automatically for you (which defaults to one instance on port 5201):

sudo dpkg-reconfigure -p low iperf3-server

or by using debconf non-interactively to do it automatically for you:

TMPFILE="$(mktemp)"
echo "iperf3 iperf3-server ports string 5201 5202 5203" > $ TMPFILE
cat "$ TMPFILE " sudo debconf-set-selections
dpkg-reconfigure -fnoninteractive -pcritical iperf3-server
rm -f "$ TMPFILE "

The iperf3 package is now a transitional package, that also cleans up any leftovers from before the package split into iperf3-client and iperf3-server. Updated iperf3 packages are available in sid, and backports for trixie are available at Debian Fast Forward.
Introducing fireperf

TL;DR: If you want a nicer iperf/iperf3 client,
run sudo apt install -yU fireperf-client

TL;DR: If you want to run your own fireperf server,
run sudo apt install -yU fireperf-server

Introducing fireperf Image 1: fireperf interactive terminal interface
Introducing fireperf Image 2: fireperf non-interactive terminal interface
fireperf is a modern take on the iperf3 network performance and stress-testing tool under the IPFire project umbrella:
  • measures upload or download individually, or concurrent upload and download
  • allows to serve many clients in parallel (on the same port)
  • allows to use many workers in parallel (for maxing out bandwith of servers with LACP instead of ECMP)
  • allows to use and track many connection sessions in parallel (for maxing out firewalls)
  • can also be used as a client for both iperf and iperf3 (autodetecting the target)
  • can also be used as a iperf3 server
  • can output results in JSON
  • has a live graph (ncurses)
  • uses less CPU ressources on both the client and the server (io_uring, zerocopy, )
fireperf packages are in sid, and backports for trixie are available at Debian Fast Forward. Happy bandwidth measuring!

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

21 November 2026

Russell Coker: WordPress Content Security Policies

The Problem Brian Krebs wrote an informative article about an attack on the Optimizely service that caused many web sites to push hostile Javascript [1]. This concerns me because I have a number of WordPress plugins running on my blog and it s not practical to track what they are all doing. What I Did I set a Content Security Policy as described in the Mozilla docs [2]. As I already had the Apache headers module installed I should have been able to set the policy with the following in /etc/wordpress/htaccess:
Header set Content-Security-Policy "default-src 'self'"
I used the program HEAD from the Debian package libwww-perl to see the headers that were being set and that wasn t in it. I don t know why it didn t work and would appreciate any comments making suggestions. I m not particularly bothered about this as I found a solution that is better for my needs, but the top Google results weren t helpful and it would be good if the information was out there if anyone already knows how to solve this. To set the header I put the following in /etc/wordpress/config-etbe.coker.com.au.php:
header("Content-Security-Policy: default-src 'self'");
I tested that with the HEAD command and it was set. I tested it by loading a blog post that had images sourced from www.coker.com.au and the images weren t loaded according to the policy. So then I changed the line in the configuration file to the following and it worked and allowed my images.
header("Content-Security-Policy: default-src 'self'; img-src 'self' www.coker.com.au secure.gravatar.com");
Did I Solve This?
find /usr/share/wordpress/wp-content -name "*.js" wc -l
Currently on my blog server the above command shows that there are 1299 Javascript files included in themes and plugins. If one of them has hostile code then it can just run things in the browser when someone visits my site. So if a hostile party gains access to release an update to one of the plugins or themes and I install the update then the code runs. A hostile party wants their code to be concealed and putting a large piece of malware in a package will be easier to spot. Also Krebs documented the malware authors as running A/B tests which also requires taking code from outside sources. The Content-Security-Policy header doesn t stop hostile code being run if it was installed on the server but it does prevent that code from calling out to other code from other servers. This means that it will be harder for attackers to hide code which is a benefit for defenders. If an attacker aims for the common case of this header not being used then their malware will work on most sites but not on mine which is a win for me. When protecting against large scale attacks you often only need to be slightly more secure than most sites. If most sites do this then attackers will include all the malware inline which means that my site will be vulnerable but also means that the malware will be easier to spot. So that is still a win for defenders. I don t think I have completely solved a problem, but I think I have improved things and that others will benefit from doing the same thing. Future Investigation The site securityheaders.com [3] is of a similar nature to the more well known ssltest [4] site. According to securityheaders.com my site only gets a C rating so there s work to do there. Is there a good way of using free software to automatically check Javascript for hostile code? A google search has turned up a few options but it will take some time to investigate them even after ruling one out for being non-free.

20 November 2026

Matthias Klumpp: Changes on freedesktop.org!

Today we launched a change that has been a long time in the making: The updated website for freedesktop.org, as well as the refreshed wiki.freedesktop.org are live now!

You can read the announcement here, this blog post elaborates a bit on it and on the background of the changes, as well as future plans.

Why change anything?

The freedesktop.org website has been a wiki for a long time, which definitely was the right call in its inception. A wiki is very much in spirit of Freedesktop s mission statement to foster collaboration between desktop environments and to be a place to create de-facto standards.

However, over the years, working with the wiki became a bit of an issue: Not only did we face multiple spam-apocalypses (which in part motivated the switch to IkiWiki in 2013 and resulted in us heavily restricting write access to the wiki), but it also meant that official project information, finished specifications, half-finished proposals and pages nobody had touched in fifteen years were all sitting next to each other.

Since 2000 when Freedesktop.org was started, the project has grown so much and has had so many associated projects and specifications over the decades that it is now very difficult for new people to get an overview what is current and what state the software projects and specifications hosted by Freedesktop.org are in.

Having only a wiki as a large and somewhat disorganized pile of information did not help with that issue, so I worked to split things up: We now have a website as well as a wiki, using different designs to distinguish the two, and serving different purposes.

Website & website plans

The website at www.freedesktop.org will be the place for official , or rather, more curated information. Now that the new website is live, its content is still largely that of the old wiki. Over the next weeks, I will be working on cleaning up its contents and listings. For example, I will clearly split active projects from archived ones, add missing ones, and also work towards synchronizing the specifications hosted on the former wiki / website with the ones listed on specifications.fd.o.

So, basically I will do an inventory check of Freedesktop. That work has already started, but until now, I could not make any public changes to not disrupt workflows or make my own future work harder by having diverging information in two places (website & wiki).

I also wanted to make it easier for people to find information on how to get involved with Freedesktop and associated projects, so the new website now has a more discoverable section for that.

The new website is a static site hosted via GitLab Pages and using Pelican. You can view its sources if you like.

Wiki changes

Of course, we also still want to keep the Wiki and all of its rich history around! It remains the easy-to-edit place for collaboration on upcoming projects and specifications.

Wiki edits must now happen through GitLab instead of the old IkiWiki web interface. While this sounds like an additional barrier to edit the wiki, it is significantly easier than requesting an account on annarchy to edit the old Wiki through the web interface. It also still allows us to keep the existing history as well as spam protection measures. In order to use the wiki with GitLab Pages and to keep the history easily accessible and readable, I rewrote the Git history of the wiki to make it pretend that all changes always happened in a content subdirectory. So, if commit signatures are missing and hashes are different: That is the only reason why. There have been no content changes or other metadata changes (and we still have a copy of the pristine wiki Git repository).

For the fd.o wiki, we are now also using Hari s IkiWiki template that is already in use on the X.org website and which is much easier on the eyes.

Next steps

At the moment, I am mostly concerned with ensuring that the change has not broken any existing links and all systems keep working. After that, the wiki website deduplication work will start and we can modernize both the content of the website and wiki.

If you find a broken link, an outdated page or anything else that looks wrong, please file an issue or, even better, open a merge request.
For the wiki, you are very welcome to just fix or otherwise update the page directly.

I did reach out to all wiki editors and projects impacted by this change in advance, but since there are so many people and projects involved, it is always possible to miss someone or something. If you found a bug, need edit permissions, or need help with anything, don t hesitate to ping me: You can find me as ximion in OFTC s #freedesktop IRC channel, in the very recently created #xdg-specs channel on the Freedesktop Matrix space, or you can email me.

Thank you!

I do want to echo the announcement news post here: None of Freedesktop.org would exist without the people who filled it with life over the years and who worked on cross-desktop collaborative projects. I have read through a lot of wiki history and old project pages over the recent months, and it feels amazing to know how much work and passion people have poured into the projects and collaborative efforts over the years no matter if they were successes in the end, or remained experiments. I am very thankful for all current, past and future editors of the website and wiki, as well as all project maintainers and contributors.

I also want to thank the Sovereign Tech Agency once more for supporting me in their fellowship program as a maintainer, which enabled me to work on this task among other things.

Thanks to all contributors, in whichever way you contribute to our free desktop ecosystem!

19 November 2026

Francesco Paolo Lovergine: Terramaster NASes with Debian, take three: scaling up.

As is often the case in scientific environments, IT solutions grow chaotically, often guided by available funds at the wrong moments, or transient choices for transient goals. Here at work, we are not an exception. Historically, since the birth of the Copernicus European project, the Earth Observation domain has become progressively more demanding about storage, due to the frequency and size of satellite acquisitions, available free of charge for research groups, free to access, but not without maintenance and processing costs, of course.As a result, we have progressively explored low-cost solutions for downloading and processing Sentinel constellation time series. Over a ten-year window, our needs moved from dozens of terabytes to hundreds of terabytes. We started with simple Synology-based solutions, very optimistically, only to discover that the optimism was not justified. When storage needs to scale up, there are no easy solutions.The only comparable IT environments are HPC clusters, which operate at a completely different order of magnitude in terms of funding. In that context, the Petabyte order of magnitude is generally achievable by using proprietary/FOSS distributed POSIX filesystems such as GPFS, Lustre, or even Ceph. None of them are exempt from problems from time to time. The sad reality is that maintaining a very large POSIX filesystem requires compromises, and no single solution fits all requirements, starting from cost to flexibility, scalability, and reliability. I wrote about the hidden costs of maintaining self-hosted storage solutions hereAlmost ten years ago, we chose GlusterFS as an acceptable compromise for a distributed POSIX filesystem. It is not object storage, but a pure POSIX filesystem with a simple architecture, which fits our environment, where most people rely on the folders-and-files abstraction to organize their data. All nodes and their bricks are equal (no dedicated metadata nodes) and can scale without major limitations with a reasonable number of nodes. In our experience, the real bottleneck is network speed, which can introduce high latency and cause cache issues.We are now finally moving our old Synology-based distributed filesystem to a pool of TerraMaster U12-500 Plus units, installed with Debian 13. Compared with TerraMaster SOHO products, these rack-mount units can run without any non-free firmware. You must manually enable the usual 9000 MTU jumbo frame for the 10Gb network, which is generally required on all connected hosts and also the switch (in our case, a MikroTik box) to properly manage full bandwidth. We measured average performance around 200MB/sec, which aligns with the average sequential speed of 6Gb SATA HDDs.Regarding using GlusterFS, the most obvious choice is to use it with XFS as the filesystem for the NAS bricks; this proved in practice to be the optimal configuration, after not-too-nice experiences with Btrfs on Synology DSM. Still, it requires some tuning for periodic checks across the various layers of the storage system. One is about short/long HDD testing, which I already covered in another post. A trickier aspect is managing possible bit rot in the brick filesystems from time to time. While Btrfs, with its COW management, can run low-impact scrubs on both metadata and data, XFS can only partially do the same for metadata through xfs_scrub, which is also, as clearly stated, an experimental feature to use at your own risk. In that regard, it is much better to run GlusterFS scrubbing instead.While xfs_scrub is as light as the SMART short self-test for HDDs, both RAID checks and GlusterFS bitrot scrub are heavy operations that should run rarely to avoid stressing HDDs and systems, and never at the same time. It is mandatory to avoid overlapping all such operations, and that s a good reason to use systemd timers and run the heavy checks in alternating months.One suboptimal aspect of our solution is the absence of direct LED control for HDDs, which is unfortunately available only under TOS with a proprietary driver. This is obviously required for disk replacement from time to time, when needed. On the other hand, software support is extended to the lifetime of the Debian distribution, with major upgrades every 3-4 years on average. Also, this is much more flexible and efficient than using pre-built custom OSes. Of course, if you prefer dashboards and the usual GUI candy, this isn't a viable choice; a better option would be TrueNAS, which has a much higher memory footprint, especially when paired with OpenZFS.

13 November 2026

Amin Bandali: Building GNU Emacs from source

In the recent years, I've been configuring and building GNU Emacs from source, specifically the master branch of the emacs.git repository. Doing so allows me to use and test latest Emacs features, test my Emacs Lisp code with the laest developments in Emacs, and easily contribute my own changes to Emacs. Before we start, I recommend reading the INSTALL file in the Emacs source repository for building Emacs from source tarballs, and also INSTALL.REPO for details about building Emacs from its source repository. The information provided here were built upon the details documented in those files. When in doubt, consult those files as the main, authoritative source of information for how to build Emacs from source. Installing build dependencies To build GNU Emacs from its source repository, we first need to install the various required tools and build dependencies of Emacs. On Debian-based systems, this can be done using apt. First, we need to add the source packages for the current release of our Debian-based distribution in apt's configuration by adding the corresponding deb-src lines in an apt source list file. For currently existing and older Debian releases, that would be done by adding a corresponding deb-src line for each deb line in /etc/apt/sources.list, such as:
deb http://deb.debian.org/debian/ trixie main
deb-src http://deb.debian.org/debian/ trixie main
In systems with recent apt versions with so-called modernized sources that might look editing a file like /etc/apt/sources.list.d/debian.sources and adding deb-src to the Types lines:
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites: trixie
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Then run sudo apt update to have apt download package information from the configured sources. We can now run sudo apt build-dep emacs to have apt download and install the build dependencies of Emacs. Debian-based distributions have packages for a few different configurations of Emacs, like emacs-pgtk with PGTK support for Wayland, and emacs-nox for Emacs without GUI support, which we can use with apt build-dep to download the specific dependencies of those configurations. Cloning the Emacs source repository After installing Git using sudo apt install git if not already installed, we're now ready to clone the Emacs source repository from GNU Savannah:
git clone https://https.git.savannah.gnu.org/git/emacs.git
We can add --depth 1 to make a shallow clone of the repository, if we don't care about having a complete log of previous commits to the Emacs repository (shallow clones are much faster). If cloning over HTTPS is slow, we can try cloning over Git's own protocol (with the caveat that the repository is cloned over an insecure channel) or over SSH if we have a Savannah account, using one of the following URLs instead of the one above:
git://git.git.savannah.gnu.org/emacs.git
ssh://git.savannah.gnu.org/srv/git/emacs.git
Configuring the Emacs build We now change to the Emacs repository directory we just cloned, and run the autogen.sh script once to generate the configure script, which we will use to configure Emacs to our liking:
cd emacs
./autogen.sh
To configure Emacs, the simplest approach is to run configure without any additional options, to have it use the defaults. We can get a list of available configuration options by running:
./configure --help
As I rebuild Emacs frequently, I normally don't "install" it, but for a typical setup, we'll want to specify the installation directory using --prefix, e.g.:
./configure --prefix=$HOME/.local
Later, make install will install Emacs under the specified directory. By default, some of the files (such as *.el) will be compressed during installation. We can prevent that using --without-compress-install. For my builds, I always use these configuration options:
--without-gconf
--without-gsettings
--without-gpm
--with-native-compilation
As I don't use the GNOME desktop, the GConf and GSettings integrations are always more trouble than useful for me, so I disable them. Further, I disable the GPM support, since I never use the mouse when using Emacs in the terminal. Lastly, I explicitly enable native compilation support. In Wayland environments, I usually use PGTK:
--with-pgtk
And in X11 environments (e.g. EXWM), I either use the Lucid toolkit:
--with-x-toolkit=lucid --with-xaw3d
Or no toolkit at all:
--with-x-toolkit=no --without-xaw3d
Later after building Emacs, we can view the configuration options in Emacs by inspecting the system-configuration-options variable. Building Emacs After running ./configure, we can now finally build Emacs by running make. The first build will take a while, since all of Emacs is being built from scratch. Subsequent builds will generally be faster. We can optionally run make install to install Emacs into the prefix specified earlier, or the default /usr/local. Note that this step might require using sudo if our user doesn't have write permission for the prefix. Running Emacs After building Emacs, we run it either from the install location if we ran make install earlier, or directly from the source repository. Currently, Emacs's build system makes a symlink to the latest built binary in the repository at src/emacs, and for emacsclient and other auxiliary binaries under the lib-src directory. When skipping make install, we might still want to be able to easily launch Emacs from anywhere by typing emacs. We can do that by making symlinks to emacs and its auxiliary binaries inside a directory in our $PATH, such as $HOME/.local/bin, like so:
cd $HOME/.local/bin
ln -s $HOME/src/emacs/src/emacs .
for e in \
 ebrowse emacsclient etags make-docfile\
 make-fingerprint hexl rcs2log; do\
  ln -s $HOME/src/emacs/lib-src/$e .; done
For non-install setups like this, I augment Info-directory-list in my init file with the location of the info manuals in the repository to make them known to Emacs:
(defvar Info-directory-list) 
(with-eval-after-load 'info 
  (setq 
   Info-directory-list
    (,@Info-directory-list
     ,(expand-file-name
       (convert-standard-filename "info/")
       source-directory)
     "/usr/share/info/"))) 
Updating Emacs We can pull in the latest changes in the Emacs repository using git pull, then rebuild our Emacs by running make. Occasionally, rebuilds may fail due to bad interaction of changes with leftover build artifacts. In such cases, the easiest thing to do would be a make bootstrap for an almost-from-scratch build. On even rarer occasions, make bootstrap might also fail. We would then want to run git clean -xdf to remove every file that's not tracked by Git, as if we freshly cloned the repository. In such cases, we would need to configure the build again using ./configure and provide the desired options before running make again. Further reading Protesilaos's similar post from early 2025 was part of the inspiration for writing and sharing my version: https://protesilaos.com/codelog/2025-03-22-emacs-build-source-debian/ Lastly, to reiterate, Emacs's own INSTALL and INSTALL.REPO files for building from source: https://cgit.git.savannah.gnu.org/cgit/emacs.git/tree/INSTALL
https://cgit.git.savannah.gnu.org/cgit/emacs.git/tree/INSTALL.REPO Take care, and so long for now.

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.

8 November 2026

Birger Schacht: Using incus for throw away VMs

For some time now I ve been looking for a way of keeping projects I m working on in a separate VM without much setup. There are numerous solutions to do this kind of thing using namespaces (various container technologies, firejail, flatpak, bubblewrap, ) but I wanted something that uses real virtualization. I recently stumbled upon incus and it seemed like it could be a solution to my problem. Incus is a manager for both containers and virtual machines. It is possible to create VM images that can be used as templates, meaning that other machines can then be based on them on creation. Virtual machines can be configured using profiles . For my use case, I have created a profile that defines how my template image should look like. In this profile I use cloud-init to configure the template machine on startup:
config:
  cloud-init.user-data:  
    #cloud-config
    apt:
      conf:  
        APT  
          Install-Recommends 0;
         
    package_update: true
    package_upgrade: true
    package_reboot_if_required: true
    packages:
      - file
      - man-db
      - bat
      - eza
      - git
      - git-delta
      - neovim
      - zsh
      - tmux
      - curl
      - ncurses-term
      - hx
      - nix-bin
      - nix-setup-systemd
      - rustup
      - npm
      - podman
    users:
      - name: user
        lock_passwd: false
        # mkpasswd 'incus password'
        hashed_passwd: $y$j9T$p9XBP4Ox3SBUnyu.sqv5m1$f1rxcPJyVs05w./dZvIzu6.4dVWBvzu99nMBZRNlamD
        groups: sudo, nix-users
        shell: /usr/bin/zsh
        uid: 1000
    write_files:
      - path: /home/user/.config/nix/nix.conf
        content:  
          experimental-features = nix-command flakes
        permissions: 0600
      - path: /home/user/.zshrc.local
        content:  
          export PATH="$PATH:$HOME/.nix-profile/bin"
        permissions: 0600
    runcmd:
      - [curl, -sSfL, -o, /home/user/.tmux.conf, https://grml.org/console/tmux.conf]
      - [curl, -sSfL, -o, /home/user/.vimrc, https://grml.org/console/vimrc]
      - [curl, -sSfL, -o, /home/user/.zshrc, https://grml.org/console/zshrc]
      - [chown, -R, user:user, /home/user/]    
description: Base template for dev VMs
...
and I use a script to regenerate the template image when I want to adapt the config:
#!/bin/sh

#set -e
set -x

NAME=dev-vm-template

# adapt the profile before rebuilding the template image
incus profile edit cloud-dev-template
incus delete --force $ NAME    true
incus create images:debian/13/cloud --vm --quiet --profile default --profile cloud-dev-template $ NAME 
incus start $ NAME 
incus wait $ NAME  agent
incus exec $ NAME  -- cloud-init status --wait   true
incus stop $ NAME 
incus publish --alias cloud-dev-template --reuse $ NAME 
This script uses the debian/13/cloud image together with my cloud-dev-template profile to set up a machine, configure it using cloud-init and store the result as an image called cloud-dev-template.

inker To use this setup, I created a small python tool called inker that talks to the incus REST API. Using inker create creates a new VM based on my template. Using inker attach attaches the current working directory to a VM as a readonly mount. It is possible to combine those commands like inker create inker attach to do those two steps in one command. inker login logs into the VM that has the current directory attached. This way I can create VMs that are connected to directories on my filesystem. I am currently playing around with this setup, but I think this could help me to have a throwaway development machine, similar to dev containers. I m not sure yet how happy I am with incus, though. I was also looking at systemd-vmspawn, but there are still some features missing that I would need. But I might rewrite inker at some point to use a different backend.

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.


  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?

3 November 2026

John Goerzen: Must we always use LLMs this way?

As with my last post on AI, let me open with a statement:
Just because most people hold AI a certain way, doesn t mean that we always must, either now or in the future.
As I noted in that piece, and my shades of gray post, I am well aware and agree with the notion that a lot of frontier AI models have disturbing ethical concerns that we shouldn t dismiss, including concentration of power and wealth, environmental concerns, unethical scraping and training, the financial bubble they seem to be creating, and more. The most poisonous of AI cheerleaders are accelerating enshittification while cutting quality all over the place. AI slop is also a real problem, which I ll discuss in a bit. Before I dive in, I need to mention that no AI assistance was used for writing this post, and I have been using em dashes correctly for years before LLMs did. Secondly, while popular discourse seems to use AI and LLM interchangeably, the AI field is much more broad and much more old than LLMs. I will, nonetheless, adopt the common AI jargon here, but be more specific when necessary to differentiate. In The Reverse Centaur s Guide to Life After AI by Cory Doctorow, he presented two ideas I particularly want to focus on here:
  1. The present and future of LLMs outside of the cloud-hosted frontier models
  2. What differentiates productive use of AI from slop
The two are related, in fact. Doctorow discussed how he never uses AI to write anything, but he sometimes uses it as an assistant to help him write. Is that contradictory? Not really. He gave this example: he remembered a quote from a podcast, which he wanted to cite and attribute correctly. But he couldn t remember which podcast or who said it. So he fired up Whisper, an open-weight model you can download and run locally, even on meagre hardware. Whisper is a speech-to-text model. Doctorow ran likely podcast episodes (from the target range and set of podcasts he listens to) through the model, and at that point it was a regular search. He found the quote, then went back and listened to the episode at that time spot to verify its accuracy. It would have taken so much time to do this without Whisper that he simply would not have done it otherwise. His writing was better because of AI. Not because AI wrote any words for him, but because it helped him find the right ideas and attributions. He didn t even have to trust its transcription; it pointed him at the right place, and then he could transcribe with precision. I too have used Whisper in much the same way. A little while back, I digitized many hours of old family audio recordings going back to the 1970s. Thanks to Whisper, which I ran locally primarily during hours of being fully solar-powered, I have a searchable index to these gems. A person I know recently asked me if I knew any way to transcribe some old family recordings he had. I told him I could run it through Whisper. It wouldn t have great punctuation, but most of the words would be there. This meant a lot to him and his family; what I did in 2 minutes would have taken him many days (I presume he is not a fast typist as well.) So we can start by naming: AI isn t just chatbots, and AI can help even if it isn t writing anything. Doctorow goes on to ask the question: what happens after the AI bubble bursts? I do believe it will, as Ed Zitron has carefully documented for us for a long time now. The environmental damage done by frontier training and inference in the last few years will, of course, be done. But as he points out, we ll be left with a plethora of surprisingly-capable open weight models, a community that has made significant strides running them on low-end devices (even phones), and a massive buildup of clean energy that hopefully will be finally able to offset some polluting energy once these heavy users drop off the grid. So then what? Will the world just throw away the likes of Whisper and Gemma? Obviously not. Doctorow imagines, credibly, a situation in which individuals and universities tinker with locally-run models, iterating on them and improving them with the more traditional scale of resources available to individuals and universities. In other words, this future sounds a lot like the earlier days of Open Source. As Ed Zitron has pointed out, the real costs of frontier AI have been hidden as these companies rack up fantastical losses. When the bubble bursts, the real costs of frontier AI are likely to be high enough that CEO s won t be able to ignore the poor ROI. But we ll be left with these artifacts, these open-weight starting points, that people can use. That brings me to my central thesis: a lot of anti-AI sentiment is focused on the real downsides of the hyped uses of AI, and fails to account for the more ethical advances being made now, and likely to come in the future. Varying quality of AI use We are all familiar with AI slop. I ve seen it, and have an increasingly skeptical eye when I see new projects announced in even places as niche as a BBS community (where I see things like new terminal emulators announced, written in shockingly-poor nodejs, and such). I ve seen documents that take many pages to say what amounts to nothing intelligble to a human, with perfect grammar. I ve seen pull requests that have a description that amounts to several pages of slop. I ve personally seen an AI agent do things like correctly detect passing an untrusted argument to a shell, then propose a broken quoting algorithm to fix it (rather than proper sanitization and exec() or, better yet, avoiding the call altogether.) I ve also seen AI tools very quickly and accurately identify bugs that had passed human review, even professional security reviews, for years. I ve seen them bring more joy to some people s jobs by handling the more drudgery parts of the jobs. One of my favorite podcasts, Oxide and Friends, had an episode called Engineering Rigor in the LLM age and credibly described ways in which careful use of LLMs can increase quality and safety. Yes, I said increase. (Oxide and Friends are not hype cheerleaders by any means; these are very serious people with solid technical chops, and I know some of them.) What accounts for this disconnect? We can point to many factors, but Doctorow asks a fundamental question: who is in charge? Is it the person or the computer? Does the AI service people, or do people service the AI? In some of the most ridiculously AI-first companies, it is very clearly the latter. Mandates from CEOs to increase AI usage lead to perverse outcomes that sacrifice quality. The AI is in charge. I ve never seen an AI be any good at design questions, and it s no wonder than all these vibe-coded apps have the same generic feeling of crappiness. But when the AI is used pragmatically as a junior research assistant, that s a different approach. Its output is greeted skeptically, its actions distrusted, and it s never asked to design something. These are the cases where I ve seen it make a meaningful difference. It s not black-and-white All this adds up to why I was opposed to the Debian proposals that would have banned LLM use. Those votes are hard to change. They would have left Debian in a vulnerable position of being unable to react to accurate security findings if they originated with an LLM, or left Debian unable to adopt ethical use of models. It would be akin to saying you should never buy a PC because Windows 11 is terrible. I agree Windows 11 is terrible, but saying something like that is so dismissive of all those that have invested decades of their time in building something better. So, I find AI hype to be uncredible and dangerous. I also find knee-jerk reactions to AI to be the same. They are actually a form of capitulation: they let the AI megacorps dictate the terms of the conversation to revolve around them. Case study: Debian s DFSG scanner For a long time, my two biggest annoyances with Debian have been the difficulty of packaging Rust and Go packages with their long dependency trees, and how long it takes a new package to get reviewed. About a year ago, the latter process was set on a path to reform, and it has gotten dramatically better. It also cuts off a potential connection with someone that hasn t yet heard of Linux. Some people may not jump from Windows 11 (or the ChatGPTs of the world) immediately, but pretending that it s ChatGPT or nothing does a disservice to all those that are trying to do research etchically. We should state at the outset that Debian takes compliance with the Debian Free Software Guidelines (DFSG) extremely seriously. Every new package gets a review, and these reviews often catch things that upstream repos and other distros don t. One common example would be a package that has a stated copyright and license, but then includes files that bear a different copyright and license. You can imagine reviewing packages at this level of detail isn t a fun task for people, and it s hard to find volunteers to do it. Perhaps the answer to this should be Debian should stop caring so much more than everyone else , and perhaps you re right (and perhaps you aren t). In any case, the DFSG team that reviews this added what amounts to an LLM-backed license linter. Its job is to produce an initial assessment that the license statements documented in debian/copyright are correct, thorough, and in compliance with DFSG. This report was not taken to be authoritative, but was designed to help with some initial assessments. There were some predictable reactions. People were angry that the DFSG team had added this tool without any communication about it (justifiably so, I d say). Many were angry just because of LLM. People made assumptions about what kind of model it used, what kind of quality it would produce, how definitive it would be in the project. It is worth noting here that Debian is uniquely decentralized. There is a central policy, but maintainers are free to maintain their packages how they like. They don t have to use a standard location for a Git repo, or even use Git. One person said essentially, it s fine for others to use whatever tool they want, but I shouldn t have to be exposed to LLM slop. The other perspective boiled down to, why should they keep the reports secret? If you want to proactively fix things, or flag false positives, why not? As Andreas Tille wrote, I have read the LLM reviews carefully, and in many cases their findings inspired additional commits to improve my packaging. In some cases, they even helped me catch mistakes that led me to reject an upload myself before human inspection. Joey Hess raises an interesting risk: that LLMs will remove the incentive for Debian to actually fix its cumbersome processes, by letting an LLM paper them over. I have seen this tendency in other contexts, both at work and at home, as well. It s a real risk, especially if Debian doesn t tackle the packaging problem for Rust and Go. The Mastodon post that prompted me to write this began a chain of events that started with Uploaders will be forced to address LLMs issues without human inspection. I don t believe that will be the case; it goes too far against the Debian ethos. I encourage everyone to take a deep breath. We are all getting used to a shifting landscape. We will all make missteps, myself included. The issues are complicated, the picture isn t black and white, and there is incredible hype around the ecosystem that can make finding nuance difficult. Let s be kind to each other, fellow humans. But, I do not care if you are kind to Claude.

1 November 2026

Vasudev Kamath: Releasing debvulns with needrestart and kernel vulnerability handling

After quite some time, I picked up debvulns again to implement what I mentioned in my previous post: exporting reboot required status and identifying services that need a restart. Additionally, I wanted to ensure kernel vulnerabilities are not marked as fixed unless the running kernel matches or exceeds the fixed version. Both features are now live in version 0.2.4 (intermediate release 0.2.3 only included the needrestart functionality).
Why needrestart? When you update packages on a system, security fixes do not take effect until running processes actually use the updated binaries from disk. When an upgrade occurs, existing processes continue executing the older, vulnerable code loaded into memory, while only newly spawned instances pick up the fixed binary. The needrestart package in Debian exists specifically for this purpose. It can run in either report mode or action mode: report mode provides machine-readable output, while action mode automatically restarts affected services.
Why integrate needrestart into debvulns? needrestart is a standalone utility that can run independently or hook into apt to run automatically after an upgrade. On desktop systems, it typically runs interactively with a TUI prompt; on headless servers, it can be set to take non-interactive default actions. In batch mode, it avoids restarting sensitive system components (such as dbus) to prevent destabilizing the session. Integrating this into debvulns is not about replacing needrestart or debsecan, but rather bringing vulnerability and remediation state into a single, discoverable interface. debvulns aggregates these signals into a standard format in this case, Prometheus metrics and tags that can be visualized in Grafana, monitored by alerting systems, or consumed downstream by automation tools.
Why Special Handling for Kernel? Just as user-space daemons require a restart after patching, a patched kernel requires a system reboot into the new image before the vulnerability is truly mitigated. Previously, debvulns only verified whether the patched package version was installed on disk. If the deb package was installed, the CVE was marked as resolved, which creates a false sense of security while running the old kernel. With this release, debvulns now checks the active running kernel release. A kernel vulnerability is considered resolved only when the system is running the fixed kernel version. Until a reboot happens, the system remains reported as vulnerable. The updated dashboard reflects these changes below. It will need further polish, but key metrics and restart/reboot states are now visible: debvulns Grafana dashboard with needrestart and kernel metrics
What Next? These were the two pending functional areas I wanted to cover, and no further major features are planned for now. Next up will be reviewing the entire codebase to identify potential optimizations and remove any unnecessary complexity. I haven't done a full pass through the repository since the initial skeleton implementation, so testing edge cases and cleaning up the internals will be the main focus. This will likely take some time since I only hack on this during weekend downtime. Until then, happy hacking, give the new release a try, and file an issue if you run into bugs.

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: More Furilabs FLX1s

In April I got my Furilabs FLX1s basically working [1]. Below is a post I wrote about the FLX1s before it broke at the start of September, there was a problem with the display controller and it would randomly go into a messed up mode that wasn t readable but also changed a bit in relation to button presses etc so the phone was still working. Also I could ssh to the phone when it was in that state if it was on my home wifi. It took almost 2 months to get a replacement phone but I now have that working and the new 14.1.0 OS release. So some of the below may be obsolete when it comes to the latest release but I decided to publish it anyway for history if nothing else. Current Issues Wifi Hotspot Status One thing I had known about but not mentioned before is that the icon in the drop-down menu for the hotspot will often be gray (indicating hotspot-off) when it s actually on. To address that I have to click on it (which then indicates that the hotspot is on) and then click on it again to turn it off. QT6 and MESA GL Currently I have problems with QT6 applications that don t run due to library issues and issues of missing GL support. I blogged about setting up my own container on my phone [2] which helped for some things but not for most things. I have given up trying to get Tokodon working on the phone for the moment. Tokodon is a nice Mastodon client that would allow me to get notifications from Mastodon. Apparently the Furilabs people are working on some issues related to this. Bluetooth Bluetooth is currently a bit unreliable. When I turn on my car (Nissan LEAF) the phone usually either doesn t connect or claims to be connected while not sending audio to the car. When it does connect my favourite music player (Lollypop) usually doesn t display the album and track names. I ve found that turning my car off and on again usually makes it connect properly. I admit the possibility of my car not doing things correctly in this regard. But every Android phone I tried just worked, they would connect as soon as the car was turned on and correctly display track names. So if the car is doing things wrong and needs a software work around then Linux is at fault for not doing that we can t get tens of millions of cars and hundreds of millions of other weird devices fixed! I also note that my Debian laptop and a friend s Debian laptop also have problems connecting to my car. So it s quite possible that Debian code is at fault (the FLX1s is running a modified version of Debian). It currently appears to have no support for handset mode so I can t answer phone calls through the car interface. But this is a lesser problem. I plan to do more testing with Debian laptops and file some bug reports if I can find out enough useful information. My current knowledge of this is insufficient to create a useful bug report. I do have quite a few bluetooth headsets and test laptops so I plan to start by testing Debian and Ubuntu on all the combinations last time I tested Ubuntu 24.04 on Dell laptops worked much better than Debian/Trixie on Thinkpads. Improvements by Furilabs Wifi Hotspot After a set of updates including the following Wifi hotspot seems to be working.
adaptation-furiphone-radon (1.3.0+git20260513192743.e94f2ec.forky.production) forky; urgency=medium
  * NetworkManager: sync hotspot channel/band with STA and restart on change
  * debian: depend on libhybris-utils and libgbinder-tools
  * startup: drop schedtune and add m4u debug log level
  * startup: enable glove and disable edge palm
  * device: drop flashlightd-scalable signatures
 -- Bardia Moshiri <bardia@furilabs.com>  Wed, 13 May 2026 15:27:43 -0400
Charging Connecting the power cable now makes the phone immediately make the click sound and it starts charging while previously there was a 22 second delay. Once I get used to this I can avoid the problem of failing to plug it in firmly before going to bed and having it run flat overnight. Things I ve Done SMS The following command will send a message via SMS.
dbus-send --system --print-reply --dest=org.ofono /ril_0 org.ofono.MessageManager.SendMessage string:"+61400000000" string:"this is the message"
Also the Librem5 Wiki has another way of doing it [3], I haven t tested if that works as the dbus method works well enough for the moment. Also calls can be scripted via the following command:
xdg-open tel://+61400000000
Contacts My aim is to get contacts synchronised via my own cloud service. Nextcloud is supposed to be able to do this. It s been years since I first tried this, my most recent serious attempt at Nextcloud was in 2021 [4] and I couldn t get the Android app for NextCloud to connect. Since then I have made more recent attempts and been unable to get the Android or Linux desktop clients to connect to it. A friend gave me a test account on his Nextcloud server which allowed me to connect the Linux desktop app, his hypothesis was that it was somehow related to using Debian and that his server worked because it was on Ubuntu. I have since installed my own Nextcloud test server on the Ubuntu variant used by the Oracle cloud VMs which had the same apparent problem. I conclude that it s not Debian at fault but something related to how I configured it. In the meantime after a couple of months of having no named contacts I exported the contacts from my Android phone as a VCF file and imported them into the Gnome contacts program. I had to run killall chatty for it to get the names for the contacts, but the phone call program found them without needing to do that. Chatty A missing feature of Chatty (the default SMS and Jabber program for Phosh/Phoc systems) is archiving old messages. I use Chatty to receive Jabber messages from my monitoring system which can be a lot of messages. The following shell code deletes all Jabber messages older than 2 days. Note that this relies on type=3 matching Jabber messages which I m not sure is going to be the case on all systems or all versions of Chatty.
for ID in $(echo "select id from users where type=3;"   sqlite3 ~/.purple/chatty/db/chatty-history.db); do
  echo "delete from messages where sender_id=$ID and time < unixepoch('now') - (48 * 3600);"   sqlite3 ~/.purple/chatty/db/chatty-history.db
done
The following shell code extracts a dump of all messages from Chatty.
echo "select messages.id,users.username,users.alias,messages.body from messages inner join users on messages.sender_id=users.id;"  sqlite3 ~/.purple/chatty/db/chatty-history.db
Dino-IM An update to the Chatty program for SMS and Matrix has made it crash repeatedly. There is a request in the list for Chatty upstream to have a systemd-user unit to restart it which when implemented will reduce the scope of the problem (but not solve it). I've setup a monitoring system that uses notify-send to notify me when Chatty isn't running or when 4G data turns off (a recurring problem). This crashing is allegedly due to Jabber so I installed Dino-IM for Jabber and have for the moment at least stopped using Chatty for Jabber. It turned out that having Chatty not do Jabber didn't stop it crashing. However having alerts separated from SMS can be convenient and also my long term plan is to use a phone with Plasma Mobile and Spacebar (the SMS program for Plasma Mobile) doesn't do Jabber. So I will continue using Dino-IM.
echo "delete from message where time < unixepoch('now') - (48 * 3600);"   sqlite3 ~/.local/share/dino/dino.db
Andromeda/Android I put in the following cron job to stop this log file from using all the storage space:
1 0 * * *	echo -n > /home/furios/.local/share/andromeda/data/system/uiderrors.txt
Wifi DHCP I gave up on attempts to force the Wifi configuration to have a fixed MAC that I could use for a fixed IPv4 address so I manually configured the address. 4G Monitoring I've had problems with the reliability of the 4G service, sometimes it stop working and I need to stop and restart it. I setup my etbe-mon monitoring system on the phone [5] and configured it to ssh to localhost and run notify-send to send a local notification. This means I get notified if my phone loses net access and can't access regular monitoring. Then to monitor the 4G connection (which I want to have working even when Wifi is connected) I had the following monitor line:
monitor ping.monitor -I ccmni1 -c 5 8.8.8.8 ;;
That uses the ccmni1 interface for pinging 8.8.8.8 (Google DNS). That worked for a while but I discovered that sometimes the interface for 4G would change to ccmni2, so I put the following monitor script under /usr/local/mon.d:
#!/bin/bash
DEV=$(route -n grep ^0.0.0.0.*ccm  sed -e s/^.*ccmn/ccmn/)
exec /usr/lib/mon/mon.d/ping.monitor -I $DEV -c 5 8.8.8.8
Mastodon I couldn't get Tokodon to work, not the native package, not running in a Debian/Testing container, and not running a Flatpak. It seems that this is all graphics library issues. So I wrote a Perl program to run "toot notifications &-json" and then send the relevant parts of the output via XMPP. As I already use XMPP for server monitoring there's no extra effort to have an extra account and use it for notifications about Mastodon activity. The Perl script is at the bottom of the post and won't be in the RSS feed. At some future time I may change the script to send the notifications by Matrix instead to have all my social media stuff in the same place. Source
#!/usr/bin/perl
# depends on Debian packages: toot libjson-pp-perl go-sendxmpp
use strict;
use JSON::PP;
my $homeurl = "https://mastodon.nzoss.nz/";
my $lastfile = "mast/last_id";
my $xaddr = "russell\@coker.com.au";
my $jsontxt;
while()
 
  $jsontxt .= $_;
 
my $data = decode_json($jsontxt);
my $last_id = 0, my $new_last_id;
if(open(ID, "<$lastfile"))
 
  $last_id = ;
  close(ID);
 
$new_last_id = $last_id;
for(my $i = 0; $data->[$i]; $i++)
 
  my $id = $data->[$i] id ;
  if($id <= $last_id)
   
    next;
   
  if($id > $new_last_id)
   
    $new_last_id = $id;
   
  open(XMPP, " go-sendxmpp $xaddr") or die "Can't send XMPP";
  my $type = $data->[$i] type ;
  print XMPP "type: $type\n";
  print XMPP "their_url: $homeurl\@$data->[$i] account acct \n";
  print XMPP "display_name: $data->[$i] account display_name \n";
  if($type ne "follow")
   
    print XMPP "status_url: $data->[$i] status url \n";
    print XMPP "content: $data->[$i] status content \n";
   
  print XMPP "created_at: $data->[$i] created_at \n";
  print XMPP "\n";
  close(XMPP);
 
open(ID, ">$lastfile") or die "Can't write to $lastfile";
print ID $new_last_id;
close(ID);

26 October 2026

Russell Coker: CEO Impersonation Fraud

In discussion about my post on banks and phones [1] questions were asked about CEO impersonation (link to an article on the security blog Krebs on Security about it) [2]. CEO fraud (or more generally executive fraud) is a subset of Business Email Compromise fraud which allegedly loses Australian businesses $84M/year [3]. The numbers vary a lot depending on what is counted, is it just attacks where money is lost or do situations where the bank reverses the transaction count? There s a lot of secrecy around this because of reputation issues related to fraud, a company that gets defrauded might be regarded as an unreliable business partner. Also in terms of interpreting results there are organisations that want to promote the idea that it s a major crime that could cost you everything unless you pay us to improve your security . My experience of these things is that at one company I worked for someone had gained access to an executive mailbox and setup rules to move mail from certain senders to a mailbox that wouldn t be checked (maybe .Sent or .Spam or something I can t remember the details) as well as forwarding it to an address the attacker controlled. That meant that the executive wouldn t see email from the scam targets while the email gets forwarded to the attackers. At the time it appeared that Office 365 didn t have any features for sending automatic audit alerts for such changes. I think that all changes to executive email accounts should trigger alerts to the corporate security team (in that case me). One would hope that such exploitation would be a major wake-up call for the company but it wasn t. It was never discovered how the attacker got access to the account, I presume it was by compromising a personal computer of the executive which they used for company purposes. Having a strong separation of hardware used for work and hardware for personal use is a really good thing. At the same company every time the CEO went on a scheduled trip there would be email sent impersonating him claiming that money needed to be transferred. It was never discovered how the attackers knew when he was on a trip. Was the CEO telling people on LinkedIn about his plans or something? Was his calendar shared to someone outside the company? Was there an employee leaking information? We never found out and surprisingly the executive team didn t think this was a problem. It s not necessarily bad for the CEO to publicise their trips even if that alerts hostile parties, but everyone needs to know what the situation is. An unexplained attack is more concerning than a known attack that can be predicted and dealt with. The role of CEO has a unique combination of being able to authorise funds transfers while also being able to reject other security methods. You can tell a line manager that they need to follow the process for a $10 purchase but you can t necessarily tell the CEO that they need to follow the process for $100,000. Even if the CEO always follows the process for funds transfers you have to convince all the people involved in funds transfers that the CEO will follow the process and any unexpected email demanding an immediate transfer should be rejected. A final problem is getting executives to understand the importance of computer security. My experience is that getting a CTO to adhere to good security practices can be a challenge and that even on the rare occasions someone like me gets to communicate with the CEO it s not possible to convince them to change anything. Most computer security problems end up as people problems.

Next.