Skip to content

Instantly share code, notes, and snippets.

@pojntfx
Last active July 5, 2025 17:55
Show Gist options
  • Save pojntfx/514abcf47d041669881f9abe6c1eb8d8 to your computer and use it in GitHub Desktop.
Save pojntfx/514abcf47d041669881f9abe6c1eb8d8 to your computer and use it in GitHub Desktop.
Setup Tailscale on an immutable Linux system (e.g. GNOME OS or Fedora Silverblue)
#!/bin/bash
sudo podman run -d \
--name=tailscaled \
--restart=always \
-v tailscale-data:/var/lib/tailscale \
-v /dev/net/tun:/dev/net/tun \
-v /run:/run \
-v /etc/passwd:/etc/passwd:ro \
-v /etc/group:/etc/group:ro \
--network=host \
--cap-add=NET_ADMIN \
--cap-add=NET_RAW \
-e TS_STATE_DIR=/var/lib/tailscale \
docker.io/tailscale/tailscale \
tailscaled --state=/var/lib/tailscale/tailscaled.state
sudo systemctl enable --now podman-restart
sudo podman exec tailscaled tailscale set --operator=${USER}
# Now manage the Tailscale daemon via https://flathub.org/apps/dev.deedles.Trayscale or https://flathub.org/apps/org.fkoehler.KTailctl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment