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 binaryI 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-x09Copy 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 directoryTo 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/DownloadStep 4 Startup scriptThe 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 AutostartHere 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 TestReboot the TS-x09 and check the files:
/share/Public/.mldonkey/mldonkey.sh.log and
/share/Public/.mldonkey/mlnet.logThe
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