Last active
May 28, 2024 11:53
-
-
Save sugoidogo/92135394c5da5eb57440635f2be787d9 to your computer and use it in GitHub Desktop.
Install tailscale into /opt on steam deck
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/bash | |
set -xeuo pipefail | |
mkdir -p /opt/tailscale | |
cd /opt/tailscale | |
curl -L https://pkgs.tailscale.com/stable/tailscale_latest_amd64.tgz | tar xzf - --strip-components 1 | |
cd systemd | |
sed -i s.ExecStart=/usr/sbin/tailscaled.ExecStart=/opt/tailscale/tailscaled.g tailscaled.service | |
sed -i s.EnvironmentFile=/etc/default/tailscaled.EnvironmentFile=/opt/tailscale/systemd/tailscaled.defaults.g tailscaled.service | |
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf | |
systemctl restart systemd-resolved | |
systemctl restart NetworkManager | |
systemctl enable ./tailscaled.service --now | |
echo "export PATH=\$PATH:/opt/tailscale" > /etc/profile.d/tailscale.sh | |
chmod +x /etc/profile.d/tailscale.sh | |
/etc/profile.d/tailscale.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment