Skip to content

Instantly share code, notes, and snippets.

@goldbattle
Last active January 11, 2023 05:15
Show Gist options
  • Save goldbattle/30e06e056bd5e4e5088723974e245e5b to your computer and use it in GitHub Desktop.
Save goldbattle/30e06e056bd5e4e5088723974e245e5b to your computer and use it in GitHub Desktop.
Tailscale install on comma3n with ssh enabled
#!/usr/bin/bash
# Tailscale install on comma3
# https://discord.com/channels/469524606043160576/524594418628558878/946342467307974658
# tested over comma serial, might need sudo otherwise...
sudo mount -o remount,rw /
curl -fsSL https://tailscale.com/install.sh | sh
sudo sed -i 's/--state=\/var\/lib\/tailscale\/tailscaled\.state --socket=\/run\/tailscale\/tailscaled\.sock /--state=\/data\/tailscaled.state /g' /lib/systemd/system/tailscaled.service
sudo systemctl restart tailscaled
sudo tailscale up
tailscale ip -4
# enable ssh for this device (uses tailscale)
sudo tailscale up --ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment