[Howto] MLdonkey on TS-109/209

Why turning your 350W+ monster on to download your favourite contents when this little yet quiet 14W box can do about the same? A selection of Rtorrent, MLDonkey, Amule and yougrabber - the YouTube.com video downloader are available upon your request.

Re: [Howto] MLdonkey on TS-109/209

Postby dopee » Sun Jan 27, 2008 8:18 pm

Hello,
the donkey is eating up round about 30% of memory on my machine. So, do you have any hints on how to configure it to need less memory?
I already decreased the total number of connections, concurrent downloads and disabled the geoip stuff.
regards,
dopee
LinksysWRT54GL (AP/Tomato) + FritzboxFonWLAN (repeater) + Speedport W500V (repeater) + Netgear GS605 + QNAP TS-209 @ 16mbit ADSL
Macbook Pro C2D 2,2GHz
User avatar
dopee
Crystal Warrior
 
Posts: 104
Joined: Sat Sep 29, 2007 12:45 am
Location: Ruhrpott / Germany
NAS Model: TS-109/209 Pro

Re: [Howto] MLdonkey on TS-109/209

Postby divbo » Mon Jan 28, 2008 3:03 am

juggy wrote:
wetwilly wrote:JUST NOTICED!

MLDONKEY 2.9.3 WAS RELEASED!

Can't find it compiled though, if anyone compiles it plz do post here :)


anyone aware of a compiled version of 2.9.3


This looks promosing: http://packages.debian.org/unstable/net/mldonkey-server

I don't know enough to test it though. Will wait and see if anyone has any luck.
divbo
Cadet
 
Posts: 36
Joined: Mon Dec 03, 2007 8:33 pm

Re: [Howto] MLdonkey on TS-109/209

Postby juggy » Thu Jan 31, 2008 2:16 am

divbo wrote:
juggy wrote:
wetwilly wrote:JUST NOTICED!

MLDONKEY 2.9.3 WAS RELEASED!

Can't find it compiled though, if anyone compiles it plz do post here :)


anyone aware of a compiled version of 2.9.3


This looks promosing: http://packages.debian.org/unstable/net/mldonkey-server

I don't know enough to test it though. Will wait and see if anyone has any luck.


does anyone know if this is usable under an optiware install on qnap ts-109?
i'm not sure how you can tell if it will work on arm
i want to wait to install 2.9.3

seems like there is an arm package

http://packages.debian.org/sid/arm/mldonkey-server/download

it has this instruction - but can i install using optiware?

Code: Select all
If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.

You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

deb http://ftp.de.debian.org/debian sid main

Replacing ftp.de.debian.org/debian with the mirror in question.
juggy
Crystal Warrior
 
Posts: 106
Joined: Wed Nov 14, 2007 3:01 am

Re: [Howto] MLdonkey on TS-109/209

Postby jasebri » Thu Jan 31, 2008 4:39 pm

first of all excuse my absolute ignorance in this matter

please I need to know if all of these instructions are linux related, and if it is possible to install mldonkey in ts109 running windows

thank you
jasebri
Cadet
 
Posts: 98
Joined: Tue Jan 22, 2008 10:53 pm

Re: mldonkey start on reboot (SOLVED)

Postby puggelli » Thu Jan 31, 2008 5:21 pm

SlrG wrote:After much experimenting I still don't know why the startup script doesn't work if it is placed directly into the autorun.sh.

What does work however is to add it to /mnt/HDA_ROOT/.config/crontab



...snip...


Hi all,

I found where is the problem with autorun.sh. When it is executed the $HOME variable is not defined yet. And so it is executed in the root (/) directory. Check in it, you should see the /.mldonkey directory. But the root (/) directory is not big enough, and so the mlnet process exit immediately.

The easiest solution is to link the /.mldonley to another directory for example:

Code: Select all
cd /
ln -s /share/MD0_DATA/.mldonkey .


For your convenience here you have the scripts I use:

File: mldonkey.sh (equivalent to mldonkey-start.sh posted in before):
Code: Select all
#!/bin/sh
#
# mldonkey start-up script
#

export DOT_MLDONKEY_HOME=/share/MD0_DATA/.mldonkey
export MLDONKEY_HOME=/share/MD0_DATA/mldonkey

export LOG=$DOT_MLDONKEY_HOME/mldonkey.sh.log
export HOME=/root

echo $(date) > $LOG

cd $HOME

if [ ! -d mldonkey ] ; then
        echo "Create mldonkey home link" >> $LOG
        ln -s $MLDONKEY_HOME .
