KDOS

Get KDOS

KDOS 0.2 comes as one file, a live ISO of under 2 GB: a disc image that starts the whole KDOS desktop from a USB stick or in a virtual machine, without touching your disks. If you like it, the same image installs KDOS onto a disk. The steps below are the short version, and Getting started in the KDOS book is the long one.

KDOS 0.2 is an early release by one person, tested in virtual machines rather than on a range of real computers. Try it in a virtual machine or from a USB stick before you install it anywhere that matters. Status and limits says what works and what does not yet.

What it needs

  • a 64-bit x86 PC (Intel or AMD) with UEFI or BIOS firmware, and Secure Boot turned off in the firmware settings: KDOS's boot loader is not signed for Secure Boot
  • 4 GB of memory or more: the live session runs from memory, and what you install there takes memory too
  • a USB stick of 2 GB or more, or a virtual machine
  • to install, a disk of 25 GiB (27 GB) or more, or 21 GiB (23 GB) without swap. That holds two copies of the system, called system slots: an update goes into the copy you are not running, so a bad one can be undone. A smaller disk, down to about 8 GiB without swap, gets one slot and no undo
  • a network for software beyond the ISO, and for firmware the ISO does not carry. Firmware is the small program a device loads from the system before it works. The ISO has Intel's, AMD's, MediaTek's and Realtek's. An NVIDIA graphics card from the GeForce GTX 950 on, a Qualcomm, Atheros or Broadcom Wi-Fi card and many laptops' speakers need sudo kdos firmware sync first, over Ethernet, a USB-tethered phone or a Wi-Fi card that already works; the installer adds it to the new system when it has a network

Download and install

  1. Download

    The release page on GitHub has the ISO and the files that prove it is KDOS's. Download all four into one folder:

  2. Check it

    A checksum shows the ISO arrived whole and unchanged. In the folder you downloaded to, on Linux:

    sha256sum -c SHA256SUMS --ignore-missing

    It must print kdos-v0.2.iso: OK, and kdos-release.pub: OK for the key. On Windows, Get-FileHash kdos-v0.2.iso in PowerShell, and on macOS, shasum -a 256 kdos-v0.2.iso, must print the hash on the kdos-v0.2.iso line of SHA256SUMS (PowerShell prints it in capitals).

    That catches a broken or altered download, but a list downloaded beside the file proves only that the two agree, not who made them. The signature proves the list itself came from KDOS's release key. That check is optional; on Linux, with OpenSSL 3 and xxd:

    cut -d' ' -f2 kdos-release.pub | xxd -r -p | sha256sum | cut -c1-16     # must print ccb53bac7fdba3cd
    { printf 302a300506032b6570032100; cut -d' ' -f2 kdos-release.pub; } | xxd -r -p > kdos-release.der
    awk '$2=="ccb53bac7fdba3cd"{print $3}' SHA256SUMS.sig | xxd -r -p > SHA256SUMS.sig.bin
    openssl pkeyutl -verify -pubin -keyform DER -inkey kdos-release.der -rawin \
        -in SHA256SUMS -sigfile SHA256SUMS.sig.bin

    The first line prints the id of the key in kdos-release.pub, which must be ccb53bac7fdba3cd. The rest wraps the raw Ed25519 key in the header OpenSSL reads, takes that key's signature out of SHA256SUMS.sig, and prints Signature Verified Successfully when it matches. On a machine already running KDOS, kdos verify kdos-v0.2.iso does both.

  3. Boot it in a virtual machine…

    A virtual machine is the safest way to try KDOS: it runs inside your current system and cannot touch your disks. KDOS is developed and tested in QEMU with KVM, Linux's own virtual machines, which virt-manager and GNOME Boxes give a window to: give the machine 4 GB of memory and UEFI or BIOS firmware, and turn on 3D acceleration for Phosphor mode, KDOS's optional CRT-monitor look. From a terminal, with QEMU and OVMF (the UEFI firmware for virtual machines) at the path Debian and Ubuntu install it to:

    # sparse: it takes only what is written to it, not the 192 GiB it may grow to
    qemu-img create -f qcow2 kdos.qcow2 192G
    qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 4G \
        -bios /usr/share/ovmf/OVMF.fd -cdrom kdos-v0.2.iso \
        -drive file=kdos.qcow2,format=qcow2 \
        -device virtio-vga -device virtio-net-pci,netdev=n \
        -netdev user,id=n -usb -device usb-tablet

    In VirtualBox 7, set the type by hand to Linux, version Other Linux (64-bit): a name containing DOS makes VirtualBox pick a DOS machine that cannot start KDOS. Give it 4096 MB of memory and keep the VMSVGA graphics controller; VBoxVGA and VBoxSVGA leave the desktop frozen or black. KDOS ships no guest additions, so the screen does not follow the window and there is no shared clipboard: set the resolution in System Settings › Display Configuration.

    The QEMU command above gives the guest no 3D acceleration, so the desktop draws in software, as in any virtual machine without it. The desktop works that way, but Phosphor mode cannot be turned on, and boxed GTK 4 applications (see Adding software) crash at start on the software renderer. Getting started has the firmware paths of other distributions and the rest of VirtualBox's settings.

  4. …or from a USB stick

    Writing the ISO erases everything on the stick. On Linux, find the stick with lsblk (match its size, and make sure it is not one of your disks), and use it in place of /dev/sdX:

    sudo dd if=kdos-v0.2.iso of=/dev/sdX \
        bs=4M status=progress conv=fsync

    On Windows or macOS, use a tool that writes a raw disk image, such as Rufus in DD mode or balenaEtcher; Rufus's ISO mode makes a stick that does not boot. Ventoy works too: copy the ISO onto the Ventoy stick and choose Boot in normal mode. Then start the computer from the stick: the firmware's boot menu, often on F12, F11, F8 or Esc at power-on, lists it.

  5. Use the live session

    The boot menu starts the live session after ten seconds and logs you in by itself as kdos. That account's password, which sudo and the lock screen ask for, is kdos, and so is root's.

    Nothing you do there touches your disks. What you change or install is held in memory and is gone when you restart, unless you keep a persistence store: a partition that holds the live session's changes, on a stick written with dd or a raw-image tool, or on a second stick (a Ventoy stick cannot hold one). The SSH server is off; leave it off on the live system, whose passwords everyone knows.

  6. Install

    Back up anything you care about on the target disk first. Open Install KDOS on the desktop, or run sudo kinstall for the text-mode installer. It asks for the time zone and keyboard, the disk (all of it, partitions it already has, or a layout of your own, optionally encrypted), your account, the accent (the colour scheme) and the desk (the panel layout), and the applications.

    Nothing is written until you confirm its summary, except a partition table you edit yourself in Partition Manager (or cfdisk in kinstall), which is written the moment you apply it. Only erasing a whole disk of the size under What it needs, with the two system slots left ticked as they are by default, sets up the slots that let an update be undone.

    The installer does not shrink another system's partition for you; to keep Windows or another Linux, make the room first, and that install gets one slot. KDOS's boot menu lists only KDOS: on UEFI, start the other system from the firmware's boot menu; on legacy BIOS, where KDOS's boot loader takes the disk's boot code, the other system does not start from that disk. Installation goes through every page.

