Skip to content

Instantly share code, notes, and snippets.

@butageek
Last active January 20, 2021 06:08
Show Gist options
  • Save butageek/b993fe62e47520e5cc708d7dab3725d2 to your computer and use it in GitHub Desktop.
Save butageek/b993fe62e47520e5cc708d7dab3725d2 to your computer and use it in GitHub Desktop.
Install and configure Syncthing

Installing

On Ubuntu

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

Add the release PGP keys

curl -s https://syncthing.net/release-key.txt | sudo apt-key add -

If curl command is not found, install it as below

sudo apt update
sudo apt install curl

Increase preference of Syncthing's packages ("pinning")

printf "Package: *\nPin: origin apt.syncthing.net\nPin-Priority: 990\n" | sudo tee /etc/apt/preferences.d/syncthing

Update and install syncthing

sudo apt update
sudo apt install syncthing

On Windows

Download package from here, and unzip the folder to wherever you like

Configuring

On Ubuntu

Run syncthing as below

syncthing

Refer to document here for folder sync configuration

In order to run as as service, refer to document here

On Windows

Run syncthing.exe from the unzipped folder

Refer to the same document as for Linux for configuration

In order to run as as service, refer to document here

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