扫描二维码关注官方公众号
返回列表 发布新帖

[玩法/技巧] Synology ds213j optware manual bootstrap guide.

6557 17
发表于 2014-5-4 15:49:20 | 显示全部楼层 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 yumin9822 于 2014-9-23 15:34 编辑

本人DS213J  固件DSM4482测试通过,成功安装了nano aria2 ncdu等软件。红色字体部分为本人修改的部分。
高亮红色字体部分必须修改,要不然每次reboot后,环境变量会丢失!

Synology ds213joptware manual bootstrap guide.

Create optware root directory
  1. # mkdir /volume1/@optware
  2. # mkdir /opt
  3. # mount -o bind /volume1/@optware /opt
复制代码

Setup ipkg
  1. # feed=http://ftp.osuosl.org/pub/nslu2/feeds/optware/cs08q1armel/cross/unstable
  2. # ipk_name=`wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}'`
  3. # wget $feed/$ipk_name
  4. # tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf -
  5. # mkdir -p /opt/etc/ipkg
  6. # echo "src cross $feed" > /opt/etc/ipkg/feeds.conf
复制代码



Set PATH
/etc/profile and /root/.profile,PATH could be changed below:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin

Then make the profileeffective immediately.
$ source /etc/profile

Create init scripts
The following stepswill allow to automatically bind the /volume1/@optware directory to /opt andtrigger the /opt/etc/init.d/* scripts.
1. Create the/etc/rc.local file (chmod 755) and insert:
  1. #!/bin/sh
  2. # Optware setup
  3. [ -x /etc/rc.optware ]&& /etc/rc.optware start
复制代码


2. Create the /etc/rc.optware file (chmod 755)and insert:
  1. #! /bin/sh

  2. if test -z "${REAL_OPT_DIR}"; then
  3. # next line to be replaced according to OPTWARE_TARGET
  4. REAL_OPT_DIR=/volume1/@optware
  5. fi

  6. case "$1" in
  7.     start)
  8.         echo "Starting Optware."
  9.         if test -n "${REAL_OPT_DIR}"; then
  10.             if ! grep ' /opt ' /proc/mounts >/dev/null 2>&1 ; then
  11.                 mkdir -p /opt
  12.                 mount -o bind ${REAL_OPT_DIR} /opt
  13.             fi  
  14.         fi
  15.     [ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware
  16.     ;;
  17.     reconfig)
  18.     true
  19.     ;;
  20.     stop)
  21.         echo "Shutting down Optware."
  22.     true
  23.     ;;
  24.     *)
  25.         echo "Usage: $0 {start|stop|reconfig}"
  26.         exit 1
  27. esac

  28. exit 0
复制代码

3. Create the /opt/etc/rc.optware file (chmod 755)and insert:

  1. #!/bin/sh

  2. # Start all init scripts in /opt/etc/init.d
  3. # executing them in numerical order.
  4. #
  5. for i in /opt/etc/init.d/S??* ;do

  6.         # Ignore dangling symlinks (if any).
  7.         [ ! -f "$i" ] && continue

  8.         case "$i" in
  9.            *.sh)
  10.                 # Source shell script for speed.
  11.                 (
  12.                         trap - INT QUIT TSTP
  13.                         set start
  14.                         . $i
  15.                 )
  16.                 ;;
  17.            *)
  18.                 # No sh extension, so fork subprocess.
  19.                 $i start
  20.                 ;;
  21.         esac
  22. done
复制代码

Done

-------------------
DSM系统升级后,由于profile文件被重置,需要重新执行下面命令以确定环境变量
Set PATH
/etc/profile and /root/.profile,PATH could be changed below:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin

Then make the profile effective immediately.
$ source /etc/profile

评论17

yumin9822楼主Lv.10 发表于 2014-5-4 16:39:03 | 显示全部楼层
本帖最后由 yumin9822 于 2014-5-4 16:41 编辑

推荐两个第三方源,由于是非官方,本人不保证安全性!
http://packages.synocommunity.com/
http://www.cphub.net/

回复 点赞

使用道具 举报

yumin9822楼主Lv.10 发表于 2014-5-4 16:39:30 | 显示全部楼层
本帖最后由 yumin9822 于 2014-5-4 16:40 编辑

推荐两个第三方源,由于是非官方,本人不保证安全性!
http://packages.synocommunity.com/
http://www.cphub.net/

Capture.PNG
3rd_party_1.PNG
3rd_party_2.PNG
3rd_party_3.PNG




不错,很丰富。可惜国内软件少。 
发表于 2014-5-4 18:19
回复 点赞

使用道具 举报

yumin9822楼主Lv.10 发表于 2014-5-5 10:25:54 | 显示全部楼层
有个transmission还不错。配合下面教程可以PT挂机
http://www.gebi1.com/thread-66826-1-1.html
回复 点赞

使用道具 举报

kfqzhwLv.5 发表于 2014-5-7 15:59:34 | 显示全部楼层
谢谢楼主分享,正好有台213j,有时间测试一下
回复 点赞

使用道具 举报

yumin9822楼主Lv.10 发表于 2014-5-15 11:45:55 | 显示全部楼层
已经有人做成了另外一个一键安装包
https://github.com/hsleep/ds213j_bootstrap

Install

root login into DS213J

$ /usr/syno/bin/wget https://github.com/hsleep/ds213j_bootstrap/archive/master.zip --no-check-certificate -O ds213j_bootstrap-master.zip
$ unzip ds213j_bootstrap-master.zip
$ cd ds213j_bootstrap-master
$ sh bootstrap.sh
楼主 为什么不能升级4482了,我现在是4458, 在官网下载安装包也不可以 谢谢  详情 回复
发表于 2014-5-15 21:53
回复 点赞

使用道具 举报

sikittLv.2 发表于 2014-5-15 21:53:25 | 显示全部楼层
yumin9822 发表于 2014-5-15 11:45
已经有人做成了另外一个一键安装包
https://github.com/hsleep/ds213j_bootstrap

楼主  为什么不能升级4482了,我现在是4458,
在官网下载安装包也不可以
谢谢
请给出你出错的相关信息,我帮你看看。 这个一键安装包我没有测试。推荐按照我的1楼的帖子进行。我的4482测试没有问题的  详情 回复
发表于 2014-5-16 10:17
回复 点赞

使用道具 举报

superliuyLv.10 发表于 2014-5-15 22:15:13 | 显示全部楼层
看不懂,相当的专业啊
回复 点赞

使用道具 举报

yumin9822楼主Lv.10 发表于 2014-5-16 10:17:12 | 显示全部楼层
sikitt 发表于 2014-5-15 21:53
楼主  为什么不能升级4482了,我现在是4458,
在官网下载安装包也不可以
谢谢 ...

请给出你出错的相关信息,我帮你看看。
这个一键安装包我没有测试。推荐按照我的1楼的帖子进行。我的4482测试没有问题的
回复 点赞

使用道具 举报

emyselfLv.5 发表于 2014-5-19 19:56:29 | 显示全部楼层
楼主能提供下aria2的ipk么?
回复 点赞

使用道具 举报

yumin9822楼主Lv.10 发表于 2014-5-20 13:58:03 | 显示全部楼层
請問樓主這個214play可以用嗎?  详情 回复
发表于 2015-5-15 17:16
谢谢!我已经安装了这个版本,可是我发现无法更新。 我在网络上找了ar71的版本1.18.5的版不能,可是ipkg install aria2_1.18.5-1_ar71.ipk 时,它仍然需要下载,而且安装的还是 1.14.2版本  详情 回复
发表于 2014-5-22 23:22
回复 点赞

使用道具 举报

emyselfLv.5 发表于 2014-5-22 23:22:51 | 显示全部楼层
yumin9822 发表于 2014-5-20 13:58
http://ftp.osuosl.org/pub/nslu2/feeds/optware/cs08q1armel/cross/unstable/aria2_1.14.2-1_arm.ipk

谢谢!我已经安装了这个版本,可是我发现无法更新。
我在网络上找了ar71的版本1.18.5的版不能,可是ipkg install aria2_1.18.5-1_ar71.ipk 时,它仍然需要下载,而且安装的还是 1.14.2版本
ar不行,你可以试试这个帖子的http://nas1.cn/thread-83848-1-1.html 我测试了ds213j可以用  详情 回复
发表于 2014-5-23 09:05
目前这个源里面最新的只有1.14.2。你自己下载的ipk安装的信息贴出来看看  详情 回复
发表于 2014-5-23 08:46
回复 点赞

使用道具 举报

yumin9822楼主Lv.10 发表于 2014-5-23 08:46:30 | 显示全部楼层
emyself 发表于 2014-5-22 23:22
谢谢!我已经安装了这个版本,可是我发现无法更新。
我在网络上找了ar71的版本1.18.5的版不能,可是ipkg  ...

目前这个源里面最新的只有1.14.2。你自己下载的ipk安装的信息贴出来看看
回复 点赞

使用道具 举报

yumin9822楼主Lv.10 发表于 2014-5-23 09:05:07 | 显示全部楼层
emyself 发表于 2014-5-22 23:22
谢谢!我已经安装了这个版本,可是我发现无法更新。
我在网络上找了ar71的版本1.18.5的版不能,可是ipkg  ...

ar不行,你可以试试这个帖子的http://www.gebi1.com/thread-83848-1-1.html
我测试了ds213j可以用
谢谢你。 已经ok了,对ipkg的更新模式又有进一步的理解了。  详情 回复
发表于 2014-5-23 12:38
回复 点赞

使用道具 举报

emyselfLv.5 发表于 2014-5-23 12:38:05 | 显示全部楼层
yumin9822 发表于 2014-5-23 09:05
ar不行,你可以试试这个帖子的http://www.gebi1.com/thread-83848-1-1.html
我测试了ds213j可以用
...

谢谢你。
已经ok了,对ipkg的更新模式又有进一步的理解了。
回复 点赞

使用道具 举报

kayyLv.7 发表于 2014-6-8 15:40:23 | 显示全部楼层
感谢楼主的教程。用此教程在DS214SE上成功安装。
另外我是安装的1.65版本。进行PT下载的时候遇到一个问题。就是下载可以成功创建,但是却没有下载速度(TR测试种子正常),不知道如何解决?
回复 点赞

使用道具 举报

sesshomaruLv.2 发表于 2015-5-15 17:16:51 | 显示全部楼层
yumin9822 发表于 2014-5-20 13:58
http://ftp.osuosl.org/pub/nslu2/feeds/optware/cs08q1armel/cross/unstable/aria2_1.14.2-1_arm.ipk

請問樓主這個214play可以用嗎?
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表