Could someone please point me to a proper and concise guide to install and further auto-update the official Syncthing release on my Synology DS213j ? The tar.gz package for arm devices, not the .spk from Cytek.
I’ve been looking for a tuto here and there for a few days, no success so far.
I’m not a very Linux-guy but, in desperation, I could try to adapt this Raspberry Pi tuto accordingly, with the hope not to mess system files.
I don’t know any tutorial but I did install syncthing on a DS214 like this:
create user st and add to admin group to get access to all files and folders
login to ssh as root
switch to user st with su -s /bin/ash st
go to home dir with cd (which should bring you to /volume1/homes/st/
download and extract syncthing arm version; and move syncthing binary from sub folder to home folder
start syncthing, let it create certs and config, then kill it
edit config to change web ui from 127.0.0.1 to 0.0.0.0
To start syncthing on boot, you can add su -s /bin/ash -c /volume1/homes/st/syncthing st to rc.local or you can create a task in synogolgy ui which executes ash su -s /bin/ash -c /volume1/homes/st/syncthing st to run it manually (disable schedule) (thats what I did)
volume1/can be different on your NAS, depending on where the user home dirs are located.
That’s what the text below the list was for
You can add it to /etc/rc.local (create if it doesn’t exist yet) or create a scheduled task in DSM settings and disable it to start it manually when needed (that’s what I did)
The command for the scheduled task is ash su -s /bin/ash -c /volume1/homes/st/syncthing (where st is to be replaced with the username you used)
I did not test the rc.local approach and on my NAS the file does not exist.
It should survive DSM update, as it is completely in home dir. I don’t know if it did setup syncthing before or after the last auto DSM update, so I can’t attest to that.
By the way, ipkg is not necessary. I don’t have it installed.
Install the Cytek version and follow the tutorial on some modifications to the start-stop-status script. Then replace /usr/local/syncthing/bin/syncthing with the latest ARM release and you should be good to go. Benefits of this method: the ability to start and stop via DSM web interface, and automatic start via DSM.
Apparently, the cytec repository discontinued Syncthing downloads on 03/25/2015. It seems that SynoCommunity is the new source for Syncthing on Synology.
I am waiting for some confirmation from the 2 repositories, and then I will update the ST Community-Contributions wiki.
Hello all, sorry to have been away for so long (IRL stuff…).
I’ve finally dropped the version installed via the tuto mentioned above and picked the Synocommunity version. Seems to be running +/- smoothly as the previous one, with the same quirks though (Folder not making progress, etc.)
Thank you for your information! I’ve installed Syncthing on my NAS but the services stops when I close my SSH session (same as at princejosuah). I tried to use your scheduled task command but unfortunately it doesn’t work. I can start Syncthing from a SSH terminal and use su -s /bin/ash st as you said. Syncthing will run as the st user so I don’t think it’s a permission problem. What else can I try?
did you put the ash at the beginning of the command for the scheduled task?
This was not a typo or anything.
ash is the shell on the NAS (at least on my 214). Without that, the task does not work.
If you install the package from Synocommunity as I described above, it’s pretty straight forward and you’ll certainly avoid so much hassle. Plus you’ll be able to launch it as any other Synology package from the menu.
I’ve installed the package from Synocommunity but it won’t start. I set it to “execute” in the package manager but nothing happens. The github version runs fine without lots of CPU load or RAM usage.