fi

if [ ! -d .mldonkey ] ; then
        echo "Create .mldonkey home link" >> $LOG
        ln -s $DOT_MLDONKEY_HOME .
fi

echo "Start mlnet" >> $LOG
$MLDONKEY_HOME/mlnet >> $LOG 2>&1



And this is my autorun.sh script:
Code: Select all
#!/bin/sh
#

/share/MD0_DATA/mldonkey/mldonkey.sh &


In case of problems the mldonkey.sh.log file contains the mlnet output (stdout and stderr), with it will be easy understand what happend. Here there is my one:
Code: Select all
Thu Jan 31 09:57:26 CET 2008
Create mldonkey home link
Create .mldonkey home link
Start mlnet
2008/01/31 09:57:28 [cO] Starting MLDonkey 2.9.2.CVS ...
2008/01/31 09:57:28 [cO] Language EN, locale ANSI_X3.4-1968, ulimit for open files 1024
2008/01/31 09:57:28 [cO] MLDonkey is working in /root/.mldonkey
2008/01/31 09:57:28 [Gettext] Loading language resource mlnet_strings.EN_ANSI_X3.4-1968
2008/01/31 09:57:28 [cO] loaded language resource file
2008/01/31 09:57:28 [DNS] Resolving [NAS-1] ...
2008/01/31 09:57:29 [DNS] Resolving [www.mldonkey.org] ...
2008/01/31 09:57:29 [cO] Logging in /root/.mldonkey/mlnet.log
2008/01/31 09:58:02 [dMain] Core started



best regards
gianluca
puggelli
Cadet
 
Posts: 20
Joined: Wed Jan 30, 2008 5:08 pm

Re: [Howto] MLdonkey on TS-109/209

Postby juggy » Mon Feb 04, 2008 4:09 am

@ puggelli + others


thanks for the info

I am now confused about the steps to install & where to put everything
I am hoping that someone can post an end to end guide on installing MLdonkey 2.9.3.1

I have optiware installed (not sure if that makes a difference)

need to get info on where to put package and what sym links to create / autorun scripts etc etc

Thanks,

Kevin
juggy
Crystal Warrior
 
Posts: 106
Joined: Wed Nov 14, 2007 3:01 am

Re: [Howto] MLdonkey on TS-109/209

Postby baniels » Mon Feb 04, 2008 9:30 am

I second that.

juggy wrote:@ puggelli + others


thanks for the info

I am now confused about the steps to install & where to put everything
I am hoping that someone can post an end to end guide on installing MLdonkey 2.9.3.1

I have optiware installed (not sure if that makes a difference)

need to get info on where to put package and what sym links to create / autorun scripts etc etc

Thanks,

Kevin
TS-209 Pro
baniels
Cadet
 
Posts: 67
Joined: Fri Jan 25, 2008 4:03 am

Re: [Howto] MLdonkey on TS-109/209

Postby jasebri » Mon Feb 04, 2008 5:36 pm

I second it too.


I'm lost as an octopus in a garage.
jasebri
Cadet
 
Posts: 98
Joined: Tue Jan 22, 2008 10:53 pm

Re: [Howto] MLdonkey on TS-109/209

Postby puggelli » Wed Feb 06, 2008 10:39 pm

For the octopuses lost in a garage I wrote a sort of How-To. Here you have it

How to install mldonkey on TS-x09


-------------------------------------------------------------------
WARNING YOU DOING IT AT YOUR OWN RISK I TAKE NO RESPONSIBILITY FOR
ERRORS AND PROBLEMS BECAUSE OF DOING THIS
-------------------------------------------------------------------


Step 1 Download mldonkey binary
I found only the version 2.9.2 in the link: http://mldonkey.sourceforge.net/forums/ ... php?t=4825
(If some one has a newer version please post the info)

