SyncThing
Autostart
systemd
siehe auch: Syncthing Docs – How to set up a user service
systemctl --user enable syncthing.service systemctl --user start syncthing.service
Firewall
ufw
- /etc/ufw/applications.d/syncthing
[syncthing] title=Syncthing description=Syncthing file synchronisation ports=22000/tcp|21027/udp [syncthing-gui] title=Syncthing-GUI description=Syncthing web gui ports=8384/tcp
ufw app update syncthing ufw app update syncthing-gui
Troubleshooting
systemd user service doesn't work when ecryptfs is enabled for home directory
Add the following to your user service file (systemctl edit –user –full syncthing
):
RequiresMountsFor=/home/your_user_name
I added a device but it doesn't show a notification!
Possibly your devices still have to discover each other.
- wait a few (~5) minutes
- restart syncthing on both ends
- rinse and repeat, it will work eventually
You can circumvent this by hardcoding (selfhosted) discovery servers and relays.