#1 2008-11-12 22:35:22
[DD-WRT] 安裝 MLDonkey
MLDonkey v2.9.3 請參考站長所寫的這篇. v2.9.6.CVS 請參考這裡. 兩個版本在v24-sp2 (11/05/08) std - build 10776M NEWD Eko都可以使用.
2008/11/11 12:19:09 [cO] Starting MLDonkey 2.9.6.CVS ...
2008/11/11 12:19:09 [cO] Language EN, locale ANSI_X3.4-1968, ulimit for open files 1024
2008/11/11 12:19:09 [cO] MLDonkey is working in /mnt/MLDonkey/v2.9.6.SVC/minimal/.mldonkey
2008/11/11 12:19:09 [Gettext] Loading language resource mlnet_strings.EN_ANSI_X3.4-1968
2008/11/11 12:19:10 [cO] loaded language resource file
2008/11/11 12:19:10 [DNS] Resolving [WL-500gx] ...
2008/11/11 12:19:11 [DNS] Resolving [www.mldonkey.org] ...
2008/11/11 12:19:12 [cO] Logging in /mnt/MLDonkey/v2.9.6.SVC/minimal/.mldonkey/mlnet.log
2008/11/11 12:23:20 [dMain] Core started
產生mlnet.log到Core started將近5分鐘, 蠻奇怪的.
離線
#3 2008-11-14 01:02:58
Re: [DD-WRT] 安裝 MLDonkey
2008/11/09 16:00:05 [cO] Starting MLDonkey 2.9.3 ...
2008/11/09 16:00:05 [cO] Language ZH_TW, locale UTF-8, ulimit for open files 1024
2008/11/09 16:00:05 [cO] MLDonkey is working in /mnt/MLDonkey/v2.9.3/.mldonkey
2008/11/09 16:00:05 [Gettext] Loading language resource mlnet_strings.ZH_TW_UTF-8
2008/11/09 16:00:06 [cO] loaded language resource file
2008/11/09 16:00:06 [DNS] Resolving [WL-500gx] ...
2008/11/09 16:00:07 [DNS] Resolving [www.mldonkey.org] ...
2008/11/09 16:00:07 [cO] Logging in /mnt/MLDonkey/v2.9.3/.mldonkey/mlnet.log
2008/11/09 16:00:15 [dMain] Core started
與DD-WRT應無關聯. v2.9.3沒有啟動過慢的問題. v2.9.6.CVS測試過4種版本都是將近5分鐘.
查v2.9.6.CVS的mlnet.log
2008/11/09 11:01:16 [EDK] 15 servers found, 0 new ones inserted
2008/11/09 11:01:16 [dMain] loading guarding.p2p from web_infos/level1.gz
2008/11/09 11:01:16 [IPblock] loading web_infos/level1.gz
2008/11/09 11:05:21 [IPblock] 222657 ranges loaded - optimized to 198083
2008/11/09 11:05:23 [dMain] Check http://www.mldonkey.org for updates
loading web_infos/level1.gz 這段花太久的時間.
比對v2.9.3與v2.9.6 web_infos內容
# ls -l /mnt/MLDonkey/v2.9.6.CVS/minimal/.mldonkey/web_infos/
-rw------- 1 root root 1117318 Nov 11 18:02 GeoIP.dat
-rw-r--r-- 1 root root 570222 Nov 3 03:16 GeoIP.dat.gz
-rw-r--r-- 1 root root 3712126 Nov 9 10:54 level1.gz
-rw-r--r-- 1 root root 2962 Nov 11 18:07 server.met.gz
# ls -l /mnt/MLDonkey/v2.9.3/.mldonkey/web_infos/
-rw------- 1 root root 1117318 Nov 11 23:13 GeoIP.dat
-rw-r--r-- 1 root root 570222 Nov 3 03:16 GeoIP.dat.gz
-rw-r--r-- 1 root root 2962 Nov 11 23:13 server.met.gz
level1.gz由下面取得.
2008/11/09 10:49:30 [cWeb] request guarding.p2p (http://www.bluetack.co.uk/config/level1.gz)
這是關於黑名單, 尚不知道此檔案有無重大影響.
離線
#8 2009-07-24 22:03:07
Re: [DD-WRT] 安裝 MLDonkey
以下是在DD-WRT, 安裝MLDonkey 3.0.0. 由debian-bcm47xx取得支援UTF-8的執行檔, 再由Precompiled Linux (Debian Etch) Mipsel binaries(bytecode)取得解析DNS的Library.
機型: 華碩WL-500gx
韌體: DD-WRT v24-sp2 (07/22/09) mini-usb - build 12548M NEWD Eko
硬碟: 二顆, 分別安裝Optware(/opt)與MLDonkey(/mnt)
1. 下載mlnet_3.0.0.mipsel.lite.gz, 解壓縮.
# wget -P /tmp http://debian-bcm47xx.googlecode.com/files/mlnet_3.0.0.mipsel.lite.gz
# mkdir -p /mnt/P2P/MLDonkey
# tar -xzvf /tmp/mlnet_3.0.0.mipsel.lite.gz -C /mnt/P2P/MLDonkey
# rm /tmp/mlnet_3.0.0.mipsel.lite.gz
2. 下載mldonkey-cores-3.0.0CVS-mipsel-20090322.tar.bz2
2-1. 經FireFox在RapidShare下載, 由WinSCP上傳到/tmp
2-2. 安裝解壓縮程式.
# ipkg-opt install tar bzip2
2-2. 解壓縮.
# mkdir /opt/tmp
# /opt/bin/tar -xjvf /tmp/mldonkey-cores-3.0.0CVS-mipsel-20090322.tar.bz2 -C /opt/tmp
# rm /tmp/mldonkey-cores-3.0.0CVS-mipsel-20090322.tar.bz2
2-3. 解壓縮libraries.tar.bz2
# /opt/bin/tar -xjvf /opt/tmp/libraries.tar.bz2 -C /mnt/P2P/MLDonkey
# rm -fr /opt/tmp
3. 設定LD_LIBRARY_PATH, MLDONKEY_DIR環境變數.
# export LD_LIBRARY_PATH=/mnt/P2P/MLDonkey/lib:$LD_LIBRARY_PATH
# export MLDONKEY_DIR=/mnt/P2P/MLDonkey
4. 執行.
4-1. 更名, 第一次執行.
# mv /mnt/P2P/MLDonkey/mlnet.byte.static.lite /mnt/P2P/MLDonkey/mlnet
# /mnt/P2P/MLDonkey/mlnet
[cO] Starting MLDonkey 3.0.0 ...
[cO] Language EN, locale UTF-8, ulimit for open files 1024
[cO] MLDonkey is working in /mnt/P2P/MLDonkey
[Gettext] Loading language resource mlnet_strings.EN_UTF-8
[cO] loaded language resource file
[DNS] Resolving [WL-500gx] ...
[DNS] Resolving [www.mldonkey.org] ...
[cO] Logging in /mnt/P2P/MLDonkey/mlnet.log
[dMain] Core started
Ctrl+c結束.
4-2. 查閱紀錄檔, 紀錄相關port.
# cat /mnt/P2P/MLDonkey/mlnet.log | more
[dMain] ---- enabling Donkey ----
[EDK] loading sources completed
[dMain] using port 14070 (client_port TCP)
[dMain] using port 14074 (client_port UDP)
[dMain] using port 4662 (overnet_port TCP+UDP)
[dMain] ---- enabling BitTorrent ----
[dMain] using port 6882 (client_port TCP)
[dMain] using port 6881 (tracker_port TCP)
[dMain] ---- enabling interfaces ----
[dMain] using port 4080 (http_port)
[dMain] using port 4000 (telnet_port)
[dMain] using port 4001 (gui_port)
4-3. 依據port, 設定防火牆.
以下針對eDonkey, 查閱donkey.ini設定檔.
# iptables -D INPUT -j DROP
# iptables -A INPUT -p tcp --dport 14070 -j ACCEPT
# iptables -A INPUT -p udp --dport 14074 -j ACCEPT
# iptables -A INPUT -p tcp --dport 4662 -j ACCEPT
# iptables -A INPUT -p udp --dport 4662 -j ACCEPT
# iptables -A INPUT -j DROP
# iptables -L INPUT -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT 0 -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
DROP udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:520
DROP udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:520
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:520
DROP icmp -- 0.0.0.0/0 0.0.0.0/0
DROP 2 -- 0.0.0.0/0 0.0.0.0/0
ACCEPT 0 -- 0.0.0.0/0 0.0.0.0/0 state NEW
logaccept 0 -- 0.0.0.0/0 0.0.0.0/0 state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:14070
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:14074
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:4662
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:4662
DROP 0 -- 0.0.0.0/0 0.0.0.0/0
4-4. 修改設定檔, 允許192.168.1.0網段, 啟動buffer.
# vi /mnt/P2P/MLDonkey/downloads.ini
allowed_ips = ["127.0.0.1";"192.168.1.0/24";]
buffer_writes = true
4-5. 再次啟動, 背景執行.
# /mnt/P2P/MLDonkey/mlnet&
4-6. 使用網頁介面, sancho, MLDonkey GUI(Linux)等, 操作MLDonkey.
5. 撰寫script.
參考:
1. MLdonkey
2. 維基百科
3. 站長文章: 打造一台名符其實的動物機 - MLDonkey
離線
#9 2009-07-29 19:48:56
Re: [DD-WRT] 安裝 MLDonkey
請問一下hippo大
照你的步驟完成MLDonkey 3.0的安裝後並執行/mnt/p2p/MLDonkey/mlnet
用Sancho的控制台會看到這段訊息
"DNS resolution does not work"
這是什麼原因呢
是因為沒執行這兩行指令嗎
export LD_LIBRARY_PATH=/mnt/P2P/MLDonkey/lib:$LD_LIBRARY_PATH
export MLDONKEY_DIR=/mnt/P2P/MLDonkey
還是需要自行更新DNS呢?
離線
#10 2009-07-29 23:06:40
Re: [DD-WRT] 安裝 MLDonkey
離線
相關討論主題
主題 | 回覆 | 點閱 | 最後發表 |
---|---|---|---|
n16 mldonkey low id 作者 vinnyqoo
|
0 | 6688 | 2012-11-26 21:49:35 作者 vinnyqoo |
|
72 | 267382 | 2012-07-08 09:16:57 作者 baoxiaozhong |
|
11 | 58372 | 2010-01-05 17:32:01 作者 aesop |
mldonkey 启动问题 作者 ljr781
|
0 | 8756 | 2009-03-27 21:20:05 作者 ljr781 |
mldonkey 的参数设置 作者 smaraid
|
2 | 13132 | 2008-05-13 05:56:35 作者 smaraid |