Step 2 Install mldonkey binary in TS-x09
Copy the mldonkey-cores-2.9.2CVS-arm-20071119.tar.bz in the TS-x09 in the Public directory and extract using the following commands (The /share/Public directory is valid for TS-209Pro, I don't know if it is present in other versions)

Code: Select all
>ssh -l admin IP-ADDRESS

[~] # cd /share/Public
[/share/Public] # bzcat mldonkey-cores-2.9.2CVS-arm-20071119.tar.bz | tar -xvf -
[/share/Public] # mv mldonkey-distrib-2.9.2.CVS mldonkey



Step 3 Create .mldonkey directory
To create .mldonkey directory use the following commands:

Code: Select all

[/share/Public] # export HOME=/share/Public
[~] # mldonkey/mlnet
2008/02/06 13:20:08 [cO] Starting MLDonkey 2.9.2.CVS ...
2008/02/06 13:20:08 [cO] Language EN, locale ANSI_X3.4-1968, ulimit for open files 1024
2008/02/06 13:20:08 [cO] MLDonkey is working in /share/Public/.mldonkey
2008/02/06 13:20:08 [Gettext] Loading language resource mlnet_strings.EN_ANSI_X3.4-1968
2008/02/06 13:20:08 [cO] loaded language resource file
2008/02/06 13:20:08 [DNS] Resolving [NAS-1] ...
2008/02/06 13:20:08 [DNS] Resolving [www.mldonkey.org] ...
2008/02/06 13:20:09 [cO] Logging in /share/Public/.mldonkey/mlnet.log
2008/02/06 13:20:10 [dMain] Core started
^C
[~] #


Note: the ^C is Ctrl+C and it is used to stop the mlnet program

Now the /share/Public/.mldonkey directory is created. I suggest to have some useful links:

Code: Select all
[/share/Public] # mkdir Download
[/share/Public] # cd .mldonkey
[/share/Public] # mv -R incoming shared temp torrents ../Download
[/share/Public] # ln -s ../Download/incoming .
[/share/Public] # ln -s ../Download/shared .
[/share/Public] # ln -s ../Download/temp .
[/share/Public] # ln -s ../Download/torrents .


Now all the files downloaded and shared by mldonkey can be found in /share/Public/Download

Step 4 Startup script
The mldonkey startup script is the following:

Code: Select all
#!/bin/sh
#
# $HOME/mldonkey/mldonkey.sh
#

export HOME=/share/Public
export LOG=$HOME/.mldonkey/mldonkey.sh.log

rm -f $HOME/.mldonkey/*.tmp

echo $(date) Startup mldonkey >> $LOG
$HOME/mldonkey/mlnet >> $LOG 2>&1


Save it in /share/Public/mldonkey/mldonkey.sh.

Step 5 Autostart
Here you have the commands used to configure the autostart:

Code: Select all
[~] # mount /dev/mtdblock5 /tmp/config
[~] # cd /tmp/config/
[/tmp/config] # echo "/share/Public/mldonkey/mldonkey.sh &" >> autorun.sh
[/tmp/config] # chmod +x autorun.sh
[/tmp/config] # cd
[~] # umount /tmp/config


Step 5 Test
Reboot the TS-x09 and check the files: /share/Public/.mldonkey/mldonkey.sh.log and /share/Public/.mldonkey/mlnet.log
The mldonkey.sh.log should be like:

Code: Select all
Wed Feb 6 15:10:32 CET 2008 Startup mldonkey
2008/02/06 15:10:32 [cO] Starting MLDonkey 2.9.2.CVS ...
2008/02/06 15:10:32 [cO] Language EN, locale ANSI_X3.4-1968, ulimit for open files 1024
2008/02/06 15:10:32 [cO] MLDonkey is working in /share/Public/.mldonkey
2008/02/06 15:10:33 [Gettext] Loading language resource mlnet_strings.EN_ANSI_X3.4-1968
2008/02/06 15:10:33 [cO] loaded language resource file
2008/02/06 15:10:33 [DNS] Resolving [NAS-1] ...
2008/02/06 15:10:33 [DNS] Resolving [www.mldonkey.org] ...
2008/02/06 15:10:33 [cO] Logging in /share/Public/.mldonkey/mlnet.log
2008/02/06 15:11:05 [dMain] Core started


Step 6 Enjoy
To connect to the mldonkey web server use http://IP-ADDRESS:4080 Where IP-ADDRESS is the address of your TS-x09.

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

Let me know if something is not working (post mlnet.log and mldonkey.sh.log).

regards
gianluca
puggelli
Cadet
 
Posts: 20
Joined: Wed Jan 30, 2008 5:08 pm

Re: [Howto] MLdonkey on TS-109/209

Postby baniels » Wed Feb 06, 2008 10:43 pm

puggelli , thank you so much for putting in the time to make that how-to!

I will try this today and report my experience here.
TS-209 Pro
baniels
Cadet
 
Posts: 67
Joined: Fri Jan 25, 2008 4:03 am

PreviousNext

Return to BitTorrent / MLDonkey Modz

Who is online

Users browsing this forum: No registered users and 6 guests