- Have your TV rooted
- Open Terminal with SSH client or dev-manager-desktop
- Run
curl -fsSL https://gist.githubusercontent.com/mariotaku/f7228c5459fc7ad2172a2b69dd51a4eb/raw/webosbrew-install-tailscale.sh | sh
and wait for it to finish
Last active
May 11, 2025 04:11
-
-
Save mariotaku/f7228c5459fc7ad2172a2b69dd51a4eb 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 | |
# Quit if not running as root | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "This script must be run as root. Refer to https://www.webosbrew.org/guides/rooting/ for more information." | |
exit 1 | |
fi | |
# Quit if not running on webOS | |
if [ ! -f /etc/starfish-release ]; then | |
echo "This script is intended for webOS devices only." | |
exit 1 | |
fi | |
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
Thank you for writing the wonderful script, i did not knew that it was possible to root LG TV in first place, i was able to install Tailscale but ran into this error so i figure out to leave it here so someone can save their time in future!
tailscale: not found
on LG webOS after successful installation and rebooting.If you're trying to run Tailscale on your rooted LG webOS TV and encounter the following error:
Solution:
.profile
to see if a custom path was added:cat ~/.profile
You might see something like:
cd /media/developer/bin ls
If installation was successful, you should see:
This will execute Tailscale properly if the binary is located there.