玟茵开源社区知识库

如果您有自己的想法或者金点子,请提交给我们或直接参与项目,在此欢迎各位,您的反馈是我们持续前进的动力。
  1. 首页
  2. 技术入门
  3. 正文

Install entware repository on Synology NAS

2019年5月21日 597点热度 0人点赞 0条评论

文章目录[隐藏]

  • Introduction
  • Deploying Entware-ng

Introduction

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 - http://pkg.entware.net/binaries/armv5/installer/entware_install.sh | /bin/sh
  • for armv7
wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | /bin/sh
  • for x86-32
wget -O - http://pkg.entware.net/binaries/x86-32/installer/entware_install.sh | /bin/sh
  • for x86-64
wget -O - http://pkg.entware.net/binaries/x86-64/installer/entware_install.sh | /bin/sh
  • for MIPS
wget -O - http://pkg.entware.net/binaries/mipsel/installer/installer.sh | /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, but before 'exit 0'. The last line ensures that Entware services will be started at boot.

Note: As of DSM 6.0, /etc/rc.local is no longer executed as part of the boot process (see this thread). Instead you have two options.

(1) Documented in the Synology DSM6.0 3rd-Party Package Developer Guide, custom startup scripts should be placed in /usr/local/etc/rc.d (alt image capture).

Example: $>sudo vi /usr/local/etc/rc.d/entware-startup.sh

entware-startup.sh

#!/bin/sh

case $1 in
    start)
    mkdir -p /opt
    mount -o bind /volume1/@entware-ng/opt /opt
    /opt/etc/init.d/rc.unslung start
    ;;
    stop)
    ;;
esac

(2) Alternatively, make an executable script and use the Task Scheduler to create a triggered task that runs on boot. The script would contain:

#!/bin/sh

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

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

. /opt/etc/profile

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

6. Reboot your NAS,then you can use opkg commands.

via https://github.com/Entware/Entware-ng/wiki/Install-on-Synology-NAS

本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可
标签: entware nas Synology
最后更新:2019年5月21日

WenYinOS

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

COPYLEFT © 2023 玟茵开源社区知识库. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang