entware mysql 5.5,Install entware repository on Synology NAS

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 symlinkrm -rf /opt

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

3. Run install scriptfor armv5wget -O - http://pkg.entware.net/binaries/armv5/installer/entware_install.sh | /bin/shfor armv7wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | /bin/shfor x86-32wget -O - http://pkg.entware.net/binaries/x86-32/installer/entware_install.sh | /bin/shfor x86-64wget -O - http://pkg.entware.net/binaries/x86-64/installer/entware_install.sh | /bin/shfor MIPSwget -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.

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值