break

DS101G - MLDonkey Howto

Please note, i am not the author of the following howto, i only include it in order to hopefully help you guys out, if the author wants to get in touch to give support for this article he is more than welcome to :)

Install MLDonkey on DS101G+ - HOWTO
(and Power PC ulterior versions with luck)
Version française
Tar archives

—————————————————————

First, I remind you that download content protected by intellectual
property is baaaaaaaad. Now, let’s start.

DS101G+ is a NAS (network attached storage) using a powerpc processor
on which work a unix (linux busybox).
So, it’s possible to copy mldonkey working for PowerPC architecture
and its dependances to be able to use MLDonkey.

This tutorial has been written using a DS101G+ but its in theory possible
to do the same thing on a DS106e. You need to be someone that is not afraid
of Unix shell and can think a minimum. (a part of the tutorial have to be
adapted
if the situation needed)
Moreover, I don’t guarantee that your NAS function after these modifications
(in fact especially if you silly copy-paste the part where you have to install
the dependances)

1. Prerequired
2. Downloading
3. Dependances copy
4. Create a dedicated user (almost optionnal)
5. Configuration
6. Building MLdonkey
7. Complementary Information
8. License

###############
1. Prerequired
###############

First, access to the NAS by a shell access (SSH, telnet, etc.)
For that, there are some good tutorials on the web.

-> Google, http://nslu2-linux.org

########################
2. Downloading
########################

The full complete package (MLnet + dépendances)

wget http://nastools/mldonkey/mldonkey-2.8.2.tar.gz
tar -xzf mldonkey-2.8.2.tar.gz

Others (and most recent) files are available in :
http://nastools.free.fr/mldonkey

#############################
3. Dependances copy
#############################

Roughly, we are going to copy binary library to the linux default directories
then
to create symbolic links that allow MLDonkey to use these files.

All that things happen exclusively in /usr/lib

!! WARNING READ THIS BEFORE STARTING !!

It may be that library copying, overwrites some existing files (because
of updates or different versions of NAS)
You have especially to take care to not overwriting new versions of a
library. To know a library version, you have to see the version number in
the real file name (the one that is not a symbolic link)

To differ a symbolic link of a real file :

ls -l

lrwxrwx(…)9 00:32 libcrypto.so -> libcrypto.so.0.9.7
lrwxrwx(…)9 00:32 libcrypto.so.0 -> libcrypto.so.0.9.7
-rw-r–(…)6 05:16 libcrypto.so.0.9.7

The first 2 lignes are symbolic links and the last line is a real file.

!! WARNING READ THIS BEFORE STARTING !!

cd mldonkey-2.8.2

cp libz.so.1.2.2 /usr/lib/
ln /usr/lib/libz.so.1.2.2 /usr/lib/libz.so.1
ln /usr/lib/libz.so.1 /usr/lib/libz.so

cp libbz2.so.1.0.2 /usr/lib/
ln -s /usr/lib/libbz2.so.1.0.2 /usr/lib/libbz2.so.1.0
ln -s /usr/lib/libbz2.so.1.0 /usr/lib/libbz2.so

cp libgd.so.2.0.33 /usr/lib/
ln -s /usr/lib/libgd.so.2.0.33 /usr/lib/libgd.so.2
ln -s /usr/lib/libgd.so.2 /usr/lib/libgd.so

!! WARNING READ THIS BEFORE STARTING !!

cp libjpeg.so.62.0.0 /usr/lib/
ln -s /usr/lib/libjpeg.so.62.0.0 /usr/lib/libjpeg.so.62
ln -s /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so

cp libfreetype.so.6.3.5 /usr/lib/
ln -s /usr/lib/libfreetype.so.6.3.5 /usr/lib/libfreetype.so.6
ln -s /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.so

cp libpng12.so.0.1.2.8 /usr/lib/
ln -s /usr/lib/libpng12.so.0.1.2.8 /usr/lib/libpng12.so.0
ln -s /usr/lib/libpng12.so.0 /usr/lib/libpng12.so

!! WARNING READ THIS BEFORE STARTING !!

##################################################
4. Création d’un utilisateur dédié (presque optionnel*)
###################################################

* you do as you want to do but its almost must-do !
because the shell is installed of a small partition of 30 mB
and the root directory is in this small partition

MLdonkey is user-program that can function without root rights.
So you can create a dedicated user to run the MLdonkey daemon.

First, if it not already done, you have to create a /volume1/hom directory
and mount it on /home.

mkdir -p /volume1/home
mkdir -p /home
mount -o bind /volume1/home /home

Create the mldonkey user :

adduser mlnet

Now, open a session under mlnet identity.

su mlnet

####################
5. Configuration
####################

First, run the mlnet process gived in the package.

./mlnet&

Remark : you can put mlnet anywhere you want, it is not important.
Usually, under linux personnal compiled server daemon are stocked in
/usr/local/sbin.

If it’s displayed “Core started” c’est bien. (good)

Now, we are going to allow your pc to connect to the web interface.

Kill mldonkey process : kill %1

Access to the configuration file :

vi ~/.mldonkey/downloads.ini

To use insertion mode (to write) : [ESC], [I]
(in case of cataclysm you can leave without save : [ESC], [:], q!, [ENTER])

Search allowed_ips ligne.
(you can *** the file with your hand or use : [ESC], ?allowed_ips, [ENTER])

Complete by :

allowed_ips = [
"127.0.0.1";
"VOTRE_IP";]

You can use joker by using 255 :
ex : 192.168.0.255 <=> 192.168.0.*
255.255.255.255 <=> *.*.*.*

Save the file and leave : [ESC], [:], wq, [ENTER]

Restart mldonkey : ./mlnet &
Then on your PC : http://ip_syno:4080/

####################
6. MLdonkey Building
####################

You can yourself build the last MLDonkey Version by installing a
Debian chroot jail :
http://www.nslu2-linux.org/wiki/DS101/Debian

To compile MLDonkey : http://www.debianaddict.org/article61.html
(French link but command lines can help)

################################
7. Complementary Information
################################

Library used by mlnet :

ldd /usr/sbin/mlnet

libz.so.1 => /usr/lib/libz.so.1 (0×0ffcd000)
libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0×0ff9c000)
libgd.so.2 => /usr/lib/libgd.so.2 (0×0ff2a000)
libpthread.so.0 => /lib/libpthread.so.0 (0×0feb9000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0×0fe77000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0×0fddc000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0×0fd96000)
libm.so.6 => /lib/libm.so.6 (0×0fd01000)
libdl.so.2 => /lib/libdl.so.2 (0×0fcde000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0×0fc05000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0×0fbd7000)
libc.so.6 => /lib/libc.so.6 (0×0fa78000)
/lib/ld.so.1 => /lib/ld.so.1 (0×30000000)

All library (content also symbolic links) are available there :
http://nastools.free.fr/mldonkey/mldonkey_libs.tar.gz

#############
8. License
#############

Copyright (c) CZH.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts. A copy of the license is in fdl.txt.

ds-101g+ ds-106e ds-106 cs-406 MLdonkey Synology
Compteur gratuit

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.