Skip to content

Instantly share code, notes, and snippets.

@ouyi
Created May 24, 2020 14:23
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 ouyi/6b0bbe26d90e3aa870b4ad042ae8a10d to your computer and use it in GitHub Desktop.
Save ouyi/6b0bbe26d90e3aa870b4ad042ae8a10d to your computer and use it in GitHub Desktop.
raspberrypi_install_syncthing.sh
# https://apt.syncthing.net/
# Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
# Add the "stable" channel to your APT sources:
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
# Update and install syncthing:
sudo apt-get update
sudo apt-get install syncthing
# Autostart as a systemd service
sudo systemctl enable syncthing@pi.service
@ouyi
Copy link
Author

ouyi commented May 24, 2020

For a LAN-only set up, deactivate the following (activated by default) in Settings:

  • Enable NAT traversal
  • Global Discovery
  • Enable relaying

@ouyi
Copy link
Author

ouyi commented Jun 1, 2020

Config file: .config/syncthing/config.xml

@ouyi
Copy link
Author

ouyi commented Aug 18, 2020

Add Syncthing to Windows Autorun for all users (tested on Windows 10):

  1. Hit the Windows key + X

  2. Select "Command Prompt (admin)" or "Windows PowerShell (Admin)" this will open a command prompt with admin rights

  3. Copy and paste this command and hit enter, change the path of your Syncthing executable if necessary:

    REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /V "Syncthing Service" /t REG_SZ /F /D "C:\syncthing-windows-amd64-v1.8.0\syncthing.exe -no-console -no-browser"

Reference:
https://forum.syncthing.net/t/start-syncthing-in-background-without-shell-window-as-a-windows-service/163/51

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