───────────────────────────────────────────────────────────
MLDonkey(百度百科),是一个免费的开源的跨平台的多协议的 文件共享 客户端。
MLDonkey 采用 GPL 许可证发行,可用于 Windows / Mac OS X / Linux / BSD / Solaris 系统,支持的P2P协议包括:BitTorrent 、ed2k(eDonkey Network)、Kademlia (Kad Network)、Gnutella、FastTrack、Overnet、HTTP、FTP,是 所有 P2P 客户端 中支持协议最多的。
我主要说一下ed2k功能,它有一个最最奇特的地方就是,可以同时连接任意多个emule服务器,而不像其他我所用过的emule-mod那样只能连一个。因此,其速度可以快好几倍(可以很容易的达到带宽上限哦,是我所用过的最快的电驴)。另外,他还有众多图形界面(其本身只是一个命令行的东西),可以用浏览器控制(推荐),甚至telnet。而sancho是所有图形界面中最优秀的一个(基于java,功能最复杂,你一定有眩晕的感觉)。
Unlike most P2P clients, such as eDonkey2000, MLdonkey application does not contain user interface; it's merely a P2P engine built for exchanging files, and interaction with the user is left to the UserInterfaces. Albeit it might seem to be inconvenient at the first glance, such an open architecture actually provides great flexibility, allowing third parties to implement and customize the way MLdonkey's status displays look to the end user.
区别于eDonkey等大多数P2P客户端,MLDoneky主程序并不包含用户界面,它只是一个提供文件共享传输的P2P引擎, 而用户的管理与使用则是交给了各种用户界面端口(telnet/web/图形/wap)。乍看之下,它这种设计好像并不方便,允许第三方执行和自定义
Another benefit of having core separated from the user interface is remote manageability. It doesn't make any difference whether the core and the interface part are running on the same computer or on two boxes half the world apart, or even what operating system do these machines run. This architecture allows you to go on vacation without losing control over the whole download process, taking a peek at what's going on back at home by the means of a web browser||WebUI, |TelnetUI or even WAP-enabled cellphone.
Yet another way to monitor the progress of your downloads is by utilizing one of numerous MLdonkey Guis. While it lacks the universality (you'll have to install the program on the computer you're going to perform the monitoring from), it's so far the prettiest looking one.
MLDonkey 以 Client / Server 结构设计,后台运行的下载核心可以通过内置的 Telnet 或者 Html 接口操纵管理。其中,基于 Telnet 的有多种图形前端程序,包括:KMLDonkey 和 Sancho(需翻人比黄花瘦墙)。基于 Web 浏览器的 Html 管理页面地址则为:http://localhost:4080/
MLDonkey的开发始于2001年,最初的开发者是INRIA(法莫道不消魂国国立计算机及自动化研究院)的 Fabrice Le Fessant。
它使用 OCaml 语言编写,同时有些部分使用了一些 C语言以及汇编语言的代码,从而保证了它的高效能。
安装MLDonkey
───────────────────────────────────────────────────
1.0 了解 MLDonkey 的 依赖
# adduser(添加、删除用户和组)
# debconf 或者 debconf-2.0
(Debian 配置管理系统,本虚包由这些包填实: cdebconf, cdebconf-udeb, debconf)
# dpkg(Debian软件包管理系统)
# libc6(GNU C 语言运行库:共享库,同时作为一个虚包由这些包填实: libc6-udeb)
# libfreetype6(FreeType 2 font engine, shared library files)
# libgcc1(GCC支持库)
# libgd2-noxpm 或者 libgd2-xpm(GD Graphics Library version 2 ,without / with XPM support)
# libjpeg62(The Independent JPEG Group's JPEG runtime library
# libpng12-0(PNG library - runtime)
# libstdc++6(GNU 标准 C++ 库第三版)
# mime-support(MIME 文件 'mime.types' 和 'mailcap' 及其支持程序)
# ucf(Update Configuration File: preserve user changes to config files)
# zlib1g(压缩库-运行时)
───────────────────────────────────────────────────
2.0 从源镜像服务器安装
采用 apt-get 或者 apitude 下载 .deb 安装,不需要考虑依赖关系。安装时 apt-get 或者 aptitude 会自动查找关联依赖关系,一并安装:
$ sudo apt-get install mldonkey-server
───────────────────────────────────────────────────
3.0 编译安装 MLDoneky
3.1 下载 mldonkey-3.0.0.tar.bz2 。
3.2 安装依赖关系
~/mldonkey-3.0.0/distrib/install.txt 的文件说明,编译前主要确认安装:
zlib、zlib-dev、m4、和 libgd2-dev。
其中,后三种都能从源里安装,zlib 则要下载编译安装。
- zlib 是用于资料压缩的函式库。
- zlib-dev,即 zlib1g-dev。
- m4 是一种宏处理语言。
- libgd2-dev 有 libgd2-xpm-dev 和 libgd2-noxpm-dev 两种。
3.2.1 下载 zlib-1.2.3.tar.gz,安装 Zlib(主站)
$ tar -xvzf zlib-1.2.3.tar.gz
$ cd zlib-1.2.3.tar.gz
$ ./configure
$ make
$ sudo make install
3.2.2 安装 zlib1g-dev、m4、libgd2-noxpm-dev。
$ sudo apt-get install zlib1g-dev m4 libgd2-noxpm-dev
3.3 安装 OCaml。因为 Mldonkey 是用 OCaml 写成的,MLDoneky在 make 的时候会自动(apt-get)安装 OCaml,所以我们推荐编译前预先安装。
$ sudo apt-get install ocaml
3.4 编译 MLDonkey
$ tar -zxvf mldonkey-3.0.0.tar.bz2
$ cd mldonkey-3.0.0
$ ./configure
$ make
$ sudo cp mlnet /usr/bin/
注意:这里没有也不需要 $ sudo make install,大家可千万别画蛇添足。
这里的最后一步,是复制 mlnet 到 /usr/bin/,相当于添加命令到终端。
至此,MLDonkey 编译安装完毕。
───────────────────────────────────────────────────────────