Difference between revisions of "Mldonkey - multi-network file-sharing client"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(MIPSel)
(PowerPC)
Line 63: Line 63:
 
A newer version of mldonkey, MLNet 2.8.1, compiled for a KuroBox Pro (PPC) is available at:
 
A newer version of mldonkey, MLNet 2.8.1, compiled for a KuroBox Pro (PPC) is available at:
 
http://cisler.net/kuro/mlnet/mlnet-2.8.1.tar.gz
 
http://cisler.net/kuro/mlnet/mlnet-2.8.1.tar.gz
 +
 +
If someone could please host this (my bandwidth is limited), it would be appreciated. REMOVE.THIS.NOSPAM.fcisler.AT.gmail.com
  
 
===MIPSel===
 
===MIPSel===

Revision as of 18:12, 1 February 2007

Originally by marge and frontalot from linkstationwiki.org

mldonkey_logo.gif

Contents

Background

MLDonkey[1] is an open source, free software multi-network peer-to-peer application that supports the BitTorrent protocol[2] . It is also the name of the peer-to-peer overlay network that application uses. Originally a Linux client for the eDonkey protocol[3] MLdonkey is written in the Ocaml programming language and licensed under the GPL. The application separates the user interface (which can be a web browser, telnet, or a third-party GUI application)[4] and the code that interacts with the peer-to-peer networks[5][6][7].

MLDonkey supports the following network protocols, either partially or completely:

Installation

FreeLink

You may need to use the Unstable (Debian) branch:

  1. Get access to packages from the Debian unstable branch
  2. Then install mldonkey by
apt-get install mldonkey-server

ARM9

A longer test-period has shown, that none of the listet ways to get MLdonkey running on the LS-Pro is stable. After approximately 5 minutes the MLdonkey-Server will freeze without an error-message on the console or in the mlnet-log.

apt-get

apt-get update                   # update APT-Repository
apt-get install mldonkey-server  # install MLDonkey

compile latest SVN

If you would like to have the latest SVN-Version (better speed etc.) then you should do the following steps. But be careful: Currently the latest SVN-Version is very unstable on the ARM-System. It'll freeze after a few minutes. There's a patch (svn.debian.org [1]) which should fix the problem but i didn't have success, it's still unstable.

cd /mnt/disk1/share/source/
apt-get install ssh cvs patch autoconf gcc g++ libc-dev make zlib1g-dev libbz2-dev libgd2-noxpm-dev
cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/mldonkey co -P mldonkey
./configure
make 
cp ./mlnet /root/.mldonkey/

Problems (both ways)

There are problems within the ARM9-Version. After some starts the mlnet-Service will shut down automatically with an errormessage. The Problem is caused by a file called mlnet_strings.EN_ANSI_X3.4-1968. I've found a workaround: You have to delete the file before mlnet starts. Mlnet will create the file as soon as it is started.

I've created a file called run_mldonkey in the mldonkey-dir (/root/.mldonkey/):

#! /bin/sh
#
cd /root/.mldonkey/
rm /root/.mldonkey/mlnet_strings.EN_ANSI_X3.4-1968
mlnet > /dev/null 2>&1 &

After that i have created a symbolic link within the /etc/rc2.d-Directory to get it automatically started. First tests were successfully, mldonkey seems to run stable

OpenLink

PowerPC

This project aims to offer the latest MLDonkey P2P client and additional utilities precompiled and packaged for the PPC LinkStation. This release is compiled without GUI support. See http://www.nongnu.org/mldonkey/ for more information. You may download the latest version from the downloads area.

ppc-mldonkey-2.5.30.16–1

  • mldonkey-2.5.30.16
  • ed2k_hash
  • make_torrent

A newer version of mldonkey, MLNet 2.8.1, compiled for a KuroBox Pro (PPC) is available at: http://cisler.net/kuro/mlnet/mlnet-2.8.1.tar.gz

If someone could please host this (my bandwidth is limited), it would be appreciated. REMOVE.THIS.NOSPAM.fcisler.AT.gmail.com

MIPSel

Older binaries + packages are available here. But there was feedback that they did no work properly because of the missing libmagic. So you would have to install the development tools which should fix this dependancy.

  1. Precompiled C development environment, running on the LS
  2. Then
mkdir /mnt/hda/temp 
cd /mnt/hda/temp 
wget http://www.unet.univie.ac.at/~a0025690/mips-binaries/mldonkey_mips-2.7.6.tar.gz 
tar -xzvf mldonkey_mips-2.7.6.tar.gz 
./install.sh

Compile from Source

You can find the latest sources of mldonkey at the mldonkey project at sourceforge. First install the development tools.

  1. Precompiled C development environment, running on the LS
  2. Then mldonkey can be compiled by:
wget http://easynews.dl.sourceforge.net/sourceforge/mldonkey/mldonkey-2.7.7.tar.bz2
tar -xjf mldonkey-*.tar.bz2
cd mldonkey-* 
./configure --enable-batch --disable-gui
make
make install

you will need a startscript (/etc/init.d/mldonkey) for mldonkey.

#! /bin/sh
export USER="root"
NAME=mldonkey
INSTALLEDPATH=/root/.mldonkey
start()
{
su - $USER -c"/usr/local/bin/mlnet&" 
}
stop()
{
su - $USER -c"kill -15 `cat $INSTALLEDPATH/mlnet.pid`"
su - $USER -c"sleep 5"
}
case "$1" in
    start)
        echo -n "Starting mldonkey: "
        start
        ;;
    stop)
        echo -n "Stopping mldonkey "
        stop
        ;;
    restart)
        echo -n "Restarting mldonkey "
        stop
        start
        ;;
    force)
   	 echo -n "Forcing start of mldonkey "   
    	 rm $INSTALLEDPATH/config_files_space.tmp
    	 rm $INSTALLEDPATH/mlnet.pid
   	 start
        ;;
    *)
        echo "Usage: /etc/init.d/$NAME {start|stop|restart|force}"
        exit 1
        ;;
esac
exit 0

you can download it directly from here here.

cd /etc/init.d
wget http://www.unet.univie.ac.at/~a0025690/scripts/mldonkey
chmod 755 mldonkey

Additional Info

mldonkey should be runnable now by executing

/etc/init.d/mldonkey start

I had to add .sh That is what I use:

/etc/init.d/mldonkey.sh start

if you want mldonkey to be started automatically at startup:

FreeLink

ln -s /etc/init.d/mldonkey /etc/rc2.d/S99mldonkey

OpenLink

ln -s /etc/init.d/mldonkey /etc/rc.d/rc2.d/S99mldonkey

References

  1. Wikipedia: MLDonkey
  2. Comparison of BitTorrent software
  3. Comparison of eDonkey software
  4. Sancho (n): the premier graphical user interface for p2p cores
  5. MLDonkey/Mulus File Archive
  6. The official MLDonkey Community and News page
  7. MLDonkey Project Wiki - the Official Wiki of MLDonkey