Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Jan 19, 2018 2:43 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Apr 25, 2007 4:24 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
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!


Top
   
PostPosted: Sat Jun 16, 2007 3:41 am 
Offline
Newbie

Joined: Thu Jan 18, 2007 1:58 am
Posts: 47
Location: AK
Giving this a try on my terastation, Mindbender.
After setting up the directories and the symlink it starts and creates the config files (or some of them.)
Issued stop command and edited downloads.ini with vi.

Fire it back up and runs down to resolving mldonkey.net and then goes back to command prompt-no errors displayed.
Can't connect to it via web interface (nas:4080) or sancho (4001) from windows box.
Honestly, I'm not sure how to tell if it's actually running. Sorry still a bit of a nix noob.

Issuing the stop command gives a reference to /root/.mldonkey/mlnet.pid:no such file or directory-and another line about kill: useage:, etc.
I see reference to this file in your etc/init.d/mldonkey script.

Browsing the /root/.mldonkey folder or using <find -name mlnet*> indicates that the mlnet.pid file does not exist on this box.
(I seem to be getting that a lot lately-couldn't find smb.sh on this machine to save my life either :p )

Anyway, is the missing file supposed to be created by mldonkey on initial run? I could create it myself but I assume there's supposed to be something in it!
Or perhaps delete everything from /root/.mldonkey and let it set itself up again.
Any suggestions?

_________________
TeraStation HD-H0.6TGL | Raid 5 - XFS | Failsafe 2.14a
OpenSSH | Busybox 1.5 | PPC Tools 2.1
Libraries Update & Samba 3.0.25 AD v3


Top
   
PostPosted: Sat Jun 16, 2007 4:21 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
just execute

ps aux

after you executed

/etc/init.d/mldonkey start

then you see if it is running.

never edit any config files while mldonkey is running! the file will be overwritten when mldonkey is stopped.


Top
   
PostPosted: Sat Jun 16, 2007 8:01 pm 
Offline
Newbie

Joined: Thu Jan 18, 2007 1:58 am
Posts: 47
Location: AK
OK, ps aux showed no mldonkey process. I then did

Code:
root@NAS:~/.mldonkey# rm -r *
root@NAS:~/.mldonkey# ls
root@NAS:~/.mldonkey# /etc/init.d/mldonkey start
Starting mldonkey root@NAS:~/.mldonkey# 2007/06/16 10:46:30 [cO] Starting MLDonk
2007/06/16 10:46:30 [cO] Language EN, locale ANSI_X3.4-1968, ulimit for open fil
2007/06/16 10:46:30 [cO] MLDonkey is working in /root/.mldonkey

2007/06/16 10:46:30 [cO] creating new MLDonkey base directory in /root/.mldonkey

2007/06/16 10:46:30 [cO] loaded language resource file
2007/06/16 10:46:30 [DNS] Resolving [NAS] ...
2007/06/16 10:46:31 [DNS] Resolving [www.mldonkey.org] ...
2007/06/16 10:46:32 [cO] Logging in /root/.mldonkey/mlnet.log
2007/06/16 10:46:33 [dMain] Core started
root@NAS:~/.mldonkey# /etc/init.d/mldonkey stop
root@NAS:~/.mldonkey# ls
bittorrent.ini    mldonkey_submit                  shared_files.ini
donkey.ini        mlnet.log                        shared_files_new.ini
downloads.ini     mlnet_strings.EN_ANSI_X3.4-1968  statistics.ini
fileTP.ini        mlsubmit.reg                     stats.ini
file_sources.ini  old_config                       stats_bt.ini
files.ini         onlinesig.dat                    stats_mod.ini
friends.ini       searches                         temp
gnutella.ini      searches.ini                     torrents
gnutella2.ini     servers.ini                      users.ini
incoming          shared                           web_infos
root@NAS:~/.mldonkey#

So it recreates the configuration files from scratch.
Now I'll vi up the /.mldonkey/dowloads.ini file again and see if any difference from previous install attempt.

[EDIT] Still no love. Modded the downloads.ini file and restarted:
Code:
root@NAS:~# /etc/init.d/mldonkey start
Starting mldonkey root@NAS:~# 2007/06/16 12:02:07 [cO] Starting MLDonkey 2.8.4 ...
2007/06/16 12:02:07 [cO] Language EN, locale ANSI_X3.4-1968, ulimit for open files 1024
2007/06/16 12:02:07 [cO] MLDonkey is working in .
2007/06/16 12:02:07 [Gettext] Loading language resource mlnet_strings.EN_ANSI_X3.4-1968
2007/06/16 12:02:08 [cO] loaded language resource file
2007/06/16 12:02:08 [DNS] Resolving [NAS] ...
2007/06/16 12:02:08 [DNS] Resolving [www.mldonkey.org] ...
2007/06/16 12:02:13 [cO] Logging in ./mlnet.log
2007/06/16 12:02:14 [dMain] Core started


It's just like that eg the command prompt does not reappear unless I resize the putty window.
ps aux still shows no pid relating to mlnet/mldonkey.
Last line in /root/.mldonkey/mlnet.log
Code:
2007/06/16 12:02:14 [cWeb] Failure("Unknown kind [nodes.gzip]") while loading http://update.kceasy.com/update/fasttrack/nodes.gzip

Turns out bzip2 is installed (I believe part of itimpi's busybox build.)
Perhaps this mldonkey build just doesn't work on terastations.

_________________
TeraStation HD-H0.6TGL | Raid 5 - XFS | Failsafe 2.14a
OpenSSH | Busybox 1.5 | PPC Tools 2.1
Libraries Update & Samba 3.0.25 AD v3


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01: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:
Powered by phpBB® Forum Software © phpBB Limited