Getting started¶
Requirements¶
| Component | Requirement |
|---|---|
| OS | Debian-family Linux: Ubuntu 22.04 LTS or newer, Debian 13 (Trixie), Raspberry Pi OS Trixie |
| Architecture | x86-64 or aarch64 |
| Compositor | Sway 1.7 or newer, though only 1.10 and 1.11 have been exercised (tearing control needs 1.10). Debian 12 and Raspberry Pi OS Bookworm ship 1.7 and are out of scope for that reason |
| Audio | PipeWire with pipewire-pulse |
| Privileges | The daemon runs as the session user, in the audio, video and render groups; provisioning needs sudo once and arranges all of this |
What has actually been tested
That table is what Suede is built for. What it has been run on is three machines. Ubuntu 26.04 on x86-64 — Sway 1.11, an NVIDIA GPU with the proprietary driver, two DisplayPort outputs, Chromium — where the package and the provisioning script have been installed from nothing, upgraded in place, and reset back to nothing again. A Debian 13 (Trixie) x86-64 testbench — Sway 1.10.1, also NVIDIA proprietary, Chromium — provisioned from a fresh headless install. And a Raspberry Pi 5 Model B (8 GB, NVMe boot) running Raspberry Pi OS Lite Trixie — Sway 1.10.1, VideoCore (vc4/v3d), Pi OS's own Chromium build, one 1080p and one 4K display driven as a spanned pair — provisioned over SSH from a fresh headless install, package and from-source builds both, through to the machine rebooting unattended into its configured kiosk.
Not yet exercised anywhere: the desktop Raspberry Pi OS image (the Lite
image has no labwc to get out of the way, so that path in provisioning
is still untested), Sway older than 1.10, more than two displays, and the
firefox-kiosk launcher. None of that is expected to be broken; none of
it is known to work. Reports from any of those are the most useful thing
you could send.
Install¶
Add the project's signed repository once, then install like any other package:
sudo curl -fsSL https://suede.gameshow.pro/apt/suede-archive-keyring.gpg \
-o /usr/share/keyrings/suede-archive-keyring.gpg
sudo tee /etc/apt/sources.list.d/suede.sources >/dev/null <<'EOF'
Types: deb
URIs: https://suede.gameshow.pro/apt
Suites: stable
Components: main
Signed-By: /usr/share/keyrings/suede-archive-keyring.gpg
EOF
sudo apt update
sudo apt install suede
Later upgrades are sudo apt update && sudo apt install suede. The repository holds the newest 20 releases that carry a build provenance attestation, for amd64 and arm64; older releases stay on the releases page.
Suede never upgrades itself automatically. The package blacklists itself from unattended-upgrades, because an upgrade restarts the daemon and that blanks the displays. Upgrade between shows, not during them.
Maintenance fee
The official package is covered by the maintenance-fee EULA, which asks organizations using it as part of revenue-generating activities to pay a small monthly fee. See Maintenance fee and license for who pays, and who does not.
apt pulls in sway, swayidle, pipewire, and pipewire-pulse automatically. It does not pull in a browser: the package declares no relationship to one, because Suede resolves whichever it finds at launch. Install one yourself, as described under the release package tab.
Download the .deb for your architecture from the releases page. For more than one appliance, the apt repository tab is the easier path, with no files to copy around. Then:
Maintenance fee
The official package is covered by the maintenance-fee EULA, which asks organizations using it as part of revenue-generating activities to pay a small monthly fee. See Maintenance fee and license for who pays, and who does not.
apt pulls in sway, swayidle, pipewire, and pipewire-pulse automatically. It does not pull in a browser: the package declares no relationship to one, because Suede resolves whichever it finds at launch rather than linking against any. Install one yourself.
On Ubuntu that command installs a snap, which Suede ignores — it updates itself on its own schedule and restarts the browser when it does, which on an appliance blanks the displays mid-show. Install Google Chrome's own .deb there instead, or accept the snap deliberately with launcher.program on the application. The browsers health check says which it found and which it declined.
Provision the machine¶
The daemon deliberately does not reconfigure your machine behind your back. The root-level work — auto-login, starting Sway at boot, disabling competing desktop environments — is a separate, explicit step:
It is idempotent, so re-running it after an upgrade is safe. It will:
- Install any missing required packages, and report which browser it found.
- Add the appliance user to the
audio,videoandrendergroups. Without those, PipeWire cannot open the sound devices and there is no audio at all — an appliance has no seated login, so the ACLs that normally grant access are never applied. - Configure auto-login on
tty1for the appliance user. - Start Sway from that user's login shell, adding
--unsupported-gpuwhen the NVIDIA proprietary driver is loaded, since Sway will not start on it otherwise. - Create a minimal Sway config, including the block Suede manages.
- Install
sway-session.targetand enablesuede.service. - Disable and mask competing display managers and compositors.
- Open port 9088 in
ufworfirewalld, if one is active. Pass--no-firewallto skip this, or--port Nif you have moved the API. - Ask whether to require an API token, when it has a terminal to ask on. See Security posture.
Sway is started with direct scanout disabled, because on the default display
path one application window spans every display and some drivers otherwise
show the same part of it on each. The login block the script writes does not
decide that once: it reads allow_overlaps and direct_scanout from
~/.config/suede/suede.toml every time it starts Sway, so editing the file
and restarting the session is enough — which matters here, where Sway is a
login shell rather than a systemd unit. For an edge-blended installation,
where the projectors' beams overlap and Suede slices a canvas into them
instead, pass --allow-overlaps, and add --no-direct-scanout to have Sway
composite those slices instead of flipping them. See Overlapping layouts and
direct scanout.
Provisioning asks three questions when it runs at a terminal, and each has exactly one flag that answers it instead. A question is asked only when its own flag is absent, so giving one flag never skips another question. With no terminal and no flag, each question takes its default: nothing about reachability changes and the machine does not reboot.
| Question (default) | Flag |
|---|---|
Require an API token? [y/N] (no) |
--token generate, --token VALUE or --token none |
Bind Suede to this machine only, for use behind a reverse proxy? [y/N] (no) |
--local-only yes or --local-only no |
Reboot now to apply everything? [y/N] (no) |
--reboot yes or --reboot no |
- Token.
generate(the same as answering yes) writes a random token into~/.config/suede/suede.toml(owned by the appliance user, mode 600) and prints it once, on the terminal and nowhere else.VALUEstores a token you chose and does not echo it.noneleaves the API open and any existing token alone. Provisioning never replaces a token that is already there without a yes at a terminal, and when one is set the token question is not asked. - Local only.
yesbinds the API to127.0.0.1:9088and skips the firewall rule, for an appliance reached through a reverse proxy or an SSH tunnel.noleaves the bind alone, including one that is already on loopback; provisioning says so. - Reboot.
yesreboots when it finishes,nodoes not.
The older spellings still work: a bare --local-only means --local-only yes, and --no-reboot means --reboot no.
It warns rather than proceeds silently in two cases worth knowing about: if
something else on the machine already starts Sway — two compositors cannot
share a graphics card, and whichever publishes SWAYSOCK last is the one
Suede attaches to — and if it changed your group membership, since that only
takes effect after a reboot.
Raspberry Pi OS
The desktop Pi OS image ships labwc, which will fight Sway for the displays. The provisioning script disables it, including its autostart entry — but that path is written and still untested, because what has actually been exercised is the Lite image, which ships no compositor at all and provisions cleanly (see the warning above).
Reboot when it finishes. The machine will log in, start Sway, and start Suede.
First run¶
Open http://<machine>:9088/ from another computer on the network. If it times out rather than refusing, a host firewall is dropping the port — see Network access; on Ubuntu Server it usually is.
See the Displays and Health checks tabs for what to expect.
The web UI shows a banner for any health check that is not passing, with a Fix this button where Suede can safely remediate the problem itself. Work through those first — they cover the handful of things provisioning cannot do, such as enabling the user service before the first login has happened.
Then:
- Go to Displays. Every connector the machine has is listed, including ones with nothing plugged in. Add the ones you want to the layout, set each one's mode and position, and save.
- Go to Apps. Add a Chromium kiosk pointing at the URI you want shown, then activate it. One application is active at a time and it covers every display as a single canvas — there is no per-display targeting. The dialog shows the command, arguments and environment it will actually be launched with, resolved on this machine.
- Reboot the machine to prove it comes back on its own.
That last step is the point of the whole exercise; do it once before you leave the site.
Calibrate an overlapping or warped layout¶
Skip this section for a tiled installation with no overlapping projectors.
See the Displays tab for what these controls look like.
- Re-run provisioning with overlap support:
sudo /usr/share/suede/provision.sh --allow-overlaps(add--no-direct-scanoutto have Sway composite the slices instead of flipping them). See Overlapping layouts and direct scanout. - In Displays → Layout, position each output so its beam overlaps its neighbors by the amount the rigging actually overlaps — the layout is the projection configuration. See Projection and edge blending.
- Set a canvas render width and aspect ratio, or use Arrange automatically to fit a grid of outputs to the canvas (see Arranging automatically).
- Select the
gridorwarp-alignmenttest pattern and check that seam features line up before switching to real content. See Test patterns. - If the surface is not flat, or the projectors cannot be racked perfectly square, switch the mode to Warp (see Projection modes) and drag each output's corner and center-line handles until its picture is square on the physical surface. See Editing geometry in the web UI. To fine-tune the seams, turn on Highlight overlaps in the edge-blending panel and adjust until each orange and blue pair merges into one white line. It is never saved. See Highlighting overlaps.
- Switch to the
blackpattern and raiseblackLiftuntil the doubled-black seams match the rest of the image; usewhiteto check for brightness mismatch between projectors. See Adaptive black lift. - Save. The picture follows your edits live as you make them — Save persists the layout, Revert discards unsaved changes and restores the last saved document.
Sway configuration¶
Suede owns a marker-delimited block in ~/.config/sway/config:
Everything outside those markers is yours and is preserved byte for byte. The block hands the session environment to systemd (so the user service can find SWAYSOCK) and starts sway-session.target.
If the block is missing, the sway-config health check offers to add it.
Do not configure outputs in the Sway config
Suede is the single source of truth for output configuration. Declaring output blocks in the Sway config as well will produce a fight between the two on every reload.
Browsers¶
Suede launches browsers as its own child processes, not through Sway's exec. That is what gives it a real PID for clean termination, exit-code observation, and restart policies.
Chromium refuses to start a second instance sharing a profile, so each app automatically gets a private --user-data-dir beneath the state directory. Profiles are wiped on launch by default; set persistProfile: true on an app to keep it.
The exception is a browser named explicitly as a snap, whose profile goes under ~/snap/<name>/common/ instead — a confined snap may write anywhere in $HOME except a hidden directory, and the state directory is under ~/.local/state. The app dialog shows where the profile will land, so this is visible rather than surprising.
Audio¶
Audio is outside Sway's scope, so Suede talks to PipeWire directly through pw-dump and pw-cli. Sinks are identified by their PipeWire node.name, which is derived from the hardware path and is stable across reboots and replugging.
Per-application routing is applied at launch through PULSE_SINK, which means changing an app's sink relaunches it. Routing an app to null sends it to a Suede-managed silent sink, so the browser still sees a working audio device.
Check that pipewire-pulse is actually running — the pipewire health check covers this. Without it, browsers have no audio device at all.
Network access¶
Suede binds 0.0.0.0:9088 by default, so a freshly provisioned appliance is reachable from the network it is on. Read Security posture — that default is also unauthenticated.
To restrict it to the machine itself:
or pass --bind 127.0.0.1:9088. You can then still reach the UI by forwarding the port:
The same loopback bind is what a reverse proxy on the appliance forwards to. Bound to loopback, the main port no longer accepts app heartbeats or the capability check's report, because every caller there is local, the proxy's forwarded requests included. Those go to the local listener on 127.0.0.1:9089 instead, which is what launched apps are given in {heartbeatUrl}. Content that hardcodes http://127.0.0.1:9088/api/v1/apps/<id>/heartbeat needs updating to use the URL it is given. See Local listener.
When it will not connect¶
A host firewall is the usual culprit, and its signature is distinctive: the connection times out rather than being refused, because the default policy drops packets instead of rejecting them. From the outside that is indistinguishable from a machine that is switched off — and every health check still passes, because they all run from inside.
Ubuntu Server enables ufw with only SSH allowed, so a default install blocks Suede even though Suede is listening correctly. This is the common case:
sudo ufw allow 9088/tcp
# or, scoped to the network the appliance serves:
sudo ufw allow from 192.168.1.0/24 to any port 9088 proto tcp
On a firewalld host:
The api-reachability check reports which of these applies. Suede can detect that a filter is running but not read its rules — /etc/ufw/user.rules is root-only, and the session user is deliberately not root — so it warns and names the command rather than claiming to know whether the port is open. It cannot test the port itself either: traffic from the appliance to its own address never crosses the filter, so a self-test would succeed no matter what.
What it does instead is watch for evidence. The moment a request arrives from an address that is not this machine, the port is proven open and the check passes, naming the client. So the warning clears itself the first time you load the page from your laptop — which matters, because a warning that can never be cleared is one people learn to scroll past.
Two things it cannot see, worth ruling out if the command above does not help: a filter on a router between you and the appliance, and container runtimes such as Docker, which insert their own rules ahead of ufw's.
Security posture¶
Suede is unauthenticated by default, and listens on every interface. The expected deployment is a trusted production LAN. Pick the row that matches yours:
| Your situation | What to do |
|---|---|
| A trusted production LAN | Nothing. This is the default |
| A shared network, with people using the web UI | Put an authenticating reverse proxy in front. People sign in there, and the proxy supplies the token and the HTTPS |
| Scripts and show control calling the API | Set a bearer token, and have them send Authorization: Bearer <token> |
| Reaching an appliance from outside the site | A VPN, or an SSH tunnel to a loopback-bound appliance (see Network access). Do not forward the port from the internet |
These combine. The most locked-down shape is a loopback bind, a token, and a reverse proxy that authenticates people and adds the token for them; machines send the token themselves. See Behind a reverse proxy.
Set a token with provision.sh --token generate, or by hand:
or SUEDE_TOKEN in the environment. When a token is configured:
- Every
/api/v1call requiresAuthorization: Bearer <token>, except/healthzand the app-facing routes served on the local listener (app heartbeats and the capability check), which only answer callers on the appliance itself. - The web UI and the
/docspage are still served, but they embed nothing. A page that held the token would hand it to everyone who opened it. So the UI works only when something in front supplies the token, as the reverse proxy does; opened directly, it says the appliance requires an API token.
With or without a token, Suede refuses state-changing requests that a browser sends for a page on another site, so a hostile web page opened on the same network cannot drive the appliance. Clients that send no Origin header (curl, scripts, other servers) and app heartbeats are not affected. To let a trusted page on another origin send them, list it in allowed_origins. To answer only to known host names, a defense against DNS rebinding, set allowed_hosts. See Cross-site request protection.
Suede has no TLS and no user accounts of its own; the reverse proxy provides both.
To report a vulnerability, see the security policy.