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
| Windows | Linux | |
|---|---|---|
| What shows the login screen | The 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 account | The 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 there | The picture of the login screen, and your keyboard and mouse. No file transfer, clipboard, sound or chat. | |
| When someone signs in | The 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).
- In the app: Settings → Unattended access → Signing in from afar → Turn on… (and Turn off). Windows shows its usual administrator prompt; Linux asks for an administrator's password.
- Windows installer: on the Unattended access page, tick Allow unattended access and then Also before anyone
signs in. Silent installs:
msiexec /i humble.msi /qn UNATTENDED=1 LOGINSCREEN=1. Modify in Windows Settings → Apps changes it later, and an upgrade keeps it as it was. Removing unattended access turns it off. - Command line:
On Linux,humble login-screen enable # as an administrator (Windows) or with sudo (Linux) humble login-screen disable humble login-screen status # anyone may asksudo humble login-screen enablecopies the computer's identity from the Humble Viewer of the person runningsudo(or--user NAME); the computer must be in your account already (Add this computer). If the computer joins another account later, enable it again.disablestops the service and deletes its copy.
What it changes for security
- Who can reach the login screen: exactly those your server lets control the computer, the same people who can reach its desktop while someone is signed in. Everyone else gets nothing, as before.
- They can try passwords there. That is the one real addition: someone with access to the computer in your account, but
without its password, could try passwords at its login screen. The computer's own protection applies, as at the keyboard: whatever it
does after wrong passwords (Windows' account lockout policy; on Linux,
pam_faillockwhere the system turns it on, as Arch and Omarchy do). Use good passwords on computers where this is on. - Nothing gets past a locked screen. While anyone is signed in, even with the screen locked, the computer is reachable only as its desktop, as before; the login-screen part is off. Connecting never signs anyone in: only the password typed does.
- Off means off. With it off, nothing is reachable before someone signs in, through your server or directly on the network.
- Linux runs it as root, boxed in. To reach the display manager's screen and type into it,
humble-login.serviceruns as root, but keeps only one of root's special powers (opening the login screen's files), on a read-only system, without home directories, with the virtual keyboard and mouse device (/dev/uinput) as its only device, and only connections through your server. Its copy of the computer's identity, in/var/lib/humble-login, is readable by root only; it holds no dashboard sign-in. - It is logged on the computer: every session at the login screen, with who connected, is in the computer's log
(
journalctl -u humble-loginon Linux; on Windows the background service's log,%ProgramData%\Humble\service.log).
What it does not do
- It does not reach a disk-encryption password asked for when the computer starts (BitLocker PIN, LUKS on Linux): nothing runs before the disk is unlocked. After a restart or a power cut, someone has to type it at the computer. (Ways around it exist, but we do not recommend them: see Starting without the disk password.)
- Linux: only login screens drawn with Wayland (SDDM on Hyprland, GDM) for now. With automatic sign-in turned on, a Linux computer usually never shows a login screen after a restart, so there is nothing to reach until someone signs out. On Omarchy that is what we recommend (above).
- Windows: showing the sign-in screen (and the lock screen and administrator prompts) in a session is not reliable yet; see Troubleshooting. The setting decides whether the computer is reachable before anyone signs in at all; with it off, the default, it stays offline until someone does.
- macOS is not supported yet.
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.
- Check. The computer needs a TPM 2.0 and a LUKS2 disk:
Below, replacesystemd-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/dev/nvme0n1p2with your partition. - Make a recovery key and keep it somewhere other than this computer (a password manager, on paper):
sudo systemd-cryptenroll /dev/nvme0n1p2 --recovery-key - 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:
Hooks added for the old start-up image only have no systemd version and stop working. The usual one is# 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 xbluetooth(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. - 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 theKERNEL_CMDLINE[default]line, replacecryptdevice=PARTUUID=…:rootwith
and leaverd.luks.name=<the UUID>=root rd.luks.options=tpm2-device=autoroot=/dev/mapper/rootand everything else as it is. Then rebuild the start-up image and boot entries:sudo limine-update - 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.
- Add the TPM. Bound to PCR 7 (the Secure Boot state), as is usual:
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 aftersudo systemd-cryptenroll /dev/nvme0n1p2 --tpm2-device=auto --tpm2-pcrs=7--wipe-slot=tpm2(below). - 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: noinlimine.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
- Fedora (its start-up image already uses systemd): steps 1, 2 and 6 above, then add
tpm2-device=autoto the disk's options in/etc/crypttaband runsudo dracut -f. - Ubuntu: TPM unlocking is offered by the installer, when installing; changing an existing installation is not covered here.
- Windows (BitLocker): BitLocker normally unlocks with the TPM alone and asks nothing at start; it asks only when a startup
PIN was added. To remove the PIN, in an administrator's terminal:
manage-bde -protectors -get C:(shows TPM And PIN), thenmanage-bde -protectors -delete C: -Type TPMAndPINandmanage-bde -protectors -add C: -TPM. Keep the recovery password it shows. Where a group policy requires the PIN (Require additional authentication at startup), ask whoever manages the computer.