Sign in from afar

Reach a computer's login screen before anyone signs in, and sign in to it from wherever you are. Off unless you turn it on.

Normally a computer is reachable through Humble Viewer only while someone is signed in to it. After a restart, a sign-out or a power cut it waits at its login screen (the Windows sign-in screen, or a Linux display manager such as SDDM or GDM), and until someone signs in at the computer itself it is offline in your account. Signing in from afar closes that gap: while nobody is signed in, connecting to the computer (the usual 🖥 button) shows its login screen, and you type the password there as you would at the computer. Once you are signed in, the session moves on to the desktop.

It is off on every computer unless someone with administrator rights on that computer turns it on. Turn it on only where you need it: a computer you look after but never sit at, or one that must come back after updates restart it.

On Omarchy, leave it off, and keep Omarchy's automatic sign-in. Omarchy asks for its disk password every time it starts, before the network is up, so after a restart the computer cannot be reached from afar until someone types that password at the keyboard. By then the disk password has already done the protecting, and a second password at the login screen only gets in the way. So on Omarchy we recommend things as Omarchy sets them up: automatic sign-in on (the /etc/sddm.conf.d/autologin.conf it installs), and signing in from afar off, as it is unless turned on. After a restart, type the disk password at the computer; it then signs in by itself and is reachable as usual.

How it works

WindowsLinux
What shows the login screenThe background service (unattended access), which runs as the system and already reaches the sign-in screen.A small system service, humble-login.service, which runs as root and reaches the display manager's login screen (SDDM on Hyprland, as on Omarchy, and GDM, as on Fedora and Ubuntu).
Which computer it is in your accountThe same computer as its desktop, with the same ID and the same access rules. It is online only while the login screen shows; once someone signs in, the desktop takes its place.
What you get thereThe picture of the login screen, and your keyboard and mouse. No file transfer, clipboard, sound or chat.
When someone signs inThe login screen goes away and your session window says Signed in and connects again to the desktop by itself (with Humble Viewer 0.27 or newer on your side; with an older one, press Reconnect).

Turn it on, and off

