Skip to content

Instantly share code, notes, and snippets.

@pratikngupta
Forked from mariotaku/README.md
Last active May 11, 2025 03:15
Show Gist options
  • Save pratikngupta/a913e13b90897b2542cf3a03c18da448 to your computer and use it in GitHub Desktop.
Save pratikngupta/a913e13b90897b2542cf3a03c18da448 to your computer and use it in GitHub Desktop.
Install tailscale on webOS TV

Usage

  1. Have your TV rooted
  2. Open Terminal with SSH client or dev-manager-desktop
  3. Run curl -fsSL https://gist.github.com/pratikngupta/a913e13b90897b2542cf3a03c18da448/raw/webosbrew-install-tailscale.sh | sh and wait for it to finish
#!/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