Skip to content

Instantly share code, notes, and snippets.

@legowerewolf
Last active April 7, 2024 02:13
Show Gist options
  • Save legowerewolf/1b1670457cfac9201ee9d67840952147 to your computer and use it in GitHub Desktop.
Save legowerewolf/1b1670457cfac9201ee9d67840952147 to your computer and use it in GitHub Desktop.
Tailscale on Steam Deck
@Marto32
Copy link

Marto32 commented Jun 8, 2023

@legowerewolf reinstall fixed it. However moonlight is not seeing the host now. Do I have to regenerate the QR code?

@Marto32
Copy link

Marto32 commented Jun 8, 2023

Fixed. This was a Moonlight issue. I had to look up the host ip in tailscales web ui then re-add it to moonlight. Hope that helps anyone else with this issue

@CrimsonNyte
Copy link

Hello, I am having an issue trying to install Tailscale. After starting the process and moving tailscaled.service to /etc/systemd/system, I get Failed to start systemd-sysext.service: Unit systemd-sysext.service not found.

@cchulo
Copy link

cchulo commented Jul 8, 2023

@CrimsonNyte it works the first time because the service is disabled and inactive, but fails on subsequent runs because... not sure why, anyway just adding checks fixes the problem, its already doing daemon-reload before these checks are done, so its not necessary to enable and start the services again.

if systemctl is-enabled --quiet systemd-sysext && systemctl is-active --quiet systemd-sysext; then
  echo "systemd-sysext is already enabled and active"
else
  systemctl enable systemd-sysext --now
fi

systemd-sysext refresh > /dev/null 2>&1
systemctl daemon-reload > /dev/null

if systemctl is-enabled --quiet systemd-sysext && systemctl is-active --quiet systemd-sysext; then
  echo "tailscaled is already active"
else
  systemctl enable tailscaled --now
fi

@legowerewolf
Copy link
Author

Hey, everyone. We're working on transferring this as a repo to the community tailscale-dev organization. Right now, you can find it at https://github.com/legowerewolf/deck-tailscale. I'll post another message when that gets transferred in.

@Lanklow
Copy link

Lanklow commented Jul 10, 2023

As mentioned earlier, when I tried running Johnny Blocks' solution, it did not create a symlink as described. I tried making a symlink manually as well with no luck. Here is the full output from my terminal:

(deck@steamdeck TailScale)$ sudo systemctl enable --now tailscaled.service Job for tailscaled.service failed because the control process exited with error code. See "systemctl status tailscaled.service" and "journalctl -xeu tailscaled.service" for details.

`(deck@steamdeck TailScale)$ systemctl status tailscaled.service × tailscaled.service - Tailscale node agent Loaded: loaded (/etc/systemd/system/tailscaled.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Tue 2023-04-25 15:51:13 EDT; 21s ago Docs: https://tailscale.com/kb/ Process: 7697 ExecStartPre=/usr/sbin/tailscaled --cleanup (code=exited, status=226/NAMESPACE) Process: 7698 ExecStopPost=/usr/sbin/tailscaled --cleanup (code=exited, status=226/NAMESPACE) CPU: 10ms

Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Scheduled restart job, restart counter is at 5. Apr 25 15:51:13 steamdeck systemd[1]: Stopped Tailscale node agent. Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Start request repeated too quickly. Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Failed with result 'exit-code'. Apr 25 15:51:13 steamdeck systemd[1]: Failed to start Tailscale node agent.`

(deck@steamdeck TailScale)$ journalctl -xeu tailscaled.service ░░ the configured Restart= setting for the unit. Apr 25 15:51:13 steamdeck systemd[1]: Stopped Tailscale node agent. ░░ Subject: A stop job for unit tailscaled.service has finished ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ A stop job for unit tailscaled.service has finished. ░░ ░░ The job identifier is 5195 and the job result is done. Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Start request repeated too quickly. Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ The unit tailscaled.service has entered the 'failed' state with result 'exit-code'. Apr 25 15:51:13 steamdeck systemd[1]: Failed to start Tailscale node agent. ░░ Subject: A start job for unit tailscaled.service has failed ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ A start job for unit tailscaled.service has finished with a failure. ░░ ░░ The job identifier is 5195 and the job result is failed. lines 1410-1433/1433 (END)

I'm stuck here too. Does anyone have a workaround?

@CrimsonNyte
Copy link

if systemctl is-enabled --quiet systemd-sysext && systemctl is-active --quiet systemd-sysext; then
echo "systemd-sysext is already enabled and active"
else
systemctl enable systemd-sysext --now
fi

