Skip to content

tailscale-dev/tailgraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

tailgraft

Graft Tailscale onto your Raspberry Pi's SD card and join it to your tailnet automatically on its very first boot. More background and details in the blog post announcing this project.

Usage

This script is designed to be run after you've flashed Ubuntu onto an SD card but before you've booted it in a Raspberry Pi for the first time. It assumes you are using Linux or macOS and have python3 installed but otherwise has no external dependencies.

  1. Clone this repository or download the tailgraft.py script.
  2. Once the operating system is flashed, run the script with sudo python3 tailgraft.py.
  3. Answer the prompts to configure Tailscale on your Raspberry Pi. One of the prompts will request an auth key, which you can generate from your Tailscale admin console.

When your Rasbperry Pi boots up, you should see it in your Admin console's Machines page and you should be able to use to Tailscale SSH to connect to it.

tailscale ssh ubuntu@<hostname>

Depending on your ACL configuration, you may be prompted to authenticate with Tailscale.

How it works

More details about how this script uses cloud-init can be found in the companion blog post.

Contributing

Issues and pull requests welcome!

About

Grafting Tailscale into your Raspberry Pi!

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages