群晖没有apt和yum 只能安装一个轻量级的ipkg
开启ssh
打开终端,通过ssh连接群晖,获取超级权限
sudo -i
输入密码登录,同管理员密码
下载bootstrap并安装
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
终端返回如下
root@NSG:~# sh syno-i686-bootstrap_1.2-7_i686.xsh
Optware Bootstrap for syno-i686.
Extracting archive... please wait
1216+1 records in
1216+1 records out
249302 bytes (249 kB, 243 KiB) copied, 0.0813722 s, 3.1 MB/s
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
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.
如果出现一下提示
Optware Bootstrap for syno-i686.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh4
可bootstrap/ipkg-opt.ipk
1216+l records in
1216+l records out
249302 bytes(249 kB)copied,0.118297 s,2.1 MB/s
bootstrap/ipkg.sh
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
Backup your configuration settings, then type:
rm -rf /volumel/@optware
rm -rf /usr/lib/ipkg
This will remove all existing optware packages
You must *reboot* and then restart the bootstrap script.
执行
rm -rf /volumel/@optware
rm -rf /usr/lib/ipkg
重新执行
sh syno-i686-bootstrap_1.2-7_i686.xsh
安装完成后建议重启,不过我没有重启,可以使用
执行更新
ipkg update
最后安装,计划安装的即可
ipkg install xxx
补充知识
#首先更新软件源
ipkg update
#安装命令如下
ipkg install 软件包名称
#卸载命令如下
ipkg remove 软件包名称
#例如安装wakelan
ipkg install wakelan
#返回以下内容说明安装成功
ipkg install wakelan
Installing wakelan (1.1-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/wakelan_1.1-2_i686.ipk
Configuring wakelan
Successfully terminated.