树莓派2安装xware(修改下标题,现在只能用docker的方式用了,取不到证书了)...

新建文件夹 /opt/xware
http://luyou.xunlei.com/thread-15167-1-1.html
Xware3.0.32.253_cubieboard.zip
[url]http://luyou.xunlei.com/forum.php?mod=attachment&aid=Mjc2NzV8NDllMjAyNWR8MTQ0NzI5MTMyNHw3MzgxN3wxNTE2Nw%3D%3D[/url]

测试启动
/opt/xware/etm_monitor
执行后可以获取一个激活码

打开网页
http://yuancheng.xunlei.com/
登陆后点击左侧增加输入激活码就可以关联程序

修改thunder_mounts.cfg文件
通过mount命令获取分区
下面是我删了默认的改为我自己的目录,新建的文件夹 /nas/xunlei
根目录mount指定的挂载点是/dev/mmcblk0p2/

#过滤与第二列相同的挂载路径
invalid_mounts
{
rootfs /
}
#仅接受以下列路径开头的挂载路径
available_mounts
{
/nas/xunlei/
/dev/mmcblk0p2/
}
#下列目录被认为是分区,并在程序运行期间不变
virtual_mounts
{
/nas/xunlei/
}


新建文件 /etc/init.d/xware

#!/bin/sh

### BEGIN INIT INFO
# Provides: xware
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: xware
### END INIT INFO

case $1 in
start)
/opt/xware/
/opt/xware/etm_monitor &
;;
stop)
killall xware_bash.sh
killall etm_xware
killall vod_httpserver
;;
*)
echo "Usage: /etc/init.d/xware {start|stop}"
exit 1
;;
esac
exit 0


增加启动服务
[quote]sudo update-rc.d xware defaults[/quote]
删除一个服务
[quote]sudo update-rc.d xware remove[/quote]

编辑启动
安装开机启动管理
sudo apt-get install sysv-rc-conf
运行管理软件
sudo sysv-rc-conf
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值