Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

Merge branch 'v084-imager'

Federico Pereirad68a8188e26a
diff --cc CHANGELOG.md
index ab0f05f,7b23ff9..845b913
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -14,26 -14,33 +14,53 @@@ of the matching [GitHub release](https:
### Added
+- **Settings → Appearance → «Browsers: tabs in the title bar».** One switch for both preinstalled
+ browsers: on (the default), Chromium and Firefox draw a single bar with their tabs and LordOS's
+ window buttons; off, they use the LordOS frame. It changes the setting in your own browser
+ profiles and applies the next time each browser opens; if Chromium is open, it waits until you
+ quit it. Chromium profiles from before this version that still use the LordOS frame are shown on
+ the page, with a button to change them too. A choice you made yourself in a Firefox `user.js`
+ file is left alone, and choices you make later in the browsers' own settings stick.
+- **Remote desktop as video.** In a browser that supports WebRTC, the remote desktop now arrives as
+ real video (H.264, or VP8 when the browser has no H.264) with the session's sound (Opus), instead
+ of images. Still areas are then made pixel-perfect with lossless tiles, so text stays sharp.
+ Dragging a window went from about 23 frames per second and 12.5 Mbit/s to about 28 frames per
+ second and under 1 Mbit/s, and the connection's own process from 57 % of a core to 2 %. The
+ session encodes once (on the graphics card with VA-API when it can, else in software) for every
+ viewer of that session; the screen keeps being composed on the graphics card while someone
+ watches. Keyboard, mouse and clipboard go over a WebRTC data channel. If the browser or the
+ network can't do WebRTC, it falls back to the images, as before.
+- **Settings → Sharing → Video:** turn the video off (images only), add public STUN servers and a
+ TURN relay for connecting across networks. A built-in STUN server covers the local network, and
+ nothing reaches outside servers unless you add them. The relay's password stays on the computer,
+ readable only by the system, and is never sent to the browser.
+ - **LordOS Imager.** Write LordOS to an SD card or a USB stick and have the Raspberry Pi 5 start
+ ready to use: choose the device (Raspberry Pi 5, or a PC from a USB stick), the system image (the
+ latest signed release, downloaded once and resumed if interrupted, or a file of your own with a
+ clear warning) and the drive (only SD cards and USB drives; internal disks and the disk the
+ computer runs from are never shown), then customise the first boot: computer name, language,
+ time zone, keyboard, your account (only a hash of the password goes on the card), Wi-Fi (only the
+ derived key), SSH with keys or a password, LordOS remote desktop (local network only), Bluetooth,
+ Lord Default or Classic in light or dark with your accent, and cooling (case with a fan, active
+ cooler, passive case or nothing, with a matching profile and an optional mild overclock with a
+ fan). Lumo gives a tip at every step and celebrates at the end. Every official image is checked
+ against the LordOS release signature before anything is erased, and every card is read back and
+ compared after writing; cancelling clears the card. In English, Spanish and Portuguese, with
+ keyboard navigation. See [docs/IMAGER.md](docs/IMAGER.md).
+ - **The LordOS Imager for other computers**: the same app for the three common desktop platforms (Tauri, about
+ 6 MB), sharing the interface with the one in LordOS. Built from the source for now; signed
+ downloads will come with a release.
+ - **First-run file on the Raspberry Pi** (`lordos-firstrun.txt` on the boot partition): read once on
+ the first boot by `lordos-firstrun`, strictly validated (nothing is applied if any part is wrong),
+ then overwritten and deleted. See [docs/RASPBERRY.md](docs/RASPBERRY.md), "First boot".
+
+ ### Security
+
+ - The imager's privileged part is four closed actions: downloads run `curl` as the user against two
+ fixed URL shapes; writing accepts only a whole removable disk whose size, model and serial are
+ re-checked right before it is opened exclusively, decompresses with `xz` running as the user, and
+ never writes an official image whose signature or hash doesn't match. Over 2 TiB is refused.
+ - Saved Wi-Fi networks may hold a derived WPA2 key (`psk=`) instead of the password.
### Changed
diff --cc assets/locales/en/errors.json
index 25676ab,d83a1c6..df68310
--- a/assets/locales/en/errors.json
+++ b/assets/locales/en/errors.json
@@@ -567,7 -567,33 +567,36 @@@
"app.codeRefused": "This app's code was modified and was not loaded",
"remote.badAddress": "Not a valid address or network",
"remote.listFull": "The list is full (64 entries)",
+ "remote.badIceServer": "Not a valid server: use name:port, like stun.example.org:3478 (at most 4)",
+ "remote.badTurnUser": "Not a valid relay user name (no spaces, at most 128 characters)",
- "remote.badTurnPassword": "Not a valid relay password (at most 128 characters, no line breaks)"
++ "remote.badTurnPassword": "Not a valid relay password (at most 128 characters, no line breaks)",
+ "imager.cacheFailed": "The imager's download folder (~/.cache/lordos/imager) can't be used",
+ "imager.noCurl": "The download tool (curl) isn't installed",
+ "imager.fetchCancelled": "Download cancelled",
+ "imager.fetchTooLarge": "The download is larger than expected",
+ "imager.fetchNotFound": "The release file wasn't found",
+ "imager.fetchNetwork": "No connection to the LordOS releases page",
+ "imager.fetchFailed": "The download failed (code {code})",
+ "imager.nothingRunning": "Nothing is being downloaded",
+ "imager.notRemovable": "{name} is not a removable drive: the imager only writes SD cards and USB drives",
+ "imager.readOnly": "{name} is write-protected",
+ "imager.diskChanged": "{name} is not the drive that was chosen (it changed or was replaced)",
+ "imager.badImageName": "That file isn't an .img, .img.xz or .iso image",
+ "imager.xzDamaged": "The .xz image is damaged or incomplete",
+ "imager.noXz": "The .xz tool (xz-utils) isn't installed",
+ "imager.noSignature": "The release signature files couldn't be read",
+ "imager.badSignature": "The release signature doesn't match the LordOS key",
+ "imager.notListed": "The signed list doesn't include {name}",
+ "imager.hashMismatch": "The image doesn't match its signed SHA-256: it was not written",
+ "imager.cancelledWiped": "Cancelled: the drive was cleared",
+ "imager.xzFailed": "The image couldn't be decompressed",
+ "imager.imageChanged": "The image file changed while it was written: the drive was cleared",
+ "imager.driveTooLarge": "{name} is larger than 2 TiB: LordOS images can't use it",
+ "imager.notAuthorized": "Writing to the drive wasn't allowed",
+ "imager.listFailed": "The drives couldn't be listed",
+ "imager.bootNotFound": "The card's boot partition didn't appear",
+ "imager.ejectFailed": "The drive couldn't be ejected",
+ "imager.noUdisks": "The disk service (udisks2) isn't running",
+ "imager.hashFailed": "The password couldn't be hashed",
+ "imager.pskFailed": "The Wi-Fi key couldn't be derived"
}
diff --cc assets/locales/es/errors.json
index 2047d66,557f28d..1445515
--- a/assets/locales/es/errors.json
+++ b/assets/locales/es/errors.json
@@@ -567,7 -567,33 +567,36 @@@
"app.codeRefused": "El código de esta app fue modificado y no se cargó",
"remote.badAddress": "No es una dirección o red válida",
"remote.listFull": "La lista está llena (64 entradas)",
+ "remote.badIceServer": "No es un servidor válido: usá nombre:puerto, como stun.ejemplo.org:3478 (como mucho 4)",
+ "remote.badTurnUser": "No es un usuario de relé válido (sin espacios, hasta 128 caracteres)",
- "remote.badTurnPassword": "No es una contraseña de relé válida (hasta 128 caracteres, sin saltos de línea)"
++ "remote.badTurnPassword": "No es una contraseña de relé válida (hasta 128 caracteres, sin saltos de línea)",
+ "imager.cacheFailed": "No se puede usar la carpeta de descargas del grabador (~/.cache/lordos/imager)",
+ "imager.noCurl": "La herramienta de descarga (curl) no está instalada",
+ "imager.fetchCancelled": "Descarga cancelada",
+ "imager.fetchTooLarge": "La descarga es más grande de lo esperado",
+ "imager.fetchNotFound": "No se encontró el archivo de la versión",
+ "imager.fetchNetwork": "No hay conexión con la página de versiones de LordOS",
+ "imager.fetchFailed": "La descarga falló (código {code})",
+ "imager.nothingRunning": "No se está descargando nada",
+ "imager.notRemovable": "{name} no es una unidad extraíble: el grabador solo graba tarjetas SD y unidades USB",
+ "imager.readOnly": "{name} está protegida contra escritura",
+ "imager.diskChanged": "{name} no es la unidad elegida (cambió o la reemplazaron)",
+ "imager.badImageName": "Ese archivo no es una imagen .img, .img.xz o .iso",
+ "imager.xzDamaged": "La imagen .xz está dañada o incompleta",
+ "imager.noXz": "La herramienta .xz (xz-utils) no está instalada",
+ "imager.noSignature": "No se pudieron leer los archivos de firma de la versión",
+ "imager.badSignature": "La firma de la versión no coincide con la clave de LordOS",
+ "imager.notListed": "La lista firmada no incluye {name}",
+ "imager.hashMismatch": "La imagen no coincide con su SHA-256 firmado: no se grabó",
+ "imager.cancelledWiped": "Cancelado: la unidad quedó limpia",
+ "imager.xzFailed": "No se pudo descomprimir la imagen",
+ "imager.imageChanged": "El archivo de imagen cambió mientras se grababa: la unidad quedó limpia",
+ "imager.driveTooLarge": "{name} tiene más de 2 TiB: las imágenes de LordOS no pueden usarla",
+ "imager.notAuthorized": "No se permitió grabar en la unidad",
+ "imager.listFailed": "No se pudieron listar las unidades",
+ "imager.bootNotFound": "No apareció la partición de arranque de la tarjeta",
+ "imager.ejectFailed": "No se pudo expulsar la unidad",
+ "imager.noUdisks": "El servicio de discos (udisks2) no está funcionando",
+ "imager.hashFailed": "No se pudo calcular el hash de la contraseña",
+ "imager.pskFailed": "No se pudo derivar la clave del Wi-Fi"
}
diff --cc assets/locales/pt/errors.json
index 7096b0f,942f7b8..1dba12b
--- a/assets/locales/pt/errors.json
+++ b/assets/locales/pt/errors.json
@@@ -567,7 -567,33 +567,36 @@@
"app.codeRefused": "O código deste app foi modificado e não foi carregado",
"remote.badAddress": "Não é um endereço ou rede válida",
"remote.listFull": "A lista está cheia (64 entradas)",
+ "remote.badIceServer": "Não é um servidor válido: use nome:porta, como stun.exemplo.org:3478 (no máximo 4)",
+ "remote.badTurnUser": "Não é um usuário de retransmissor válido (sem espaços, até 128 caracteres)",
- "remote.badTurnPassword": "Não é uma senha de retransmissor válida (até 128 caracteres, sem quebras de linha)"
++ "remote.badTurnPassword": "Não é uma senha de retransmissor válida (até 128 caracteres, sem quebras de linha)",
+ "imager.cacheFailed": "Não é possível usar a pasta de downloads do gravador (~/.cache/lordos/imager)",
+ "imager.noCurl": "A ferramenta de download (curl) não está instalada",
+ "imager.fetchCancelled": "Download cancelado",
+ "imager.fetchTooLarge": "O download é maior do que o esperado",
+ "imager.fetchNotFound": "O arquivo da versão não foi encontrado",
+ "imager.fetchNetwork": "Sem conexão com a página de versões do LordOS",
+ "imager.fetchFailed": "O download falhou (código {code})",
+ "imager.nothingRunning": "Nada está sendo baixado",
+ "imager.notRemovable": "{name} não é uma unidade removível: o gravador só grava cartões SD e unidades USB",
+ "imager.readOnly": "{name} está protegido contra gravação",
+ "imager.diskChanged": "{name} não é a unidade escolhida (ela mudou ou foi trocada)",
+ "imager.badImageName": "Esse arquivo não é uma imagem .img, .img.xz ou .iso",
+ "imager.xzDamaged": "A imagem .xz está danificada ou incompleta",
+ "imager.noXz": "A ferramenta .xz (xz-utils) não está instalada",
+ "imager.noSignature": "Não foi possível ler os arquivos de assinatura da versão",
+ "imager.badSignature": "A assinatura da versão não confere com a chave do LordOS",
+ "imager.notListed": "A lista assinada não inclui {name}",
+ "imager.hashMismatch": "A imagem não confere com o seu SHA-256 assinado: ela não foi gravada",
+ "imager.cancelledWiped": "Cancelado: a unidade foi limpa",
+ "imager.xzFailed": "Não foi possível descompactar a imagem",
+ "imager.imageChanged": "O arquivo de imagem mudou durante a gravação: a unidade foi limpa",
+ "imager.driveTooLarge": "{name} tem mais de 2 TiB: as imagens do LordOS não podem usá-la",
+ "imager.notAuthorized": "A gravação na unidade não foi permitida",
+ "imager.listFailed": "Não foi possível listar as unidades",
+ "imager.bootNotFound": "A partição de boot do cartão não apareceu",
+ "imager.ejectFailed": "Não foi possível ejetar a unidade",
+ "imager.noUdisks": "O serviço de discos (udisks2) não está funcionando",
+ "imager.hashFailed": "Não foi possível calcular o hash da senha",
+ "imager.pskFailed": "Não foi possível derivar a chave do Wi-Fi"
}
diff --cc docs/ROADMAP.md
index 99cd274,e6826ea..27cb446
--- a/docs/ROADMAP.md
+++ b/docs/ROADMAP.md
@@@ -675,24 -668,32 +675,35 @@@ Details in `MAIL.md`. Tested on VM 123
Firefox draw their own bar by default, with LordOS's window buttons (traffic lights from LordOS's
GTK theme in Chromium), and the window menu, resize edges and snap layouts keep working. See
`docs/WAYLAND.md`, "Who draws the frame".
+- [x] **Settings → Appearance: "Browsers: tabs in the title bar" (0.8.4)** — one switch, on by
+ default, that sets the browsers' own preference in the user's profiles instead of each browser's
+ settings page (`docs/WAYLAND.md`, "The switch in Settings"):
+ - **Chromium:** `browser.custom_chrome_frame` (and `extensions.theme.system_theme` = 1, the GTK
+ theme, unless the profile uses a theme extension) in each profile's `Preferences`, only while
+ Chromium is closed (if it is open, applied as soon as it quits), through the narrow
+ `lord.browserFrame` call (`hw/brframe.c`): those keys and nothing else, validated JSON before
+ and after, a backup and an atomic rename;
+ - **Firefox:** a marked `user.js` line `user_pref("browser.tabs.inTitlebar", 1|0)` in each
+ profile under `~/.config/mozilla/firefox` (where Firefox 153 puts them) and `~/.mozilla/firefox`,
+ removed again once Firefox has read it; a line the user wrote is kept;
+ - existing Chromium profiles that don't follow the switch (upgrades from 0.8.3) are counted on the
+ page, with a «Change them» button;
+ - the page says the change applies the next time each browser opens.
+- [ ] **Traffic lights in Firefox too** (optional, separate). Firefox draws its window buttons
+ itself (not with the GTK theme), so it would need a per-profile `chrome/userChrome.css` plus
+ `toolkit.legacyUserProfileCustomizations.stylesheets`; weigh it against touching browser profiles
+ before doing it.
+ - [x] **LordOS Imager (0.8.4)** — our own card and stick writer with a first-run experience for the
+ Raspberry Pi 5, in LordOS (`apps/imager`) and as a Tauri app for other computers
+ (`desktop/imager`, one UI for both): signed releases downloaded and cached with resume, only
+ removable drives, verified writes (read back and compared), the first-run file
+ (`lordos-firstrun.txt`: computer name, language, user, Wi-Fi with the derived key, SSH, remote
+ desktop, appearance, cooling) applied once by `lordos-firstrun` on the board. See `docs/IMAGER.md`.
+ - [ ] boot a card it wrote on a real Raspberry Pi 5 (applied with `--root` to the 0.8.3 image so far);
+ - [ ] real sticks and cards on each desktop platform (only virtual ones so far), the Mac's
+ authorized-open prompt and udisks2/polkit on a desktop Linux;
+ - [ ] sign the Mac and Windows downloads (an identity to be chosen) and publish them with the release;
+ - [ ] Wi-Fi scan in the desktop app; WPA3-only networks (today the board needs the password typed there).
-- [ ] **Settings → Appearance: "Browsers: tabs in the title bar" (0.8.4, proposal)** — one switch,
- on by default, that sets the browsers' own preferences for the user instead of each browser's
- settings page:
- - **Chromium:** writes `browser.custom_chrome_frame` (and `extensions.theme.system_theme` = 1, the
- GTK theme, for the traffic lights) in each profile's `Preferences` under `~/.config/chromium`,
- only while Chromium is not running (it rewrites the file on exit), through a narrow `lord.*`
- call that edits those two keys and nothing else (never a free-form JSON write);
- - **Firefox:** a `user.js` line `user_pref("browser.tabs.inTitlebar", 1|0)` in each profile under
- `~/.mozilla/firefox-esr` (read at start, so it applies the next time Firefox opens);
- - off → both go back to the LordOS frame; the page says the change applies when the browser
- restarts;
- - optional, separate: traffic lights in Firefox too. Firefox draws its window buttons itself (not
- with the GTK theme), so it would need a per-profile `chrome/userChrome.css` plus
- `toolkit.legacyUserProfileCustomizations.stylesheets`; weigh it against touching browser
- profiles before doing it.
## After the final ISO
diff --cc docs/VM-SETUP.md
index 15c4de4,75c24cf..b2fa5ab
--- a/docs/VM-SETUP.md
+++ b/docs/VM-SETUP.md
@@@ -1372,108 -1372,39 +1372,145 @@@ in `~/LordOS-csd`, built there (`make -
the profiles, the tree, the script and the backup removed, `lordos.service` restarted to the login
screen. No network or Proxmox setting was touched.
-## Step 39 — 0.8.4: LordOS Imager (VM 116 `lordos-gpu`, October 19)
+## Step 39 — 0.8.4: the browsers' title bar switch in Settings (VM 119 `lordos-spot`, October 19)
+
+See `WAYLAND.md` ("The switch in Settings"). On VM 119 (172.17.0.54), tree in `~/LordOS-brs` (copied
+with `tar` over SSH: the VM has no `rsync`), built there (`make -C server`, `make -C server test`)
+and installed over `/usr/lib/lordos` by `~/deploy-brs-119.sh` (it saved `/usr/lib/lordos` to
+`/var/backups/lordos-brs-bak` and `settings.json` to `/var/tmp` first).
+
+- **Installed for the tests,** as in step 38: `gsettings-desktop-schemas` and `assets/gtk/LordOS*` in
+ `/usr/share/themes/` (Chromium's GTK theme needs them for the traffic lights); both removed at the
+ end.
+- **Session:** `/etc/lordos/session.conf` with `AUTOLOGIN=lord` (it didn't exist; removed at the
+ end), English and light in `settings.json` (restored at the end). A new session for the login-time
+ tidy-up: the session's `lord-server` ended, `/run/lordos/autologin-done` removed, `systemctl
+ restart lordos`.
+- **Browsers,** started from SSH in the session (`WAYLAND_DISPLAY=wayland-0`, the session bus,
+ `GSETTINGS_BACKEND=keyfile`) by `~/brs-run.sh`, quit with `SIGTERM` (Chromium) or Ctrl+Q and
+ Return through `qm monitor 119` `sendkey` (Firefox: mouse clicks don't reach it on this VM).
+ - **Chromium:** the user's `~/.config/chromium` was moved aside to `~/.config/chromium.brs-saved`
+ and a throwaway profile made by starting Chromium; it was turned into a 0.8.3-style profile
+ (`custom_chrome_frame` false) by hand, then: «Change them», the switch turned off while Chromium
+ was open (applied seconds after it quit), and a check that Chromium keeps the edited values when
+ it rewrites `Preferences`. Chromium left a stale `SingletonLock` after `SIGTERM`; it was
+ correctly ignored. At the end the throwaway profile was deleted and the saved folder put back.
+ - **Firefox:** `lord` already had two Firefox ESR profiles in `~/.config/mozilla/firefox` from
+ October 16 (not checked before the first toggle, so the switch wrote to them): `user.js` lines
+ and `user.js.lordos-backup` files, and Firefox ran three times on `eb7mmslg.default-esr` (its
+ normal session files changed; `prefs.js` got `browser.tabs.inTitlebar`). At the end LordOS's
+ files were removed from both profiles (`user.js`, `user.js.lordos-backup`; Firefox never creates a `user.js`, and both
+ backups held only LordOS's line) and the `inTitlebar` line removed from
+ `prefs.js` with Firefox closed, so it follows the default again.
+- **Input and screenshots:** `lord-qmp-input.py 119 1280 800` from the host, `screendump` holding
+ `flock /tmp/sistema-119-screen.lock`.
+- **Undone at the end:** `/usr/lib/lordos` restored from the backup (the 90 paths the deploy added
+ removed, `diff -r` against the backup empty), `settings.json` restored, `gsettings-desktop-schemas`
+ purged, the GTK themes, `session.conf`, the scripts, the tree, the backup and `/tmp/brs-*` removed,
+ `lordos.service` restarted to the login screen (the 0.8.3-era greeter kept running, as before).
+ `eth0` keeps 172.17.0.54; no network or Proxmox setting was touched.
+
+## Step 40 — 0.8.4: remote desktop over WebRTC (VM 122 `lordos-sandbox`, October 19)
+
+See `REMOTE.md`, "Video (WebRTC)". On VM 122 (172.17.0.56), tree in `~/LordOS-rtc` (synced from the
+Mac's `v084-rtc` worktree by a script of its own name, `sync-rtc-122.sh`, kept outside the repo),
+built there (`make -C server`, `make -C server test`) and installed over the package's files by
+`~/deploy-rtc-122.sh`, which saved `/usr/lib/lordos`, `/etc/lordos` and `/var/lib/lordos/remote` to
+`/var/backups/lordos-rtc-20261019` first (`~/restore-rtc-122.sh` put them back). The theme bundles
+were built on the Mac (the VM has no Node).
+
+- **Installed for the build:** `libsrtp2-dev` and `libusrsctp-dev` (with `libsrtp2-1`, `libusrsctp2`,
+ `libnss3-dev`, `libnspr4-dev`); removed at the end with `apt-get purge` + `autoremove`.
+- **Installed for the TURN tests:** `coturn` (`--no-install-recommends`, with its 11 dependencies);
+ its unit was stopped and disabled right after installing, and `turnserver` ran by hand on
+ 172.17.0.56:3478 with a test-only user from `/tmp/turn-rtc.conf`. Purged at the end.
+- **Test-only accounts** `rtest` and `rtest2` (one password, only for these tests); `rtest` was put
+ in `sudo` for the Settings → Sharing screenshots and the `remote-ice` action. Both deleted with
+ their homes at the end.
+- **The GPU path:** a drop-in `/etc/systemd/system/lordos.service.d/rtc-gpu-test.conf`
+ (`Environment=LORD_GPU=1`, llvmpipe on this virtio card) and `rtest` signed in on the login screen
+ through the Proxmox host's `lord-qmp-input.py` and `lord-type.py`; screenshots with `qm monitor 122`
+ (`screendump`). The drop-in was removed.
+- **Browsers:** headless Chrome on the Mac with throwaway profiles in the scratchpad (deleted after
+ each run), driven over the DevTools protocol; CPU and traffic sampled on the VM by
+ `~/cpu-rtc-122.sh` (`/proc/<pid>/stat`, `eth0` counters); the ICE/STUN probes by
+ `/tmp/icetest-rtc.py` from the VM itself.
+- **Configuration changed during the tests** (all restored from the backup): `config` (`net=`
+ switched to `any` by a stray test click and back, `net=list` for one test, the TURN lines),
+ `access` (one test `allow` entry), `turn.key`, `session.conf`.
+- **Undone at the end:** `/usr/lib/lordos` and `/etc/lordos` restored from the backup (`diff -r`
+ empty), `/var/lib/lordos/remote` restored, `/var/lib/lordos/last-user` back to `lord`, the
+ packages above purged, the test accounts, the tree, the scripts, `/tmp` files and the backup
+ removed, `lordos.service` restarted on the package's binaries, at the login screen. eth0 and the
+ VM's network were not touched; VM 123 was not used.
+
+## Step 41 — 0.8.4: the Pi kernel with socket destroy (VM 116 and the Raspberry Pi, October 19)
+
+See `RASPBERRY.md` ("The LordOS kernel", "Switching kernels on a board") and `FIREWALL.md`
+("Existing connections are cut").
+
+- **VM 116 (172.17.0.52), cross build:** installed `gcc-aarch64-linux-gnu` and
+ `libc6-dev-arm64-cross` (with their dependencies: `binutils-aarch64-linux-gnu`, the arm64 cross
+ libraries) and the kernel build packages it lacked: `bison`, `flex`, `libelf-dev`, `libdw-dev`,
+ `dwarves`, `rsync`, `debhelper`. They stay, for the next cross build. Work folder
+ `/var/tmp/imager-scratch/pik-kernel` (the 24 GB scratch disk; about 16 GB at the peak) with a
+ temporary 4 GB swap file; `RPI_KERNEL_REF=234188315037… tools/rpi/build-kernel.sh … 2712`, 67 min.
+ The swap file and the work folder were removed afterwards; the `.debs` were copied out first.
+- **Raspberry Pi 5 (172.17.0.24):** a first attempt to build natively (in a tmpfs, the SD card being
+ 86 % full) ended when the card was removed; nothing of it is left. Then:
+ - `/var/tmp/lordos-kernel/out/`: the `-3` image and headers `.debs` and their config added
+ (`SHA256SUMS` regenerated), where `build-img.sh` takes them from.
+ - `dpkg -i linux-image-6.18.57-lordos.3-rpi-2712_6.18.57-3+lordos_arm64.deb`: the hooks put it at
+ the top level of `/boot/firmware` (over Raspberry Pi's 6.18.50 copy there, which is still
+ installed; the October 18 backup is in `/var/tmp/lordos-kernel/bootbak-20261018`). `-2` stays
+ installed.
+ - `/boot/firmware/lordos/` (the `-2` boot files) renamed `lordos-prev/`; `config.txt` lost its
+ `os_prefix=lordos/` lines (a comment explains how to go back); `tryboot.txt` now boots
+ `lordos-prev/` once. Before the change: `/var/tmp/lordos-pik/config.txt.before` and
+ `tryboot.txt.before`. First boot of `-3` through `tryboot`, then a normal boot, a `tryboot` into
+ `-2` (69 modules loaded, everything active) and back.
+ - `lord-netperm` was still the 0.8.2 binary (not restarted by the 0.8.3 upgrade): restarted.
+ - Tests in `/var/tmp/lordos-pik` (tree copy in `src/`, logs): `netperm_cut.sh` as root with a
+ hand-made `lordos-session-0` cgroup (gone at the reboot; `/root/.config/lordos` removed), before
+ (12/15, the stall) and after (15/15); `verify-board`; `lord-fand` `FORCE 1`/`FORCE off`;
+ `make -C server test`.
+ - Not changed: the network configuration, the `lordbasex` account, the partitions, `cmdline.txt`
+ (this board's lacks `cgroup_enable=memory`, so `verify-board` reports the memory controller as
+ FAIL; the image's has it).
++
++## Step 42 — 0.8.4: LordOS Imager (VM 116 `lordos-gpu`, October 19)
+
+ See `IMAGER.md`. Tree in `~/LordOS-imager`, built there (`make -C server`, `make -C server test`:
+ 23 passed, the imager suites included) and installed over `/usr/local/lib/lordos` by
+ `~/deploy-imager-116.sh`, which first saved `/usr/local/lib/lordos` and lord's `settings.json` in
+ `/var/backups/lordos-imager-bak`.
+
+ - **A scratch disk:** `qm set 116 --scsi1 local-lvm:24,discard=on` on the Proxmox host (as VM 119's
+ `sata1` before it), formatted ext4 (label `imgscratch`) and mounted at `/var/tmp/imager-scratch`
+ (not in fstab); `~/ImagerTest` was a bind mount of its `user/` folder, so test images sat in the
+ home folder as the imager requires. It also served as the internal, non-removable disk the
+ imager must refuse.
+ - **A virtual USB stick:** `modprobe dummy_hcd` and `modprobe g_mass_storage
+ file=/var/tmp/imager-scratch/usb-stick-116.img removable=1` (4 GB, then 16 GB, sparse): `sdc`,
+ `TRAN usb`, `RM 1`. Every write was preceded by `~/ImagerTest/vguard.sh sdc`, which prints the
+ device and stops unless it is that gadget with the backing file's size. No other disk was written.
+ - **Images:** the signed 0.8.1 release folder copied from the development machine, and 0.8.3
+ downloaded from GitHub by `imager-fetch` into `~/.cache/lordos/imager`.
+ - **Session:** `/etc/lordos/session.conf` with `AUTOLOGIN=lord` (it didn't exist) and lord's
+ `settings.json` set to English, both put back at the end; the locked `pwtest` session from an earlier
+ test was ended by the service restarts.
+ - **The Linux download (Tauri) inside the LordOS session:** installed for the test only
+ `libwebkit2gtk-4.1-0` and `udisks2` with their dependencies (61 packages, listed in
+ `~/ImagerTest/linux-test-packages.txt`), and `/etc/polkit-1/rules.d/49-lordos-imager-test.rules`
+ allowing `lord` the udisks2 open/mount/eject actions (the LordOS session has no polkit agent to
+ ask); the app ran as a Wayland client with `WAYLAND_DISPLAY=wayland-0`. All of it was removed at
+ the end (`apt-get purge` of those packages, then the rule).
+ - **Screenshots** with `qm monitor 116` (`screendump`) from the Proxmox host, the pointer with
+ `/root/lord-qmp-input.py 116` and keys with `/root/lord-type.py 116`.
+ - **Undone at the end:** `/usr/local/lib/lordos` restored from the backup, `session.conf` removed and
+ lord's `settings.json` restored, `lordos.service` restarted to the login screen; the gadget
+ unloaded (`rmmod g_mass_storage dummy_hcd`), the bind mount and the scratch mount removed, and the
+ scratch disk detached and deleted from the VM (`qm set 116 --delete scsi1`, then the unused volume
+ removed); `~/ImagerTest`, `~/.cache/lordos/imager`, `~/.config/LordOS Imager` and the test key and
+ image files deleted. `~/LordOS-imager` (the tree) is kept, like the other agents' trees. No network
+ or Proxmox setting other than the scratch disk was touched.