# install necessary package first sudo apt-get install apt-transport-https ca-certificates # add release pgp keys curl -s https://syncthing.net/release-key.txt | sudo apt-key add - # add stable channel to sources echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list # update & install sudo apt-get update sudo apt-get install syncthing
# run first time to generate configuration file
syncthing
# change listening address in config.xml <address>0.0.0.0:8384</address>
# restart syncthing and change password in web ui
# download systemd service file
git clone https://github.com/syncthing/syncthing
cd syncthing/etc/linux-systemd/system
mv syncthing@.service /etc/systemd/system/syncthing@.service
# enable & start service
systemctl enable syncthing@pi.service
systemctl start syncthing@pi.service