SSH登录
打开终端,我使用的是xshell,使用群晖的管理员账号和密码登录,登录成功后,可使用下面命令切换到root账号:
之后输入密码(与管理员的密码相同)
安装
下载bootstrap并执行安装:
1 2 3
| wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh chmod +x syno-i686-bootstrap_1.2-7_i686.xsh sh syno-i686-bootstrap_1.2-7_i686.xsh
|
终端返回:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| Optware Bootstrap for syno-i686. Extracting archive... please wait bootstrap/ bootstrap/bootstrap.sh bootstrap/ipkg-opt.ipk bootstrap/ipkg.sh 1216+1 records in 1216+1 records out bootstrap/optware-bootstrap.ipk bootstrap/wget.ipk 249302 bytes (249 kB) copied, 0.00421063 s, 59.2 MB/s Creating temporary ipkg repository... Installing optware-bootstrap package... Unpacking optware-bootstrap.ipk...Done. Configuring optware-bootstrap.ipk...Modifying /etc/rc.local Done. Installing ipkg... Unpacking ipkg-opt.ipk...Done. Configuring ipkg-opt.ipk...Done. Removing temporary ipkg repository... Installing wget... Installing wget (1.12-2) to root... Configuring wget Successfully terminated. Creating /opt/etc/ipkg/cross-feed.conf... Setup complete.
|
安装完成,建议重启,不过我没重启也没问题,可以使用。 之后执行更新:
如果执行ipkg失败,提示没有找到该命令(- ash : ipkg : command not found),需要添加一下环境变量:
1 2
| #PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin #export PATH
|
我们来安装个Screen试一下:
1 2 3 4 5 6 7 8
| root@DiskStation:~# ipkg install screen Installing screen (4.0.3-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/screen_4.0.3-2_i686.ipk Installing termcap (1.3.1-2) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/t ermcap_1.3.1-2_i686.ipk Configuring screen Configuring termcap Successfully terminated.
|
没问题。
卸载
如果需要卸载
1
| rm syno-i686-bootstrap_1.2-7_i686.xsh
|
修复wget https错误问题
安装了包管理后,如果出现wget https的问题,只要删除/opt/bin/wget后将/usr/bin/wget软链接到/opt/bin目录即可
1
| ln -s /usr/bin/wget /opt/bin/wget
|