- Have your TV rooted
- Open Terminal with SSH client or dev-manager-desktop
- Run
curl -fsSL https://gist.github.com/pratikngupta/a913e13b90897b2542cf3a03c18da448/raw/webosbrew-install-tailscale.sh | sh
and wait for it to finish
-
-
Save pratikngupta/a913e13b90897b2542cf3a03c18da448 to your computer and use it in GitHub Desktop.
Install tailscale on webOS TV
This file contains hidden or 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 | |
TAILSCALE_DIST=tailscale_1.82.0_arm | |
TAILSCALE_TARBALL="https://pkgs.tailscale.com/stable/${TAILSCALE_DIST}.tgz" | |
INSTALL_BINDIR=/media/developer/bin/ | |
mkdir -p "$INSTALL_BINDIR" | |
echo "Downloading Tailscale..." | |
# Extract tailscaled, tailscale from the pipe | |
curl -sSL $TAILSCALE_TARBALL | tar -xz -C $INSTALL_BINDIR $TAILSCALE_DIST/tailscaled $TAILSCALE_DIST/tailscale --strip-components=1 | |
echo "Adding tailscaled to init.d..." | |
cat <<EOF > /var/lib/webosbrew/init.d/tailscaled | |
#!/bin/sh | |
export PATH=/media/developer/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# Make /etc/resolv.conf writable with bind-mount | |
cp /etc/resolv.conf /tmp/resolv.conf | |
mount -o bind /tmp/resolv.conf /etc/resolv.conf | |
/media/developer/bin/tailscaled &> /tmp/tailscaled.log & | |
EOF | |
chmod +x /var/lib/webosbrew/init.d/tailscaled | |
echo "Setting up PATH..." | |
# Add INSTALL_BINDIR to PATH if not already present | |
if ! grep -q "$INSTALL_BINDIR" /home/root/.profile; then | |
echo "export PATH=\$PATH:$INSTALL_BINDIR" >> /home/root/.profile | |
fi | |
echo "Done! Reboot the TV with reboot command, and run tailscale command for usage." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment