Packages and installs the current release of Tailscale as a piCore extension.
Run it as tc on your piCorePlayer:
wget https://raw.githubusercontent.com/atdt/tailscale-picoreplayer/main/mktailscale.tcz.sh
chmod +x mktailscale.tcz.sh
./mktailscale.tcz.shOn a fresh install, load the extension and authenticate:
tce-load -i tailscale
sudo tailscale upAfter that, upgrade with:
tailscale-installer
sudo reboottailscale-installer is this script, copied into the extension and frozen at the
version that built it. Re-download from here to pick up any changes since.
The current stable release is the default. To build a different one, or if the script can no longer work out which that is, name it:
TAILSCALE_VERSION=1.102.1 ./mktailscale.tcz.shhttps://pkgs.tailscale.com/stable/ lists the current version.
- Downloads the current stable release for your architecture.
- Builds
tailscale.tczand sets it to load at boot. - Puts a copy of itself in the extension, as
tailscale-installer. - Starts
tailscaledwhen the extension loads. - Keeps the node identity on the pCP data partition, so it survives reboots.
- Can act as a subnet router or exit node.
- Survives pCP in-situ upgrades, including kernel changes.
Several recipes for installing Tailscale circulated on the piCorePlayer forum before this package existed. If you followed one of them, the script picks your node identity up from wherever that recipe left it, so you keep the same tailnet IP without re-authenticating.
The extension starts itself, so remove whatever used to start it or the daemon
will run twice: the pCP user commands under Tweaks → User commands, and any
tailscaled lines in /opt/bootlocal.sh. Then run pcp bu.
The build script can itself be shipped as an extension, so that loading it from a
repository puts tailscale-installer on the system. mktailscale-installer.tcz.sh
builds that, writing tailscale-installer.tcz alongside the .info, .list and
.md5.txt a piCore repository expects. Run it as tc on a piCorePlayer:
./mktailscale-installer.tcz.shThis started from the piCorePlayer forum thread. Checksum verification
and keeping state out of the pCP backup are taken from mll's
install_update_Tailscale.sh. Using --tun=tailscale0 in place of
userspace networking was wetenschaap's suggestion. The tun driver behaviour and
how third-party binaries ought to be packaged were explained by paul- of
piCorePlayer.