This chapter is a lookup table. Turn to it when you meet a kdos-* name at a prompt, in a log or
in a process list and want to know what it is, which directory it is installed in and which
chapter explains it. Each row gives the command, a one-line description and a link to the full
description. The chapter ends with the scripts and make targets a contributor runs on the
machine that builds KDOS. It does not explain the commands; for the words it uses, see
The programs or the glossary.
Most of what is on a KDOS machine is built from ports/core/ (bash, Konsole, Plasma, podman, mpv
and the rest). That software is upstream’s, and upstream’s manual pages and handbooks describe
it; the ports catalogue lists every port by shelf, with its phase. This
index lists only what the KDOS repository writes itself:
src/;fs/;A recipe that installs a wrapper under the upstream program’s own name, such as chromium, is
left out, because upstream’s documentation still describes that command. Two sections are the
exception and list upstream commands:
the upstream commands the desktop and the book name
and the upstream commands the boot path and the book name.
They are here because init, the service scripts and this book’s procedures run them by name.
On an installed system, man <command> works for every kdos-* row in the tables before
Host-only tools, and for kpkg and its other names, ksvc, service,
kinstall and xdg-terminal-exec. The kdos-doc port builds each of those manual pages from
this table: the row’s description becomes the page’s one-line summary, and the book section the
row links to becomes its body. See
Manual pages and the book.
KDOS installs its own commands into seven directories:
src/ go in /usr/bin, and the daemons go in /usr/sbin.fs/, kdos and the other session-side names of the ksvc binary,
and the kdos-appbox names go in /usr/local/bin. That directory comes before /usr/bin on
the PATH that /etc/profile sets.kdos-bootctl is a name of the same ksvc binary, but it is in /usr/bin, because the
initramfs build copies it from that path./usr/libexec.| Directory | What is there |
|---|---|
/usr/bin |
kdos-boxsock, kdos-pack, kdos-splash, kdos-theme, kdos-bb, kdos-doc, kdos-notice, kdos-installer-gui, kdos-discover-catalog, kinstall, kpkg and its four other names, kdos-bootctl, the daemon clients kdos-power and kdos-energy, and the wrapper scripts ports write |
/usr/sbin |
The seven daemons, and ksvc with its second name service |
/usr/local/bin |
kdos and the other session-side names of the ksvc binary, kdos-appbox with kdos-box, xdg-open and one shim per boxed application, and the session scripts from fs/ |
/usr/local/sbin |
kdos-dm, which /etc/inittab runs on tty1 and which runs SDDM, and kdos-getty, which /etc/inittab runs on tty2 |
/usr/libexec/kdos |
kdos-boxinit, which runs inside a box; kdos-runner, started by D-Bus for KRunner; kdos-fwask and kdos-library-place, started by the session’s autostart; and the about-* scripts the Health page and About this System run |
/usr/libexec/kdos-discover |
kdos-ports-helper and kdos-ports-builder, which Discover runs through polkit to install a port prebuilt, build it here, or remove one installed on request |
/usr/lib/turnstile |
ksvc, a shell script from fs/ and not the ksvc binary: the backend turnstiled runs at a user’s first login, which starts that user’s services under /usr/sbin/ksvc |
Many of the commands below are one binary installed under several names, as symbolic links to
it. The binary reads the name it was started by (the basename of argv[0]) and behaves as that
command, so no shell wrapper sits between the name you type and the program.
ksvc and kpkg also take the command name as their first argument when they are started under
a name their table does not hold, such as the name the build gives its output: kdos-tools
service list behaves as service list. Under a listed name, kpkg included, the first argument
is an ordinary argument.
| Binary | Installed as | Names it answers to | Where the name table lives |
|---|---|---|---|
ksvc (the kdos-tools port) |
/usr/sbin/ksvc |
12 | src/system/kdos-tools/main.c |
kpkg |
/usr/bin/kpkg |
5 | src/system/kdos-kpkg/main.c |
kdos-appbox |
/usr/local/bin/kdos-appbox |
3 fixed, plus one per application | src/system/kdos-appbox/main.c |
kdos-powerd |
/usr/sbin/kdos-powerd |
2: kdos-powerd and its client kdos-power |
src/daemons/kdos-powerd/build.sh (the symlink) |
kdos-energyd |
/usr/sbin/kdos-energyd |
2: kdos-energyd and its client kdos-energy |
src/daemons/kdos-energyd/build.sh (the symlink) |
The twelve names of the ksvc binary are kdos, ksvc, service, kdos-getty,
kdos-bootctl, kdos-shot, kdos-banner, kdos-fetch-app, kdos-fetch-static, kdos-sfx,
kdos-mpctl and kdos-share. The five names of kpkg are kpkg, kpkgadd, kpkgdel,
kpkgbuild and kpkgdepends; kpkg itself is built and installed by
script/phases/10_bootstrap/120_kpkg.sh rather than by a port.
The three fixed kdos-appbox names are kdos-appbox, kdos-box and xdg-open. Any other name
the binary is started under is taken as an application shim: a symlink named after a boxed
application and pointing at kdos-appbox, which is what lets you type scribus at a prompt as
if it were an ordinary command.
/usr/local/bin for each application in a pack the medium
carries (script/phases/70_image/030_launchers.sh, through kdos-appbox genlaunchers). The
default medium carries no packs, so it ships no shims.~/.local/bin.See the program map.
kdos commandkdos is the single entry point to the system’s own tools. It has 43 subcommands, plus help,
which prints a cheat sheet of where software lives, the everyday commands and the default
keys. It is installed as /usr/local/bin/kdos, a name of the ksvc binary. Each subcommand below
links to its section of The kdos command.
| Subcommand | Does |
|---|---|
kdos help |
The cheat sheet: where software lives, the everyday commands and the default keys; --keys prints the keys alone, --pager pages it; also -h and --help |
kdos version |
The release and its build, kernel, C library, userland, session and accent; also --version and -V |
kdos status |
Packages, boxes, exported applications and the session |
kdos doctor |
Check for the faults known to occur on KDOS, each reported as ok, warn or skip; --json, --cve |
kdos theme [NAME] | Set the accent everywhere at once (next, prev and list too); style FILE applies a style file, --audit checks the generated colours |
|
kdos phosphor on\|off |
Phosphor mode: the CRT pass, the motion and the retro accent; also status, preset, terminus, fullscreen, collapse, unfold, degauss |
kdos desk kdos\|dock\|tiling |
Lay the panels out as one of the three desks; undo puts the previous layout back |
kdos tiling on\|off |
Auto-tiling, through the bundled Krohnkite script; also toggle and --only DESK |
kdos settings [PAGE] |
System Settings, at a page |
kdos menu summon ROUTE |
Open KRunner on the KDOS runner’s named place; toggle [ROUTE] opens or closes KRunner |
kdos panel toggle |
Switch the first panel between always shown and auto-hide |
kdos toggle [NAME] | stay-awake, night-light, dnd, reduced-motion: list, flip or set |
|
kdos notify TEXT [BODY] | Raise a desktop notification: make && kdos notify done |
|
kdos remind TIME TEXT |
A notification later, delivered once (in 20m, at 15:30, tomorrow 9); also ls and clear |
kdos privacy |
Which programs, and which boxes, hold the microphone, the camera and the screen; --json, --watch |
kdos checklist |
The first-run checklist: --json prints its items and which are done, dismiss ID and restore hide and show items |
kdos backup |
run takes one restic snapshot of what ~/.config/kdos/backup.conf names |
kdos timezone [AREA/CITY] | Print, or set, the time zone, through timedate1 |
|
kdos hostname [NAME] | Print, or set, the machine’s static host name, through hostname1 |
|
kdos locale [NAME=VALUE…] | Print, or replace, the system locale settings, through locale1 |
|
kdos keymap [MAP] | Print, or set, the console keymap, through locale1 |
|
kdos in-vm |
Exit 0 inside a virtual machine, 1 otherwise |
kdos app |
Applications: list, search, info, groups, install, launch, remove, export, import, and tui add/rm/ls for terminal programs |
kdos trash FILE… |
The freedesktop trash from a prompt; --list, --restore NAME, --rm NAME, --empty [-y] |
kdos places [add DIR [NAME]] |
Dolphin’s Places |
kdos thumb FILE… |
A thumbnail in the shared freedesktop cache; --path FILE |
kdos verify FILE… |
A file against its .sha256, .sha512, SHA256SUMS or SHA512SUMS and its KDOS signature; --notify posts the verdict |
kdos speech |
Speech: transcribe FILE… writes a .txt beside each file, say reads text aloud, sync adds Klipper’s Read Aloud action; list, get NAME, where and remove NAME manage the transcription models, and voice list, voice get and voice remove the voices |
kdos share [FILE…] | Send files to another machine over croc; --clipboard sends the clipboard |
|
kdos hey |
Ask KWin from a prompt: list the windows, also boxes, outputs and run |
kdos why PATH\|PORT |
What provides this, and the recorded reason it is the way it is |
kdos explain [TOPIC] |
The recorded reasons, browsable |
kdos oracle |
One recorded lesson, picked for today |
kdos sandbox [PROFILE] -- CMD | Run a native program under Landlock; --read, --write, --no-network, --tcp, --explain |
|
kdos appid |
Whether launcher identifiers match the identifiers windows present |
kdos restarts |
Which running processes still use code an upgrade replaced or removed |
kdos march |
Measure per-machine optimisation (probe, run PORT…) and read the recorded verdicts (report) |
kdos cve |
Which pinned versions carry known vulnerabilities, from an offline database |
kdos update |
Keep the system up to date: check what is behind the signed ports tree, the binhost and the newest slot image (--json); fetch the newest signed ports tree and release index (--binhost-only the binhost index alone); install PORT\|GROUP with what it lacks, prebuilt or built here (--prebuilt, --source, --build-deps=prebuilt\|source, --root DIR; --pending what the installer could not finish, --dev the development files the image left out); remove PORT and the packages only it needed, and prunes the binhost cache (--dry-run); removable lists what remove can take; groups lists every group and its download size; apply writes the update into the inactive A/B slot (--source builds it here); notes prints the release notes; theme re-applies the accent to your home directory |
kdos firmware sync |
Install the vendor firmware ports this machine’s devices and kernel log ask for, prebuilt; --dry-run (--json) names each and why, --all every vendor port, --root DIR into another root |
kdos image |
Signed whole-slot images: make, verify, unpack into a root, and carry what a slot keeps from the running one |
kdos rebuild WORKDIR |
Rebuild the image from the sources on the medium; --dry-run, --iso-only |
kdos clone [DEV] |
Copy this medium to another device, verified by read-back; with no device, list the devices it may write to |
kdos persist |
Report the live session’s persistence store; create [DEV] makes one, reset deletes the changes it holds (--home or --system for part of them) |
The desktop is KDE Plasma. These are the commands KDOS writes for it; the parts of Plasma KDOS adds that are plugins rather than commands (System Settings pages, widgets, KWin effects and scripts, the Discover backend, the KRunner runner, the KIO worker) are listed in The programs.
| Command | Installed in | What it does | Documented in |
|---|---|---|---|
kdos-dm |
/usr/local/sbin |
Run SDDM on tty1 from /etc/inittab, and give a password prompt on that console when SDDM is missing or exits three times in a minute |
Boot and init |
kdos-session-wrapper |
/usr/local/bin |
SDDM’s session command: start Plasma from a login shell, on the one session bus at $XDG_RUNTIME_DIR/bus, with the desktop’s environment set |
The session |
kdos-notice |
/usr/bin |
System notices in Plasma: restarts after an update, CVEs, the trial slot, a rollback, memory kills; --scan looks once, --bless confirms the boot |
The Plasma shell |
kdos-installer-gui |
/usr/bin |
Install KDOS: the graphical installer, which runs kinstall through pkexec |
kinstall |
kdos-discover-catalog |
/usr/bin |
Write Discover’s AppStream catalogue of installed ports or a binary host’s: --root DIR, --out FILE, --origin NAME, --package NAME |
Discover |
kdos-shot |
/usr/local/bin |
Screenshots through Spectacle, to the clipboard and ~/Pictures/Screenshots: region (the default), screen (also full), window, qr |
The kdos command |
kdos-updatedb |
/usr/local/bin |
Rebuild this user’s own plocate index, scoped to $HOME |
Configuration |
kdos-runner |
/usr/libexec/kdos |
The KDOS rows of KRunner and the offline library, on the session bus as io.kdos.Runner; --query TEXT and --library TEXT answer once on standard output |
The Plasma shell |
kdos-fwask |
/usr/libexec/kdos |
Ask once, per network, whether to let in a service a session program serves when the firewall turns its connections away | KDOS’s settings pages |
kdos-library-place |
/usr/libexec/kdos |
Add the library:/ entry to Dolphin’s Places once per account |
The Plasma shell |
kdos-shot qr captures to the runtime directory, decodes a QR code in the picture onto the
clipboard and deletes the picture, so a pairing token never reaches the disk. kdos-shot saves to
~/Pictures/Screenshots ($XDG_PICTURES_DIR/Screenshots when that variable is set).
These come from ports, and upstream’s manual pages and handbooks describe them. They are listed
because the session, the kdos command and this book’s procedures call them by name.
| Command | Installed in | Port | What it does | Documented in |
|---|---|---|---|---|
sddm |
/usr/bin |
sddm |
The display manager: the login screen, autologin and the start of each session | Boot and init |
loginctl |
/usr/bin |
elogind |
Sessions, seats, users and the power actions, through login1 |
The session |
startplasma-wayland |
/usr/bin |
plasma-workspace |
Start a Plasma session: KWin, the session manager and plasmashell |
The session |
kwin_wayland |
/usr/bin |
kwin |
The compositor and window manager | KWin |
plasmashell |
/usr/bin |
plasma-workspace |
The panels, the desktop and the widgets | The Plasma shell |
krunner |
/usr/bin |
plasma-workspace |
The search and command line on Alt+Space |
The Plasma shell |
systemsettings |
/usr/bin |
systemsettings |
System Settings, every page of it, KDOS’s own included | KDOS’s settings pages |
plasma-discover |
/usr/bin |
discover |
Software and system updates | Discover |
konsole |
/usr/bin |
konsole |
The terminal; the program Terminal=true entries open in |
Applications |
spectacle |
/usr/bin |
spectacle |
Screenshots and screen recordings | The desktop |
kwriteconfig6, kreadconfig6 |
/usr/bin |
kconfig |
Write or read one key of a KDE configuration file | Configuration |
kbuildsycoca6 |
/usr/bin |
kservice |
Rebuild the cache of desktop entries and plugins that Kickoff and KRunner read | Packs and boxes |
KDOS’s seven daemons are installed in /usr/sbin, started at boot by scripts in /etc/init.d
and kept running by ksvc. Six run as root; kdos-mdnsd binds its port as root and then runs as
nobody. Two of them have a client, which is the daemon’s own binary under a second name, a
symlink in /usr/bin, so a daemon and its client are always the same version.
| Command | What it does | Documented in |
|---|---|---|
kdos-powerd |
The firewall’s named services and the look before a login, for a desktop that is not root: a socket for kdos, and io.kdos.Power1 on the system bus |
The daemons |
kdos-power |
kdos-powerd’s client; suspend, poweroff and reboot go to loginctl and never reach the daemon |
The daemons |
kdos-energyd |
Per-application energy attribution: which application is using the processor’s power | The daemons |
kdos-energy |
The per-application energy report; --json, ping |
The daemons |
kdos-oomd |
The memory-pressure daemon, which spares the desktop | The daemons |
kdos-packd |
The pack daemon, the only program that mounts a pack | The daemons |
kdos-mdnsd |
Answer DNS questions about .local host names from Avahi, behind NetworkManager’s dnsmasq, as nobody |
The daemons |
kdos-settingsd |
org.freedesktop.hostname1, timedate1 and locale1 on the system bus, over the files KDOS keeps |
KDOS’s settings pages |
kdos-sysupdated |
org.freedesktop.sysupdate1 and io.kdos.Slots1 on the system bus: system updates into the inactive A/B slot, for Discover and System Settings |
Discover |
kdos-power takes these forms:
kdos-power suspend|poweroff|reboot
kdos-power ping
kdos-power firewall list|knocks|SERVICE on|off
kdos-power accent SCHEME
kdos-power splash phosphor|modern
A box is the container an application runs in; see the glossary.
| Command | Installed in | What it does | Documented in |
|---|---|---|---|
kdos-appbox |
/usr/local/bin |
Launch, install and export boxed applications; open a file in a throwaway box; generate launchers | kdos-appbox |
kdos-box |
/usr/local/bin |
Manage boxes: create, enter, freeze, export, snapshot, profile | kdos-appbox |
xdg-open |
/usr/local/bin |
Open a file or a link with its handler | kdos-appbox |
xdg-terminal-exec |
/usr/local/bin |
Run a command in a Konsole window, for Terminal=true handlers launched through GLib |
kdos-appbox |
kdos-boxsock |
/usr/bin |
Open a launcher’s tagged Wayland socket in a box, so KWin knows a window’s box: kdos-boxsock [-s confined\|tagged] BOX [LAUNCHER-ID] |
The daemons |
kdos-boxinit |
/usr/libexec/kdos |
Process 1 inside a pack box | Packs and boxes |
kdos-openarchive |
/usr/local/bin |
Extract, with ouch, an archive beside itself; the default handler for comic books packed as 7z or rar |
Applications |
kdos-pack |
/usr/bin |
Build, sign, re-stamp, index and diff packs | Packs and boxes |
kdos-podman-api |
/usr/bin |
Run a container client against this account’s Podman API socket, starting podman system service when nothing answers on it |
Configuration |
kdos-ports-helper |
/usr/libexec/kdos-discover |
Install a port from the signed binary host, or remove one installed on request, as root for Discover: kdos-ports-helper install\|remove PORT |
Discover |
kdos-ports-builder |
/usr/libexec/kdos-discover |
Build and install a port here, as root through polkit, for Discover: kdos-ports-builder install [--build-deps=prebuilt\|source] PORT |
Discover |
kdos-appbox takes run, open, throwaway, catalogue, install, uninstall, store,
import, export, warmup, status, session save and session restore, list, apps,
keeper and genlaunchers, with the global options -b/--box NAME, -l/--launcher ID and
-v/--verbose. kdos-box takes list, create, enter, run, apps, export, unexport,
freeze, import, clone, snapshot, snapshots, rollback, start, stop, restart,
remove, profile and gc.
kdos-pack takes build, assemble, info, imagehash, uuid, image, extract-meta,
verify, sign, restamp, index, delta, apply and keygen.
All five names are one binary in /usr/bin.
| Command | What it does | Documented in |
|---|---|---|
kpkg |
The package manager | Packaging |
kpkgadd |
Install a package file | Packaging |
kpkgdel |
Remove a package | Packaging |
kpkgbuild |
Build the port in the current directory into a package, without installing it | Packaging |
kpkgdepends |
Print the resolved install order | Packaging |
kpkg takes install (also i), remove (also r), list (also l, with --json), info
(with --json), check (packages by name, or --all; --brief prints only the faults and the summary, --log FILE keeps every line), facets (--strip [PACKAGE…] removes
installed packages’ development and documentation files as FACETS=run leaves them out, --list
PACKAGE prints what one was installed without; see
Facets), needs (PACKAGE prints what the package
needs at run time as its install recorded it, --resolve PACKAGE names the installed package
providing each edge and exits 1 when nothing provides one, --scan PACKAGE measures it from the
installed files without writing; see
Run-time needs), meta, fetch (the sources a port lacks, from the archive and then upstream), verify (and verify --repro), keygen, sign FILE KEY, index (with --sign KEY, and --buildonly FILE to write each stanza’s N: line),
verify-index, verify-pkg, delta, apply-delta (with --expect SHA256, which deletes the
reconstructed package unless its checksum matches; see Deltas),
binhost, store gc DIR MAX-SIZE and help, and the options
--root PATH, --keep-cache and -f/--force. install also takes
--build-only, which builds exactly the named ports into the package cache and installs nothing,
and --commit, which installs what --build-only built; see
Building apart from installing.
store gc deletes package store entries, least
recently used first, until the store fits MAX-SIZE (bytes, or a K, M, G or T suffix).
kpkg help describes each.
The other four names take few options. kpkgadd [-f|--force] [--root PATH] FILE installs one
package file, kpkgdel [--root PATH] PACKAGE… removes packages and drops each one’s lines from
the world set and origin record of that root, /var/lib/kdos/world and /var/lib/kdos/origin
(the root is / by default), so the next kdos update does not install it again, and
kpkgdepends [--root PATH] PORT… prints the install order on one line. kpkgbuild takes no
arguments: it builds the port in the current directory.
kpkg has no update subcommand. A word kpkg does not know, update among them, prints
kpkg: unknown command '<word>' — try: kpkg help on standard error and exits 1; a bare kpkg
prints the usage and exits 1, and kpkg help, --help and -h print it and exit 0.
kpkg --version (or -V) before the command word prints kpkg 1.0-kdos and exits 0. --root
<path> may come before the command word (kpkg --root <path> <command> …) for every command that
reads a root; before one that reads none it prints kpkg: option '--root' is not for '<command>'
and exits 1, and an unknown option there prints kpkg: unknown option '<word>' — try: kpkg help
and exits 1. A --root that does not exist or is not a directory, a regular file included, is
no such directory: <path>, exit 1, for list and for every command that writes. kdos update
is the command that updates the system; see
Updating a machine.
| Command | Installed in | What it does | Documented in |
|---|---|---|---|
kdos-splash |
/usr/bin |
The boot splash, a fade or Phosphor mode’s CRT power-on; skip closes a skipped stage, handoff leaves SDDM the last frame, preview draws one |
Boot and init |
kdos-bootctl |
/usr/bin |
A/B root slot selection, trial and confirmation, the slots’ kernels on the ESP, the boot entries, the splash’s motion, boot menu and console colours | Boot and init |
kdos-getty |
/usr/local/sbin |
Load the console font, palette and keymap onto a VT, then run a getty: kdos-getty TTY GETTY [ARGS…] |
Boot and init |
kdos-banner |
/usr/local/bin |
The login banner | Boot and init |
ksvc |
/usr/sbin |
The service supervisor, for the system’s services and, with --user, each user’s own |
ksvc and service |
service |
/usr/sbin |
The service supervisor ksvc under the conventional name: start, stop, restart and status of a system service |
ksvc and service |
kinstall |
/usr/bin |
The installer: the terminal wizard, and the backend the graphical installer drives through --events |
kinstall |
/etc/inittab runs kdos-dm on the first console and
kdos-getty tty2 /sbin/agetty --noclear --issue-file /etc/issue tty2 38400 linux on the second, the recovery console.
ksvc (and service) takes list, status NAME, start NAME, stop NAME, restart NAME,
enable NAME, disable NAME and help, the commands a person types; --user before the command
works on the user services in /etc/kdos/user-services instead, which start at a user’s first
login and stop at the last. The init scripts also call supervise, stop-supervised NAME and
check NAME, through /etc/init.d/service_helper. See
ksvc and service.
kdos-bootctl takes the forms below. Most of them are run by the initramfs, kdos-sysupdated and
the installer rather than by hand; the kdos-bootctl
table in Boot and init says what each one does.
kdos-bootctl status [--json]
kdos-bootctl list [--json[=short|pretty|off]]
kdos-bootctl select [a|b]
kdos-bootctl mark-good
kdos-bootctl crypt FS-UUID
kdos-bootctl set-slot a|b UUID [LUKS-UUID]
kdos-bootctl try a|b [N]
kdos-bootctl cancel
kdos-bootctl unfill a|b
kdos-bootctl deploy ROOT [a|b]
kdos-bootctl splash phosphor|modern
kdos-bootctl palette [ACCENT]
kdos-bootctl theme [--print] ACCENT
These come from ports, not from this repository, and upstream’s manual pages describe them. They
are listed because /etc/inittab, the service scripts, the initramfs build and this book’s
procedures call them by name. /sbin is a link to /usr/sbin.
| Command | Installed in | Port | What it does | Documented in |
|---|---|---|---|---|
init |
/sbin |
sysvinit |
PID 1: reads /etc/inittab, runs rcS, keeps the consoles and changes runlevel |
Boot and init |
telinit |
/sbin |
sysvinit |
Ask init for another runlevel: 0 powers off, 6 reboots, S is single-user |
Boot and init |
runlevel |
/sbin |
sysvinit |
Print the previous and the current runlevel | Boot and init |
shutdown |
/sbin |
sysvinit |
Power off or reboot, now or at a time, through init | Boot and init |
halt, poweroff, reboot |
/sbin |
sysvinit |
Change to runlevel 0 or 6, or with -f stop the machine at once |
Boot and init |
killall5 |
/sbin |
sysvinit |
Signal every process outside the caller’s session | Boot and init |
sulogin |
/sbin |
util-linux |
Ask for root’s password on the console and give a shell, for single-user mode | Boot and init |
getent |
/usr/bin |
musl-utils |
Look an entry up in passwd, group, hosts and the other name databases |
Packaging |
getconf |
/usr/bin |
musl-utils |
Print a system configuration value, such as _NPROCESSORS_ONLN |
Packaging |
iconv |
/usr/bin |
musl-utils |
Convert text between character encodings | Packaging |
cpio |
/usr/bin |
cpio |
Write and read cpio archives; the initramfs is one | Boot and init |
which |
/usr/bin |
which |
Print the full path of a command | Packaging |
xxd |
/usr/bin |
tinyxxd |
Hex dump a file, or turn a dump back into bytes with -r |
The ports catalogue |
ping |
/usr/bin |
iputils |
Send ICMP echo requests, as any user and with no setuid bit, through the ICMP sockets net.ipv4.ping_group_range opens |
The security model |
arping |
/usr/bin |
iputils |
Send ARP requests on a link; needs root | The security model |
mkpasswd |
/usr/bin |
whois |
Hash a password for /etc/shadow or useradd -p; name the method, -m sha512crypt, because with musl’s crypt the default is DES |
Packaging |
tracepath |
/usr/bin |
iputils |
Trace the path to a host and the MTU along it, with no privilege | Packaging |
| Command | Installed in | What it does | Documented in |
|---|---|---|---|
kdos-bb |
/usr/bin |
The ASCII-art demo | kdos-bb |
kdos-doc |
/usr/bin |
Open the KDOS book at a page, in the Help Center, the browser, or lynx on a console: kdos-doc [CHAPTER/PAGE[#ANCHOR]] |
The kdos command |
kdos-theme |
/usr/bin |
Generate the identity kit for an accent at build time: kde-colors, syntax-themes, konsole, qt5ct-colors, wallpaper, greeter-globals, contrast, accents |
Theming |
kdos-share |
/usr/local/bin |
Send files to another machine over croc; --clipboard sends the clipboard |
The kdos command |
kdos-sfx |
/usr/local/bin |
Play a system sound (login, notify, error, warning and five more); --route prints the output; render DIR [--format oga\|wav] writes the theme |
The kdos command |
kdos-mpctl |
/usr/local/bin |
Music control: toggle, stop, next, prev to mpd or an MPRIS player; mpris serves mpd on the session bus as org.mpris.MediaPlayer2.mpd |
The kdos command |
kdos-fetch-app |
/usr/local/bin |
Install an application from another distribution into a distrobox; --box, --image, --remove |
The kdos command |
kdos-fetch-static |
/usr/local/bin |
Fetch one static binary and verify it: kdos-fetch-static NAME URL SHA256 |
The kdos command |
kdos-syncthing |
/usr/bin |
Syncthing, given a LAN-only configuration the first time it runs | Administration |
update-ca-certificates |
/usr/bin |
Rewrite /etc/ssl/cert.pem from the Mozilla bundle and the local roots in /etc/ca-certificates/trust-source/anchors/; --root DIR |
Security model |
sfeed-read |
/usr/bin |
Open sfeed_curses on every feed under ~/.sfeed/feeds, or say how to fetch some when there are none |
The sfeed port’s notes |
rnodeconf-local |
/usr/bin |
Run rnodeconf against the RNode firmware images the rnode-firmware package carries, so flashing and updating a LoRa radio reach no network |
The rnode-firmware port’s notes |
ldconfig |
/usr/sbin |
Exits 0 and changes nothing: musl’s loader keeps no cache, so there is nothing to rebuild; it answers makefiles and install scripts that run it | Configuration |
kdos-syncthing, update-ca-certificates, sfeed-read, rnodeconf-local, ldconfig and
kdos-podman-api are shell scripts that a port puts in its package (the syncthing,
ca-certificates, sfeed, rnode-firmware, musl and podman ports), not programs under
src/. Each recipe writes its script from build.sh, except musl’s, which installs the
ldconfig file kept beside the recipe.
kdos-mpctl mpris is started at login by /etc/xdg/autostart/kdos-mpris.desktop. It owns
org.mpris.MediaPlayer2.mpd while mpd is running and follows mpd’s idle, so the media keys, the
Media Player widget and the lock screen’s controls reach mpd.
These run on the machine KDOS is built on, from the top of the repository, and never ship on the
target. How KDOS is built follows them in the order a build
uses them, from make fetch to a bootable ISO.
| Target | What it does | Documented in |
|---|---|---|
make fetch |
Download and verify every recipe’s sources; after it, make build needs no network. FETCH_JOBS=N works on N ports at once |
Developing |
make fetch-check |
Check offline that every source is present and matches its hash | Developing |
make build |
The whole build, in the container; BUILD_ARGS reaches the orchestrator |
Developing |
make snapshots |
List the phase snapshots | Developing |
make updates |
Run ports/update over every port; PORTUP_ARGS narrows it |
Developing |
make run, make rundisk |
Boot the ISO, or build/kdos.qcow2, in a virtual machine with plain graphics |
Developing |
make run-hw, make rundisk-hw |
The same with hardware-accelerated graphics, through testing/qemu-hw/ |
Developing |
make debug-boot |
Boot the built kernel and initramfs directly, with the serial console on the terminal | Developing |
make cleandisk, make cleanbuild, make clean |
Replace the test disk; empty build/ except snapshots, ccache, pkgstore, keys and binhost-key; empty it except keys and binhost-key |
Developing |
make help |
List every target with a one-line description | Developing |
make site |
Write README.md and the kdos.dev pages from site/, into SITE_OUT (default build/site) |
Developing |
make publish, publish-dry, publish-check, publish-plan, publish-describe, publish-rehome, publish-retire, publish-orphans |
ports/publish and its modes over the source archive’s sources-<N> volumes; PORTS and PUBLISH_ARGS narrow them |
Developing |
make freeze, make release, make release-publish |
The system release for TAG: sources.sha256, a draft with the ISO and signed SHA256SUMS, then public and Latest |
Developing |
make check, preflight, selftest, selftest-asan, docscheck, anchorcheck, booknav, booknav-write, kfscheck, sitecheck, phaseclosure, defaultscheck, xdgcheck, lnfcheck, aboutcheck, atspi-selftest |
The checks that stand in for a build; check runs the thirteen that need no built tree: every one listed but selftest-asan and booknav-write, which rewrites the footers booknav checks. sitecheck fails while README.md differs from what site/home.md makes. defaultscheck reads every KDOS default for a KDE program back, xdgcheck keeps KDOS’s defaults out of /etc/xdg, lnfcheck holds the global themes and desks to what Plasma reads, aboutcheck proves the About-page check’s verdicts can fail, and atspi-selftest checks the AT-SPI dump format on fixtures |
Developing |
make plasmatest |
The Qt suite: QtTest, plugins, packages and qmllint over KDOS’s Qt components, in the development image only |
Testing |
make depdrift, make debuginfo, make unowned, make linkcheck, make entrycheck |
Audit build/fs for undeclared same-phase link dependencies, shipped DWARF, unowned files, run-time references that do not resolve, or dangling links and dead entries |
Developing |
make book, make book-data, make book-stamp |
Render KDOS from Scratch into build/kfs (HTML, kfs.pdf, kfs-html.tar.zst); rewrite its committed snapshot docs/kfs/data from a built tree; rewrite its recipe stamp alone, from the checkout. BUILDFS names the tree, KFS_PANDOC and KFS_TYPST the renderers, KFSGEN_ARGS extra kfsgen.py options such as --kdos-book, KFSRENDER_ARGS extra kfsrender.py options such as --home |
Developing |
make session-probe, make shots, make atspi |
Boot the ISO in the rig: time to the panel and idle memory, then the Plasma session probe; photograph the desktop, Kickoff, KRunner and the Overview into build/shots; check every KDOS surface’s AT-SPI tree against its golden |
Testing |
make quick, make rig-image, make devdeps-image |
Rebuild the ports QUICK names and patch them into a booted ISO (QUICK_ARGS reaches the rig); build the rig’s container, kdos-qemu-py; build the development image, kdos-devdeps, and run the self-test in it |
Testing |
KDOS_RES (default 1920x1080) sets the virtual screen for make run, rundisk,
run-hw and rundisk-hw. KDOS_DISK (default 192G) is the size of the sparse
build/kdos.qcow2 that make run creates when it is missing and make cleandisk creates afresh.
| Command | What it does | Documented in |
|---|---|---|
ports/fetch [--check] [--tree DIR] [PORT…] |
What make fetch runs: each source from the port directory, the cache, the sources archive or upstream, generating a vendor bundle where one must be made. A port is named by its bare name on any shelf, and a name that is no port fails the run |
Developing |
ports/publish [--dry-run \| --check] [--history] [--all \| PORT…] |
Upload sources the archive lacks (with no port named, those new against the upstream branch or unindexed; --all, every recipe’s) into the volume sources-<N> that ports/shelves gives the shelf that owns them, as <shelf>--<file> (in parts past 1,900 MiB), spilling into another volume when that one is full, and write their lines into ports/sources.idx. --plan gives every shelf without a volume one; --describe rewrites the releases’ titles and notes; --rehome [PORT…] moves files into the volume and name of the shelf their port sits on and, once the index is pushed, deletes the old copies; --retire deletes every legacy src-<name> release that holds no asset, and its tag; --orphans lists index lines no recipe names, and --orphans --prune=yes-delete deletes the unprotected ones; --freeze TAG attaches a release’s hash list. Ports are named as for ports/fetch |
Writing ports |
ports/publish --release TAG [--iso PATH] [--key PATH \| --unsigned] [--binhost DIR] [--image DIR] [--publish] [--dry-run] |
Put the system release TAG on kunaldawn/kdos: the ISO (in parts from 1,900 MiB), sources.sha256, the recipe tree kdos-ports.tar.xz with its signature, a signed SHA256SUMS and the public key, as a draft until --publish makes it public and Latest; and its updates, the binhost in pre-releases binhost-TAG-NN of at most 1,000 assets and the slot image in image-TAG, with the signed kdos-update.idx that says where each file is |
Developing |
script/hooks/pre-push |
Refuse a push that breaks the ports layout, adds or changes a patch with no Subject: line, fails docscheck.sh or kfscheck.py, or names a source the archive lacks; enabled with git config core.hooksPath script/hooks |
Writing ports |
kdosbuild [--build-dir DIR] [--script-dir DIR] [--fresh] [--restore PHASE] [--continue-from PHASE] [--phases LIST] [--steps LIST] [--rebuild LIST] [--plan] [--snapshot] [--full-snapshots] [--port-jobs N] [--plain] [--json] [--list] [--delete PHASE] |
The build orchestrator, compiled from src/devtools/kdosbuild/ by script/kdosbuild.sh, which make build runs with BUILD_ARGS. --port-jobs N builds up to N ports of a package phase at once, by dependency level (1 to 8; the default, 1, builds one at a time) |
The build system |
script/chroot/enter.sh |
A root shell, or one command, inside a built tree, for inspection by hand | The build system |
ports/update |
Check ports for newer upstream releases; compiles and runs kdos-portup |
Writing ports |
kdos-portup |
The version checker ports/update runs, from src/devtools/kdos-portup/, compiled to ports/.portup |
Writing ports |
ports/hackage-vendor |
The Hackage downloader ports/fetch runs to make a Haskell port’s vendor bundle |
Writing ports |
testing/preflight.sh |
The checks over the wiring of the tree, each headed by a ==> line; it builds nothing |
Testing |
testing/depdrift.py [--root ROOT] [--repo REPO] [--strict] |
Name every package of a built root that links against, or whose .pc file requires, a package outside its depends; a DRIFT line is an owner from the package’s own phase, which a build with --port-jobs may not have installed yet |
Testing |
testing/pyimports.py [--root ROOT] [--pkg NAME]… [--all] [--strict] |
Name every Python import of a built root’s packages that a prebuilt install may not meet: an owner reached only through a build-only port no runtime = names (CUT), an owner outside depends (UNDECLARED), or nothing (MISSING) |
Testing |
testing/debuginfo.py [--root ROOT] [--threshold BYTES] [--files] |
Sum the .debug_* and .zdebug* sections of every ELF file under a built root’s usr/ by owning package, and fail above the threshold (1 MiB) outside the ghc -debug runtimes |
Testing |
testing/unowned.py [--root ROOT] [--fs DIR] [--all] [--fail-under DIR]… |
List the files of a built root no package and no fs/ path provides; --fail-under fails only on a finding under that directory |
Testing |
testing/linkcheck.py [--root ROOT] [--all] |
Fail on a DT_NEEDED owned outside the consumer’s depends, an interpreter that does not resolve, or OpenSSL 3 and 4 in one process; warn on a bare python shebang |
Testing |
testing/entrycheck.py [--root ROOT] |
Fail on a dangling symlink, a desktop or D-Bus Exec= that does not resolve, a visible Icon= with no icon, or a udev program that does not exist |
Testing |
testing/mimecheck.py |
Fail when a default application in /usr/share/kdos/xdg/kde-mimeapps.list names a desktop entry the image does not install |
Testing |
testing/plasmatest.sh [--selftest] [--keep] [PORT…] |
The Qt half of the regression net: build KDOS’s Qt ports with their QtTest suites, load their plugins, install their packages and lint their QML; make plasmatest runs it in the development image |
Testing |
testing/defaultscheck.py, testing/xdgcheck.sh |
Read every KDOS default for a KDE program back against testing/fixtures/defaultscheck; keep KDOS’s defaults in /usr/share/kdos/xdg and out of /etc/xdg |
Testing |
testing/lnfcheck.py, testing/chordcheck.py, testing/monofont.py |
The KDOS global themes and desks hold only what Plasma reads, and pin what the favourites name; no chord KDOS ships is bound twice; what the KDOS monospace face covers and the cell it makes | Testing |
testing/plasma-probe.sh, testing/session-cost.sh, testing/aboutcheck.sh |
On a booted image: whether the Plasma session is whole; time to the panel and memory at idle; whether every About-page row program prints its two lines | Testing |
testing/atspi/ |
Dump each KDOS surface’s accessibility tree through AT-SPI and compare it with a committed golden; make atspi boots the ISO for it, make atspi-selftest checks the format on fixtures |
Testing |
testing/bookcounts.py |
Recompute the port counts on the three pages that state them and check every ports-catalogue row against its recipe; docscheck.sh runs it |
Testing |
testing/recipemeta.py, testing/optdeps.py |
Check every recipe’s description, homepage, license and first source, and its catalogue row; list every build switch that turns off a feature whose library is a port. Preflight runs both |
Testing |
testing/phaseclosure.py |
Check that every package phase installs exactly the ports its list names, and that each port of 41_system to 44_apps is in the phase the phase table gives its closure; preflight runs it |
Writing ports |
testing/selftest.sh |
The library and consumer suite | Testing |
testing/docscheck.sh [--book docs/kdos\|docs/kfs]… [PAGE…] |
Both books: dead links, historical phrasing, each book’s page contract and KDOS from Scratch’s wiki skeleton, and through testing/bookcounts.py the port counts |
Testing |
testing/anchorcheck.py [--book DIR]… [PAGE…] |
Every #fragment link in both books, every port’s kfs.md and README.md lands on a heading, by GitHub’s id rule |
Testing |
testing/booknav.py [--book DIR]… [--write] |
Check, or with --write rewrite, every chapter footer of both books and the contents of KDOS from Scratch |
Testing |
testing/kfscheck.py [--base REF] [--strict] [--only CHECK,…], kfscheck.py --repin |
KDOS from Scratch against the tree: sidecar drift, notes and patch headers on new or changed ports, the snapshot and recipe stamp, pinned includes, the kernel option tables against the linux port’s kdos.config, and a full render; --repin moves include ranges whose lines moved and pins unpinned ones |
Testing |
script/book/kfsgen.py, kfsrender.py, make_data.py |
KDOS from Scratch’s renderer: generate the book’s Markdown from the tree into build/kfs/src; render it to HTML, PDF and a tarball with pandoc and typst; write the docs/kfs/data snapshot, or its recipe stamp alone with --stamp-only. make book, make book-data and make book-stamp run them |
Developing |
testing/devdeps-image.sh |
Build the kdos-devdeps image and run the self-test in it, with nothing skipped |
Testing |
testing/rig-image.sh |
Build the kdos-qemu-py rig image |
Testing |
testing/vnc-shot.py |
Boot, drive and photograph a real session | Testing |
testing/quick.sh, testing/quickpatch.sh |
Rebuild ports and patch them into a booted ISO’s in-memory overlay | Testing |
testing/qemu-audio.sh |
Pick a working QEMU audio backend for the run targets and the rig | Testing |
testing/usability.sh |
Drive the desktop with the pointer and chords, as a person would, and leave a numbered contact sheet to check against testing/usability.md |
Testing |
testing/bios-boot.sh |
Boot the ISO with no UEFI firmware | Testing |
testing/packlane.sh |
The pack lane (installing signed packs into a box) end to end on a booted machine | Testing |
testing/install-to-disk.sh |
Run the installer into a disk image | Testing |
testing/appsweep.sh |
Launch every catalogue application | Testing |
testing/catsizes.py [--engine podman\|docker] [--write] [--rows ID,…] |
Measure what each catalogue application and data row adds over its parent, from apt’s Installed-Size at the catalogue’s snapshot, and rewrite the meta bytes |
Testing |
testing/appreport.sh |
Report on what the sweep found | Testing |
testing/appbox-smoke.sh |
Check that every boxed application’s launcher starts something | Testing |
testing/hostcheck.sh |
Check that the binary a caller resolves by name is the one that can do the job | Testing |
testing/oomd-fire.sh |
Put a booted machine under real memory pressure and read kdos-oomd’s kill count |
Testing |
testing/prepare_base.py, testing/test_runner.py |
Build a minimal base image, through mini_build.py, and build single ports against it, each in a fresh container; report_gen.py summarises the results |
Testing |
testing/bootcheck/ |
Scripted boots with no display: start QEMU, run a command on the serial console, type | Testing |
testing/qemu-hw/ |
The containerised QEMU with accelerated graphics behind make run-hw |
Testing |
ksvc binary in fullPart VI — Reference, chapter 39. Previous: 38. The ports catalogue · Contents · Next: 40. Configuration