Created
May 24, 2020 14:23
-
-
Save ouyi/6b0bbe26d90e3aa870b4ad042ae8a10d to your computer and use it in GitHub Desktop.
raspberrypi_install_syncthing.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Config file: .config/syncthing/config.xml
Add Syncthing to Windows Autorun for all users (tested on Windows 10):
-
Hit the Windows key + X
-
Select "Command Prompt (admin)" or "Windows PowerShell (Admin)" this will open a command prompt with admin rights
-
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"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a LAN-only set up, deactivate the following (activated by default) in Settings: