Syncing your Files Across ALL your Computers via Syncthing

From Wiki
Jump to navigation Jump to search


Kubernetes is a very powerful platform to scale your applications, and the Raspberry Pi is a low-cost computer with excellent power efficiency you can use to run tasks without breaking the bank. Canonical recently released Ubuntu 20.04, with full support for the Raspberry Pi. In this video, we take a look at how to create a Pi-powered Kubernetes cluster based on Ubuntu.

Relevant Links
Original Video
Syncthing downloads
Systemd unit

Install curl (if not already installed)

 sudo apt install curl

Add the PGP key for the repository

 curl -s | sudo apt-key add -

Add the repository

 echo "deb syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list

Install Syncthing

 sudo apt update
 sudo apt install syncthingxx

Add systemd unit

 sudo chown root: syncthing@.service
 sudo mv syncthing@.service /etc/systemd/system
 sudo systemctl daemon-reload

Enable and start the unit

 sudo systemctl enable syncthing@<user>
 sudo systemctl start syncthing@<user>

Access the web gui for Syncthing


Allow connections to the web gui from network devices

Open the config file in an editor:

 nano /home/<user>/.config/syncthing/config.xml

Change the line:




Restart syncthing:

 sudo systemctl restart syncthing@<user>

Now, you can access the web gui and add shared folders. Make sure you set up a username and password in the gui, to keep it safe.