Any of these, on the computer itself. Each needs an administrator (Windows) or root (Linux): the app asks for one, and the commands must be run as one (an administrator's terminal on Windows, sudo on Linux).

What it changes for security

What it does not do

Starting without the disk password (not recommended)

We do not recommend this. The disk password is what keeps your files safe when the computer itself is lost or stolen. The steps below let the computer's security chip (the TPM) unlock the disk by itself, so that after a restart it comes up to its login screen, where signing in from afar can reach it. That also means a thief who switches the computer on gets the same: a running computer with the disk already unlocked, protected only by its login screen. Without Secure Boot turned on and locked down as well, it is worse: someone with the computer in their hands can change how it starts and get past the login screen, so the encryption no longer protects anything. Getting a step wrong can also leave the computer unable to start until someone types the disk password, or the recovery key, at the keyboard; and if that keyboard is a Bluetooth one set up for the disk prompt, it stops working there (see below). Our advice: keep the disk password, and type it at the computer after a restart; from then on, signing in from afar works as described above.

On Omarchy this matters even more: with Omarchy's automatic sign-in (recommended there), a disk the TPM unlocks by itself means the computer starts straight to its desktop with nobody asked for anything.

If you decide to do it anyway, for a computer in a place you trust, here is how. Do it while you are at the computer, keep the disk password as it is (it stays the fallback whenever the TPM refuses), and make a recovery key first.

A Bluetooth keyboard at the disk prompt stops working. If you type the disk password on a Bluetooth keyboard (on Omarchy and Arch: the mkinitcpio-bluetooth package and its bluetooth hook), that only works in the older start-up image these steps replace; it has no systemd version. From the switch on, the disk prompt can only be answered with a wired keyboard, a keyboard with its own USB receiver, or the laptop's built-in keyboard. That prompt is exactly what you need when the TPM refuses (after a firmware update, with Secure Boot changed) and for the recovery key, so have such a keyboard at hand before you start, and keep one near the computer for as long as it stays set up this way. Undoing the change (below) brings the Bluetooth keyboard back.

Omarchy and Arch Linux (LUKS2, mkinitcpio, Limine)

Omarchy unlocks the disk in its start-up image (initramfs) with the older encrypt hook, which cannot use the TPM. The steps switch the start-up image to systemd's (which can), test that the password still works, and only then add the TPM.

  1. Check. The computer needs a TPM 2.0 and a LUKS2 disk:
    systemd-cryptenroll --tpm2-device=list      # lists the TPM
    lsblk -f                                     # the crypto_LUKS partition, e.g. /dev/nvme0n1p2
    sudo cryptsetup luksDump /dev/nvme0n1p2 | head -3   # Version: 2
    Below, replace /dev/nvme0n1p2 with your partition.
  2. Make a recovery key and keep it somewhere other than this computer (a password manager, on paper):
    sudo systemd-cryptenroll /dev/nvme0n1p2 --recovery-key
  3. Use systemd in the start-up image. Omarchy's hooks are in /etc/mkinitcpio.conf.d/omarchy_hooks.conf, which Omarchy updates may rewrite, so change them in a file of your own that is read after it, /etc/mkinitcpio.conf.d/zzz-tpm-unlock.conf:
    # Unlock the disk with the TPM: systemd's start-up image instead of the busybox one.
    _h=()
    for x in "${HOOKS[@]}"; do
      case $x in
        udev) _h+=(systemd) ;;
        encrypt) _h+=(sd-encrypt) ;;
        keymap) _h+=(sd-vconsole) ;;
        consolefont | resume) ;;   # sd-vconsole covers the font; systemd resumes from hibernation itself
        btrfs-overlayfs) _h+=(sd-btrfs-overlayfs) ;;
        *) _h+=("$x") ;;
      esac
    done
    HOOKS=("${_h[@]}"); unset _h x
    Hooks added for the old start-up image only have no systemd version and stop working. The usual one is bluetooth (mkinitcpio-bluetooth, a Bluetooth keyboard at the disk prompt): from here on use a wired or USB-receiver keyboard (or the laptop's own) at that prompt; see the warning above.
  4. Tell the start-up image which disk to unlock. Get the disk's UUID with sudo cryptsetup luksUUID /dev/nvme0n1p2. In /etc/default/limine, on the KERNEL_CMDLINE[default] line, replace cryptdevice=PARTUUID=…:root with
    rd.luks.name=<the UUID>=root rd.luks.options=tpm2-device=auto
    and leave root=/dev/mapper/root and everything else as it is. Then rebuild the start-up image and boot entries:
    sudo limine-update
  5. Restart and type the disk password, as before, on a wired or USB-receiver keyboard if you used a Bluetooth one. It must still work; the prompt looks a little different. If the computer does not start, pick an older entry or a snapshot in the Limine menu, or undo the two changes from a USB stick.
  6. Add the TPM. Bound to PCR 7 (the Secure Boot state), as is usual:
    sudo systemd-cryptenroll /dev/nvme0n1p2 --tpm2-device=auto --tpm2-pcrs=7
    Restart: the computer now goes straight to its login screen. When the TPM refuses (after some firmware updates, or with Secure Boot changed), the password prompt simply comes back; type it, and enroll the TPM again with the same command after --wipe-slot=tpm2 (below).
  7. Close the gaps, if you keep it. Turn on Secure Boot with your own keys (sbctl; see the Arch Wiki's Unified Extensible Firmware Interface/Secure Boot page) so that only your own start-up files run, turn off editing the start options in the boot menu (editor_enabled: no in limine.conf), and set a firmware (BIOS/UEFI) password. Without these, the TPM unlocks the disk for anyone who starts the computer, whatever they start.

To undo (the disk password is asked again at every start):

sudo systemd-cryptenroll /dev/nvme0n1p2 --wipe-slot=tpm2

The systemd start-up image can stay; to go back to Omarchy's own, delete zzz-tpm-unlock.conf, put cryptdevice=… back in /etc/default/limine and run sudo limine-update. That also brings back a Bluetooth keyboard at the disk prompt, if you had one set up.

Other systems