sudo mkdir -p /etc/apt/keyrings
sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
sudo apt-get install syncthing
printf "Package: *\nPin: origin apt.syncthing.net\nPin-Priority: 990\n" | sudo tee /etc/apt/preferences.d/syncthing.pref
sudo apt-get install apt-transport-https
sudo ufw allow 8384
Since you will probably mostly access it remotelly, enable the service to be accesed by any IP in the network:
Edit the file:
/home/pi/.local/state/syncthing/config.xml
Change where it says "127.0.0.1" with "0.0.0.0"
sudo systemctl enable [email protected]
sudo systemctl start [email protected]
Access it over http://[RaspberryIP]:8384
Syncthing is an awesome piece of software, you can make a donation to them, if you feel like it :)
First thing you must do is setup a login and password to it, be sure to use a hard to guess easy to remember password ;)