I recently compiled a static binary of mldonkey 2.8.4 for ppc....i tried to disable all stuff that isn`t available on stock linkstations/terastations. only thing still inside is that it needs bzip2.
Installation (Linkstations):
Code:
startscript/binary:
cd /usr/local/bin/
wget http://buffalo.nas-central.org/download/Users/mindbender/ppc/mlnet_2.8.4_ppc_static
mv mlnet_2.8.4_ppc_static mlnet
chmod 755 mlnet
cd /etc/init.d/
wget http://buffalo.nas-central.org/download/Users/mindbender/startscripts/mldonkey
chmod 755 mldonkey
recommended further installation:
1) create a share on your box via the webinterface called mldonkey
2) prepare the location for the config-files
cd /mnt/mldonkey
mkdir .mldonkey
cd /root
ln -s /mnt/mldonkey/.mldonkey .mldonkey
3) now run mldonkey the first time - it won`t finish completely, but it will create the config-files in /root/.mldonkey == /mnt/mldonkey/.mldonkey
/etc/init.d/mldonkey start
4) stop mldonkey again because you won`t be able to access via sanchos gui.
/etc/init.d/mldonkey stop
5) edit /root/.mldonkey/downloads.ini and edit some variables
vi /root/.mldonkey/downloads.ini
you need to edit the following variables:
a) add an IP or IP-range to allowed_IPs - row 31
mine looks that way:
allowed_ips = [
"127.0.0.1";
"192.168.1.0/24";]
b) edit the folders for incoming files and directories - row 398
mine looks that way:
shared_directories = [
{ dirname = shared
strategy = all_files
priority = 0
};
{ dirname = "/mnt/mldonkey"
strategy = incoming_files
priority = 0
};
{ dirname = "/mnt/mldonkey"
strategy = incoming_directories
priority = 0
};]
i like to have all incoming stuff in one directory. but that is personal preference.
6) start mldonkey again:
/etc/init.d/mldonkey start
7) connect with sancho`s gui - http://sancho-gui.sourceforge.net/download.phtml
and change your preferences as you like
further tips:1) many hardware routers do not support many tcp-connections
you will notice this if you are not able to surf the net properly because sometimes you can access a page and sometimes you only get a blank screen.
a) if you use an unmodded one your only possibility is to lower the connections in the mldonkey options.
b) if you use a openwrt/dd-wrt-modded router, then change the maximum tcp-connections to something higher than 2048.
(Personal experience: dd-wrt SP2 claims to support 4096 connections, but if you change it to that it won`t work...you will have troubles accessing the router at all. i use 2048 which works well. i changed the max_connections of mldonkey to 1500. no problem so far)
2) run the different protocols on non-standard-ports. do not forget to forward this ports to the Linkstation/Terastation! you won`t get a high id in ed2k for example.
3) if your router support QoS then enable it either for the protocol itself (if supported, in dd-wrt it is) or enable it for the used ports. set it to "bulk" or how it is called in your router-adminpages..make sure it does not kill your bandwidth so you cannot surf the net properly anymore. dd-wrt supports to use "premium" for "html", "http" and so on.
TERASTATION-Notes:I do not know if it works on the terastations...someone should try. of course the installation is a little different there. shares are stored in /mnt/array1 instead of /mnt. in that case you should create a share via the webinterface (/mnt/array1/mldonkey), create the folder .mldonkey in /mnt/array1/mldonkey (mnt/array1/mldonkey/.mldonkey) and create the symbolic link with /mnt/array1/mldonkey/.mldonkey
Code:
1) create the share "mldonkey" via the webinterface
2) cd /mnt/array1/mldonkey
mkdir .mldonkey
3) cd /root
ln -s /mnt/array1/mldonkey/.mldonkey .mldonkey
that should be all differences. i hope it works!
ENJOY!