Created
February 12, 2024 09:07
-
-
Save vurdalakov/08e0f09d452b750b6fa8691921157a02 to your computer and use it in GitHub Desktop.
Install Tailscale to the Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Installing Tailscale to the Raspberry Pi | |
# https://pimylifeup.com/raspberry-pi-tailscale/ | |
# update the package list and any out-of-date packages | |
sudo apt-get update && sudo apt-get -y upgrade | |
# install needed packages | |
sudo apt install lsb-release curl | |
# get the GPG key for the Tailscale repository | |
curl -L https://pkgs.tailscale.com/stable/raspbian/$(lsb_release -cs).noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null | |
# add the Tailscale repository | |
echo "deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/raspbian $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/tailscale.list | |
# update the package list | |
sudo apt-get update | |
# install Tailscale | |
sudo apt -y install tailscale | |
# restart device | |
sudo reboot | |
# start up the Tailscale network | |
sudo tailscale up | |
# copy "https://login.tailscale.com/a/XXXXXXXXXXXX" URL to your favorite browser and login to Tailscale | |
# admin@rpi777:~ $ sudo tailscale up | |
# | |
# To authenticate, visit: | |
# | |
# https://login.tailscale.com/a/c03e43d5bd19 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment