PDA

Bekijk de volledige versie : HOWTO: MLDonkey as Download Manager for WL-700g [draft v.0.1]



mawr
19-07-2007, 01:45
MLDonkey (http://mldonkey.sourceforge.net/Main_Page) - 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:
kfurge custom firmware (http://home.comcast.net/%7Ekfurge/WL700gE_1.0.4.6_kc_02a.nas) must be installed (http://home.comcast.net/~kfurge/wl700ge.html) on your WL-700g box (with rc.local file uploaded and optware packages installed).
The ksoftirqd CPU eating patch (http://wl500g.info/showthread.php?t=8573) 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).
bzip2 package must be installed on your WL-700 box (/opt/bin/ipkg install bzip2).

Installation (based on russian thread (http://wl500g.info/showthread.php?t=9214)):
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".
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
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>)
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.
Add run-string of MLDonkey to your rc.local file (via "vi" editor like step 3):
/opt/etc/init.d/mlnet
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

We will use the sancho (http://sancho-gui.sourceforge.net/) to control MLDonkey. Download (http://sancho-gui.sourceforge.net/download.phtml) it and install.
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.
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.
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?

Henrikh
03-08-2007, 17:04
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!

Henrikh
03-08-2007, 23:50
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?

patrickquek
06-08-2007, 10:53
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!

Henrikh
06-08-2007, 13:58
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.

Fullback
07-08-2007, 23:59
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.

Henrikh
12-08-2007, 13:44
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://.."

Fatboysec
12-08-2007, 16:25
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

Fullback
13-08-2007, 06:30
# /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. :confused:

tiwag
13-08-2007, 14:58
...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 :D

comment: additionally to your instructions i had to install zlib too

ipkg install zlib bzip2 -force-overwrite


thanks and brgds,

--
tiwag

Woffels
13-08-2007, 23:54
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

tiwag
14-08-2007, 07:39
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

Woffels
14-08-2007, 10:11
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?

tiwag
14-08-2007, 11:46
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

Woffels
14-08-2007, 12:48
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?

Henrikh
14-08-2007, 13:21
# /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. :confused:

Are you sure you have made the file executable? You can make it executable with:
chmod +x /opt/etc/init.d/mlnet

Does anyone know how to compile MLDonkey? Im am not experienced enough with UNIX to do this, they have fixed problems with torrents being slow in the newest version of MLDonkey (2.9).

Woffels
14-08-2007, 13:41
If i vi mlnet and add the text from step 2.2 on
http://wl700g.homelinux.net/drupal/?q=node/137
this wont work:
(to save file press <ESC> <CTRL>+<:> <X> <ENTER>)
I doesnt save
but if i do ZZ
i get the error
Write error: No such file or directory
Im so close!
Woffesl

tiwag
14-08-2007, 14:00
Cant find instructions on bzip on kfurge. I did find bzip2.1.0.4.pkg. Can i use tat one?

when you would once RTFM and follow the instructions, you could save 1E34 recycled electrons to write these advices again and again and again ....

instead you'd have a properly installed system where

ipkg install bzip2
would work and know from which location it has to download the repository

exactly this step is well explained within kfurge's instructions,
and therefore i gave you the advice.


excerpt from kfurge's docs


Step #3, Installing optware packages

1. Telnet to your router and login as root.
2. Create and manually mount /shares/MYVOLUME1/opt on /opt (rc.local will do this automatically once /shares/MYVOLUME1/opt is created)
* cd /shares/MYVOLUME1
* mkdir -p opt/etc
* mount -o bind /shares/MYVOLUME1/opt /opt
3. Manually install uClibc, busybox, wget, and ipkg from the optware repository:
* wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc_0.9.28-1_mipsel.ipk
* tar xvzf uclibc_0.9.28-1_mipsel.ipk; tar xvzf data.tar.gz
* wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox-base_1.1.3-3_mipsel.ipk
* tar xvzf busybox-base_1.1.3-3_mipsel.ipk; tar xvzf data.tar.gz
* wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/busybox-links_1.1.3-3_mipsel.ipk
* tar xvzf busybox-links_1.1.3-3_mipsel.ipk; tar xvzf data.tar.gz
* wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/wget_1.10.2-3_mipsel.ipk
* tar xvzf wget_1.10.2-3_mipsel.ipk; tar xvzf data.tar.gz
* wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg_0.99-163-4_mipsel.ipk
* tar xvzf ipkg_0.99-163-4_mipsel.ipk; tar xvzf data.tar.gz
* rm -f *.ipk data.tar.gz debian-binary control.tar.gz
4. Add /opt/bin to the beginning your path (to override Asus binaries of the same name)
* export PATH=/opt/bin:${PATH}
* export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
5. Add the following line to /opt/etc/ipkg.conf with the newly installed busybox version of vi: "src optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable". Here's a copy of mine.
6. Run "ipkg update"
7. For completeness, re-run "ipkg install" for uclibc, busybox, ipkg, and wget to fully install them. You may have to use the -force-overwrite flag.
8. You can now add packages as necessary and start them via rc.local




did you edit the /opt/etc/ipkg.conf file ???

Woffels
14-08-2007, 15:27
First, ill tell you my concern. Bought this router for 240 euros. Sales guy told me to easaly download with it. Ive been busy with the wl for more then 2 weeks without satisfying result. I do have more than avarage knowlidge of computers and systems, but not a lot of linux experience. I just want my router to work properly. I dont speak your "computer language", so i dont understand everything, im sorry for that and dont want to get people anoying or upset. I just want some help in easy language. It is foolish that we buy a product that isnt working and that we have to climb under the hood to do modifications on a new product. What if my little sister has bought this thing or someone who doesnt even know the existance of a forum or workarounds. They might throw the thing out of the window!!!!
Im also busy with writing asus, but not a lot of response.
That was it.
Now this!
I did everything over again how it is written in the tutorial but i get stuck on

6. Run "ipkg update"
For completeness, re-run "ipkg install" for uclibc, busybox, ipkg, and
wget to fully install them. You may have to use the -force-overwrite flag
on
http://wl700g.homelinux.net/drupal/?q=node/83

What to do exactly?
Woffels

tiwag
14-08-2007, 15:56
... I do have more than avarage knowlidge of computers and systems ...

this is nice to hear :p


anyhow, then we have to track down your (mis)configuration step by step :)

1. be shure, that your WL700 is connected to the internet, as it needs it to download the ipk packages.
does the internet connection work at your PC which is connected to the WL700 ?

now to your WL700 telnet session
2. what are the messages when you run these commands

ls -Al /opt
ls -Al /opt/bin
cat /opt/etc/ipkg.conf
echo $PATH
echo $LD_LIBRARY_PATH

3. what's the (error-?) message when you run

ipkg list_installed

4. what's the (error-?) message when you run

ipkg update

5. what's the (error-?) message when you run

ipkg install zlib bzip2 -force-overwrite

Woffels
14-08-2007, 22:10
I do the sequence over and see where i get stuck and awnser your questions.

Woffels
14-08-2007, 23:22
Here are the awnser to your questions

# ls -Al /opt
drwxr-xr-x 2 root root 2520 Aug 14 21:57 bin
drwxr-xr-x 3 root root 72 Aug 14 21:53 doc
drwxr-xr-x 2 root root 200 Aug 14 22:00 etc
drwxr-xr-x 2 root root 72 Aug 14 21:53 include
drwxr-xr-x 3 root root 1376 Aug 14 21:53 lib
drwxr-xr-x 3 root root 72 Jan 19 2007 man
drwxr-xr-x 2 root root 416 Aug 14 21:47 sbin
drwxr-xr-x 3 root root 72 Sep 22 2006 share
# ls -Al /opt/bin
-rw-r--r-- 1 root root 301 Aug 14 21:57 ENTER
lrwxrwxrwx 1 root root 7 Aug 14 21:47 [ -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 [[ -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 ash -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 basename -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 bunzip2 -> busybox
-rwxr-xr-x 1 root root 673100 Jan 18 2007 busybox
lrwxrwxrwx 1 root root 5 Aug 14 21:53 bzcat -> bzip2
-rwxr-xr-x 1 root root 101924 Jul 24 06:22 bzip2
-rwxr-xr-x 1 root root 11360 Jul 24 06:22 bzip2recover
lrwxrwxrwx 1 root root 7 Aug 14 21:47 cat -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 chgrp -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 chmod -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 chown -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 chvt -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 clear -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 cmp -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 cp -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 cut -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 date -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 dd -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 deallocvt -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 dirname -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 dmesg -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 du -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 echo -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 egrep -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 env -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 expr -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 false -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 fgrep -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 find -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 free -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 grep -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 gunzip -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 gzip -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 head -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 hexdump -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 hostname -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 id -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 install -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 ip -> busybox
-rwxr-xr-x 1 root root 5752 Sep 22 2006 ipkg
lrwxrwxrwx 1 root root 7 Aug 14 21:47 kill -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 killall -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 ln -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 logger -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 logname -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 ls -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 md5sum -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 mkdir -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 mkfifo -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 mknod -> busybox
-rwxr-xr-x 1 root root 2908042 Aug 14 21:54 mlnet.lite
lrwxrwxrwx 1 root root 7 Aug 14 21:47 more -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 mount -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 mv -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 nc -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 netstat -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 openvt -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 pidof -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 ping -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 ping6 -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 ps -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 pwd -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 readlink -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 reset -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 rm -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 rmdir -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 sed -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 sh -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 sleep -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 sort -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 strings -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 sync -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 tail -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 tar -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 tee -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 test -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 time -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 top -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 touch -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 tr -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 true -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 tty -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 umount -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 uname -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 uncompress -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 uniq -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 unzip -> busybox
-rwxr-xr-x 1 root root 4248 Sep 22 2006 update-alternatives
lrwxrwxrwx 1 root root 7 Aug 14 21:47 uptime -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 usleep -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 vi -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 wc -> busybox
-rwxrwxr-x 1 root root 290504 Jan 19 2007 wget
lrwxrwxrwx 1 root root 7 Aug 14 21:47 which -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 whoami -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 xargs -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 yes -> busybox
lrwxrwxrwx 1 root root 7 Aug 14 21:47 zcat -> busybox

# cat /opt/etc/ipkg.conf
src optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable

# echo $PATH
/usr/sbin:/bin:/usr/bin:/sbin

# echo $LD_LIBRARY_PATH
nothing happens

# ipkg list_installed
ipkg: not found

ipkg update
ipkg: not found

# ipkg install zlib bzip2 -force-overwrite
ipkg: not found

If i follow the how to, i get stuck by:
7. For completeness, re-run "ipkg install" for uclibc, busybox, ipkg, and wget to fully install them. You may have to use the -force-overwrite flag.

If i run i get this message
# /opt/etc/mlnet
#
# /opt/bin/mlnet.lite: can't load library 'libz.so'

I do have connection with the internet, i see the ipkg packages downloading.

What exactly do i have to do on the place where i get stuck?
Hope to hear from you soon
Woffels

kfurge
15-08-2007, 02:36
# echo $PATH
/usr/sbin:/bin:/usr/bin:/sbin

# echo $LD_LIBRARY_PATH
nothing happens

# ipkg list_installed
ipkg: not found


You must've forgotten step #4. It has to be repeated every time you telnet in until you get a working bash shell and add it to your .profile.

- K.C.

Woffels
15-08-2007, 09:05
First of all i want to know what step 7 in your description means.

If i follow the how to, i get stuck by:
7. For completeness, re-run "ipkg install" for uclibc, busybox, ipkg, and wget to fully install them. You may have to use the -force-overwrite flag.

What to do here because what i do is repeat step 3 again.

kfurge
16-08-2007, 02:09
What to do here because what i do is repeat step 3 again.

The instructions should be followed exactly. Don't repeat step three. Actually run the command "ipkg install uclibc" then run the command "ipkg install busybox", etc.

You must not log out between steps 4 and 7. If you do so, you'll have to repeat step #4 to set your PATH and LD_LIBRARY_PATH environment variables.

- K.C.

tiwag
16-08-2007, 06:51
The instructions should be followed exactly. Don't repeat step three. Actually run the command "ipkg install uclibc" then run the command "ipkg install busybox", etc.
...

Hi K.C.

there is a problem because recent versions of Oleg's Packages file
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages
doesn't contain uclibc package anymore, so

the command "ipkg install uclibc"
will fail. This happens if you did a "ipkg update" before.

but all the uclibc files uclibc_0.9.28-#_mipsel.ipk (# = 1 ... 5)
are still hosted at the server.

Maybe you've still an older Packages file with the correct package description of uclibc in it, if so please post the uclibc section here, so that we can modify our Packages file.

OR

did you use "ipkg install uclibc-opt",
do you know the differences between "uclibc" and "uclibc-opt"
can we use it for our WL700g without problems ?

edit: the above question also applies to "ipkg" versus "ipkg-opt" packages .



brgds

--
tiwag

tiwag
16-08-2007, 07:19
... i get stuck by ...

just run these commands before trying to use ipkg


export PATH=/opt/bin:/opt/sbin:${PATH}
export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}

tiwag
16-08-2007, 19:40
Hi K.C.

there is a problem because recent versions of Oleg's Packages file
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages
doesn't contain uclibc package anymore, so

the command "ipkg install uclibc" will fail...

for all who are interested in the results of my experiment
i've just now installed uclibc-opt, ipkg-opt, etc...
see my list of installed packages


[root@WL700gE ~]$ ipkg list_installed
bash - 3.2.17-1 - A bourne style shell
busybox - 1.5.0-1 - A userland replacement for embedded systems.
busybox-base - 1.5.0-1 - A userland replacement for embedded systems.
busybox-links - 1.5.0-1 - A userland replacement for embedded systems.
bzip2 - 1.0.4-1 - Very high-quality data compression program
dropbear - 0.48.1-1 - Lightweight SSH client and server system
groff - 1.19.2-1 - front-end for the groff document formatting system
hdparm - 6.9-1 - Linux hard drive parameter utility
ipkg-opt - 0.99.163-9 - The Itsy Package Manager
less - 394-3 - Less file browser
libuclibc++ - 0.2.2-4 - C++ standard library designed for use in embedded systems
man - 1.5p-4 - unix manual page reader
man-pages - 2.33-3 - unix manual pages
nano - 2.0.6-1 - A pico like editor
ncurses - 5.6-1 - NCurses libraries
ncursesw - 5.6-1 - NCurses libraries with wide char support.
readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
screen - 4.0.3-2 - A screen manager that supports multiple logins on single terminal
sudo - 1.6.9p3-1 - System utility to execute commands as the superuser
termcap - 1.3.1-2 - Terminal emulation library
uclibc-opt - 0.9.28-12 - micro C library for embedded Linux systems
wget - 1.10.2-4 - A network utility to retrieve files from the Web
zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.
Successfully terminated.


and my WL700g is still running very very fine :) ... :D

brgds

--
tiwag

kirnikitin
18-08-2007, 07:17
Hi!
After starting mlnet.lite says "can't load library 'libncurses.so.5' "
How can i install this?

Thank you/

kfurge
19-08-2007, 01:08
Hi K.C.

there is a problem because recent versions of Oleg's Packages file
http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages
doesn't contain uclibc package anymore, so


Those instructions are getting old. I posted that page well over 8 months ago now. I can't say for sure, because I've not tested it, but you should be able to replace all references of uclibc with uclibc-opt.

- K.C.

kfurge
19-08-2007, 01:10
Hi!
After starting mlnet.lite says "can't load library 'libncurses.so.5' "
How can i install this?

Thank you/

Install the ncurses ipkg.

- K.C.

kirnikitin
21-08-2007, 09:42
When i install bash in step#5 of custom firmware installation manual, i recieve a message:

Configuring adduser
syntax error
postinst script returned status 255
ERROR: adduser.postinst returned 255

Reinstalling "adduser" dont solve this problem:confused:

Maccro
01-10-2007, 20:44
Ok, so I've followed all the steps and have mlnet.let running on my router. I've even installed Sancho and can connect to it to monitor my downloads. The problem is, I can't actually download anything. I've only tried bittorrent so far, but that is what I'd like to be using 99% of the time. Torrents are added, and show active with sources, but the number of sources always counts down until it hits 0, availability fluctuates, rate never shows anything, and of course Downloaded stays at 0. I was able to download torrents just fine with the builtin client, so what could I have done wrong, or what did I perhaps miss?

Thanks!

hmantsao
05-10-2007, 11:18
Hello, thanks you mldonkey software. It let me to do many thing . But i have a problem about the file name, i just can see ??? string on the filename which don't write by engilish , do this problem come from language setting ?
I can't find out how to set the language (mlnet starting show : Language EN, locale ASCII, ulimit for open files 1024). Do need set up in fireware or mldonkey? and could we set the language to UTF-8?

metamorphose
11-10-2007, 21:08
When i install bash in step#5 of custom firmware installation manual, i recieve a message:
Reinstalling "adduser" dont solve this problem:confused:

Hi,


I have the same problem too. Please, write somebody, who knows the solution!

I tried commenting contents of these files: opt/lib/ipkg/info/adduser.postinst and opt/lib/ipkg/info/adduser.prerm, but I received the same error message after I release ipkg install command, for example: ipkg install zlib

Main step I got stucked, when I try running this: /opt/etc/init.d/mlnet
I have received this error: /opt/bin/mlnet.lite: can't load library 'libz.so'
If I try installing zlib package (ipkg install zlib), I'm not able to manage, because appears:

Installing zlib (1.2.3-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross
.3-2_mipsel.ipk
Configuring adduser
syntax error
postinst script returned status 255
ERROR: adduser.postinst returned 255
Nothing to be done
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget
kg-EViq7m http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/s
-2_mipsel.ipk'
Failed to download zlib. Perhaps you need to run 'ipkg update'?

I'm helpless, because 'ipkg update' is fully useless.

tiwag
12-10-2007, 06:58
i worked around this issue by commenting out the command in

/opt/lib/ipkg/info/adduser.postinst


#!/bin/sh

#update-alternatives --install /opt/bin/su su /opt/bin/adduser-su 30



then run


ipkg update
ipkg upgrade
ipkg install zlib


HTH. brgds

metamorphose
12-10-2007, 20:56
Thanx, but I have managed successfully my problem:

1. I uninstalled adduser

2. and I noticed that the main issue situated in core of error message, because name resolving does not work at all, that's why ipkg is not be able to update download packages etc. I have found a tip on the net: my resolv.conf file is empty, to fix this, I typed into resolv.conf

nameserver 192.168.1.1

At now, it was not so complicated.

After I had fixed it, I just had to download and install the proper packages for there are not dependencies any more.

sollie
13-10-2007, 20:00
Thanks man, its running. But its not that fast. Is there a way to test port forwarding?

Sollie.

sollie
13-10-2007, 20:19
Wow, i found version 2.91, its running perfect for me:

http://wl500g.dyndns.org/bin/mlnet.lite

1: replace mlnet.lite in /opt/bin with this one
2: chmod +x /opt/bin/mlnet.lite

Sollie.

Henrikh
14-10-2007, 13:51
Wow, impressive. I am downloading at 500kb/s atm :)

metamorphose
16-10-2007, 08:15
Ok, so I've followed all the steps and have mlnet.let running on my router. I've even installed Sancho and can connect to it to monitor my downloads. The problem is, I can't actually download anything. I've only tried bittorrent so far, but that is what I'd like to be using 99% of the time. Torrents are added, and show active with sources, but the number of sources always counts down until it hits 0, availability fluctuates, rate never shows anything, and of course Downloaded stays at 0. I was able to download torrents just fine with the builtin client, so what could I have done wrong, or what did I perhaps miss?

Thanks!

Hi,

I am in same trap: I had successfully installed kfurge custom firmware, MLDonkey core program onto my WL-700gE, and Sancho GUI client (Windows version) onto my notebook. Despite of these facts my BT downloads have been stopped and have not been strting anyway.

Could sy help me? Should I modify Sancho/MLDONKEY settings or should I set port forwarding (maybe MLDONKEY uses special TCP/UDP port)?

metamorphose
16-10-2007, 21:23
Oh, I had not noticed: in Tools / Connection Handler menu you can find default port (4001).

As well as I don't know where to find location of complete downloaded files, unfortunatelly.

Henrikh
18-10-2007, 13:09
It would indeed be a good idea to do some port forwarding, mldonkey does not support uPnP so if you dont set this up manually, you will not be directly connectable, which will result in much slower speed.

In Sancho go to:
Tools -> Preferences -> Network -> Bittorrent -> Set BT Client port to a port of your choice :)

Now run this command:


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

You can ofcourse replace port 3400 with whatever port you have chosen. It is always a good idea not to use the defualt port, since many ISPs block/limit traffic on this port (6881 as far as i remember ).

You can find your completed downloads in name-of-your-router\myshare1\.mldonkey\incomming

metamorphose
26-10-2007, 22:52
It would indeed be a good idea to do some port forwarding, mldonkey does not support uPnP so if you dont set this up manually, you will not be directly connectable, which will result in much slower speed.

In Sancho go to:
Tools -> Preferences -> Network -> Bittorrent -> Set BT Client port to a port of your choice :)

Now run this command:


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

You can ofcourse replace port 3400 with whatever port you have chosen. It is always a good idea not to use the defualt port, since many ISPs block/limit traffic on this port (6881 as far as i remember ).

You can find your completed downloads in name-of-your-router\myshare1\.mldonkey\incomming

Thanx Henrikh, it seems it's working. I had found the default Sancho port and set portforwarding. Just two more little question:

1. After Sancho/MLdonkey has finished download torrent, downloaded file/files is/are disappeared. Why? How can I unhide finished downloads? I would like to see Sancho/MLdonkey is seeding torrents.

2. I am not able to select files I want to or not to download. Is it normal behaviour? I am able to do that in Bitcomet.

Henrikh
27-10-2007, 21:24
Thanx Henrikh, it seems it's working. I had found the default Sancho port and set portforwarding. Just two more little question:

1. After Sancho/MLdonkey has finished download torrent, downloaded file/files is/are disappeared. Why? How can I unhide finished downloads? I would like to see Sancho/MLdonkey is seeding torrents.

2. I am not able to select files I want to or not to download. Is it normal behaviour? I am able to do that in Bitcomet.

1. MLdonkey should keep seeding torrents, until they are deleted from the \.mldonkey\torrents\seeded directory. But Sancho will not show these files, allthough it will show if anybody are downloading them from you. (in the lower port of the screen, where it says "Uploaders").

You should also be able to find these files if you go to the tab labeled "Shares".

I am aware that normal bittorent clients keeps showing the files, just showing them with the status "Seeding" instead. But you need to remember that Mldonkey is not just a bittorent client, its also a edonkey, and file transfer (http/ftp) client. So i guess thats why the have chosen this kind of structure for the client.

2. I have been looking for this possibility too, but unfortunately i guess its one of the shortcomings of mldonkey

metamorphose
06-11-2007, 21:49
1. MLdonkey should keep seeding torrents, until they are deleted from the \.mldonkey\torrents\seeded directory. But Sancho will not show these files, allthough it will show if anybody are downloading them from you. (in the lower port of the screen, where it says "Uploaders").

You should also be able to find these files if you go to the tab labeled "Shares".

I am aware that normal bittorent clients keeps showing the files, just showing them with the status "Seeding" instead. But you need to remember that Mldonkey is not just a bittorent client, its also a edonkey, and file transfer (http/ftp) client. So i guess thats why the have chosen this kind of structure for the client.

2. I have been looking for this possibility too, but unfortunately i guess its one of the shortcomings of mldonkey


Thank you for your reply. Suddenly appeared one more related question: how can I download file/files based on URL which is password protected. I mean I can access file/files since I have password, however I don't want to download it by a simple browser, I would like to download it by a download manager like Flashget. My purpose is accomplish that in MLdonkey/Sancho. Is it possible?

I tried to use MLdonkey web interface, I pasted URL and pushed INPUT button. I did the same in Sancho. The file/files is/are appeared transfers' list, but download process doesn't start. I guess MLdonkey/Sancho is not able to handle, because password need.

anieln
18-12-2007, 02:04
Try using the following syntax as input url: http://username:password@www.whatever.com/test.zip

should also work for ftp sites (if you replace http by ftp)

anieln
18-12-2007, 02:05
If you hover over the hyperlink in the previous post, you'll see the correct syntax on the bottom of your browser...

metamorphose
18-12-2007, 19:51
Try using the following syntax as input url: http://username:password@www.whatever.com/test.zip

should also work for ftp sites (if you replace http by ftp)

Hi,


I tried your tip (I have no success), but situation is more complex, because my username is e-mail address and protocol is secure http.

A.) If I am trying this syntax:

https://myemailusername@myemaildomain.com:password@www.wha tever.com/test.zip

I get: Exception Failure("int_of_string")


B.) If I am trying another syntax:

https://www.whatever.com/test.zip@myemailusername@myemaildomain.com:passwor d

MLdonkey just says: Parsing HTTP url

The last one seems to be good, but nothing happens.

May you have any other tip or trick?

viktike
05-01-2008, 00:21
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?

Found solution:

iptables -I FORWARD -p tcp --dport 6882 -j ACCEPT
iptables -t nat -I PREROUTING -i eth1 -p tcp --dport 6882 -j DNAT --to-destination 192.168.1.1


You should add this to the mlnet init script. This one works well on my wl500gp, speed is around 120-140kb/s instead of 50-55kb/s.

Note: yous might need to change 'eth1' to ppp0 or something like that. (Network Interface of the ISP/WAN)
Source: http://mldonkey.sourceforge.net/WhatFirewallPortsToOpen

One question: I understand this is a 'lite' version of mldonkey, but I want DC. Who knows how to enable it? (Without recomplieing)

viktike
05-01-2008, 00:34
Hi,


I tried your tip (I have no success), but situation is more complex, because my username is e-mail address and protocol is secure http.

A.) If I am trying this syntax:

https://myemailusername@myemaildomain.com:password@www.wha tever.com/test.zip

I get: Exception Failure("int_of_string")


B.) If I am trying another syntax:

https://www.whatever.com/test.zip@myemailusername@myemaildomain.com:passwor d

MLdonkey just says: Parsing HTTP url

The last one seems to be good, but nothing happens.

May you have any other tip or trick?

Intresting question. I haven't tried it yet. The problem I think is the username. When it actually parsing the URl it finds two @ characters, where one or zero (logical/bool variable) expected, so the return value of the function will be two (witch is an intger), instead of the two strings (username:password and the hostname/dir/file). I'm not sure, just guess.

Henrikh
11-01-2008, 16:57
Found solution:


You should add this to the mlnet init script. This one works well on my wl500gp, speed is around 120-140kb/s instead of 50-55kb/s.

Note: yous might need to change 'eth1' to ppp0 or something like that. (Network Interface of the ISP/WAN)
Source: http://mldonkey.sourceforge.net/WhatFirewallPortsToOpen

One question: I understand this is a 'lite' version of mldonkey, but I want DC. Who knows how to enable it? (Without recomplieing)

Well by just adding the port to the input chain did it for me (I checked with a port scanner, and the trackers also reported me as "connectable" :-). The slow speed was due to a bug in the old 2.8.5 mlnet version, with mlnet 2.9.1 i get way better performance. I have reached speeds approaching 500kb/s, but i limit the speed, else the CPU is completely overloaded, and thereby increasing the respond-time for other services significantly.

I guess you can't just enable DC++ support without recompiling, as far as i understand the code that should handle the DC++ protocol is not included in the compilation to minimize space usage.

kfurge
20-01-2008, 02:09
Guys,

I'm adding MLDonkey to my upcoming firmware image. Are there any other ports besides the BT ports (6882-6899) that I should open through the firewall to make ML Donkey more usable?

- K.C.

Henrikh
20-01-2008, 13:45
Guys,

I'm adding MLDonkey to my upcoming firmware image. Are there any other ports besides the BT ports (6882-6899) that I should open through the firewall to make ML Donkey more usable?

- K.C.

First off, Thank you for all your work with the Asus firmware, i am really looking forward to your next release :-)

I don't think its necessary to open the 6882-6899 port range. My experience is that its only necessary to open the port specified in the MLDonkey config, which i guess is 6882 as default.

But if it is possible, it would be a good idea to change the default port to something else, because many ISP limits the speed on the standard bittorrent ports. I use port 3400, but some random port above the standard service ports like 54286 or something, would be great. And as said earlier, if you specify port 54286 as bittorrent port, it should only be necessary to open up that port.

Uh and one thing more. What version of MLDonkey are you intergrating? The 2.8.5 version has buggy bittorrent code, which results in slow speed, and the 2.9.2 is just acting weird when adding torrents. In my experience, the 2.9.1 version is the one working the best, reaching speeds of several hundred kb/s.

metamorphose
20-01-2008, 14:57
Hi,


I absolutely agree with Henkrikh, I think openning 6881-6889 port range is unnecessary, becaues many of ISPs apply speed limit on the standard bittorrent ports.

I use this ports:

4001: to be able to connect to MLDonkey core by Sancho client (LAN)
4080: to be able to connect to MLDonkey web interface through LAN or WAN
46680: this my default Bittorrent port to avoid speed limitation as Henkrikh and me mentioned above

I think default Bittorrent port(s) of MLDonkey might be a custom parameter in rc.local. I mean if somebody want to adjust another port, can change port number in the proper line of rc.local, which open the proper port(s) by iptables command (according to MLDonkey properties):

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

Do you agree with me?

Henrikh
20-01-2008, 15:35
Hi,


I absolutely agree with Henkrikh, I think openning 6881-6889 port range is unnecessary, becaues many of ISPs apply speed limit on the standard bittorrent ports.

I use this ports:

4001: to be able to connect to MLDonkey core by Sancho client (LAN)
4080: to be able to connect to MLDonkey web interface through LAN or WAN
46680: this my default Bittorrent port to avoid speed limitation as Henkrikh and me mentioned above

I think default Bittorrent port(s) of MLDonkey might be a custom parameter in rc.local. I mean if somebody want to adjust another port, can change port number in the proper line of rc.local, which open the proper port(s) by iptables command (according to MLDonkey properties):

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

Do you agree with me?

Well we could just put up an FAQ an tell people to add that line to their rc.local file, if they change the port number in MLDonkey, but that is for kfurge to decide :)

Anyways very few people would need to change the port number, if some odd port number like 51889 is set as default :)

kfurge
20-01-2008, 19:44
Thank you all for the feedback so far. A few more questions / comments...



4001: to be able to connect to MLDonkey core by Sancho client (LAN)

Connecting from the LAN does not require punching through the firewall, this is OK with no iptables manipulation.


4080: to be able to connect to MLDonkey web interface through LAN or WAN

In general, client connections from the WAN side are inherently dangerous and somewhat atypical. I think it should not do this by default. If someone wants to modify the firewall modification scripts, they'll be able to do this easily.


46680: this my default Bittorrent port to avoid speed limitation as Henkrikh and me mentioned above

Hmmm... I'm not a rabid torrent user, so I'm unfamiliar with the protocol. How do connecting clients know which port you have open if you don't use the standard ones? Do active sharing clients register their incoming ports with the torrent tracker? Is it worth opening more than one port?

- K.C.

kfurge
20-01-2008, 19:58
The 2.8.5 version has buggy bittorrent code, which results in slow speed, and the 2.9.2 is just acting weird when adding torrents. In my experience, the 2.9.1 version is the one working the best, reaching speeds of several hundred kb/s.

I grabbed 2.9.2 since it was the newest. I've downloaded a few torrents with it and it seems to be working OK, though somewhat slow. I suspect my ISP is throttling back the connections. What strangeness are you experiencing?

- K.C.

Henrikh
20-01-2008, 20:30
Well then its probably my setup which had some kind of flaws. Sometimes it refused to download torrent,when it loaded torrents i didn't get that many connections. Generally my experience was pretty poor compared to 2.9.1, but if you got it working then i guess theirs no problem :-)

I don't know exactly how the bittorrent client work but i have been using torrents for a couple of years, and i have always changed the port number, and this have never caused any problems. I guess the bittorrent client tells the tracker what port it listen on, and thereby, the other bittorrent client know what port they need to request information from? :-)

Anyways its a general recomdation to change away from the default port. uTorrent (which is now owned by bittorrent inc., and therefore can be regarded as the official bittorrent client) also have an option for choosing a random port, and as far as i remember, it also choose a random port when it starts up for the first time.

And nope, it should not be necessary to open anything else than the defined bittorrent port, MLDonkey handles all connection through this port.

*EDIT*
I just did some reading in the russain thread (Thank god for Google translator :)) and it seems that no one else is having problems with the 2.9.2, so i guess it was my setup which some kind of flaw. It also seems most reasonable to go with the newest version, so stick with the 2.9.2 version (Unless you stumble upon the new 2.9.3 :-P)

metamorphose
21-01-2008, 22:36
Thank you all for the feedback so far. A few more questions / comments...


Connecting from the LAN does not require punching through the firewall, this is OK with no iptables manipulation.

In general, client connections from the WAN side are inherently dangerous and somewhat atypical. I think it should not do this by default. If someone wants to modify the firewall modification scripts, they'll be able to do this easily.

Hmmm... I'm not a rabid torrent user, so I'm unfamiliar with the protocol. How do connecting clients know which port you have open if you don't use the standard ones? Do active sharing clients register their incoming ports with the torrent tracker? Is it worth opening more than one port?

- K.C.

Hello kfurge,


I am trying to clean the misunderstanding.

1. port 4001: I just listed this port, I did not claim is necessary to open up. :p

2. port 4080: I think it should not be too dangerous, supposing you protect your MLDonkey client by password - I apply this solution. So I am able to view and administer my downloads from everywhere, almost. BTW I must absolutely agree with you, it can be dangerous without password protection. I owerwrite my oppinion: it is just a possibility for intermediate/advanced users, I am not sure the openning this port would be practical.

3. port 46680: I use this port because I had read earlier between Henrikh advices (http://wl500g.info/showthread.php?t=10041) this is the default BT-client port of Sancho client. I successfully managed to open up that port, anyway as I read Henrikh choose another port 3400, so I think there is no default MLDonkey BT-port. As I suggested above you may provide a parameter to define the proper MLDonkey BT-port (I thought just a simple line iptables command in rc.local, which is modificatable). But you are the boss... :D

You convinced me.


P.S.: I do not know how, but openning port 46680 is working for me, believe in that. Do you use Bitcomet? You can setup the port you want to use in Bitcomet as BT-port. It can be any port. I do not know how any BT-clients (I mean peers) find the proper port and connect to my router, but somehow they can, this is my experience.

dalanik
25-01-2008, 11:10
Now that we all have Mldonkey thanx to kfurge's image... and that torrent downloading finaly works on our white brick :-) would any kind soul please give a few hints to us non-linux types? :-)

I downloaded torrent yesterday w/o any problems... speed was cool, ~ 300kb/s, I never got that with download master :-) but...

I had to install sancho in order to add the .torrent file to cue. The way I'm used to is to download .torrent files locally and then double-click them to download. OK, it's a bit more complex than that with linux, no problem. I know I must do something like dllink http://........../.../...torrent (even though it's grom GRAPHICAL interface, but what the hell). But...

1) I suppose it's not possible to specify file that is on my local (windows) hard drive???? What is, then, best practice? To just copy .torrent files onto router somewhere?

2) when finished downloading, how do I STOP sharing the downloaded file? I tried everything and nothing worked. In the end, I had to logon as root and delete both .torrent and the file, previously I stopped all protocols from sancho. Any straighforward way of doing this? I mean, for christ's sake, I'm just downloading a torrent here, it's not rocketscience!!!!

3) I'm unable to delete some leftovers from download master. I logon as root, and no matter what I do, the file is still there. DL master is DISABLED. I suspect it could be to the fact that the file name is starting with "-"... when I do rm * it just lists the options for rm as if I enetered wrong switch or something.

Now, I swear that I will never, ever swear Mr. Gates and Windows again, after this experience with Linux... :-)


D.

kfurge
25-01-2008, 15:04
3) I'm unable to delete some leftovers from download master. I logon as root, and no matter what I do, the file is still there. DL master is DISABLED. I suspect it could be to the fact that the file name is starting with "-"... when I do rm * it just lists the options for rm as if I enetered wrong switch or something.

Now, I swear that I will never, ever swear Mr. Gates and Windows again, after this experience with Linux... :-)



I'll leave the MLDonkey/sancho questions to the experts, but I will say that the two step process you're so upset with is unavoidable when you're fetching the .torrent file on a different machine that the one which will ultimately be performing the download.

Sharing the .torrent file from your windows machine sort of defeats the purpose of being able to turn off the power hungry multimedia box and still keep downloads chugging along.

To delete files starting with a "-", put a "--" immediately after your options to tell the command line parser that you're finished with the options:

rm -- -myfilename

- K.C.

P.S. Don't blame Linux for this. It's just as easy to fetch a torrent from my Linux laptop when I kick out all of the windows machines...

Henrikh
25-01-2008, 19:39
Now that we all have Mldonkey thanx to kfurge's image... and that torrent downloading finaly works on our white brick :-) would any kind soul please give a few hints to us non-linux types? :-)

I downloaded torrent yesterday w/o any problems... speed was cool, ~ 300kb/s, I never got that with download master :-) but...

I had to install sancho in order to add the .torrent file to cue. The way I'm used to is to download .torrent files locally and then double-click them to download. OK, it's a bit more complex than that with linux, no problem. I know I must do something like dllink http://........../.../...torrent (even though it's grom GRAPHICAL interface, but what the hell). But...

1) I suppose it's not possible to specify file that is on my local (windows) hard drive???? What is, then, best practice? To just copy .torrent files onto router somewhere?

2) when finished downloading, how do I STOP sharing the downloaded file? I tried everything and nothing worked. In the end, I had to logon as root and delete both .torrent and the file, previously I stopped all protocols from sancho. Any straighforward way of doing this? I mean, for christ's sake, I'm just downloading a torrent here, it's not rocketscience!!!!

3) I'm unable to delete some leftovers from download master. I logon as root, and no matter what I do, the file is still there. DL master is DISABLED. I suspect it could be to the fact that the file name is starting with "-"... when I do rm * it just lists the options for rm as if I enetered wrong switch or something.

Now, I swear that I will never, ever swear Mr. Gates and Windows again, after this experience with Linux... :-)


D.

1) Well the easiest solutions is just to associate .torrent files with Sancho. This way, you can just double click a torrent file, and Sancho will be copying your .torrent file to your router. Just right click a .torrent file, select "open with", select "browse", find the Sancho.exe file (Probably loacted in C:\Program Files\Sancho), and remember to tick off the box which says something like: "Always use this program to open the filetype"
Alternatively, go to: Start -> Run -> Type "sendto" (Or %APPDATA%\Microsoft\Windows\SendTo if you are running Vista). In the folder that appears, create a shortcut to \\192.168.1.1\myshare1\.mldonkey\torrents\incommin g, call this shortcut "Torrent download" or whatever you like :)
Now you should be able to rightclick on the torrent file, select sendto, and your new shortcut should be available. This way, the torrent file should be added the next time MLDonkey autoscans the torrent folder.

2) Actually, i haven't find a clever way to make MLDonkey stop seeding torrents yet. But what i do is creating a shortcut to \\192.168.1.1\myshare1\.mldonkey\torrents which send you to the folder where all the torrent files are located. From here you can just delete the torrent files which you no longer wish to share. To be honest i can't remember if torrents are removed from the share list the next time MLDonkey scans the torrent folder (By default it scans the folder every 60 second) or if it the seeding continues until the mlnet have been restarted :/

*Update*
Well i just checked the documentation, and it does not scan the torrents/seeding directory, so you'll have to restart MLDonkey (or the bittorrent plugin at least) to make it stop seeding.

dalanik
26-01-2008, 12:21
Thanx for the reply. Yes, sancho has the option to open .torrent file in a "standard" windows way... But I have to have sancho then :-) There is no easy way throught web interface... OK, no big deal, I'll get used to it.

Thing with removing torrents is a bit bigger problem. What I figured is to 1) stop torrent engine 2) delete files and .torrent (with sudo) 3) click "commit" and "reshare"....

So, the only thing that bothers me is that I have to go "sudo"... Is it safe to change permissions for .mldonkey folder so I don't have to be root in order to delete finished .torrents?

D.

Henrikh
26-01-2008, 12:56
Thanx for the reply. Yes, sancho has the option to open .torrent file in a "standard" windows way... But I have to have sancho then :-) There is no easy way throught web interface... OK, no big deal, I'll get used to it.

Thing with removing torrents is a bit bigger problem. What I figured is to 1) stop torrent engine 2) delete files and .torrent (with sudo) 3) click "commit" and "reshare"....

So, the only thing that bothers me is that I have to go "sudo"... Is it safe to change permissions for .mldonkey folder so I don't have to be root in order to delete finished .torrents?

D.

As i wrote you can just add a shortcut to the sendto menu, and right click the torrent file, and "send it" to the torrent directory on the router. MLDonkey will rescan the torrent folder every 60 seconds, and add any new .torrents it finds. You can also manually copy your torrent files to the incomming directory or whatever you like. :)

As for whether it is safe to alter the the permissions or not, i honestly have no idea :-)

It is a shame it is such a hassle to make MLDonkey stop sharing the torrents. I have no idea why they have not included a option to stop seeding a torrent - that is just weird.

exbliss
27-01-2008, 04:10
i have nothing agaisnt sancho and mldonkey.. but, oh boy!! im gonna miss utorrent.. its so tiny and robust... i've been a utorrent user eversince and it'll take getting a lot of use-to switching to sancho.. hope it works great as well.. thanks everyone for al your inputs.. been doing a lot reading around here and learned so much...;)

Henrikh
27-01-2008, 11:42
i have nothing agaisnt sancho and mldonkey.. but, oh boy!! im gonna miss utorrent.. its so tiny and robust... i've been a utorrent user eversince and it'll take getting a lot of use-to switching to sancho.. hope it works great as well.. thanks everyone for al your inputs.. been doing a lot reading around here and learned so much...;)

Yeah uTorrent is really nice. Could be sweet if they did a linux version, then we could just use their webUI for adminstration :0)

ice-cool
28-01-2008, 11:22
I have some problem about MLDonkey.
It can't download torrent from some tracker ( It's show 0 seed 0 peer )
while Utorrent can download from this tracker.

Do I must set up something to make MLDonkey download from this tracker?

P.S. This web tracker require member login to access.

lummock
18-02-2008, 16:16
So after much dicking around I've finally got my WHITE BRICK Doing a couple of good things. A BIG THANKS to KFURGE and others for their splendid work.
I'm new to Linux but am learning slowly.

I'm running the the latest kfurge firmware version and mldonkey is speeding along using sancho for control.
I finish downloading files and they appear in my .mldonkey/download folder.
I can samba into this directory but I cannot delete or rename the files they are locked.

