AsusForum.NET -- WL500g

Вернуться   AsusForum.NET -- WL500g > Asus WL-700gE > WL-700g Tutorials
Логин
Пароль
Регистрация FAQ Участники Поиск Свежие сообщения Пометить все разделы как прочитанные
Firmware Wizard Donate

Ответ
 
Опции темы Оценить тему Опции просмотра
  #1  
Старый 19-07-2007, 00:45
mawr mawr вне форума
Junior Member
 
Регистрация: Jul 2007
Сообщения: 17
HOWTO: MLDonkey as Download Manager for WL-700g

MLDonkey - Multi-platform, multi-protocol client. It's include support for FTP, HTTP, ed2k and BitTorrent protocols and it's a best replacement for standard ASUS Download Manager.

Foreplay:
  1. kfurge custom firmware must be installed on your WL-700g box (with rc.local file uploaded and optware packages installed).
  2. The ksoftirqd CPU eating patch must be applied via rc.local (To ensure the patch is working try to execute /opt/bin/top at the WL-700 shell, "Load average" value have to be less then 1.00).
  3. bzip2 package must be installed on your WL-700 box (/opt/bin/ipkg install bzip2).

Installation (based on russian thread):
  1. First of all, you have to disable standard ASUS Download Manager. Via "Web Manager" of your WL-700 box, go to Configuration -> Advanced Setting -> Applications and set "Enable Download Master?" and "Enable Download Daemon?" to "No".
  2. telnet (or putty) to your WL-700 box and do the next commands:
    Код:
    cd /opt/bin
    wget http://oleg.wl500g.info/bin/mlnet.lite.gz
    gunzip mlnet.lite.gz
    chmod +x mlnet.lite
  3. Next, you have to make run-script for MLDonkey, let's name it /opt/etc/init.d/mlnet. (/opt/bin/vi /opt/etc/init.d/mlnet then press <I> and type next content):
    Код:
    #!/bin/sh
    
    set backuphome=$HOME
    set backuptmp=$TMPDIR
    export HOME=/shares/MYVOLUME1/MYSHARE1/
    export TMPDIR=/shares/MYVOLUME1/MYSHARE1/.mldonkey/temp
    rm -f /shares/MYVOLUME1/MYSHARE1/.mldonkey/*.tmp
    /opt/bin/mlnet.lite -allowed_ips '127.0.0.1/8 192.168.1.0/24' &
    export HOME=$backuphome
    export TMPDIR=$backuptmp
    (to save file press <ESC> <CTRL>+<:> <X> <ENTER>)
  4. Installation complete, now it's time to try run MLDonkey for the first time, type "/opt/etc/init.d/mlnet" in shell, you should see something like that:
    Код:
    # 2007/07/18 23:55:47 [cO] Starting MLDonkey 2.8.5 ...
    2007/07/18 23:55:47 [cO] Language EN, locale ASCII, ulimit for open files 1024
    2007/07/18 23:55:47 [cO] MLDonkey is working in /shares/MYVOLUME1/MYSHARE1/.mldonkey
    2007/07/18 23:55:47 [cO] creating new MLDonkey base directory in /shares/MYVOLUME1/MYSHARE1/.mldonkey
    2007/07/18 23:55:47 [cO] loaded language resource file
    2007/07/18 23:55:47 [DNS] Resolving [(none)] ...
    2007/07/18 23:55:47 [DNS] Resolving [www.mldonkey.org] ...
    Setting option allowed_ips
    2007/07/18 23:55:47 [cO] Logging in /shares/MYVOLUME1/MYSHARE1/.mldonkey/mlnet.log
    2007/07/18 23:55:50 [dMain] Core started
    It's OK, the "/.mldonkey" hidden directory was created successfully and we can move to the next step.
  5. Add run-string of MLDonkey to your rc.local file (via "vi" editor like step 3):
    Код:
    /opt/etc/init.d/mlnet
  6. Now it's time to reboot your WL-700 box. If it's OK after rebooting, you'll get the
    Код:
    192.168.1.1 at 4000 port for telnet acess to your MLDonkey
    192.168.1.1 at 4001 port for GUI control to your MLDonkey
    192.168.1.1 at 4080 port for web access to your MLDonkey
    So you can control your MLDonkey via web-interface http://192.168.1.1:4080/.

Setting up the MLDonkey GUI
  1. We will use the sancho to control MLDonkey. Download it and install.
  2. At the first run "Host setup manager wizard" will pop up. Click "Next" on "preference file" step. Leave blank "core spawned from" on "Core settings" step and move to next one. Specify your WL-700 IP (ex.: 192.168.1.1) on next step and click "Add as new entry", then select your entry (192.168.1.1:4001) and click "Make current selection the default". Select old default entry (127.0.0.1:4001) and delete it clicking "Delete entry". It's done, press "Connect" to connect to your WL-700 MLDonkey and run sancho main window.
  3. The next important step is to set your bandwidth settings correctly. Press right mouse button on sancho tray icon and go to menu "Bandwidth settings -> Bandwidth settings", the "Bandwidth" dialogue wil pop up. Set the values of your bandwidth (max_hard_download_rate and max_hard_upload_rate) for "High bandwidth" preset, about half of it for medium preset and about 1/3 of capacity for low preset. Now you can easy switch the bandwidth used by MLDonkey.
  4. Little more tricks: go to Tools -> Preferences -> sancho:Main and check options "On close: minimize to systray", "On minimize: minimize to systray" and "On start: minimize to systray". In "Sanch:Windows regestry" section of preferences window check "Register association" for ed2k:// protocol, scroll down this tab and click "Update Windows registry". On next tab "File Extensions" select "Register association" for bittorrent (.torrent) and click "Update Windows registry". On more thing your better to do is to move sancho shortcut from desktop to Start->Autorun.

Thats all, now you have fully-functional, stable, fast and multi-protocol download manager on you WL-700 box.

Any comments?

Последний раз редактировалось mawr, 19-07-2007 в 12:55.
Ответить с цитированием
  #1  
Старый 19-07-2007, 00:45
AsusForum mawr вне форума
Member
 
Регистрация: Nov 2003
Адрес: Netherlands
Сообщения: 17
  #2  
Старый 03-08-2007, 16:04
Henrikh Henrikh вне форума
Member
 
Регистрация: Aug 2007
Сообщения: 41
Great tutorial! Much better than the built-in download manager :-)

For some reason though, i can't execute the mlnet startscript, but when i execute the commands manually, mldonkey starts up without a problem :-)

I do have 1 major problem though - i cant get the port forwarding for mldonkey right.

I have configured mldonkey to use port 46680 (by using Sancho, "BT-client_port"), and then forwarded port 46680 to 127.0.0.1 (which should be the router itself), but that is not working :-(.

I have also tryed to forward port 46680 to 192.168.1.1 without sucess. I have been using the webinterface for this, but i can remember something about some "iptables" commands back when i was messing around with a debian server, maybe that is what i need to do?

Any suggestions? :-)

And once again, thank you for this great tutorial!
Ответить с цитированием
  #3  
Старый 03-08-2007, 22:50
Henrikh Henrikh вне форума
Member
 
Регистрация: Aug 2007
Сообщения: 41
Ah, i figured it out by using the famous search function :-)

The problem is that the ports need to be in the "INPUT" chain in iptables, not FORWARD.

You can add these by running this command (This will of course open port 3400, you can just replace that with whatever port you have configured mldonkey for, allthough it is a good idea to change it from the original port, as it is not allowed to use this port on many trackers, and many ISP's are slowing down trafic on that port)

iptables -I INPUT 7 -p tcp --dport 3400-j ACCEPT

You can add this line to rc.local to make it permanent.

Still not getting more than about 50kb/s.

Should i specify max_hard_download_rate as kbit or kb/s?

Последний раз редактировалось Henrikh, 06-08-2007 в 13:02.
Ответить с цитированием
  #4  
Старый 06-08-2007, 09:53
patrickquek patrickquek вне форума
Member
 
Регистрация: Mar 2007
Сообщения: 42
Hi,

Can someone confirm if MLDonkey can support encryption for torrent downloads?

My ISP does throttling so its impossible to use torrents without encryption turned on to bypass them...

thanks!
Ответить с цитированием
  #5  
Старый 06-08-2007, 12:58
Henrikh Henrikh вне форума
Member
 
Регистрация: Aug 2007
Сообщения: 41
I haven't seen any option for enabling encryption or anything like that in the bittorrent options. I dont know how bittorrent encryption works, but i'm afraid it would be rather hard for the small 266mhz MIPS processor to handle such a task.
Ответить с цитированием
  #6  
Старый 07-08-2007, 22:59
Fullback Fullback вне форума
Member
 
Регистрация: Apr 2007
Сообщения: 61
Bit torrent help

Hello, i tired downloading MLdmonkey but i am having some problems,
[Bhavdip@(none) bin]$wget http://oleg.wl500g.info/bin/mlnet.lite.gz
--21:57:28-- http://oleg.wl500g.info/bin/mlnet.lite.gz
=> `mlnet.lite.gz'
Resolving oleg.wl500g.info... 158.250.11.254, 212.192.248.17
Connecting to oleg.wl500g.info|158.250.11.254|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 786,362 (768K) [application/x-gzip]
mlnet.lite.gz: Permission denied

Cannot write to `mlnet.lite.gz' (No such file or directory).
I don't know why i keep getting permission denied? I am logged in via shell.
Ответить с цитированием
  #7  
Старый 12-08-2007, 12:44
Henrikh Henrikh вне форума
Member
 
Регистрация: Aug 2007
Сообщения: 41
Цитата:
Сообщение от Fullback Посмотреть сообщение
Hello, i tired downloading MLdmonkey but i am having some problems,
[Bhavdip@(none) bin]$wget http://oleg.wl500g.info/bin/mlnet.lite.gz
--21:57:28-- http://oleg.wl500g.info/bin/mlnet.lite.gz
=> `mlnet.lite.gz'
Resolving oleg.wl500g.info... 158.250.11.254, 212.192.248.17
Connecting to oleg.wl500g.info|158.250.11.254|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 786,362 (768K) [application/x-gzip]
mlnet.lite.gz: Permission denied

Cannot write to `mlnet.lite.gz' (No such file or directory).
I don't know why i keep getting permission denied? I am logged in via shell.
My guess would be that you dont have write permissions in the directory you are working in. Try to log in as root, or if you have sudo configured you can just use "sudo wget http://.."
Ответить с цитированием
  #8  
Старый 12-08-2007, 15:25
Fatboysec Fatboysec вне форума
Junior Member
 
Регистрация: Jan 2007
Сообщения: 16
Limit upload speed of MlDonkey

After some struggling, I managed to get mldonkey working. Greet tutorial, thanks. Finally I will be able to download edonkey files, without leaving on my pc.

Does anyone know a way to limit the upload speed of Mldonkey without affecting the download speed? In Belgium, there are still no internet providers that give you an unlimited amount of data upload. Therefore, I have to limit this speed because if I consume to much they put me on small band (56k).

Any ideas are welcome.

Thanks,

Bart
Ответить с цитированием
  #9  
Старый 13-08-2007, 05:30
Fullback Fullback вне форума
Member
 
Регистрация: Apr 2007
Сообщения: 61
Unhappy MLDonkey

# /opt/etc/init.d/mlnet
/opt/etc/init.d/mlnet: cannot execute
-Using Telnet

[Bhavdip@(none) bin]$sudo /opt/etc/init.d/mlnet
sudo: /opt/etc/init.d/mlnet: command not found
[Bhavdip@(none) bin]$
-Shell using "sudo"

[Bhavdip@(none) bin]$/opt/etc/init.d/mlnet
-bash: /opt/etc/init.d/mlnet: Permission denied
-Shell without using sudo.

I have followed the instructions and i do not understand what is causing MLDonkey not to start up. Thank you all for your help.
Ответить с цитированием
  #10  
Старый 13-08-2007, 13:58
tiwag tiwag вне форума
Member
 
Регистрация: Aug 2007
Адрес: Austria
Сообщения: 50
Thumbs up successful installation

Цитата:
Сообщение от mawr Посмотреть сообщение
...Thats all, now you have fully-functional, stable, fast and multi-protocol download manager on you WL-700 box.

Any comments?
Hi mawr !

thanks for your detailed description, i followed your instructions and mldonkey is running fine on my WL700g router now

comment: additionally to your instructions i had to install zlib too
Код:
ipkg install zlib bzip2 -force-overwrite

thanks and brgds,

--
tiwag
Ответить с цитированием
  #11  
Старый 13-08-2007, 22:54
Woffels Woffels вне форума
Junior Member
 
Регистрация: Aug 2007
Сообщения: 28
editing rc.local

Ive followed your discription how to instal ML donkey. But i still have a few questions.
Where is my rc.local, cant see it in explorer anymore, but i knw its there somewhere?
How to edit rc.local, im not very experienced with telnet and putty and only copy and paste your commands in putty. Can you please give me 1 step by step example how to edit rc local.
You also decriped the command
(to save file press <ESC> <CTRL>+<:> <X> <ENTER>)
to close and save a file. But it doesnt happen with me. What to do exactly, how to do this.
Is there a list of standard commands i use in putty. Dont know how to navigate. Things like the dir and edit command in dos.
Hope to hear soon.
I think im close to satisfaction with my wl
Ответить с цитированием
  #12  
Старый 14-08-2007, 06:39
tiwag tiwag вне форума
Member
 
Регистрация: Aug 2007
Адрес: Austria
Сообщения: 50
Цитата:
Сообщение от Woffels Посмотреть сообщение
Ive followed your discription how to instal ML donkey. But i still have a few questions.
Where is my rc.local, cant see it in explorer anymore, but i knw its there somewhere?
How to edit rc.local, im not very experienced with telnet and putty and only copy and paste your commands in putty. Can you please give me 1 step by step example how to edit rc local.
You also decriped the command
(to save file press <ESC> <CTRL>+<:> <X> <ENTER>)
to close and save a file. But it doesnt happen with me. What to do exactly, how to do this.
Is there a list of standard commands i use in putty. Dont know how to navigate. Things like the dir and edit command in dos.
Hope to hear soon.
I think im close to satisfaction with my wl
it's very hard to help you if you don't know anything about linux.
please work through any basic linux tutorial like this one
http://wiki.linuxquestions.org/wiki/Commands
then you'll get the needed know how.

if you don't get familiar with vi you can use the nano editor,
which is more usable for windozer's
install instructions you can find in kfurge's installation instructions.
http://home.comcast.net/~kfurge/wl700g.html
Ответить с цитированием
  #13  
Старый 14-08-2007, 09:11
Woffels Woffels вне форума
Junior Member
 
Регистрация: Aug 2007
Сообщения: 28
bzip2

In the tutorial i see"
bzip2 package must be installed on your WL-700 box (/opt/bin/ipkg install bzip2).

But where to get this, looked all over, but cant find it.

shutting down vi, is it also possible by pressing escape and then ZZ?
Ответить с цитированием
  #14  
Старый 14-08-2007, 10:46
tiwag tiwag вне форума
Member
 
Регистрация: Aug 2007
Адрес: Austria
Сообщения: 50
Цитата:
Сообщение от Woffels Посмотреть сообщение
In the tutorial i see"
bzip2 package must be installed on your WL-700 box (/opt/bin/ipkg install bzip2).

But where to get this, looked all over, but cant find it.
just follow the instructions of kfurge
http://home.comcast.net/~kfurge/wl700g.html
Ответить с цитированием
  #14  
Старый 14-08-2007, 10:46
AsusForum tiwag вне форума
Member
 
Регистрация: Nov 2003
Адрес: Netherlands
Сообщения: 50
  #15  
Старый 14-08-2007, 11:48
Woffels Woffels вне форума
Junior Member
 
Регистрация: Aug 2007
Сообщения: 28
Bzip

Цитата:
Сообщение от tiwag Посмотреть сообщение
just follow the instructions of kfurge
http://home.comcast.net/~kfurge/wl700g.html

Cant find instructions on bzip on kfurge. I did find bzip2.1.0.4.pkg. Can i use tat one?
Ответить с цитированием
Ответ

Опции темы
Опции просмотра Оценка этой теме
Оценка этой теме:

Ваши права в разделе
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход

Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Download Master - who can explain? calaba WL-500gP Q&A 4 09-05-2009 14:19
Photo Album & Download Manager antoschka WL-700g Firmware Discussion 2 18-06-2007 21:52
Download manager: тема поднималась, попробую выразить общее мнение... Zein Russian Discussion - РУССКИЙ (RU) 14 18-01-2007 19:36
HowTo install a lightweight blog server Tamadite WL-500g/WL-500gx Tutorials 0 03-12-2006 01:46
Download Manager Erwin Dutch Discussion - Nederlands 1 18-10-2006 19:35


Часовой пояс GMT +1, время: 22:23.


Copyright ©2003 - 2008, van Boekel Networks
Вы оценили эту тему: