The Raspberry Pi Thread

I played with tailscale and failed to use it. Is there a guide you followed that gives detailed instructions step by step?
Install on one device in network -> Go to settings and allow access to LAN (Or set up as gateway).
Install on another device (remote) -> Try accessing using magic DNS or LAN IP on remote. Simple as that.

Both devices need to be logged in with same account of course.

 
I am kinna noob in such things, but recently started using jellyfin for media consumption that I run on my HP ELITEDESK tiny...
Was planning to give access to someone In the same city and I was told by another great member to use Tailscale..
I am yet to do that.. But this explanation of Tailscale by a guy on reddit just made my day.


You know how you passed notes in class? You just wrote your friend's name and passed it to the kid next to you and so on and so forth. You didn't need a mailing address on the note or a security envelope since it was a private space and everyone knew each other.

Now imagine one of your friends is in another school. Now you write your note but you have to seal it up in an envelope and write the other school's mailing address and send it out into the world with a public address. Imagine your school had an administrator who did that officially. Mrs Keller's class was in a different school but they know which school so they bundle up all the notes for that school in a postal box and send it out.

Once it reaches your friends school imagine there is someone who can open the letters and envelopes and then hand the note to the correct friend in the correct classroom.

That's a virtual private network. From your friend's perspective it was an insecure note without an address but it was sent from one classroom to another as if they were classrooms in the same school. They appear to be local even though there was a transparent step where the notes for distant schools are all securely packaged up and shipped using a public postal service.

All that Tailscale does is let you assign a local address like a classroom name and a student name and then it figures out where that student actually is, locks the note in a secure briefcase and ships it to the recipient where a Tailscale agent then unlocks the briefcase and hands the insecure note to the recipient on the other end
 
Last edited:
In my Raspberry pi I use dietpi as the software. I have Tailscale installed which I need to explicitly start by giving command as...

sudo tailscale up


How do I automate this? As in whenever tailscale is down, this command is run to restart. I guess it doesn't matter even if the command runs every 1 hour irrespective of tailscale is up or down.

How to achieve this?
 
In my Raspberry pi I use dietpi as the software. I have Tailscale installed which I need to explicitly start by giving command as...

sudo tailscale up


How do I automate this? As in whenever tailscale is down, this command is run to restart. I guess it doesn't matter even if the command runs every 1 hour irrespective of tailscale is up or down.

How to achieve this?
Simple cron job.
 
Tailscale on linux is generally supposed to autostart.

If a clean reinstall is not possible, try creating a .service file in /etc/systemd/system

Code:
[Unit]

Description = <description here>

Wants = network-online.target

After = network-online.target

[Service]

Type = onetime //(only on boot)

User = <user here>

ExecStart = /usr/sbin/tailscale up

Restart = on-failure

RestartSec = 5

[Install]

WantedBy = multi-user.target

Once you save the file, enable it by "systemctl enable xxxx.service"

To start in current boot "systemctl start xxxx.service"

This makes sure that the service will start automatically from next boot.

Once done, You can check whether the service exited successfully by "journalctl -u xxxx.service"
 
  • Like
Reactions: raksrules