buffalo LS-WVL的机器以前一直用的是ipkg包管理,目前
optware-ng也已经停止维护,相关开发团队已经升级为Entware-ng。
所以ipkg的软件源已经有好多年不更新了,好多新软件都装不上。
- 查看linux版本信息使用如下命令:
- 1、# uname -a
- 2、# cat /proc/version
复制代码 Entware-ng安装步骤:
- <ul><li>LS420的CPU为ARMv7 (查看CPU信息使用如下命令:#cat /proc/cpuinfo),使用</li></ul>[root@DownloadStation opt]# <b>wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | /bin/sh</b>
- <ul><li>LS-WVL的CPU为ARMv5,使用</li></ul><!--?xml version="1.0" encoding="UTF-8"?--><b>
- wget -O - http://bin.entware.net/armv5sf-k3.2/installer/generic.sh | /bin/sh</b>
- <ul><li>#Synology DS216play与LS420的CPU均为ARMv7架构,使用同样的命令进行安装。</li></ul>耐心等待安装完成
- <b>Info: Congratulations!
- Info: If there are no errors above then Entware was successfully initialized.
- Info: Add /opt/bin & /opt/sbin to $PATH variable
- Info: Add "/opt/etc/init.d/rc.unslung start" to startup script for Entware services to start
- Info: Found a Bug? Please report at https://github.com/Entware/Entware/issues</b>
复制代码 此时Entware可用,但存在环境变量预置问题,以及optware开机启动问题
运行以下两条命令(任意一个)即可临时启用环境变量:
- <ul><li>export PATH="/opt/bin:/opt/sbin:"${PATH}</li><li>PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</li></ul>
复制代码 永久启用环境变量(开机Entware自启动):
- 修改文件 /etc/profile,在最后面添加代码 . /opt/etc/profile 。注意点后面有空格。
- [root@DownloadStation ~]# tail -n 5 /etc/profile
- # entware
- . /opt/etc/profile
复制代码此时Entware下安装配置的服务在系统重启后依旧无法自启动,需要添加Entware自启动服务命令在自启动脚本中。
- 将如下脚本添加在/etc/rc.d/extensions.d/S90_Initialize.sh 自启动脚本中,即可实现Entware自启动服务
- /opt/etc/init.d/rc.unslung start
复制代码至此Entware安装结束。
参考文档:
https://blog.csdn.net/u012313945/article/details/105801846
群晖安装entware官方教程:
https://github.com/Entware/Entware/wiki/Install-on-Synology-NAS
——————————————————————————————————————————————————————————————————————————
opkg 工具 (一个 ipkg 变种) 是一个用来从本地软件仓库或互联网软件仓库上下载并安装 OpenWrt 软件包的轻量型软件包管理器。
- opkg print-architecture 列出可安装软件包的结构
- Opkg list transmission*
复制代码 查看源内可用镜像
- http://bin.entware.net/armv7sf-k3.2/
复制代码