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:
16 files changed
+171
-108
No files matched your search
+10
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user