# Netgear Readnas 104 NAS install?

**URL:** https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899
**Category:** Installation
**Created:** [October 4, 2017, 5:22am UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899 "2017-10-04T05:22:14Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![John](https://forum.duplicati.com/user_avatar/forum.duplicati.com/john/32/510_2.png) [@John](https://forum.duplicati.com/u/John)
#### Post date: [October 4, 2017, 5:22am UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/1 "2017-10-04T05:22:14Z")

</div>

Netgear’s readynas backup software ‘replicate’ is shutting down at the end of this year, so im looking for an alternative. Duplicati looks perfect!

It runs a debian backend which i can SSH into. I’m just not super 100% sure if it will work or prerequisites. Has anyone tried installing it onto a READYNAS 104 or 102?

From what i can google, a few firmware revisions ago the core was upgraded from debian 7 to debian 8. and it is an ARM processor.

\*\*\*EDIT:  
I’ve got it all figured out and working. I’ll post my procedure soon.

---

<div class="post-metadata">

### Author: ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)
#### Post date: [October 4, 2017, 8:31am UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/2 "2017-10-04T08:31:43Z")

</div>

> [@John](#):
>
> I’ve got it all figured out and working. I’ll post my procedure soon.

Interesting! After hours of Googling I managed to get it working on my ReadyNAS 314. I suppose the way I installed it is not the most obvious way. I’ve documented my procedure here:

[https://groups.google.com/forum/#!searchin/duplicati/netgear|sort:relevance/duplicati/fTcYEH\_5r2s/FX8j-xrMAwAJ](https://groups.google.com/forum/#!searchin/duplicati/netgear%7Csort:relevance/duplicati/fTcYEH_5r2s/FX8j-xrMAwAJ)

---

<div class="post-metadata">

### Author: ![John](https://forum.duplicati.com/user_avatar/forum.duplicati.com/john/32/510_2.png) [@John](https://forum.duplicati.com/u/John)
#### Post date: [October 4, 2017, 9:56am UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/3 "2017-10-04T09:56:21Z")

</div>

Hi kees-z!  
Yes I found your google post! and it helped me out tons! thank you so much! It looks like our NAS’ work very similar.

---

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [October 4, 2017, 2:56pm UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/4 "2017-10-04T14:56:53Z")

</div>

> [@John](#):
>
> I’ve got it all figured out and working. I’ll post my procedure soon.

That’s great, and thanks! Is your process close enough to @kees-z’s to share a single #How-To topic ?

---

<div class="post-metadata">

### Author: ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)
#### Post date: [October 4, 2017, 3:46pm UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/5 "2017-10-04T15:46:09Z")

</div>

Created one!

> [@Installing Duplicati on a Netgear ReadyNAS](https://forum.duplicati.com/t/installing-duplicati-on-a-netgear-readynas/902):
>
> This article describes how I did get Duplicati working on a Netgear ReadyNAS. Due to my very limited Linux skills I suppose there are a number of things that could be done better, so feel free to comment what could be improved. A ReadyNAS running ReadyNAS OS6 is required. Older models running RAIDiator (like the ReadyNAS Duo and ReadyNAS Ultra) are based on an ancient Debian version that doesn’t meet the minimum requirements for installing Duplicati. Create a new shared folder. Give it the na…

---

<div class="post-metadata">

### Author: ![John](https://forum.duplicati.com/user_avatar/forum.duplicati.com/john/32/510_2.png) [@John](https://forum.duplicati.com/u/John)
#### Post date: [October 4, 2017, 4:51pm UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/6 "2017-10-04T16:51:21Z")

</div>

Yes Kees-z’s is much cleaner than mine, i did need to change the auto run script, because his started on the default port (8200) but that conflicts with the DNLA on the nas. so you need to change that to 8300.

I’m just doing some test backups and making sure everything works.

---

<div class="post-metadata">

### Author: ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)
#### Post date: [October 4, 2017, 6:05pm UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/7 "2017-10-04T18:05:12Z")

</div>

> [@John](#):
>
> i did need to change the auto run script, because his started on the default port (8200) but that conflicts with the DNLA on the nas. so you need to change that to 8300.

Good spot! Somehow this was replaced by a $ character in the init script. Fixed that.  
Also, added `--portable-mode` to the same line. This will store the local databases and configuration files in the Duplicati share on the data volume of the NAS.

---

<div class="post-metadata">

### Author: ![John](https://forum.duplicati.com/user_avatar/forum.duplicati.com/john/32/510_2.png) [@John](https://forum.duplicati.com/u/John)
#### Post date: [October 5, 2017, 12:41am UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/8 "2017-10-05T00:41:12Z")

</div>

Awesome! I didn’t know about that one. I’ll add that too.  
I had a question about your startup script. It appears to need ‘start’ added to the end of it make it run or ‘stop’ to close the service down. ie ‘duplicati start’. But when adding it to update-rc.d you don’t appear to be adding the ‘start’ to it? (my linux coding skills are very rudimentary, so forgive me if im miss-reading it.

My startup script was just a one-liner that starts the service.

---

<div class="post-metadata">

### Author: ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)
#### Post date: [October 5, 2017, 7:45am UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/9 "2017-10-05T07:45:13Z")

</div>

> [@John](#):
>
> I had a question about your startup script. It appears to need ‘start’ added to the end of it make it run or ‘stop’ to close the service down. ie ‘duplicati start’. But when adding it to update-rc.d you don’t appear to be adding the ‘start’ to it?

The only explanation I have is: I have no idea. Just copied another script and made a few changes to it. After some fiddling, Duplicati.Server.exe started up automatically after rebooting the NAS. In my situation it works, but I have no idea why it works…  
If you have anything that can be improved in the script, please share it and explain how the modification makes working it better. Thanks!

---

<div class="post-metadata">

### Author: ![John](https://forum.duplicati.com/user_avatar/forum.duplicati.com/john/32/510_2.png) [@John](https://forum.duplicati.com/u/John)
#### Post date: [October 5, 2017, 7:59am UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/10 "2017-10-05T07:59:49Z")

</div>

I definitely wouldn’t assume to make it better. mine is just a bit simpler because I don’t know much 😛

---

<div class="post-metadata">

### Author: ![John](https://forum.duplicati.com/user_avatar/forum.duplicati.com/john/32/510_2.png) [@John](https://forum.duplicati.com/u/John)
#### Post date: [October 5, 2017, 8:01am UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/11 "2017-10-05T08:01:57Z")

</div>

Enable SSH:

1. Log on to your ReadyNAS and create a new share.Give it the name Duplicati.
2. Enable SSH: Click System, Settings and click the SSH button.
3. Download and start PuTTY. Connect to your ReadyNAS (username: root, password: your admin user’s password).

Install Pre reqs:

Type the follow:  
apt-get update  
apt-get -y install apt-transport-https sudo nano git-core python python-software-properties software-properties-common  
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF  
echo “deb [Index of /repo/debian](http://download.mono-project.com/repo/debian) wheezy main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list  
sudo apt-get update  
sudo apt-get -y install mono-devel  
Reboot the NAS

Install Duplicati :

1. Download the Zip version of Duplicati from [Duplicati](https://www.duplicati.com/download)
2. Create a folder Duplicati on the Duplicati share on the ReadyNAS and extract the Zip file to this folder.
3. Test if the server can be started with this commands:

cd /data/Duplicati/Duplicati

mono Duplicati.Server.exe --webservice-interface=any --webservice-port=8300 --portable-mode

You should see that the server has started and is listening on 0.0.0.0 on port 8300

and be able to browse to http://:8300

Adding duplicati to NAS start up:

Create startupscript:

nano /etc/init.d/startduplicati.sh

Then paste the following text:

```
#! /bin/sh
cd /data/Duplicati/Duplicati
mono Duplicati.Server.exe --webservice-interface=any --webservice-port=8300 --portable-mode

```

Press Ctrl+X and save the file.

Type the following commands to then set the execute permissions and add the script to your NAS startup:

cd /data/Duplicati/Duplicati  
chmod 755 [startduplicati.sh](http://startduplicati.sh)  
update-rc.d [startduplicati.sh](http://startduplicati.sh) defaults

Then Reboot your NAS and you should be able to browse to http://:8300

---

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [October 5, 2017, 4:44pm UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/12 "2017-10-05T16:44:13Z")

</div>

John, that looks pretty good! Just a few quick things:

1. is your “paste the following text” block supposed to include the “Press Ctrl-X and save the file.” comment?
2. did you start with kees-z’s [Installing Duplicati on a Netgear ReadyNAS](https://forum.duplicati.com/t/installing-duplicati-on-a-netgear-readynas/902) steps or come up with your own?
3. do you feel yours is simplified enough to be moved to a post as an alternative process on the kees-z’s #howto? (Sorry, I don’t know enough about ReadyNAS to make an informed decision on that.)

---

<div class="post-metadata">

### Author: ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)
#### Post date: [October 5, 2017, 6:16pm UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/13 "2017-10-05T18:16:30Z")

</div>

> [@JonMikelV](#):
>
> 1. do you feel yours is simplified enough to be moved to a post as an alternative process on the kees-z’s #How-To?

The only real difference is the way Duplicati is set up to start automatically.  
I don’t know which approach is the best. After searching a bit how to start a program automatically after bootup, I found that a text file in the /etc/init.d folder could do the trick. After some fiddling it indeed appeared to work.

@John’s script seems to do the same, but a lot of (redundant) lines are omitted. My version is based on the scripts that were already in the same folder to start other processes on my NAS.

I presume that there are other ways to autostart Duplicati or convert it to a service. The command `sudo systemctl start duplicati` seems to work also, but I’ve no idea if this will work on Debian based OS’s or on a ReadyNAS.

Maybe someone with more knowledge of Linux can shine a light on which approach is preferred to autostart Duplicati. I’ll update the #How-To article if there is a better way to do it than currently described.

> [@JonMikelV](#):
>
> 1. is your “paste the following text” block supposed to include the “Press Ctrl-X and save the file.” comment?

I guess not. @John: I’ve been so free to edit your post, moving “Press Ctrl+X and save the file.” outside of the code block.

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [October 5, 2017, 7:22pm UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/14 "2017-10-05T19:22:15Z")

</div>

> [@kees-z](#):
>
> systemctl start duplicati

This should work on all distros that are using `systemd`, which it appears almost all distros are adopting. It requires a small service config file to be installed, which can be grabbed from here:

> <https://github.com/duplicati/duplicati/blob/master/Installer/debian/debian/duplicati.service>

The `/etc/default/duplicati` file can look like this:

> <https://github.com/duplicati/duplicati/blob/master/Installer/debian/debian/duplicati.default>

---

<div class="post-metadata">

### Author: ![John](https://forum.duplicati.com/user_avatar/forum.duplicati.com/john/32/510_2.png) [@John](https://forum.duplicati.com/u/John)
#### Post date: [October 14, 2017, 2:07pm UTC](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/15 "2017-10-14T14:07:27Z")

</div>

Sorry i was waiting for someone to test the method for calling it a ‘how to’ I have a couple people at my work that might soon.
