A fresh Ubuntu 24.04 server has barely finished its first boot when a systemd timer, motd-news.timer by name, wakes up with an errand to run. It is set to fire one minute after start-up and then at midnight and noon, with up to twelve hours of random delay so that a million servers do not knock at once. The script it runs, /etc/update-motd.d/50-motd-news, asks motd.ubuntu.com for a line or two of news to show at the next login, and it introduces the machine as it goes:
USER_AGENT="wget/$wget_ver $lsb $platform $cpu cloud_id/$cloud_id"
Spelt out, that is the Ubuntu release, the kernel version, the architecture, the CPU model read from /proc/cpuinfo and the name of the cloud the machine runs in. The switch sits in /etc/default/motd-news and reads ENABLED=1, and the ubuntu-server metapackage depends on the package that ships it. It comes with the server, as part of the furniture.
The greeting that phones ahead
Canonical has published a legal notice about motd-news, and it is admirably frank. The purpose of the system information is "so that Canonical can tailor the message returned by https://motd.ubuntu.com", which "allows Canonical to make users aware of new features of Ubuntu or services from Canonical", a polite way of describing an advertisement. The example it prints announces a Windows installer for MicroK8s, Canonical's own Kubernetes, which is an odd thing to read on the console of a server. On the data itself: "Your information is stored in our systems and may be processed by Canonical globally", kept "for so long as reasonably required", and because Canonical cannot tell whose it is, it is "unable to provide you with a copy of the system information or to delete the system information on request."
The notice still lists the uptime among the fields, and the current script for 24.04 has dropped it, so the list has shrunk since 2020. What is left still describes the hardware and the hosting of every Ubuntu server that has not been told otherwise, twice a day, to the company that sells support for it. Using the login screen of a production server as an advertising slot is, one might say, a bit cheeky.
Why anybody counts
Fedora puts the case for counting better than anyone, in the opening line of its proposal for what became countme: "Right now, we estimate installed Fedora systems by counting unique IP addresses which show up in our updates mirror statistics." That method fails in both directions, too low behind NAT and too high for laptops that change networks, and a project that has to plan mirrors and speak to sponsors needs a better figure.
Fedora then built its counter with more care than its neighbours. The proposal rules out "any identifier like /etc/machine-id which may be used for other purposes", and then goes further, "or in fact any UUID at all". In today's dnf5 a repository carries the flag countme, and once a week, on one of its next few requests, picked at random, dnf appends countme=1 to countme=4 to the request for the mirror list: a number that only says whether the system is younger than two weeks, five weeks, twenty-five weeks, or older. The week is fixed to the calendar, starting on a Monday in January 1970, and the source code says why, to avoid aligning with "the last counting event (which could facilitate tracking across multiple such events)". The user agent adds the release and its variant, server or workstation, so the count travels with a label, libdnf (Fedora Linux <version>; server; Linux.x86_64), to whichever server answers for the mirror list. Fedora wanted the totals on a public statistics page, and one can see why it was rather chuffed with the design.
All of that is switched on in the repository files, countme=1 in fedora.repo and in epel.repo. EPEL is the extra repository that a great many servers in the Red Hat family add, from Red Hat Enterprise Linux to its rebuilds, so those are counted as well, whoever's logo is on the box.
The number that stays
The same Fedora proposal names the alternative it decided against: "a UUID to distinguish unique systems, as openSUSE does". In libzypp, the library under zypper, the target is initialised with a call to createAnonymousId(), and the function's comment says what it is for: "Create the anonymous unique id, used for download statistics". It reads a random UUID from /proc/sys/kernel/random/uuid and writes it to /var/lib/zypp/AnonymousUniqueId, and from then on every request to download.opensuse.org carries the header X-ZYpp-AnonymousId with that number. It is random, and it is the same number every time, which is exactly what makes it a count of machines.
zypp.conf has no setting for it. Deleting the file helps until zypper next starts and writes a new one. This spring the main repositories of Tumbleweed and Leap moved to cdn.opensuse.org, and the header did not follow them, since the code adds it for one host name only. That host still serves Slowroll and every repository of the Open Build Service, which is where openSUSE users go for much of what the main repositories lack, and the number is there on every machine, waiting.
Who collects and who is counted
The projects collect a figure. Fedora's proposal lists the gains, "Better metrics overall" and a "Public stats page updated automatically", and openSUSE's download statistics serve the same end. Canonical collects rather more: a census of its installed base by release, kernel, CPU and cloud, delivered twice a day, and a line on every login screen that it writes itself.
The administrator pays in a currency that is hard to put on an invoice. Each server describes itself to a third party before anyone has been asked, and each distribution keeps its switch in a different place: ENABLED=0 in one file on Ubuntu, countme=0 per repository or in dnf.conf on Fedora, and on openSUSE no switch at all, only the choice of mirror. Somebody in charge of a mixed estate has to know all of them, and has to know them for every image the estate has ever built.
Two Linux distributions show that this is a decision. Debian's popularity-contest asks during installation, and its template sets Default: false. Arch puts its census, pkgstats, in a package of its own that the administrator has to install. Counting by default is a choice the others have made.
The base that keeps its counsel
On FreeBSD 15.1 the message of the day is a file. At boot, /etc/rc.d/motd takes the kernel's version line from uname -v, puts the contents of /etc/motd.template underneath it and writes the result to /var/run/motd. That is the whole mechanism, 62 lines of shell with the licence on top, and it has no network code, because there is nobody to ask. So whatever turns up at login is whatever the administrator put in the template.
The package tool talks to the project's servers when there is something to fetch. pkg sets its user agent in libpkg/pkg_config.c to "pkg/"PKGVERSION, which is its own version number, and the repository path names the ABI the packages are built for, FreeBSD:15:amd64, because the server has to know which packages to hand over. There is no identifier anywhere in it, and no timer goes off to fetch news. The rc scripts and the repository configuration come from the same tree as the rest of the base system, so there is no second team that might quietly add one.
The limit
FreeBSD does not know how many machines run it. The only census the system ever had was a port, sysutils/bsdstats, which reported once a month after an administrator installed and enabled it. It has been marked broken since July 2025 and is gone from the tree. A project without a number has a harder time telling sponsors and hardware vendors how large it is, and that is the price of the empty field.
Every download tells the mirror something. Each pkg request shows the mirror the machine's address, as any download on any system does, and its path adds the major version with the architecture. The difference lies in what goes beyond that, and on FreeBSD it is a version string.
FreeBSD fetches at night by default. The daily security run calls pkg audit -F whenever its copy of the vulnerability list is older than two days, and downloads the current one. The fetch brings a file to the administrator and carries the same user agent as every other pkg request.
Fedora's count is carefully anonymous. Its design keeps identifiers out and fixes the week to the calendar, which is more trouble than most would take. The objection is to the default, which does the asking on the administrator's behalf.
FreeBSD has no idea how many servers it runs on, which is precisely how those servers would have wanted it.