// COMPLETE REFERENCE
Laptop Appliance
The desktop edition can ship as the whole operating system: a Debian 13 image
built with mkosi where the General Bots kiosk shell is the only user interface
(desktop/os/). This page describes what that machine does at runtime —
networking, sound, time, removable media, power, locking, the firewall and the
sandbox — because those are the surfaces a laptop user notices first and the
ones that have nothing to do with the chat product.
Session model
| Piece | Behaviour |
|---|---|
| Display | cage (Wayland) owns tty1; there is no display manager, no greeter, no X11 |
| Login user | gbdesk (system account, nologin, home /var/lib/gbdesk) |
| Session bus | the user manager’s bus at /run/user/<uid>/bus; gb-session waits for it and falls back to a private dbus-run-session only if it never appears |
| User services | PipeWire, WirePlumber, the xdg-desktop-portal stack and gvfs are enabled per user through default.target.wants — nothing is spawned by hand from the launcher |
| Recovery | no console, no rescue shell, no ssh: recovery is reprovisioning from a fresh image |
Networking
NetworkManager owns the interfaces (systemd-networkd is disabled), with
wpasupplicant, wireless-regdb and firmware-iwlwifi present, so a laptop
joins WPA2/WPA3 Wi-Fi from Settings → Network. DNS is systemd-resolved.
Inbound traffic is denied by an nftables ruleset loaded at boot. The provisioned
stack (botserver, Vault, PostgreSQL, Valkey, OtterIO, Qdrant, Zitadel) listens on
loopback, and botserver binds loopback in shell mode even when
no_security=false. Exposing the suite to the LAN is a deliberate act: set
GB_ALLOW_LAN=1 in the sidecar environment and add the client address to the
gb_lan_allowed nftables set. There is no Settings switch for this yet; the
appliance ships closed.
Sound
PipeWire with WirePlumber is the audio server, ALSA clients reach it through
pipewire-alsa, and the GStreamer plugin set (base/good/bad/ugly, libav,
pipewire) gives Meet, Player and Jukebox their codecs. The kiosk unit allows the
/dev/snd nodes explicitly, because PrivateDevices=yes would otherwise hide
them.
Time, locale and keyboard
systemd-timesyncd keeps the clock right (a wrong clock breaks TLS and OTP).
tzdata is the real zone database, so a name resolves with DST instead of a
fixed offset, and locales plus console-setup/keyboard-configuration are
installed with a generated en_US.UTF-8 and a /etc/default/keyboard file
rather than a hard C.UTF-8/us lock.
The suite’s Settings → Language & region zone picker is still client-side
(it stores gb-timezone and formats dates in the browser); it does not yet
call timedatectl/localectl, so the image’s zone, keymap and locale change
by editing those files or with timedatectl set-timezone.
Removable media
udisks2 (with gvfs) is what makes an inserted USB stick visible to the file
picker, mountable, and safely ejectable; exfatprogs, ntfs-3g and
dosfstools cover the filesystems phones and cameras leave behind.
Power
The start menu, the control center and the kiosk close request all open one
power menu: Lock, Sign out, Suspend, Restart, Shut down. Suspend, restart
and shutdown ask for confirmation and then call POST /api/system/power, which
is administrator + loopback only and written to the audit log; the request runs
through /usr/local/libexec/gb-power, a root-owned helper with a fixed action
list. Nothing from the request reaches a command line.
The OS shell also exposes read-only battery/AC telemetry: tray indicators and
the Power & Battery settings page poll GET /api/system/power/status
(sysfs-backed, OS-panel-gated) when available to show presence, charge, state,
AC status and estimated remaining time, and emit low-battery notifications at
20%, 10%, and 5% while discharging (#2445). Lid policy and configurable
critical actions remain follow-up work.
logind no longer powers the machine off on a key press: the image sets
HandlePowerKey=ignore, keeps the lid suspending, and denies the kiosk user
logind’s PowerOff/Reboot/Suspend (and NetworkManager’s system settings)
through a polkit rule.
Locking and the media grant
The lock screen is a UI overlay; the session’s real boundary is the account.
It locks after 15 minutes of inactivity by default (lock-screen.js), and on
explicit lock signals (gb-lock, gb-suspend, logind Lock) or a lock set by
another tab. Switching windows, resuming or opening the lid does not lock the
session. Microphone and camera are granted per origin: the WebKit permission handler
allows media only for the shell’s own loopback origins (plus any host named in
GB_MEDIA_ORIGINS), denies everything else and logs the origin it refused.
Web process sandbox and the IPC surface
bubblewrap and libseccomp2 are pinned in the image and the session exports
WEBKIT_FORCE_SANDBOX=1, so a web process that cannot be sandboxed fails
visibly instead of running page content as the user that owns the database.
The Tauri file commands (list_files, upload_file, create_folder,
delete_path) resolve every path through a scope check: absolute path, no
.., canonicalised (so a symlink cannot escape), inside home / Downloads /
application data / the stack / /var/lib/gbdesk, and never one of the secret
store files (.env, vault-unseal-keys, admin-credentials.json). Deleting a
scope root itself is refused. An injected script can therefore no longer wipe
/var/lib/gbdesk with one call.
What the image still does not do
- The published image is still unsigned (
SecureBoot=no, unsigned UKI). A signed release path (desktop/os/mkosi.profiles/secure-boot-release.conf,desktop/os/build-image.sh --mode release) and an OVMF Secure Boot smoke are wired in CI, but no signed image has been observed booting. On machines that refuse to boot with Secure Boot enabled, disable Secure Boot in firmware as a temporary fallback; the runbook ships next to the release image asgeneralbots-os-secure-boot-fallback.txtand is documented indesktop/os/README-secure-boot.md. TPM-sealed unseal keys and A/B updates remain future work. - The image recipe ships scripts for first-boot LUKS2/btrfs provisioning,
snapshots, encrypted archives, restore and reset under
desktop/os/data-protection/, and the Settings actions live insettings-os-appliance.js. No encrypted first boot, scheduled backup or destructive restore has been verified on a real image, and the Settings actions degrade to a localized “backend unavailable” message until the/api/os/data-protectionroute exists. - Peripheral, accessibility, and display runtime integration is incomplete: image groundwork packages/config exist for Bluetooth/printing/input tools, AT-SPI/Orca/Squeekboard, and brightness/display sensors, but Settings/UI wiring, lock/wizard/runtime behavior, and hardware verification remain follow-up work.
- The Vault token and unseal keys still live in the stack directory owned by
gbdesk; separating the sidecar into a system account is the next step. - There is no password check on the lock overlay yet.
Vibe on the appliance (#2479)
The General Bots OS appliance does not provision Incus, so Vibe’s VM-backed
project kinds cannot run there. The app remains available for its non-VM
surfaces, and apps whose required component is absent from the image (for
example Mail without Stalwart and Meet without LiveKit) are shown in the
launcher with an explicit “Needs …” explanation instead of opening a pane
that can never load data. This is a product decision for the laptop image,
not a missing backend: the registry declares each app requirement and the
shell publishes unavailable_reason from /api/apps/catalog.