Skip to main content
On this page

Install

Installing takes one USB stick, one network cable and about half an hour, most of it waiting. The installer asks one question and otherwise runs on its own. It wipes every fixed disk in the machine.

What you need​

  • A machine with a 64-bit Intel or AMD processor (x86_64) and UEFI or BIOS firmware, at least 4 GiB of memory and one disk of 40 GiB or more. Building widgets and apps with AI works on that too, see Build with AI. Mini-PCs built for offices suit it well. Most of them have a TPM 2.0 chip in the firmware, called Intel PTT or AMD fTPM, and the installer keeps the disk key in it. LosOS runs on x86_64 only. You cannot install it on an ARM machine, and in particular not on an Apple Silicon (M-series) Mac.
  • A USB stick of 2 GiB or more.
  • A wired network connection with internet access. The installer downloads the system it installs.
  • A screen and keyboard for the machine, for the install only. After that the screen shows a banner with the box's address, and the box needs neither.
The terminal client needs nothing from the stick

losos signs in with LosOS Login, like the web pages, so there is nothing to decide before you install and no key has to be on the stick. The terminal client shows how to sign in.

Steps​

  1. Download the installer ISO and its .sha256 from the latest release and write it to the stick with balenaEtcher, Rufus in DD mode, or dd.
  2. In the machine's firmware, either turn Secure Boot off or add the LosOS certificate next to Microsoft's, so the firmware can verify the stick. Don't delete Microsoft's certificates to make room. Secure Boot and signed media shows how. A new PC trusts only Microsoft's keys, so with Secure Boot on and nothing enrolled the firmware refuses the stick, sometimes without a message. The installed box needs Secure Boot off either way, because its own loader is not signed.
  3. Boot from the stick. While it starts it shows the LosOS logo, above the boot menu on a BIOS machine and alone on a UEFI one. Then a menu under the logo offers BIOS, UEFI or autodetect on the keys 1, 2 and 3, and takes autodetect after 30 seconds, so an unattended boot still installs. Autodetect picks the mode the stick itself was booted in, which is right for almost everyone. Install variants explains the choice.
  4. Wait. The installer finds every fixed disk, puts them in one encrypted volume, downloads the system and installs it, and the screen marks each step as it runs. On a machine with a TPM chip one step seals the disk key to it; without one the screen warns that the key is on the boot partition. Install variants explains what that means.
  5. When the screen says LosOS is installed, remove the stick and press any key to restart. After the restart the screen shows the salmon with a banner under it holding the box's address. Open that address in a browser on any computer on the same network and follow The first run.

The installer's menu under the salmon: press 1 for BIOS, 2 for UEFI or 3 for autodetect, which starts by itself after 30 seconds.

The installer's steps under the salmon, the running one marked. This machine has no network yet, so the screen says to plug in a cable, and it has no TPM chip, so it says where the disk key goes.

The end of an install: LosOS is installed, remove the stick and press any key to restart.

The box's screen after the first boot: the salmon, and under it LosOS v0.4.0 is ready, with the box's addresses and its .local name.

Trying it in a virtual machine​

The box runs in QEMU, virt-manager or VirtualBox. Two things to know:

  • Give the VM an emulated TPM, swtpm, if you want the TPM unlock path. Without one the box installs in keyfile mode, which also works.
  • The VM host usually does not resolve the box's .local name. Use the IP address from the banner. Install in depth has the exact QEMU lines. For showing the box off there is also a ready-made demo disk image, losos-disk-qcow2, with no encryption and no installer.

With quickemu​

The repository carries a quickemu configuration, docs/vm/losos.conf. It gives the VM 4 cores, 8 GiB of memory and a 64 GiB disk, UEFI firmware with Secure Boot off, and an emulated TPM, so the installer seals the disk key the way it does on a mini-PC. The numbers are above the minimum because the box runs LosOS Cloud and LosOS Git and rebuilds itself every night onto the same disk.

  1. Install quickemu and swtpm.
  2. Download the installer ISO from a release and save it as docs/vm/losos/losos-installer.iso.
  3. Run quickemu --vm docs/vm/losos.conf. The disk, the firmware variables and the TPM state are kept in docs/vm/losos/, so later boots find the sealed key.
  4. When the installer says LosOS is installed, press a key to restart. The installer puts the box's boot loader first in the firmware's boot order, so the VM comes up from its disk. Later runs of quickemu leave the ISO out, because the disk is no longer empty.
  5. Open http://localhost:8080 on the host. quickemu forwards port 8080 to the box's port 80 and 8443 to 443.
quickemu needs KVM

quickemu needs hardware virtualisation, which is KVM on Linux, and refuses to start on a host without it.