How to install cont8nuum (c8) on a minimal openSUSE Tumbleweed: notes for
Claude, to write a non-interactive build-and-install script from.
== What it is ==
cont8nuum is a Metro-style Wayland desktop: `c8`, a wlroots 0.20
compositor, plus a shell (Start, charms, lock screen), PC settings, a UI
toolkit (c8ui) and apps. C11 and meson; no distribution packages of it
exist, it is built from this source tree. One git repo holds every
component as a subdirectory, built in this order by `build.sh` at the
top:
protocols theme toolkit/c8ui compositor desktop/widgets desktop/settings
[the apps: toolkit/lua apps/lua apps/files apps/news apps/tailscale
apps/weather apps/tiles apps/photos apps/video apps/cirrus]
desktop/shell
Each is installed before the next builds against it (build.sh points
PKG_CONFIG_PATH at the prefix). Don't reorder them or build a component
with meson by hand in place of build.sh.
== The steps, in order ==
0. The source: the `main` branch, which has the XR work (VR games
through Monado, the glasses' driver) since 2026-12-04; a copy from
before then had it only on `monado-xr`, now merged and gone. The
repo has no hosted remote, so it arrives as a clone from the machine
it was written on (over ssh/Tailscale, e.g.
`git clone --branch main ssh://HOST/PATH/cont8nuum`), a `git
bundle`, or a copied tree. The USB stick's c8/ folder has
cont8nuum.bundle beside this file (make it again from main if it is
older than 2026-12-04: its main lacks the XR work);
from it:
git bundle verify /PATH/TO/c8/cont8nuum.bundle
git clone --branch main /PATH/TO/c8/cont8nuum.bundle cont8nuum
The clone's origin is then the bundle file: a newer bundle copied to
the same path is taken in by `git pull --ff-only`. Whichever way, the
script must:
- be on the branch: `git switch main` (stop if the tree has
uncommitted changes rather than switch over them); after that,
`git pull --ff-only` when there is a remote to pull from;
- check the XR files are really there, and stop with a clear
message if not (an old copy):
xr/build.sh xr/monado.patch xr/driver/c8_glasses.c
compositor/src/xrclient.c compositor/src/lease.c
compositor/MONADO-XR.md
- fetch the outside sources up front, so a network or checksum
failure comes before an hour of building (after step 1, which
installs git and meson; the builds would fetch them anyway, and
skip what's already there):
meson subprojects download --sourcedir toolkit/lua
Lua 5.4.8, by toolkit/lua/subprojects/lua.wrap, into
toolkit/lua/subprojects/ (hash-checked)
git submodule update --init --depth 1 -- xr
the OpenXR SDK, xrizer and our Monado (xr/monado), at
the commits the repo pins
oo7 0.6.0's release tarball: packaging/build-oo7.sh fetches and
checks it into .oo7/; just run that script in step 3.
All of these land in ignored directories; nothing to commit.
1. Packages. Install everything in packaging/requirements.txt:
sudo zypper --non-interactive install $(sed 's/#.*//' packaging/requirements.txt)
This install is the XR branch, so also install the commented XR block
at the end (git-core, cmake, glslang-devel ... libXrandr-devel): take
the `#name` lines after the "VR games in XR" heading, without the
`#`. One name a line, `#` comments; the other `#name` lines (Tailscale,
oo7-cli, rpm-build) are optional and stay off unless wanted. Every name was
checked against Tumbleweed's repositories; `pkgconfig(...)` and
`/usr/bin/ffmpeg` are capabilities, which zypper resolves. A minimal
install has no GPU drivers (Mesa-dri) or sound stack: they are in the
list, don't drop them.
2. The build, as the ordinary user (never as root: build.sh compiles as
the user and only runs `meson install` through sudo):
./build.sh --install --xr
= prefix /usr/local, the real session, with xr/ (OpenXR loader and
Monado, built first: c8 builds its OpenXR overlay only when the
loader's headers are in the prefix). The XR glasses' udev rule goes
to /etc/udev/rules.d; run `sudo udevadm control --reload` after, and
replug the glasses. Options:
--apps LIST files,photos,video,news,weather,tailscale,tiles,lua,cirrus
(commas), `none` for the desktop alone; default all.
Leaving an app out also lets its -devel packages go.
--xr Monado and the OpenXR loader (needs the XR block of
packaging/requirements.txt, step 1); leave it off only for a
machine without XR glasses
Without --install it builds into ./.prefix to try nested in another
Wayland session; for a machine that will log into it, use --install.
sudo needs a terminal, or SUDO_ASKPASS when there is none.
The first build needs the network: meson downloads Lua 5.4.8 for
c8-lua (checksum-checked wrap). The cont8nuum account is
https://c8.lowtide.sbs (with --install; a nested build uses the local
test site); C8_ACCOUNT_URL=... names another site, and
C8_ACCOUNT_URL= (empty) leaves the account out (fine).
3. The wallet (Secret Service): oo7 0.6 built from upstream with our
patches, into /usr/local/libexec, because Tumbleweed's 0.4.3 hangs
Chromium/Electron apps:
packaging/build-oo7.sh
Needs cargo, rust, curl, patch (in the list) and the network; it runs
sudo for its install step itself. Needed for saved passwords and
online accounts; skippable otherwise.
4. Optional: `packaging/make-deps-rpm.sh --install` builds and installs
`cont8nuum-deps`, an RPM of only dependencies, so zypper never removes
what c8 uses as "unneeded" later. Needs rpm-build (commented in the
list). Run it after step 2, and again whenever dependencies change.
5. Logging in. The session file goes to
/usr/local/share/wayland-sessions/cont8nuum.desktop; SDDM reads that
directory. On a minimal system:
sudo /usr/sbin/update-alternatives --set default-displaymanager \
/usr/lib/X11/displaymanagers/sddm
sudo systemctl enable display-manager.service
sudo systemctl set-default graphical.target
(Tumbleweed picks its display manager through that alternative, which
display-manager.service, a link to display-manager-legacy.service,
starts; /etc/sysconfig/displaymanager no longer has a DISPLAYMANAGER
line. Installing sddm-qt6 usually registers it already; check with
`readlink -f /etc/alternatives/default-displaymanager`.) c8-theme installs an SDDM theme named `cont8nuum`; to use
it, write /etc/sddm.conf.d/cont8nuum.conf with
[Theme]
Current=cont8nuum
and pick "cont8nuum" as the session at the login screen. NetworkManager,
bluetooth and power-profiles-daemon want enabling too
(`systemctl enable --now NetworkManager bluetooth power-profiles-daemon`)
if nothing else does it; pipewire/wireplumber start per user by
themselves.
== What --install writes outside /usr/local ==
So the script can say so, and not be surprised by sudo prompts:
/etc/pam.d/c8-lock the lock screen's PAM rules
/etc/pam.d/sddm, /etc/pam.d/passwd pam_c8wallet.so lines (copied from
/usr/lib/pam.d first)
/etc/profile.d/c8-askpass.sh SSH_ASKPASS, SUDO_ASKPASS
/etc/sudo.conf a `Path askpass` line, rest kept
/etc/xdg/xdg-desktop-portal-wlr/cont8nuum
/usr/share/xdg-desktop-portal/portals/c8.portal
/etc/udev/rules.d/70-cont8nuum-xreal.rules (XR glasses' HID access)
DEPENDENCIES.md has the full table.
== Rules for the script ==
- bash, `set -euo pipefail`, run from the repo root (cd to the script's
own directory's top), refuse to run as root (it calls sudo itself).
- Check it is openSUSE (/etc/os-release ID=opensuse-tumbleweed); the
package names are Tumbleweed's only.
- Use the existing scripts (build.sh, packaging/build-oo7.sh,
packaging/make-deps-rpm.sh); don't copy their insides. install.sh at
the top is the interactive version of all this (`./install.sh --yes
--where install` takes the recommended answers); read it for the
order and the options, but note it has only been tested with
--dry-run.
- Read the package list from packaging/requirements.txt rather than repeating
it, so there is one list to keep current.
- Don't enable a display manager if one other than sddm is already the
default without asking (or a flag); don't touch the user's own config
under ~/.config.
- A rebuild after pulling changes is the same `./build.sh --install
--xr` (after `git switch main` and the pull); it reuses each
component's build-install/ directory, and the fetched sources stay.
- Credit "lowtide" if the script carries an author line; it is CC0 like
the rest of the repo.