One install recipe: just install installs everything
CI / test (push) Successful in 2m25s

just install now builds as you, then asks for root once and installs the
whole thing: the login session (wasm compositor on the MoonBit host,
modules, chandra-ctl, KDE colors, portal) and face unlock (helper, PAM
module, config, models). The alternatives are flags instead of recipes:
--link (was install-dev), --rust (install-rust), --native
(install-native), --pam (install-face --pam), --no-face, --no-models.
The PAM module is compiled as you into build/, so root only copies it;
without a compiler or libpam headers face unlock is skipped with a warning.
just uninstall removes face unlock too (--purge: enrolled faces).

Removed: install-dev, install-rust, install-native, install-face,
uninstall-face and the old install-session* / uninstall-session aliases.
New docs/install.md; README, docs and installer hints updated. Also drops
a committed __pycache__ file and ignores __pycache__/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hkA52AocBmJHipFRqb
This commit is contained in:
Claude committed 2026-11-26 01:38:58 +00:00
1 parent e6be3825d0
commit 3e35c4dfa5
16 files changed
+171 -108

No files matched your search

+10 -6
View File
@@ -11,20 +11,24 @@ any other service you add it to.
## Setting it up
```sh
just install-face # PAM module, chandra-face, settings, face models (asks for root once)
just install # comes with the rest of Chandra (asks for root once)
just install --pam # ... and turns it on for polkit-1 and sudo right away
```
`just install` installs the PAM module, `chandra-face`, its settings and the face models along
with the session; `--no-face` leaves them out. Without a C compiler or the PAM headers it warns
and installs everything else.
Nothing from the distro is needed beyond a C compiler and the PAM headers (`libpam0g-dev` /
`pam-devel`) and [pixi](https://pixi.sh): Python, OpenCV and numpy come from a pixi environment
(`face/pixi.toml` + `face/pixi.lock`) that install-face makes in `/usr/local/lib/chandra/face-env`,
(`face/pixi.toml` + `face/pixi.lock`) that `just install` makes in `/usr/local/lib/chandra/face-env`,
owned by root. It is deliberately not the checkout's `.pixi`: the PAM module runs that Python as
root, so it must not be anywhere a user can write. The models (OpenCV's YuNet face detector and
SFace recognizer, 37 MB) are downloaded from the opencv_zoo repository and checked against their
SHA-256 sums. The environment takes about 450 MB.
The Settings rows are part of the session, not of `install-face`: after updating Chandra, run
`just install` (or `just install-dev`) and log in again so the compositor, its host and the
Settings module are the new ones. (`just reload` alone isn't enough: an older host doesn't serve
The Settings rows are part of the session: after `just install`, log in again so the
compositor, its host and the Settings module are the new ones. (`just reload` alone isn't enough: an older host doesn't serve
the `face-unlock` capability.) Then in **Settings > Session > Face unlock**:
- **Add a face…** asks for your password (in the password dialog), then looks through the
@@ -46,7 +50,7 @@ chandra-face clear # forget every face
chandra-face pam enable polkit-1 sudo
chandra-face pam disable # polkit-1 and sudo by default
chandra-face status # what is set up, what is missing
just uninstall-face # takes it out of every PAM service first
just uninstall [--purge] # takes it out of every PAM service first (--purge: faces too)
```
## In the password dialog
+40
View File
@@ -0,0 +1,40 @@
# Installing
One recipe installs everything:
```sh
just install
```
It builds as you first (the compositor as a wasm component, the MoonBit host, the panel modules
and face unlock's PAM module), then asks for root once, through `scripts/as-root` (run0, else
sudo, doas or pkexec; see [run0.md](run0.md)), and installs:
- the "Chandra" login session: `chandra-host`, `compositor.wasm`, `chandra-session`,
`chandra-root`, `chandra-ctl` and the display-manager entries ("Chandra", and "Chandra (X11)"
for Xorg, see [x11.md](x11.md));
- the panel modules, the theme, fonts and wit files under `/usr/local/share/chandra`;
- dark mode for apps: the xdg-desktop-portal backend ([dark-mode.md](dark-mode.md)) and
`chandra-kde-colors` with its KDE color schemes;
- face unlock: `chandra-face`, `pam_chandra_face.so`, `/etc/chandra/face.conf` and the face
models ([face-unlock.md](face-unlock.md)). PAM services are only changed with `--pam`.
Running it again replaces what is there, so it is also how you update. Log in again afterwards
for a new compositor or host; `just reload` picks up new panel modules in a running session
([reloading.md](reloading.md)).
| Flag | What it changes |
|---|---|
| `--link` | Symlink the session into this checkout instead of copying: after that, rebuilding (`just compositor-wasm wasmhost modules`) is all the next login needs, no root. The checkout must stay where it is. Face unlock is copied either way. |
| `--rust` | Use the Rust host (`host-wasm`, about 2 minutes to build cold) instead of the MoonBit one |
| `--native` | Install the native compositor (system-cc release build) instead of the wasm one |
| `--pam` | Also turn face unlock on for `polkit-1` and `sudo` (Settings > Session can do it later) |
| `--no-face` | Leave face unlock out |
| `--no-models` | Don't download the face models now |
Flags combine: `just install --link --pam`. Without a C compiler or the PAM headers
(`libpam0g-dev` / `pam-devel`) face unlock is skipped with a warning and everything else is
installed.
To remove it all: `just uninstall` (face unlock is taken out of every PAM service first).
`just uninstall --purge` also deletes the enrolled faces and `/etc/chandra/face.conf`.
+1 -1
View File
@@ -19,7 +19,7 @@ that: without the handler the signal's default action ends the session.
## Reloading panel modules
```
just install # or: just modules, with install-dev
just install # or: just modules, after `just install --link`
just reload # reload every panel module from disk
just reload clock-digital # just one
```
+1 -1
View File
@@ -15,7 +15,7 @@ Everything below works with sudo, doas or pkexec too; run0 is only preferred whe
## Installing the login session
```bash
just install # or install-dev / install-native / uninstall
just install # flags: --link, --rust, --native, --pam, --no-face; and `just uninstall`
```
These go through `scripts/as-root`, which uses run0 if systemd is PID 1 and run0 is installed,