平台:RedHat6.3 x86
首先下载XwareDesktop
1 2 3 |
#git clone git://github.com/Xinkai/XwareDesktop.git |
下载完之后,直接进入xware目录,里面有编译好的二进制文件,先执行一下看看:
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 |
[root@test xware]# file portal portal: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.36, not stripped [root@test xware]# ./portal initing... try stopping xunlei service first... killall: ETMDaemon: no process killed killall: EmbedThunderManager: no process killed killall: vod_httpserver: no process killed setting xunlei runtime env... port: 9000 is usable. YOUR CONTROL PORT IS: 9000 starting xunlei service... etm path: /root/XwareDesktop/xware execv: /root/XwareDesktop/xware/lib/ETMDaemon. getting xunlei service info... Connecting to 127.0.0.1:9000 (127.0.0.1:9000) THE ACTIVE CODE IS: ybzftc go to http://yuancheng.xunlei.com, bind your device with the active code. finished. |
没有报错,进入提示的网站,输入ybzftc进行激活,然后新建一个任务,看网页上的状态变成这样:
提示插入外接存储设备才能开始下载,插个U盘试试,可是没有任何反应,再查看任务属性也显示没有检测到外接硬盘:
难道一定得接移动硬盘才行?疑问此处检查外接硬盘的机制是什么,如果有配置的地方,问题不很容易解决吗...浏览一下xware目录,确是有一个cfg文件夹,里面有两个.cfg的配置文件,修改etm.cfg中最后一行,将默认的路径
system.default_dl_path=C:/TDDOWNLOAD/
改为U盘的挂载目录
system.default_dl_path=/media/TDDOWNLOAD/
然后再重新启动一下portal,回头再查看一下etm.cfg,竟又被改回C:/TDDOWNLOAD/了,无奈啊,grep一下src目录,看看是不是在源码里面指定了这个路径:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# grep TDDOWNLOAD * -R frontend/legacy/settings.py: self.table_mounts.setItem(i, 0, QTableWidgetItem(drive1 + "\\TDDOWNLOAD")) frontend/legacy/settings.py: "\\TDDOWNLOAD")) frontend/libxware/mounts.py: tddownloadDir = os.path.join(mntDir, "TDDOWNLOAD") frontend/libxware/mounts.py: # takes a path like "/tmp/thunder/volumes/C:/TDDOWNLOAD/1.zip" frontend/libxware/mounts.py: parts = path.split("/") # ["C:", "TDDOWNLOAD", "1.zip"] frontend/libxware/mounts.py: *parts[2:] # discard "C:" and "TDDOWNLOAD" frontend/libxware/mounts.py: # returns a mapped path like "X:/TDDOWNLOAD/" frontend/libxware/mounts.py: "/TDDOWNLOAD", tests_frontend/test_xware_mounts.py: "C:/TDDOWNLOAD/", tests_frontend/test_xware_mounts.py: "C:/TDDOWNLOAD/", |
确实有,看起来得重新编译源码才能继续,好吧,直接make:
1 2 3 4 5 6 |
# make pyuic5 -o src/frontend/legacy/ui_main.py src/frontend/ui/main.ui /bin/bash: pyuic5: command not found make: *** [pyqt] Error 127 |
提示缺少pyuic5,google一下这是PyQt5的程序,可是我的yum源里找不到这个版本,无奈,只能用源码编译安装一下。在http://www.riverbankcomputing.com/software/pyqt/download5下载源码包,又提示404错误,唉,真是麻烦
学习学习