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"
 
Tailscale on linux is generally supposed to autostart.

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

Ok so before doing what you suggested, I instead did this..

Code:
systemctl status tailscaled

It gave me information that tailscale service was active and running and my email address (registered with tailscale) was also displayed. It pointed to a service file so i did a "cat" on that service file to see it contents and this is what I see...

Code:
root@DietPi:~# cat /lib/systemd/system/tailscaled.service
[Unit]
Description=Tailscale node agent
Documentation=https://tailscale.com/kb/
Wants=network-pre.target
After=network-pre.target NetworkManager.service systemd-resolved.service

[Service]
EnvironmentFile=/etc/default/tailscaled
ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port=${PORT} $FLAGS
ExecStopPost=/usr/sbin/tailscaled --cleanup

Restart=on-failure

RuntimeDirectory=tailscale
RuntimeDirectoryMode=0755
StateDirectory=tailscale
StateDirectoryMode=0700
CacheDirectory=tailscale
CacheDirectoryMode=0750
Type=notify

[Install]
WantedBy=multi-user.target
root@DietPi:~#

Do you think I need to add any line here to make sure it restarts when dietpi reboots or for some random reason, tailscale service goes down?
 
I have been interested in getting a Pi from long before but never considered it seriously. Now with work from home, there is some extra time and probably I am also having some mid life crisis so wanted to get something. This is why I am considering getting Pi 4.
I have talked to couple of members here who have been patient enough to help me via PM. But since there may be others with same query, I am opening this thread where people can ask any and all queries.

I will start with few of mine...

  1. For a total newbie, which is the best OS to use with RPi? Is it Raspbian or some other?
  2. Is it possible to setup a new RPi without having a separate monitor / keyboard / mouse ? I have read about putting certain files on the MicroSD to preconfigure Wifi and such.
  3. How does one manage the RPi like installing anything new or checking how things are working? I know people tell SSH but personally it scares me a little as it is all command line. or can VNC work to get into a GUI?
  4. Like we can install softwares using SSH, can we do the same using the GUI environment of RPi (accessed using VNC)?
  5. Does anyone have a guide on how to install a torrent client with web interface, Jelly fin server.
  6. If I want to use an external HDD with RPi, do I need to format it and then use it fresh or my existing NTFS formatted HDD with lots of data work fine without any issues?
My experience with Pi was for making a Home NAS Server.
All configured via SSH through my PC, only thing that had to be done was to set static local IP address for the pc and the pi, and that's all for starting with secure shell.

Configuration is exactly the way you would do on the pi directly, as you are gonna do on the SSH terminal on your pc.

And coming to load and OS, i went with the lightest version of Raspbian, ensuring minimal load on idle state.
It was a Pi 4 with 4gb ram, and an external ssd attached via usb for the storage purpose.