Adding software

The ISO carries the desktop, the core KDE applications and Firefox; everything else is a download away. KDOS packages software as ports: a port is a program KDOS compiles from a recipe in its own repository. Software comes three ways, and Discover, the software centre, shows all three side by side once it has fetched the release's package index, which it does when it opens with a network:

WayWhat it isFrom a terminal
Native, prebuiltAny of the 2,446 ports, such as LibreOffice, GIMP, Krita, Blender, Thunderbird or Wine, compiled for this release and downloaded from its signed package server. Discover calls it KDOS systemsudo kdos update install <name>
Native, built hereThe same port, compiled on your machine from its recipe. Discover calls it KDOS, built on this computersudo kdos update install --source <name>
BoxedA Debian application, built on demand into a box, a container of its own: Discover offers the desktop applications in Debian's catalogue, less a short list that cannot work in a box, and kdos app the 69 applications of KDOS's own catalogue. A box keeps the application's libraries apart from the system, not your files from the application: it shares your home folder. Discover calls it Debian, built in a boxkdos app install <id>

Each native application with a menu entry has been started on KDOS, but they have not been used in earnest, so expect rough edges.

Ports also come in 22 groups, so a set installs in one step:

kdos update groups                     # every group, whether it is installed, and its download size
sudo kdos update install office        # a group: LibreOffice, Calibre and TeXstudio
sudo kdos update install gimp          # one program, prebuilt
kdos app search scribus                # the boxed catalogue
kdos app install app.scribus           # a boxed application

Applications covers every way in full.

Staying up to date

A KDOS update is the next release as a whole, not a stream of single packages. Nothing downloads by itself: KDOS looks for a new release only when you open Discover or run sudo kdos update fetch.

On a computer with two system slots, Discover's Updates page offers the new release: Update writes it into the slot you are not running while you keep working, and Restart starts it on trial. Once it has started and stayed up for a minute it is kept. A version that does not get that far is undone by itself: at the next start on UEFI, within three starts on legacy BIOS. From a terminal:

sudo kdos update fetch             # the newest signed release information
kdos update check                  # what an update would change
sudo kdos update apply --mount     # mount the other slot and write the next release into it

Then restart, and the new version starts on trial in the same way. System Settings › System Versions lists the slots and starts the other one at the next boot, which is also the way back by hand. On a computer that does not log in by itself, a desktop that breaks only after you log in is not undone on its own, so go back this way. Where the desktop is too broken to open System Settings, sudo kdos-bootctl try <slot> on the text console (Ctrl+Alt+F2) does the same.

On a computer with one slot, Discover does not offer the update. Run sudo kdos update fetch and then sudo kdos update apply, which installs the release's signed packages over the running system, with no undo.

Going back to the other slot has been tested on virtual machines only, and moving an installed machine from one published release to the next has not been tested yet.

The book on board

Every KDOS machine carries the KDOS book, the full manual, readable offline: open it from the Library category of the application menu, or run kdos-doc. The second book, KDOS from Scratch, builds the system phase by phase and package by package; sudo kdos update install kdos-kfs puts it on the machine too. The books says what is in each.