Skip to content

Instantly share code, notes, and snippets.

@genvagula
Forked from zentralwerkstatt/instructions.md
Created March 3, 2019 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genvagula/a74ecdc2cda2075ecd0ff88ffabd6e27 to your computer and use it in GitHub Desktop.
Save genvagula/a74ecdc2cda2075ecd0ff88ffabd6e27 to your computer and use it in GitHub Desktop.
Install Syncthing on Raspberry Pi
  • 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 http://apt.syncthing.net/ syncthing release" | 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/pi/.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
mv syncthing@.service /etc/systemd/system/syncthing@.service
  • Enable and start service:
systemctl enable syncthing@pi.service
systemctl start syncthing@pi.service
  • If ufw enabled, allow Syncthing ports:
sudo ufw allow 22000/tcp
sudo ufw allow 21027/udp
sudo ufw allow 8384/tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment