Skip to content

itsMeRaj69/tailscale-nosudo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Tailscale for Linux (No Sudo Required!)

Run Tailscale VPN in Linux machines with persistent IPs – without requiring sudo priveleges. Simple and secure setup.

License

Why Use This?

  • 🌐 Same IP every time – No more reconfiguring tools
  • 🔒 Private networking – Enjoy encrypted peer-to-peer connections of Tailscale
  • Easy Setup – Ready in seconds!
  • 🚫 No high priveleges permissions – Works without sudo

Getting Started

1. Install Tailscale

curl -fsSL https://tailscale.com/install.sh | sh

2. Obtaining an Auth Key

  1. Login with your Tailscale Account.
  2. Get a key from Tailscale - AuthKeys

3. Setup your Auth Key

For Github Codespaces:

  1. Visit github.com
  2. Go to Profile -> Settings -> Codespaces
  3. Under Secrets, tap on "New secret" button.
  4. Paste TS_AUTH_KEY inside the input box which is below the "Name" field, and Paste the copied Tailscale - AuthKeys inside the input box of the "Value" field.
  5. Click on the "Select repositories" button and select the repos in which you want to access your AuthKey.
  6. Lastly, click on the Add secret button.

For Linux machines

echo 'export TS_AUTH_KEY="tskey-auth-XXXXXX"' >> ~/.bashrc   # bash
echo 'export TS_AUTH_KEY="tskey-auth-XXXXXX"' >> ~/.zshrc    # zsh
source ~/.bashrc  # or source ~/.zshrc

Replace tskey-auth-XXXXXXwith your actual authkey.

4. Download Control Scripts

wget -O ~/.local/bin/start-tailscale https://raw.githubusercontent.com/itsMeRaj69/tailscale-nosudo/main/scripts/start-tailscale
wget -O ~/.local/bin/stop-tailscale https://raw.githubusercontent.com/itsMeRaj69/tailscale-nosudo/main/scripts/stop-tailscale
wget -0 ~/.local/bin/status-tailscale https://raw.gihubusercontent.com/itsMeRaj69/tailscale-nosudo/main/scripts/status-tailscale

5. Make them executable

chmod +x ~/.local/bin/start-tailscale ~/.local/bin/stop-tailscale ~/.local/bin/status-tailscale

Usage

Command What It Does
start-tailscale Start Tailscale connection
stop-tailscale Stop/Disconnect safely
status-tailscale Check Tailscale Status

  • All scripts support a --verbose flag for full status output. (e.g: start-tailscale --verbose)

Tips


Need Help?

# Check logs
cat /tmp/tailscaled.log 

# Reset everything
rm -rf ~/.config/tailscale/ /tmp/tailscale*

License

MIT LicensedNot affiliated with Tailscale Inc.

About

Run Tailscale VPN in Linux machines with persistent IPs – no sudo required.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages