tailscale-qpkg
tailscale-qpkg copied to clipboard
Package Tailscale client in QPKG
Tailscale QPKG builder
This repository includes build scripts for building Tailscale client QPKG for use in QNAP NAS.
Build
The build depends on Docker and make. All other build dependencies are
downloaded in the Docker containers. To invoke the build, run make out/pkg.
This builds Tailscale QPKG for different platforms and stores them in
out/pkg.
By default, Tailscale release v1.30.2 is built. To configure the release number,
set the environment variable TSTAG to the release number, e.g.
TSTAG=v1.30.2 make out/pkg.
How-To Build in Windows
- Install "Windows Subsystem for Linux (WSL) https://docs.microsoft.com/en-us/windows/wsl/install"
1a. Quick Start WSL by entering this command in an administrator PowerShell or Windows Command Prompt and then restarting your machine
wsl --install - Install Windows Terminal https://aka.ms/terminal
- From Windows Command Prompt or PowerShell, you can open your default Linux distribution inside your current command line, by entering:
wsl.exe - When in WSL run
sudo apt install docker.io build-essential -y git clone https://github.com/ivokub/tailscale-qpkg.gitsudo dockerd(then open a new linux session to be able to run next line, if you ctrl-c the service stops)cd tailscale-qpkg/sudo make out/pkg- You can find the files if you do "Win+R" command and paste
%USERPROFILE%\tailscale-qpkg\out\pkg
Installation
- Manually install Tailscale package in QNAP App Center.
- SSH into your QNAP. If instead of command line shell you see a list of options, choose Q to open shell.
- Get system volume path:
getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info(e.g./share/CE_CACHEDEV1_DATA/). - Go to Tailscale package directory by using the path you got above:
cd /share/CE_CACHEDEV1_DATA/.qpkg/Tailscale - Authorize your client:
./tailscale -socket var/run/tailscale/tailscaled.sock up
License
This repository is licensed under MIT.