Skip to content

Instantly share code, notes, and snippets.

@jason-riddle
Created October 21, 2025 03:58
Show Gist options
  • Save jason-riddle/dc056774be01c1bef6f12ea9d34b35d8 to your computer and use it in GitHub Desktop.
Save jason-riddle/dc056774be01c1bef6f12ea9d34b35d8 to your computer and use it in GitHub Desktop.

Revisions

  1. jason-riddle created this gist Oct 21, 2025.
    18 changes: 18 additions & 0 deletions tailscale-deb-install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    # 1. Create the keyring directory
    sudo mkdir -p --mode=0755 /usr/share/keyrings

    # 2. Fetch the GPG key for the repo (Trixie-specific)
    curl -fsSL https://pkgs.tailscale.com/unstable/debian/trixie.noarmor.gpg \
    | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null

    # 3. Add the Tailscale apt repository list for Trixie
    curl -fsSL https://pkgs.tailscale.com/unstable/debian/trixie.tailscale-keyring.list \
    | sudo tee /etc/apt/sources.list.d/tailscale.list

    # 4. Update apt and install
    sudo apt-get update
    sudo apt-get install tailscale

    # 5. Once installed, enable/start and bring it up:
    sudo systemctl enable --now tailscaled
    sudo tailscale up