How to install SyncThing on ReadyNas and Autostart


Syncthing is Awesome.

Step 1: Enable root access within ReadyNasOS


Step 2: Download the appropriate SyncThing image here(I downloaded the ARM image because I have the ReadyNas 202). NOTE: You must download the appropriate image or the installation will fail or cause errors later. If you do not know what type of CPU you have, simply click here and find your NAS model.

Step 3 Download PuTTY and enter your IP address and login with a username of root and a specified password

Step 4:Type the following

cd ~

Now, unpack the tar by pasting the following command:

tar xzvf syncthing*.tar.gz

Now move into the dir

cd syncthing*

Now lets call SyncThing like a service

cp syncthing /usr/local/bin

Since we are done with the directory lets remove it

cd ~
rm -rf syncthing*

Step 5: Lets start SyncThing


Let it run the setup for 2-3 minutes. Once you see a “Node ID,” Press ctrl + c and end the process.

Step 6: Edit the config file

nano ~/.config/syncthing/config.xml

Look for the line below and change it to match the below image.


Step 7: Create a file named: “syncthing@.service” with following the contents and copy it to:

Description=Syncthing - Open Source Continuous File Synchronization for %I
ExecStart=/usr/local/bin/syncthing -no-browser -logflags=0
SuccessExitStatus=2 3 4
RestartForceExitStatus=3 4

Step 8: Let’s implement autostart. Paste the following commands separately.

systemctl enable syncthing@root.service
systemctl start syncthing@root.service

Now check the status by entering:

systemctl status syncthing@root.service

It should look like the image below:


Step 9: Go to http://ip:8080 and set up SyncThing.

Step 10: Reboot your NAS and it should start automatically. NOTE: Do not type sudo when running these commands. You will get an error. SyncThing will automatically update to the latest version on first run.