命令行下的电驴

来源:互联网 发布:淘宝购物车服务出错 编辑:程序博客网 时间:2024/04/28 11:59

命令行下的电驴

 

命令行下的电驴,是正在开发的离线电驴的一部分。

我们的学生练习项目。

 

离线电驴是啥估计不用多解释,有腾讯离线下载在先。

其优势,考虑到东北师大内部的足够高的网络速度,

考虑到机器不用天天挂着下那些源很少的东西。

 

已经开始下载:IMDB TOP 250。

等我下完了,你再下就快了。

IMDB是 ”目前全球互联网中最大的一个电影资料库”。

TOP250,是评分最高的250个。(这数,真吉利。)

这,完 全 是 用 来 学 习 英 语 的。

 

我已经下完的耶鲁的,麻省的,哈佛的若干课程。

圣经,古希腊,算法导论,欧洲文明,罗马建筑,

N多的BBC和国家地理,及乱糟的东西。

 

野性俄罗斯,等等。

 

没有唐朝豪放女这类的东西。大家好好学习吧,珍惜年轻的时光。

 

以下,amule安装(amulecmd & amuled)

 

zhumao机器, amulecmd & amuled on CentOS

 

* ssh root@i.dont.tell.you

* 解压amule src

: tar xjfv aMule-2.2.6.tar.bz2

* 编译 no gui

http://wiki.amule.org/index.php/HowTo_Compile_aMuled

** 上传wxAll

: sftp> put wxWingets-*bz2

** cypto++

http://sourceforge.net/projects/cryptopp/files/cryptopp/5.6.1/cryptopp561.zip/download

 

解压在了当前目录,一大堆。

移到crypto

make

编译加密相关的东西,还真是慢啊。

恩,再感叹一次。太慢了。

 

: [root@files aMule-2.2.6]# ./configure --disable-monolithic

: --with-toolkit=base --enable-amule-daemon --enable-amulecmd

: --enable-webserver --with-crypto-prefix=/u1/crypto

注: --with-crypto-prefix=/u1/crypto 必须使用绝对路径,相对路径不行;crypto只需要编译,不必安装。

杨安装了一半,没有找到so文件退出,未清理。

 

: WARNING! UPnP code has been disabled because libupnp >= 1.6.6 not

: found (try to use --with-libupnp-prefix=PREFIX).

 

 

** 按此文档

* run

cp lib/*so* /usr/lib/.

su young

口令 ”amuleyoung”

amulecmd 口令 "amule"

* 加服务器

http://www.cublog.cn/u1/43271/showart_679546.html

: 出现了提示符aMulecmd$ ,下面添加服务器:

: aMulecmd$ add ed2k://|server|85.17.52.124|5000|

:  > Operation was successful.

: aMulecmd$ add ed2k://|server|85.17.52.92|5000|

:  > Operation was successful.

: 连接:

: aMulecmd$ connect

:  > Connecting to ED2K...

:  > Connecting to Kad...

: 查看状态:

: aMulecmd$ status

:  > ED2K: Connected to 85.17.52.124 [85.17.52.124:5000] with HighID

:  > Kad: Not connected

:  > Download:    0 bytes/sec

:  > Upload:      13 bytes/sec

:  > Clients in queue:    0

:  > Total sources:       0

用上述方法,估计是添加的服务器不给力,不行。

把young机器上的 /home/young/.aMule/server.met 传服务器上了, with sftp。

改配置文件。

 

目前是lowid,估计是141.8的端口未经路由器ACL允许。

zhumao,是否4712端口不允许外网访问?log如下。

: > 2011-01-23 02:13:48: ExternalConn.cpp(159): *** TCP socket (ECServer) listening on 0.0.0.0:4712

: ...

: > 2011-01-23 02:13:58: ServerConnect.cpp(263): Connection established on: BINVERSE.BIZ

: > 2011-01-23 02:13:58: Connected to BINVERSE.BIZ with LowID

: > 2011-01-23 02:13:58: ServerSocket.cpp(417): New clientid is 4064890

: > 2011-01-23 02:13:58: ServerSocket.cpp(419): WARNING: You have received Low-ID!

: > 2011-01-23 02:13:58: ServerSocket.cpp(420): Most likely this is because you're behind a firewall or router.

: > 2011-01-23 02:13:58: ServerSocket.cpp(421): For more information, please refer to http://wiki.amule.org

 

* filename ncode,乱码。

牛同学慢慢研究吧。如果不影响离线电驴系统,就算了。

* 正常使用

: su young; nohup amule -f

* 设置KAD

上传young的nodes.dat

改配置文件

* 设置上传限制

aMulecmd$ set bwlimit up 200

 > Operation was successful.

 > Bandwidth limits: Up: 200 kB/s, Down: 0 kB/s.

* 下线重登录,任务还在。

 

* 存在的问题

lowid, zhumao?

文件名编码错误, 牛同学

原创粉丝点击