-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addpkg(root/tailscale): 1.78.3 #22980
base: master
Are you sure you want to change the base?
Conversation
Commit message probably need to be clear as root |
Yep I noticed that after I did the initial push, it's been moved to the root-packages channel. |
On the topic of needing root. A userspace implementation of wireguard, such as |
Help with testing this package would be appreciated. (This is a pre-written, saved reply.) After downloading the build artifact, make sure to Detailed instructions, if needed.
# finding out what architecture you need
# architecture is just below the TERMUX_VERSION
termux-info
# e.g.
# [...]
# TERMUX_MAIN_PACKAGE_FORMAT=debian
# TERMUX_VERSION=0.118.0
# TERMUX__USER_ID=0
# Packages CPU architecture:
# aarch64
# [...]
# =======================
# make sure `unzip` and `tar` are installed using
pkg install unzip tar
# unzip the artifact (if you have a different architecture this might be arm, i686 or x86_64 instead)
unzip debs-aarch64-*.zip
# untar the artifact
tar xf debs-aarch64-*.tar
# You should now have a debs/ directory in your current working directory
# Install the packages from the local source using
pkg install -- ./debs/*.deb
# to clean up, you can remove the debs/ directory, .tar file and .zip file
rm -rfi debs debs-aarch64-*.zip debs-aarch64-*.tar |
I have a successfully functioning glibc-based Tailscale network that has 3 rooted GNU/Linux nodes, one of which is an esoteric distro on an That is the configuration of the network I attempted to add a bionic-libc device to using this package. To test this package, I installed it on Termux on a device I have that has a self-built ROM of rooted LineageOS 21 Android 14 termux-info
Because I built the ROM in use myself, if I am directed to do so, it would probably be possible for me to attempt to increase the chances of this device having compatibility with Tailscale by recompiling and reinstalling the entire ROM and/or kernel, if any settings should be found for those that could be necessary. Currently the customizations I have installed in this ROM at build-time are minimal and purely graphics-related, with no specific changes to its networking configuration on top of the LineageOS port I forked. My root app is a fully persistent installation of Magisk 27.0, and I obtained root shells within the Termux environment using the Here are the results I have observed so far:
|
I made a little bit more progress in connection with this combination of commands: tailscaled --tun=userspace-networking --statedir=$PREFIX/var/lib/tailscale --socket=$PREFIX/var/run/tailscale/tailscaled.sock &
tailscale --socket $PREFIX/var/run/tailscale/tailscaled.sock up --login-server=http://[headscale external domain name]:8080 --accept-routes That printed this,
My Headscale server detected the connection request, and when I authorized it using this command # on headscale server
sudo headscale nodes register --user [headscale user account name] --key mkey:[key printed by tailscale client] then used # on headscale server
sudo headscale nodes list I see this:
Where the Android device running this and, the tailscale ping is working, both to and from other nodes, like this # Termux
tailscale --socket $PREFIX/var/run/tailscale/tailscaled.sock ping 100.64.0.4 # 100.64.0.4 node
tailscale ping 100.64.0.6 however, the normal |
So in short, the service script is currently broken and needs some fixing? |
Yes I am sorry for taking so long to edit the comment, which happened because I connected to many different devices that do not share clipboards, so I pasted logs from one device, then saved the comment, then navigated to another device, copied more logs, and edited the comment, then pasted them in the comment, then saved the comment, then navigated to another device, then copied more logs, then edited the comment and pasted them in the comment, and then saved the comment, et cetera. Now it is completely posted. I would summarize what happened like this:
|
Don't worry about giving me "too much information", I don't have a way to do this testing myself unfortunately, so anything you can tell me about what issues you are seeing is helpful to solve it. This does sound to me like we'll need to modify the service script to work with Android's non-standard First things first, I think we should probably extract the service into a standalone script in the package directory. If you have any specific recommendations or fixes please feel free to leave them here as review comments, or feel free to open up a separate PR. |
I think one of the reasons why the
On the other hand,
|
closes #10166
This PR adds a package for
tailscale
.The build script is mostly adapted from Arch Linux's
tailscale
package.https://gitlab.archlinux.org/archlinux/packaging/packages/tailscale/-/blob/main/PKGBUILD
And the service script is adapted from Void Linux.
https://github.com/void-linux/void-packages/blob/d833c349beda6e8a00f84cec7c4e447b226c4eee/srcpkgs/tailscale/files/tailscaled/run
I also used some tricks from
gh
to generate the completions at build time.termux-packages/packages/gh/build.sh
Lines 15 to 19 in 1561c12