The books
KDOS is written down in two books, kept in the same repository as its code and updated along with it. Both are free to read here, in full. The copies on this site are the development edition, updated as KDOS changes; every release carries the edition that matches it: the KDOS book on every machine it installs, and KDOS from Scratch as PDF and HTML on its release page.
Two books
The KDOS book
6 parts · 45 chapters · on every KDOS machine
What KDOS is and why, how to install and use it, how each part works, the programs KDOS adds, how to build and change it, and reference tables. For anyone trying KDOS, running it or changing it.
KDOS from Scratch
17 parts · 452 chapters · an entry for each of the 2,446 packages · HTML and PDF
The build in the order it happens, in the manner of Linux From Scratch: an entry for every package with the commands that build it, then the kernel, the ISO, and the everyday tasks of looking after a running machine. For anyone who wants to see how a whole Linux system is put together.
New to KDOS? Start with Getting started, The desktop, Applications and Administration. The KDOS book's title page gives reading paths for using, running and building KDOS.
The KDOS book gives the reasons and KDOS from Scratch gives the commands. The KDOS book assumes a working knowledge of Linux; KDOS from Scratch also assumes you can read a shell script, know what make and a compiler do, and have used Docker. Neither assumes anything about KDOS. Where the two meet, KDOS from Scratch links to the KDOS book rather than repeating it.
On every machine
Every KDOS machine carries the KDOS book as HTML under /usr/share/doc/kdos, so it opens with no network. The Start menu's Library category opens it in the browser, and the kdos-doc command opens it at any page from a terminal, or in a text-mode browser on a text console:
kdos-doc
kdos-doc 02-user-guide/themingKDOS's own commands, the kdos-* programs, kpkg (the package manager), ksvc (the service supervisor) and kinstall (the installer), have manual pages made from the book's text; man 7 kdos points into the book, and kdos help lists the kdos commands. sudo kdos update install kdos-kfs puts KDOS from Scratch on the machine too. The kdos command says where each copy lives.
Where to start
Four paths through the book, depending on why you are here. Each names its chapters in the order that suits that job; the numbers are the chapter numbers in the Contents.
Understanding the whole system
For a newcomer who wants to go from what KDOS is to how every part of it works, read the book front to back. The shortest route that still covers the whole system is:
- Ch 1, Why KDOS, and ch 2, How KDOS differs
- Ch 3, Principles, and ch 4, Decisions
- Ch 7, The desktop, and ch 8, Applications
- Ch 12, Architecture overview, then chapters 13 to 19 in order
- Ch 20, The programs, and any program chapter that interests you
- Ch 30, How KDOS is built
- Ch 44, Status, and ch 43, Known gaps
Installing and using KDOS
For someone who wants an image on hardware and a working desktop:
- Ch 1, Why KDOS: what the system is and what it deliberately lacks
- Ch 5, Getting started: download the ISO, write a medium, boot it
- Ch 6, Installation: the installer, page by page
- Ch 7, The desktop: the desks, the panel, KRunner, windows and keyboard shortcuts
- Ch 8, Applications: the three ways to get software: prebuilt, built on the machine, and boxed
- Ch 9, Theming, and ch 11, Accessibility
- Ch 43, Known gaps: what does not exist, before you depend on it
Administering a KDOS machine
For the person who looks after an installed machine: services, hardware, updates and diagnosis.
- Ch 10, Administration: the tasks, each as a command or a file
- Ch 28, The kdos command: status, doctor and the other subcommands
- Ch 13, Boot and init: which program owns each step of a boot
- Ch 15, Packaging: what
kpkgdoes, the binary host and updates - Ch 16, Packs and boxes: what installing an application does
- Ch 17, The security model: what is protected, and what is not
- Ch 26, The daemons: the root daemons and what each allows
- Ch 40, Configuration, and ch 41, Filesystem and IPC
Building and extending KDOS
For a developer who builds the distribution, adds or changes a port, or writes desktop software:
- Ch 3, Principles: the rules every change is judged against
- Ch 12, Architecture overview: how the pieces fit together
- Ch 30, How KDOS is built: the build as one story
- Ch 31, Developing: the first build, and the loops that avoid one
- Ch 32, The build system: phases, the chroot, snapshots, build plans
- Ch 33, Writing ports, and ch 34, Build troubleshooting
- Ch 36, Writing desktop software, and ch 18, The design language
- Ch 35, The C libraries: the
libk*libraries the daemons and tools share - Ch 37, Testing: what each harness proves, and what it cannot
- Ch 42, Repository layout, and ch 38, The ports catalogue
To build KDOS yourself, start with KDOS from Scratch and the KDOS book's How KDOS is built, the whole build told once as a story.
The KDOS book
The KDOS book in six parts and 45 chapters, from its own contents:
Part I — Introduction
- Why KDOSwhat KDOS is, the four properties that define it, who should run it, the trade you accept, what is deliberately absent, and what is not built from source
- How KDOS differsKDOS compared point by point with other distributions: the C library, the userland, init, the display stack, packages, reproducibility, applications, updates and hardware support
- Principlesthe rules that constrain every change, each with the failure it prevents and the price it charges
- Decisionsthe choices where an alternative was reasonable (Plasma as the desktop, elogind, SDDM, slot-image updates, a base image with every port prebuilt beside it, packs, musl, the source archive,
-marchand more), and why the alternative lost
Part II — Using KDOS
- Getting startedfrom a download to a running desktop: checking the ISO, trying it in a virtual machine, writing a medium, booting, the live session, installing, and building an image from source
- Installationthe installer page by page, the root filesystem, encryption, A/B root slots, unattended installs and every file the installer writes
- The desktopthe Plasma desktop as KDOS ships it: the desks, the panel, the Start menu, KRunner, windows and workspaces, keyboard shortcuts, notifications, files, the clipboard, locking, displays, removable media and the privacy lamps
- Applicationsinstalling native ports prebuilt or built on the machine, one at a time or as a group, then finding, installing, launching, updating and removing boxed applications, carrying a set to another machine, and managing boxes
- Themingthe eight accents and what switching one changes, Konsole, the boot menu and consoles, Phosphor mode, wallpaper, sounds, fonts, and theming native applications and applications inside a box
- Administrationservices, users, storage, networking, the firewall, hardware, updates and diagnosis, then each user's backups, mail, passwords and input methods
- Accessibilitythe screen reader, braille and speech at a text console, the magnifier, larger text, keyboard aids, the on-screen keyboard, colour and motion, and boxed applications
Part III — Architecture
- Architecture overviewthe three rings, power-on to a drawn window, the host and a box, a running process map, the root daemons, the two packaging systems and where state lives
- Boot and initLimine, microcode, the initramfs and its splash, A/B slot selection, unlocking an encrypted root,
rcS, the display manager and the console - The sessionwhat a login starts: the Plasma session, the user's services and the session bus, audio, portals, capture, the clipboard, input methods and a box's environment
- Packagingthe ports tree, its shelves and its phases, where sources come from,
kpkg, what a build verifies, reproducible packages, the binary host, deltas and vulnerability tracking - Packs and boxesthe two lanes, the catalogue, the pack format, installing and mounting, composition, the box, grafts and data packs
- The security modelsetuid binaries, system accounts, root daemons, the firewall, polkit, containers, signing, untrusted bytes, and what is not protected
- The design languageKDOS's identity on Plasma: colour, type, the pieces of the look, one look from power-on to the lock screen, motion, Phosphor mode, the desks, and the text tools' glyph tiers
- The window modelKWin as KDOS sets it: focus, placement, window memory, snapping and tiles, auto-tiling, workspaces, the window rules KDOS writes and more than one screen
Part IV — Programs
- The programsevery KDOS program and desktop component, what it does, and every name it answers to
- KWinthe compositor as KDOS ships it: its defaults, the carried patches, shortcuts, the key card, window memory, tiling, boxes at the compositor, Phosphor mode, idle and lock, and debugging
- The Plasma shellthe three desks, the Start menu, the tray and its privacy lamps, the KDOS runner in KRunner, notices, the kded module, the welcome tour, System Monitor's KDOS sensors and the offline library
- KDOS settings pagesthe Boxes, Firewall, Health, KDOS Look, System Versions and Backups pages, and the daemon behind KDE's date, time and language pages
- Discoverthe KDOS backend for ports, packs and boxes, what keeps Discover offline, system updates through
kdos-sysupdated, the update notifier and firmware - kdos-appbox
kdos-appbox,kdos-boxandxdg-open: the launch path, launcher generation, the open path, box profiles, warmup and storage drivers - The daemonsthe six root daemons,
kdos-mdnsd, the per-box Wayland socket, the other servicesksvcruns, and how to add a root daemon - kinstallthe installer's reference: keys, pages, install steps, answer files, dry-run dumps, LVM, encryption, the applications step and its design
- The kdos commandthe front door to a KDOS machine, every subcommand, and the eleven other names the same binary answers to
- kdos-bbthe forked AAlib demo: running it, and what it establishes about frame pacing, synchronized output, timing to music and audio
Part V — Building and developing
- How KDOS is builtthe build as one continuous story, from
git clonethrough fetching, the cross toolchain, the phases and the chroot, to a bootable ISO - Developingwhat a development machine needs, the first build, every make target, rebuilding one thing, working without a build, and cutting a release
- The build systemthe thirteen phases and their package lists, where
kpkglooks for a port, the phase environment, the chroot, syncingfs/, the orphan sweep, the packaging steps, snapshots, build plans andkdosbuild - Writing portsthe recipe format, canonical build shapes, a worked example, adding a port end to end, vendoring, checking for new versions and publishing sources
- Build troubleshootingrecurring fetch, build and push failures, indexed by the message you see, each with its cause and fix
- The C librariesthe nine
libk*libraries, the dependency direction, and the invariants each one keeps - Writing desktop softwareKDOS's Plasma code: settings modules, widgets, the runner, KWin effects and scripts, names, the toolkit rule, conventions, and the Qt test suite
- Testingpreflight, the self-test, the Qt suite, fixtures, the QEMU rig and its Plasma harnesses, AT-SPI goldens, checking the sources, the book checks, measuring frame rate, and what is not tested
Part VI — Reference
- The ports catalogueevery port KDOS can build, by shelf and by
src/area, with the phase that builds it, the libraries shipped as the application-developer platform, and the ports named in more than one list - Command indexevery command the tree installs, where it lives and which chapter documents it
- Configurationevery configuration file and key, with its default and when a change takes effect
- Filesystem and IPCKDOS-owned paths, every socket and its verbs, the D-Bus names KDOS serves, files used as an interface, and environment variables
- Repository layoutthe source tree directory by directory: the port repositories, the shelves of
ports/coreand the areas ofsrc/, thescript/directory, the library rule, where upstream sources are, and what git ignores - Known gapswhat KDOS does not do, or has not been shown to do, and what to do instead
- Statusthe maturity of each subsystem and the evidence behind each verdict
- Glossarythe vocabulary the book uses, defined once, and the words it avoids
KDOS from Scratch
Every part and chapter of the book, from its own contents. From Part V on, the parts that build packages hold one chapter for each shelf, the subject a package is filed under, such as audio or networking; the packages in each are listed in the book itself. The bootstrap packages of Part III, such as musl libc, GCC and kpkg, have a chapter each.
Front matter
Part I. Preparing
Part II. The cross toolchain
Part III. The bootstrap
Part IV. The chroot and kpkg
Part V. Self-hosting
Chapters 33–38: six package chapters, one for each shelf of packages
Part VI. The build foundation
Chapters 39–59: 21 package chapters, one for each shelf of packages
Part VII. Compilers
Chapters 60–63: four package chapters, one for each shelf of packages
Part VIII. Languages
Chapters 64–76: 13 package chapters, one for each shelf of packages
Part IX. System
Chapters 77–173: 97 package chapters, one for each shelf of packages
Part X. The graphics stack
Chapters 174–226: 53 package chapters, one for each shelf of packages
Part XI. Toolkits
Chapters 227–282: 56 package chapters, one for each shelf of packages
Part XII. Applications
Chapters 283–343: 61 package chapters, one for each shelf of packages
Part XIII. The desktop
Chapters 344–358: 15 package chapters, one for each shelf of packages
Part XIV. The kernel
Chapters 362–363: two package chapters, one for each shelf of packages
Part XV. The image
- The binary host
- The package store
- The image stage
- Cleaning up the root
- The application launchers
- Sweeping orphaned packages
- Stamping the build identity
- Seeding the theme
- The udev hardware database
- Creating the homes
- The manual index
- The font cache
- The software catalogue
- The image gates
- The image ledger
- The initramfs
- The initramfs init
- The pack store and the base pack
- The recipe tree and the source offer
- The ISO
Part XVI. System administration
- Init and runlevels
- Services
- Writing a service
- Timers
- Logs
- Modules and sysctl
- zram and swap
- Out of memory
- Time and NTP
- Locale and console
- Users and groups
- Boot menu and kernel parameters
- The initramfs and the rescue shell
- Microcode and firmware
- A/B slots and rollback
- Live persistence
- Filesystems and fstab
- Storage and removable media
- Encrypted root
- LVM and RAID
- Disk health
- Backups
- sudo, PAM and polkit
- Login and autologin
- Screen lock
- Fingerprints, FIDO keys and smart cards
- Firewall
- SSH server
- Signing keys and trust
- NetworkManager
- DNS
- VPN
- Mobile broadband
- Access point
- Wireless regulatory domain
- File sharing
- Avahi and mDNS
- udev and device groups
- Bluetooth
- Printing and scanning
- Audio
- Displays and scaling
- Graphics drivers
- Power management
- Laptops
- Firmware updates
- kpkg
- Updating
- Local rebuilds and kdos march
- Packs
- Boxes
- Containers
- Virtual machines
- Session and environment
- Shortcuts and window rules
- The panel and the launcher
- Xwayland and X11 applications
- Input methods
- Fonts and theming
- Accessibility
- Portals and screen sharing
- Diagnostics
- Desktop troubleshooting
- Recovering an unbootable system
Part XVII. Appendices
As a PDF
The whole book is also one PDF, made from the same sources as the pages online. The copy here is the development edition; every release page attaches the PDF and HTML of the edition that matches that release.

