- Install the necessary packages:
sudo apt-get install apt-transport-https ca-certificates
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
sudo apt-get install syncthing
sudo apt-get install git
syncthing
- In /home/USER/.config/syncthing/config.xml, change (set GUI password!):
<address>0.0.0.0:8384</address>
sudo reboot
- Download missing systemd service files:
git clone https://github.com/syncthing/syncthing
cd syncthing/etc/linux-systemd/system
sudo mv syncthing@.service /etc/systemd/system/syncthing@.service
- Enable and start service (replace USER with username):
sudo systemctl enable syncthing@USER.service
sudo systemctl start syncthing@USER.service
- If
ufw
enabled, allow Syncthing ports:
sudo ufw allow 22000/tcp
sudo ufw allow 21027/udp
sudo ufw allow 8384/tcp
Clear, complete, and concise.
Thanks.