Commit Graph

8 Commits

Author SHA1 Message Date
Ashley Mensah
b3cf615e51 fix(client): check sha256sum dependency and validate deps on update 2026-04-30 13:23:53 +02:00
Ashley Mensah
1e11b93e6b refactor(client): switch SteamOS installer to TUN mode with file capabilities
Replace netstack (full userspace) mode with userspace WireGuard + real
kernel TUN interface. This gives proper network performance for game
streaming (Moonlight/Sunshine) while still keeping all files in /home.

Uses sudo setcap to grant CAP_NET_ADMIN and CAP_NET_RAW on the binary
instead of running as root. Capabilities are applied at install and
reapplied on each update.
2026-04-30 12:57:56 +02:00
Ashley Mensah
76838e9170 fix(client): remove NB_ENABLE_NETSTACK_LOCAL_FORWARDING default
In netstack mode with local forwarding enabled, ICMP packets get
replied to by both the gVisor netstack and the native OS (via the
forwarder), causing duplicate ping responses. Local forwarding is
only needed when remote peers must reach host-local services, so
it should not be on by default.
2026-04-30 12:45:16 +02:00
Ashley Mensah
dbd0142b1e fix(client): export NB_DAEMON_ADDR and NB_CONFIG in shell rc
The CLI defaults to /var/run/netbird.sock which doesn't exist in our
rootless setup. Export NB_DAEMON_ADDR and NB_CONFIG in .bashrc so the
CLI automatically connects to the user-level daemon socket.
2026-04-30 12:29:08 +02:00
Ashley Mensah
051d17d01b fix(client): auto-add ~/.local/bin to PATH in SteamOS installer 2026-04-30 12:27:16 +02:00
Ashley Mensah
9938da9bbd fix(client): add checksum verification and atomic updates to SteamOS installer
Verify SHA-256 checksums from the release checksums.txt before
installing. In do_update, download and verify the new binary to a
staging directory before stopping the running service so a failed
download leaves the existing installation untouched.
2026-04-29 16:49:44 +02:00
Ashley Mensah
94657c1c80 style(client): use [[ ]] for bash conditionals in SteamOS installer
Replace [ ] with [[ ]] throughout and assign positional parameter
to a local variable for readability.
2026-04-29 16:43:16 +02:00
Ashley Mensah
c400d57079 feat(client): add SteamOS install script for rootless deployment
Standalone installer for Steam Deck / SteamOS that runs NetBird
entirely from /home using netstack mode — no root, no sysext, no
TUN device required. Survives all OS updates without intervention.
2026-04-29 16:39:43 +02:00