How to install Tailscale? #405
Replies: 2 comments 4 replies
-
|
Sorry for the late reply, but sadly, this requires a custom image. Instructions for that can be found here: |
Beta Was this translation helpful? Give feedback.
-
|
For anyone looking for a way to do this without having to use an alternative image, this is the script I use to set up tailscale inside distrobox: host-shell pkexec bash -c "mkdir -p /var/run/tailscale && echo 'd /var/run/tailscale 0755 root root -' | tee /etc/tmpfiles.d/tailscale-socket.conf"
host-shell distrobox create tailscale --init --image debian:12 -a "--cap-add=NET_ADMIN" --additional-packages systemd --root --volume /var/run/tailscale:/var/run/tailscale:rw
host-shell distrobox enter --root tailscale -- bash -c "(curl -fsSL https://tailscale.com/install.sh | sh) && sudo systemctl enable --now tailscaled && distrobox-export -b /usr/bin/tailscale && sudo tailscale login && sudo tailscale set --operator=$USER"
host-shell pkexec bash -c "
cat > /etc/systemd/system/tailscale-container.service <<'EOF'
[Unit]
Description=Prepare and start the tailscale container
After=network-online.target
Wants=network-online.target
After=local-fs.target
[Service]
Type=oneshot
ExecStartPre=/usr/bin/mkdir -p /run/tailscale
ExecStart=/usr/bin/podman start tailscale
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload &&
systemctl enable tailscale-container.service
"Once it's finished, follow the link to sign in and add the machine to your tailnet. After that you should be able to manage it via Trayscale if you'd like. To uninstall: host-shell pkexec distrobox rm --root tailscale
host-shell pkexec rm /etc/tmpfiles.d/tailscale-socket.conf /etc/systemd/system/tailscale-container.serviceFor what it's worth, Netbird seems much easier to get set up: https://docs.netbird.io/get-started/install/linux#fedora-universal-blue-steam-os-distro-box Also somewhat relevant, I haven't tested this at all though: https://github.com/suikan4github/Using-tailscale-client-on-an-Immutable-OS |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Installing TailScale requires to add their custom repository, which does not seem to be possible in VanillaOS.
How can I circumvent that and still use it? Installing inside an APX env does not work obviously.
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions