Skip to content

Instantly share code, notes, and snippets.

@zentralwerkstatt
Last active October 27, 2024 19:43
Show Gist options
  • Save zentralwerkstatt/b94ab44938fbdc8b957c674bf9261954 to your computer and use it in GitHub Desktop.
Save zentralwerkstatt/b94ab44938fbdc8b957c674bf9261954 to your computer and use it in GitHub Desktop.
Install Syncthing on Linux
  • 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
  • Start syncthing once:
syncthing
  • In /home/USER/.config/syncthing/config.xml, change (set GUI password!):
<address>0.0.0.0:8384</address>
  • Restart:
sudo reboot
  • Download missing systemd service files:
git clone https://github.com/syncthing/syncthing
cd syncthing/etc/linux-systemd/system
sudo mv [email protected] /etc/systemd/system/[email protected]
  • Enable and start service (replace USER with username):
sudo systemctl enable [email protected]
sudo systemctl start [email protected]
  • If ufw enabled, allow Syncthing ports:
sudo ufw allow 22000/tcp
sudo ufw allow 21027/udp
sudo ufw allow 8384/tcp
@genvagula
Copy link

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

@timothyjac
Copy link

echo "deb http://apt.syncthing.net/ 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