Skip to content

Instantly share code, notes, and snippets.

@tstachl
Created November 27, 2021 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstachl/b9c993645380574638a267bb972a067e to your computer and use it in GitHub Desktop.
Save tstachl/b9c993645380574638a267bb972a067e to your computer and use it in GitHub Desktop.
Proper tailscale install on debian based distros.
#!/usr/bin/env bash
# Everything needs to be run as root
if [ $(id -u) -ne 0 ]; then
printf "Script must be run as root.\n"
exit 1
fi
OS=$(lsb_release -si)
VERSION=$(lsb_release -sc)
curl -fsSL https://pkgs.tailscale.com/stable/${OS,,}/${VERSION,,}.gpg | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/tailscale.gpg
curl -fsSL https://pkgs.tailscale.com/stable/${OS,,}/${VERSION,,}.list | tee /etc/apt/sources.list.d/tailscale.list
apt update && apt -y install tailscale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment