Skip to content

Instantly share code, notes, and snippets.

@sugoidogo
Last active May 28, 2024 11:53
Show Gist options
  • Save sugoidogo/92135394c5da5eb57440635f2be787d9 to your computer and use it in GitHub Desktop.
Save sugoidogo/92135394c5da5eb57440635f2be787d9 to your computer and use it in GitHub Desktop.
Install tailscale into /opt on steam deck
#!/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