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
41 lines
2.2 KiB
Markdown
41 lines
2.2 KiB
Markdown
# 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`.
|