红联Linux门户
Linux帮助

centos 5.5装mldonkey3.0.2

发布时间:2010-07-19 20:38:03来源:红联作者:堕落kiss
[i=s] 本帖最后由 堕落kiss 于 2010-7-19 20:40 编辑 [/i]

我做这个是新装的系统,不想用amule+rtorrent了,所以就选择了mldonkey,这个ed2k+bt的软件,以前用过这个软件,感觉BT不怎么好用,不过没用过新的版本,应该有所改进吧
-----------------------------------------------------------------------
我的环境:
CentOS5.5
ip:192.168.1.2
mldonkey-3.0.2
下面开始安装:[code]cd /usr/local/src/[/code]我的mldonkey-3.0.2在放在root下,用sftp上传的[code]tar -xvjf /root/mldonkey-3.0.2.tar.bz2 [/code]进入解压目录[code]cd mldonkey-3.0.2/[/code]里面有个Install.txt文件,类似说明,先看下[code]cat Install.txt[/code]得到的结果是See distrib/Install.txt
既然这样说,就看一下他所说的文件[code]cat distrib/Install.txt[/code]下面是他的安装文件的说明
Installation
==================

-If you want to get up and running quickly and easily-

Compile mldonkey without GUI support
You have to have zlib, zlib-dev and m4 packages installed.
For gd-made statistics libgd2-dev should be installed.

Mldonkey/> ./configure
Mldonkey/> make

There is no additional 'make install' command. Copy the file 'mlnet'
(this is MLdonkey) to the folder where you've choosen to run MLdonkey.

Start 'mlnet'

Mlnet/> ./mlnet
Leave the terminal window open. MLdonkey is now running.

Open a browser and type in the URL http://localhost:4080 .
A web-based interface to MLdonkey appears. Certain ports enabling inbound
routing on your firewall/router need to be opened to fully use MLdonkey.
The Options tab in the web interface shows the ports.

Downloaded files will be found in the sub-directory incoming/, while
files to be shared should be in a sub-directory called shared/.

-You're done!-

Some goodies (make_torrent, ed2k_hash) come with mldonkey, you can also
compile them using the additionnal command:

Mldonkey/> make utils

==================
There are additional ways besides the web interface to control Mlnet(MLdonkey).
- Compiling support for the 'mlgui' application while compiling MLdonkey
is one. This requires additional libraries, which, depending on your platform
and skill, may be easy or not so easy to add. The 'mlnet' application functions
fine without the GUI.
- Other applications are written by third-parties and available for specific
platforms. These vary in stability and functionality.
One example is Sancho: http://sancho-gui.sourceforge.net/

Compiling mldonkey with mldonkey_gui support:
-------------------

You have now two options to compile mldonkey:
- Individually install Objective-Caml 3.08.4, LablGTK 1.2.7 and/or LablGTK-2.4.0.
Then, you can compile mldonkey. The instructions are given below at '1)'.
- If you want to install ocaml and lablgtk only to compile mldonkey. You must
have a good internet access (you want mldonkey after all :). You must have
"wget" installed. Then, run:

./configure --enable-batch

The configure script will download ocaml and lablgtk, compile and install them
locally so that they can be used to compile mldonkey. Steps below can be skipped
now. Be patient. Ocaml and lablgtk tools take a while to compile and install.

Note: At least 70 M of free disk space is required on the partition where mldonkey
is compiled.

------------------------------------------------------------------------
1) Installing required tools: Objective-Caml 3.10.2 and LablGTK

1.1) Objective-Caml 3.10.2 (from http://caml.inria.fr/pub/distrib/ocaml-3.10)

~/tmp> wget http://caml.inria.fr/distrib/ocaml-3.10/ocaml-3.10.2.tar.gz
~/tmp> tar zxf ocaml-3.10.2.tar.gz
~/tmp> cd ocaml-3.10.2

~/tmp/ocaml-3.10.2> ./configure
~/tmp/ocaml-3.10.2> make world.opt
~/tmp/ocaml-3.10.2> make install

1.2.1) LablGTK 1.2.7 for GTK1
(from http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk.html)

~/tmp> wget http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/lablgtk-1.2.7.tar.gz
~/tmp> tar zxf lablgtk-1.2.7.tar.gz
~/tmp> cd lablgtk-1.2.7
~/tmp/lablgtk-1.2.7> make configure
~/tmp/lablgtk-1.2.7> make
~/tmp/lablgtk-1.2.7> make opt
~/tmp/lablgtk-1.2.7> make install

1.2.2) LablGTK-2.10.1 for GTK2
(from http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk.html)

~/tmp> wget http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/dist/lablgtk-2.10.1.tar.gz
~/tmp> tar zxf lablgtk-2.10.1.tar.gz
~/tmp> cd lablgtk-2.10.1
~/tmp/lablgtk-2.10.1> ./configure
~/tmp/lablgtk-2.10.1> make world
~/tmp/lablgtk-2.10.1> make install

2) Compiling mldonkey with GUI:

To build GTK1 newgui: ./configure --enable-gui=newgui1
To build GTK1 oldgui: ./configure --enable-gui=oldgui
- note: oldgui does not compile with Ocaml >= 3.10
To build GTK2 GUI: ./configure --enable-gui[=newgui2]
lablgtk-1.2.7 and lablgtk-2.10.1 can both be installed at the same time.

~/tmp/mldonkey> make

You should now have 'mlnet' (the daemon with all network support)
and 'mlgui' (the interface) No 'make install' is provided.

You can disable all other p2p networks using the --disable-multinet option
with ./configure. Only edonkey support (including Overnet/Kademlia)
will then be compiled.

------------------------------------------------------------------------

NOTES:
------
To compile on MinGW read this guide:
http://mldonkey.sourceforge.net/Windows

按照说明说要装上 zlib, zlib-dev, m4用yum装吧,省事点[code]yum install zlib
yum install zlib-devel
yum install m4[/code]英语说明看的迷迷糊糊,先装一试试,不成在从新来过,[code]./configure[/code]提示
Do you want this script to try to download and install ocaml
LOCALLY in mldonkey directory ?
提示安装ocaml,我这里Y,让它自动装.
漫长的等待,这证明了一个问题,atom的处理器真的不怎么样.
Compiling CryptoPP.cc can take several minutes, on slow machines up to half an hour.
configure完,了改make了,也应该是漫长的等待...........:0w5ty(1
make完了,按照说明就应该装完了,下面就是copy到/usr/bin/[code]mv mlnet /usr/bin/[/code]到现在装完了..........也不是时间太长.......(q):s
-----------------------------------------------------------------------
防火墙打开4080,web游览:http://192.168.1.2:4080/ 不能访问.....页面提示
onnection from 192.168.1.4 rejected (see downloads.ini, allowed_ips)
那就修改一下那个文件[code]cd /root/.mldonkey/
vi downloads.ini[/code]在allowed_ips选项中边入你要放问我IP,我的机子IP是192.168.1.4修改之后是:
allowed_ips = [
"127.0.0.1";
"192.168.1.0/24";]

在登录http://192.168.1.2:4080 登录成功,关于配置问题,我自己先弄下,有时间在发个帖子说吧,要是等不急在网上找呗。百毒找呗
-----------------------------------------------------------------------
为了安全,加个密码[code]telnet localhost 4000[/code]进入之后[code]useradd admin yourPassword[/code]
文章评论

共有 2 条评论

  1. blueseth 于 2010-09-19 00:52:02发表:

    的确长啊...

  2. Qnoer 于 2010-07-19 20:45:30发表:

    从上拉到下步骤好吓人滴说