Secondly how do I get the download folder to be indexed by the itunes and upnpav servers so that I can see what i've downloaded in my media programs.

Any support would be appreciated.

Thanks again.

lummock
19-02-2008, 18:08
after some tinkering (reinstalling all images) the .mldonkey protected files are fixed.
mt-daapd is working well
and i'm about to install ushare..
this thing is actually becoming great
r

xvibe
19-02-2008, 23:25
Could you guys explain how do you open the ports on the router for using mldonkey for torrents and edonkey downlods?
thanx!

dalanik
20-02-2008, 09:11
Could you guys explain how do you open the ports on the router for using mldonkey for torrents and edonkey downlods?
thanx!

It's been explained elsewhere, but I'll give you a quick summary :-)

As you can see from the mldonkey config (best from web interface), these are the ports we need for torrent/donkey:


Network Port Type
BitTorrent 6882 client_port TCP
BitTorrent 6881 tracker_port TCP
Core 4080 http_port
Core 4000 telnet_port
Core 4001 gui_port
Donkey 6891 client_port TCP
Donkey 6895 client_port UDP
Donkey 20286 overnet_port TCP+UDP

It comes down to 2 torrent (client and tracker) and 2 donkey ports.

From the kfurge's instructions, we can set torrent CLIENT port (6882):


1. From the web interface, disable the routers built-in download manager
2. Telnet or ssh to the router
3. Gain root access
4. Type "nvram set kc_bt_port=XXXXX"
5. Type "nvram commit"
6. Restart the router

This will open firewall for the selected port and set it in mldonkey, so torrents would now work. But we still need to open another 3 ports on the firewall! Assuming these are default ports, we'd do it by typing:


iptables -I INPUT 6 -p tcp --dport 6881 -j ACCEPT
iptables -I INPUT 7 -p tcp --dport 6891 -j ACCEPT
iptables -I INPUT 8 -p udp --dport 6895 -j ACCEPT

Ofcourse, if you want these changes to stick, you need to put these commands to a script that will be executed on startup. (hm, i'm not entirely certain on this, but it can't hurt to open it on every router boot). I edited kfurge's iptables_mldonkey.sh located in /opt/etc/init.kc:

http://wl700ge.lanik.org/mld03.jpg

This is how I did it, just added it to the begining of the script:

http://wl700ge.lanik.org/mld04.jpg

and ofcourse, if you changed any of the ports, you need to specify that in mldonkey by web interface or sancho:

http://wl700ge.lanik.org/mld01.jpg

http://wl700ge.lanik.org/mld02.jpg

Hope this helps,

D.

xvibe
21-02-2008, 23:28
Super many thanx dalanik!
I think this was the best tutorial that i've read here....

lcstyle
09-03-2008, 07:40
Hi!
After starting mlnet.lite says "can't load library 'libncurses.so.5' "
How can i install this?

Thank you/

this is undocumented but i discovered this :

as long as you have libncurses installed just set your LD_LIBRARY_PATH to /usr/lib by typing export LD_LIBRARY_PATH=/usr/lib/

that should do it for you!

xvibe
09-03-2008, 23:27
My ISP supply me dinamic IPs so as soon the IP is changed the wya that danalik told me to open the firewall doesn't work. I need to re-type all the iptables script again. Any solution for this? Why I can't open the firewall, with virtual server, in the web manager interface like I did for using torrent, emule in my PC?

dalanik
09-03-2008, 23:41
My ISP supply me dinamic IPs so as soon the IP is changed the wya that danalik told me to open the firewall doesn't work. I need to re-type all the iptables script again. Any solution for this? Why I can't open the firewall, with virtual server, in the web manager interface like I did for using torrent, emule in my PC?

Hm, firewall shouldn't have to do anything with your IP. My ISP also changes my IP adress sometimes. At worst, all you have to do is reboot the router, even though I don't see why should even that be necessary.

You can't do virtual server stuff, because you are using torrent on ROUTER, which is the same device :-) You can do it for your PC, because ROUTER is forwarding packets to your PC. It can't forward packets to itself (or can it?).

Chech the configuration of mldonkey in sancho, you should ENABLE "discover IP" option in settings, as here:

http://wl700ge.lanik.org/ipconf.jpg

D.

xvibe
10-03-2008, 23:55
I already have sancho configured in that way but it doesn't work.
After some time (ip change) I get lowid in the edonkey servers and the ports are not open.

dalanik
11-03-2008, 00:08
I already have sancho configured in that way but it doesn't work.
After some time (ip change) I get lowid in the edonkey servers and the ports are not open.

What connection do you have, ADSL or CABLE?

I.e. I have cable, and my IP stays the same until I turn on/off my cable modem (and sometimes even if I do that, it remains the same)...

D.

xvibe
11-03-2008, 23:26
I've a DSL connection and my ISP (do me (not) the favor of) change the IP during the connection some times even during the connection up time.
So, I've to continually do the iptables "trick".

freesman
02-09-2008, 23:11
after some tinkering (reinstalling all images) the .mldonkey protected files are fixed.
mt-daapd is working well
and i'm about to install ushare..
this thing is actually becoming great
r

How you fixed protected files? I have same problem with deleting files in .mldonkey folder.
thanks!

mawr
09-09-2008, 14:08
How you fixed protected files? I have same problem with deleting files in .mldonkey folder.
thanks!

Telnet to router as root and remove it with rm shell command.

benlude
01-11-2008, 21:54
Hello all!
Would somebody be able to tell me what is wrong when i want to run (for the first time) the S08mlnet script i get a segmentation fault error?
The mlnet.lite dont want to run... :(

Nostry
14-04-2009, 18:12
Hi there,
In Oleg's mlnet directory (http://oleg.wl500g.info/bin/mlnet/) the newest version is 2.9.3 and it's called "mlnet.byte.gz" instead of "mlnet.lite.gz" What's strange, after umpacking & renaming to "mlnet.lite" it doesn't work. What's going on?

On mldonkey's homepage I see, that there's a 3.0 version with some bugs fixed. Is there a 3.0 version of mlnet.lite for ASUS routers availible?

gingishan1
26-04-2009, 06:53
Hi,
How can i install the latest mldonkey version?