Kurobox NAS-Central Forums

Welcome to the Kuro Community
It is currently Mon Mar 19, 2018 8:27 am

All times are UTC-06:00

Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: mldonkey 2.8.1 PPC BUILD
PostPosted: Sun Nov 12, 2006 10:13 pm 

Joined: Fri May 12, 2006 12:58 pm
Posts: 4
My little Kuro has found quite a usefull purpose at home - mldonkey.

For those of you not familiar, google mldonkey.

For the impatient: It's a headless (no gui) file sharing program. FasTrak, Gnutella, Gnutella 2, BitTorrent, Kazza, LimeWire, etc etc. It also features a web front end and telnet-like interface.

There's a excellent front-end piece of software (allows you to control mldonkey from a windows/linux/mac OS) called Sancho.

I won't be posting links to either one, but since the software takes in excess of 6 hours to compile on a Kuro Box, I'll post the binaries and startup scripts. Link follows below.

This software was compiled on a 2.4 Debian kernel. Only options passed to it were --disable-gui.


1) Log into your kuro
2) get root access
3) add a account, mldonkey (man adduser). NO LOGIN ACCESS!
4) mkdir /mnt/mldonkey && mkdir /mnt/mldonkey/bin && cd /mnt/mldonkey/bin
5) download mlnet-2.8.1.tar.gz (wget http://www.cisler.net/kuro/mlnet/mlnet-2.8.1.tar.gz)
6) tar xzf mlnet-2.8.1.tar.gz
7) cd /mnt && chown -R mldonkey mldonkey
8 ) cd /usr/local/bin && touch mldonkey.sh && chmod 775 mldonkey.sh
9) open up mldonkey.sh in your favorite editor (nano mldonkey.sh)
10) This script below assumes that you have bash installed. If not, modify accordingly (NOTE: Original script was apparently written by "mace", no other copyright. This is MY script which probally contains only a small amount of his original code:
#Original Script by "mace"
#modified script by xFred
#contact via kurobox.org, handle xFred any questions
MLDIR="/mnt/mldonkey/" #set to mldir
MLBIN="/mnt/mldonkey/bin/mlnet" #set to location of mlnet
eval exec $MLBIN -run_as_user $MLUSR > /dev/null 2>&1 &
#this next step is dirty..if you can clean it up for me, THANKS!
if [ -f /var/run/mldonkey.pid ]; then
#mldonkey was started via the init script and we have a PID
#unfortunately, the PID is of this script. Increment the PID to
#the correct proc
S=`cat /var/run/mldonkey.pid`
echo $D > /var/run/mldonkey.pid

11) save this script
12) chown root mldonkey.sh && chmod 775 mldonkey.sh
---Now we have to install our init script.
13) cd /etc/init.d && touch mldonkey
14) open mldonkey (nano mldonkey)
15) edit script to follow as below (again, original script "mace". This is lightly modified:
#Original Script by "mace"
#modified script by xFred
#contact via kurobox.org, handle xFred any questions
DAEMON=/usr/local/bin/mldonkey.sh   #path to mldonkey.sh
NAME=mldonkey   #display name
DESC="MLDonkey, multinet peer-to-peer server/client"   #display desc

test -x $DAEMON || exit 0

set -e

case "$1" in
        echo -n "Starting $DESC: $NAME"
        start-stop-daemon --start -m \
                --pidfile /var/run/$NAME.pid --exec $DAEMON
        echo "."
        echo -n "Stopping $DESC: $NAME "
        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
                --exec $DAEMON
        echo "."
   echo -n "Restarting $DESC: $NAME"
        start-stop-daemon --stop --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON
        sleep 1
        start-stop-daemon --start --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON
        echo "."

        echo "Usage: $N {start|stop|restart|force-reload}" >&2
        exit 1

exit 0

16) Save the file.
17) chown root.root mldonkey && chmod 755 mldonkey

That's it!

some notes:
-Original mldonkey/mlnet, startup script, and shell scripts were found on the linkstation wiki or msg board. Link is lost, cannot find now. mlnet (binary) is of my creation, scripts are modified by me.
-The original script called start-stop-daemon --chuid. I found mlnet DID NOT WORK with that. Instead, i use the paramater -run_as_user within mlnet. <i>This paramater relies upon mldonkey to chroot itself. I'm not positive on the security of this, but it's enough for myself.
-Upon startup of mldonkey (PLEASE use init script - /etc/init.d/mldonkey start) it should create all files in /mnt/mldonkey. Please read mldonkey wiki for info on how to configure it.
-This binary is hosted on my small server. If you wish to share, please do so - but copy it to your server.
-I provide no warranty or assurance that it will not bork your machine. It's worked fine for me, but use at your OWN RISK!

Please let me know any feedback or problems. I'll try and help!

 Post subject:
PostPosted: Fri Nov 17, 2006 2:39 am 

Joined: Sun Apr 30, 2006 4:23 pm
Posts: 5
Thanks for this great tutorial and for providing the binaries. :lol:

I have amule & torrentflux running at the moment, but I'll give it a try. Any ideas how mldonkey compares to those two in terms of memory/CPU usage? You know if KAD is working correctly with mldonkey (I can't get it to work with amule)?

Edit: I just saw that there is a package in Debian "unstable": mldonkey-server 2.8.1-2 (incuding a ppc build). Did you try this package? If yes, what was the problem with it?

 Post subject:
PostPosted: Tue Nov 28, 2006 6:53 pm 

Joined: Tue Mar 21, 2006 2:31 pm
Posts: 79
Version 2.8.2 is available:
http://puzzle.dl.sourceforge.net/source ... .2.tar.bz2

i am currently compiling it on my LS1.

i announce it when i got it built...

 Post subject:
PostPosted: Thu Nov 30, 2006 10:37 am 

Joined: Fri May 12, 2006 12:58 pm
Posts: 4
as far as memory/cpu, here's my machine currently. It's on two ~4GB torrents i believe:

18604 mldonkey 11 0 40324 38m 3572 S 1.8 31.2 391:03.93 mlnet

KAD, i believe, is not working. I'm not positive - but the mldonkey wiki should tell you further.

The package in debain unstable i was not aware of. Is it for PPC?

I haven't compiled 2.8.2 yet, but now that i see it's available i'll compile it later tonight.

 Post subject:
PostPosted: Wed Sep 05, 2007 3:08 pm 

Joined: Wed Sep 05, 2007 1:00 pm
Posts: 8
I have prepared precompiled mldonkey's binaries of last CVS releases(currently 2.9.0).
These cores are currently experimental cause I have compiled on debian running on qemu emulated ppc and arm systems.
PLease test my cores and give feedback.

Linkstation's users are reporting problems, I suppose this could be a glibc issues, but I like to know if kurobox's OSes have the same problems with DNS resolutions.
Look at my signatures for download links and discussions, please look at linkstation's software developement forums for more discssions.
PLease give feedback and suggesions about.
Hope useful

Mldonkey's ARM cores, Linux Debian: http://mldonkey.sourceforge.net/forums/ ... 6582#26582
PowerPC cores, Linux Debian: http://mldonkey.sourceforge.net/forums/ ... php?t=4834

Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC-06:00

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited