Skip to main content

Syncthing

·1 min

Install #

Linux #

VERSION=1.8.0
WORKING_DIR=/tmp/syncthing-$VERSION

rm -rf $WORKING_DIR
mkdir $WORKING_DIR
cd $WORKING_DIR

wget https://github.com/syncthing/syncthing/releases/download/v$VERSION/syncthing-linux-amd64-v$VERSION.tar.gz
tar xzvf syncthing-linux-amd64-v$VERSION.tar.gz
cd syncthing-linux-amd64-v$VERSION

# If the following command throws an error like: "cp: cannot create regular file `/usr/local/bin/syncthing': Text file busy",
# shutdown the current Syncthing session from the UI and retry.
sudo cp syncthing /usr/local/bin

Note: Change version number to the latest one.

Mac #

brew cask install syncthing

If you run into any issues (for e.g., Syncthing doesn’t start), try starting the daemon through the command line to see what the problem is:

/Applications/Syncthing.app/Contents/Resources/syncthing/syncthing

Startup #

syncthing --gui-address=0.0.0.0:8384 &

UI is available here as long as the above command is running.

Others #

If you don’t want to use automated address discovery, explicitly set addresses to the following on each side:

tcp://<url-of-other-machine>:22000

Ignore patterns #

On Mac:

/Library
/Pictures/Photos Library.photoslibrary
(?i)*cache*
/.Trash