Skip to content

Commit 23ec254

Browse files
Enable Wayland in setup.sh for headless NoMachine support
1 parent d5dfb07 commit 23ec254

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

universal-telemetry-software/setup.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,16 @@ else
141141
ok "uv installed at $UV"
142142
fi
143143

144-
# ── 6. Python venv + dependencies ────────────────────────────────────────────
144+
# ── 6. Enable Wayland compositor (required for NoMachine on headless Pi) ─────
145+
hdr "Wayland compositor"
146+
if raspi-config nonint get_wayland 2>/dev/null | grep -q "W2"; then
147+
ok "Wayland already enabled"
148+
else
149+
raspi-config nonint do_wayland W2
150+
ok "Wayland enabled (Wayfire) — takes effect after reboot"
151+
fi
152+
153+
# ── 8. Python venv + dependencies ────────────────────────────────────────────
145154
hdr "Python venv (system-site-packages for gi/GStreamer)"
146155
cd "$SCRIPT_DIR"
147156
sudo -u "$SERVICE_USER" env HOME="$SERVICE_HOME" \

0 commit comments

Comments
 (0)