# 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`.