A single shell script to install and configure Tailscale on common Linux distros. Zero dependencies beyond curl and sudo.
- Detects your Linux distribution automatically
- Adds the official Tailscale package repository
- Installs Tailscale from the official repo
- Enables and starts the tailscaled service
- Authenticates with an auth key or interactive browser login
- Optionally uninstalls Tailscale cleanly
- Ubuntu (20.04, 22.04, 24.04+)
- Debian (11, 12+)
- Linux Mint
- Pop!_OS
- Fedora (38, 39, 40+)
- RHEL / CentOS / Rocky / Alma Linux
- Arch Linux / Manjaro / EndeavourOS
One-liner to install and log in interactively:
curl -sSL https://raw.githubusercontent.com/cappy-dev/tailscale-quick-setup/main/tailscale-quick-setup.sh | bashOr clone and run:
git clone https://github.com/cappy-dev/tailscale-quick-setup.git
cd tailscale-quick-setup
bash tailscale-quick-setup.shbash tailscale-quick-setup.sh [OPTIONS]Options:
--auth-key=KEYAuthenticate non-interactively with a Tailscale auth key--yes, -ySkip all confirmation prompts--uninstallRemove Tailscale and clean up repo files--help, -hShow help text
Install and log in via browser:
bash tailscale-quick-setup.shInstall with an auth key (great for headless servers):
bash tailscale-quick-setup.sh --auth-key=tskey-auth-xxxxxInstall without any prompts:
bash tailscale-quick-setup.sh --auth-key=tskey-auth-xxxxx --yesUninstall Tailscale:
bash tailscale-quick-setup.sh --uninstallOnce Tailscale is running, try these commands:
tailscale status # check connection status
tailscale ip # show your Tailscale IP addresses
tailscale up --ssh # enable SSH access over Tailscale
tailscale down # disconnect without uninstalling- Reads
/etc/os-releaseto identify your distro - Adds the correct Tailscale GPG key and apt/yum/pacman repo
- Installs the
tailscalepackage from the official source - Runs
systemctl enable --now tailscaled - Calls
tailscale upwith your auth key or opens a browser login
- A supported Linux distribution
sudoprivilegescurl(installed automatically on Debian/Ubuntu if missing)
MIT