Install on Synology NAS

zyxmon edited this page Jul 30, 2016 · 22 revisions


ARM & intel based devices are supported. DSM version must be 3.2 or higher. Use armv5 installer for Marvell Kirkwood mv6282 cpu, you can use armv7 installer for newer ARM cpu's. Although armv7 repo was compiled with cortex-a9 optimization it was successfully tested on Marvell Armada XP based NAS.

Deploying Entware-ng

1. Create a folder on your hdd (outside rootfs)

mkdir -p /volume1/@entware-ng/opt

Make sure that /opt folder is empty (Optware is not installed), we will remove /opt folder with its contents at this step.

2. Remove /opt and create a symlink

rm -rf /opt
ln -sf /volume1/@entware-ng/opt /opt

3. Run install script

  • for armv5
wget -O - | /bin/sh
  • for armv7
wget -O - | /bin/sh
  • for x86-32
wget -O - | /bin/sh
  • for x86-64
wget -O - | /bin/sh

4. Edit /etc/rc.local file with a text editor and insert following strings

/bin/ln -sf /volume1/@entware-ng/opt /opt
/opt/etc/init.d/rc.unslung start

at the end of this file. The last line ensures that Entware services will be started at boot.

5. Add the following line in the end of /root/.profile file

. /opt/etc/profile

It will add /opt/bin and /opt/sbin to the PATH variable for interactive login.!

Remark! According to in DSM 6.0 /etc/profile should be modified.

6. Reboot your NAS.


You can use mount -o bind instead of creating symlinks. In this case execute the following commands on step 2:

mkdir -p /opt
mount -o bind /volume1/@entware-ng/opt /opt

and insert the following lines to /etc/rc.local on step 4:

mkdir -p /opt
mount -o bind /volume1/@entware-ng/opt /opt
/opt/etc/init.d/rc.unslung start

Firmware update erases /opt folder. You should deploy Entware-ng outside of rootfs and create symlink to /opt or use mount -o bind. After firmware update you may need to edit /etc/rc.local and /root/.profile files once more.