Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Syncthing on Linux
  • Install the necessary packages:
sudo apt-get install apt-transport-https ca-certificates
curl -s | sudo apt-key add -
echo "deb 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
  • Start syncthing once:
  • In /home/USER/.config/syncthing/config.xml, change (set GUI password!):
  • Restart:
sudo reboot
  • Download missing systemd service files:
git clone
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
Copy link

manangatangy commented Jan 13, 2019

Clear, complete, and concise.

Copy link

genvagula commented Mar 3, 2019

You are the man! Clearest and best directions. Thanx!

Copy link

timothyjac commented Mar 7, 2019

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

Change to https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment