Skip to content

Instantly share code, notes, and snippets.

@legowerewolf
Last active November 5, 2023 10:40
  • Star 59 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save legowerewolf/1b1670457cfac9201ee9d67840952147 to your computer and use it in GitHub Desktop.
Tailscale on Steam Deck
@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