Syncthing on Synology

2 minute read Published:

Goal here is to install syncthing on an old armv5t Synlogoy DS212J, there’s probably other ways to achieve that but here’s the quickest method I ended up with:

Get the binary corresponding to your architecture.

Extract it and copy the binary under /usr/local/bin/syncthing and make it executable:

$ tar zxvf syncthing-linux-arm-v0.14.46.tar.gz 
$ sudo mv syncthing-linux-arm-v0.14.46/syncthing /usr/local/bin/syncthing
$ sudo chmod +x /usr/local/bin/syncthing

Syncthing doesn’t need to run as root so I’d recommend to run the process from an unprivileged user, in my example user.

Syncthing configuration can be done from the WebGUI, by default it will only listen on localhost so you can either connect to it using ssh port-forwarding or make temporarily the dameon listen on the synlogoy IP-address using the following command (as user user):

$ syncthing -gui-address="synologoy_IP_address"

Then connect to syncthing GUI using your browser on http://synologoy_IP_address:8384.

When all the configuration is done you can stop the process using CTRL+C.

To make the setup persistent copy the following script into /usr/local/etc/rc.d/syncthing.sh (replace user on line 5 with your unprivileged user):

#!/bin/sh

Start()
{
    su user -c syncthing
}

Stop()
{
	killall syncthing
}

case "$1" in
	start)
		Start
		;;
	stop)
		Stop
		;;
	*)
		;;
esac

and make it executable:

chmod +x /usr/local/etc/rc.d/syncthing.sh

Then reboot your synology and ensure that syncthing is running.