systemd-sysext refresh > /dev/null 2>&1
systemctl daemon-reload > /dev/null

if systemctl is-enabled --quiet systemd-sysext && systemctl is-active --quiet systemd-sysext; then
echo "tailscaled is already active"
else
systemctl enable tailscaled --now
fi

Thank you for this @cchulo! That fixed it for me!

@cchulo
Copy link

cchulo commented Jul 12, 2023

@legowerewolf I opened a PR to fix the issue that me and CrimsonNyte saw: tailscale-dev/deck-tailscale#1

also: "first" :)

@fawx0999
Copy link

I don't have a clear understanding of where do I copy tailscale.sh to. Anywhere I use the sudo bash tailscale.sh I get this same error

tailscale.sh: line 7: syntax error near unexpected token `newline'
tailscale.sh: line 7: `<!DOCTYPE html>'

@legowerewolf
Copy link
Author

@fawx0999 so it looks like you've somehow downloaded a webpage as tailscale.sh? Check the repository; there's newer install instructions there that should simplify things. If you're still having problems, file a ticket explaining what you're confused by and I'll see what I can do about better documentation there.

@fawx0999
Copy link

@legowerewolf I followed the newer instruction and manged to install Tailscale, although when I pasted the command to generate a QR code, I get absolutely nothing

@legowerewolf
Copy link
Author

Can you do tailscale status?

@fawx0999
Copy link

Can you do tailscale status?

It seems like I was already logged in when I had installed tailscale previously another method

@legowerewolf
Copy link
Author

Hey, cool. So it's working for you now?

@fawx0999
Copy link

@legowerewolf it works now, thanks for helping a dummy lol

@legowerewolf
Copy link
Author

No problem, glad to help.

@legowerewolf
Copy link
Author

legowerewolf commented Aug 3, 2023

Hey, everyone! This has been moved to https://github.com/tailscale-dev/deck-tailscale. Go check it out there, give it a star, whatever.

@SummerFoam233
Copy link

As mentioned earlier, when I tried running Johnny Blocks' solution, it did not create a symlink as described. I tried making a symlink manually as well with no luck. Here is the full output from my terminal:

(deck@steamdeck TailScale)$ sudo systemctl enable --now tailscaled.service Job for tailscaled.service failed because the control process exited with error code. See "systemctl status tailscaled.service" and "journalctl -xeu tailscaled.service" for details.

`(deck@steamdeck TailScale)$ systemctl status tailscaled.service × tailscaled.service - Tailscale node agent Loaded: loaded (/etc/systemd/system/tailscaled.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Tue 2023-04-25 15:51:13 EDT; 21s ago Docs: https://tailscale.com/kb/ Process: 7697 ExecStartPre=/usr/sbin/tailscaled --cleanup (code=exited, status=226/NAMESPACE) Process: 7698 ExecStopPost=/usr/sbin/tailscaled --cleanup (code=exited, status=226/NAMESPACE) CPU: 10ms

Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Scheduled restart job, restart counter is at 5. Apr 25 15:51:13 steamdeck systemd[1]: Stopped Tailscale node agent. Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Start request repeated too quickly. Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Failed with result 'exit-code'. Apr 25 15:51:13 steamdeck systemd[1]: Failed to start Tailscale node agent.`

(deck@steamdeck TailScale)$ journalctl -xeu tailscaled.service ░░ the configured Restart= setting for the unit. Apr 25 15:51:13 steamdeck systemd[1]: Stopped Tailscale node agent. ░░ Subject: A stop job for unit tailscaled.service has finished ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ A stop job for unit tailscaled.service has finished. ░░ ░░ The job identifier is 5195 and the job result is done. Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Start request repeated too quickly. Apr 25 15:51:13 steamdeck systemd[1]: tailscaled.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ The unit tailscaled.service has entered the 'failed' state with result 'exit-code'. Apr 25 15:51:13 steamdeck systemd[1]: Failed to start Tailscale node agent. ░░ Subject: A start job for unit tailscaled.service has failed ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ A start job for unit tailscaled.service has finished with a failure. ░░ ░░ The job identifier is 5195 and the job result is failed. lines 1410-1433/1433 (END)

Any solutions?Unlucky to get the same faulty :(.

@cchulo
Copy link

cchulo commented Aug 27, 2023

@SummerFoam233 might be better to open an issue on the new repo, can help you debug on there, i think this thread is abandoned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment