This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOWTO] Install mldonkey on Nas4Free jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

[HOWTO] Install mldonkey on Nas4Free jail

Post by raulfg3 »

This install is recomended for all N4F install , embeded or full, and install into a jail is the default /prefered method of installing packages in nas4Free to avoid problems.

this work is based in this post:
http://forums.freebsd.org/showthread.php?t=227

and
http://linux-bsd-sharing.blogspot.com.e ... ey-on.html

Thaks to Tamgram for his work.

to start, create a new jail called donkey by following the jail guide: http://wiki.nas4free.org/doku.php?id=do ... owto:jails

from shell check your jail number:

Code: Select all

rnas:/jail# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.201   serviio                       /jail/serviio
     2  192.168.1.202   kissdx                        /jail/kissdx
     4  192.168.1.203   minidlna                      /jail/minidlna
     5  192.168.1.204   donkey                        /jail/donkey
once you know number, log into your jail:

Code: Select all

    rnas:~# jexec 5 csh
    root@donkey:/ #
Once inside the jail grab a portage tree.

Code: Select all

portsnap fetch
portsnap extract

If you use thebrig, you must start from here ( previosly you need to configure your jai, to use /install ports) download/file.php?id=1814


now is time to install mldonkey:

Code: Select all

cd /usr/ports/net-p2p/mldonkey

Code: Select all

make WITHOUT_GUI=yes WITHOUT_X11="YES" WITHOUT_TK="YES" install clean
after compiling time ( ask yes if promt).

Code: Select all

rehash
Now that MLDonkey is installed let's activate it at boot time:

Code: Select all

echo 'mlnet_enable="YES"' >> /etc/rc.conf
echo 'mlnet_user="p2p"' >> /etc/rc.conf
echo 'mlnet_logfile="/var/log/mldonkey"' >> /etc/rc.conf
touch /var/log/mldonkey
Notice the mlnet_user option, for added security we'll create a p2p user:

Code: Select all

pw user add p2p
mkdir /home
mkdir /home/p2p
chown p2p:p2p /home/p2p
chown p2p:p2p /var/log/mldonkey
Restart the system for the changes to apply.

Code: Select all

rnas:/jail# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.201   serviio                       /jail/serviio
     2  192.168.1.202   kissdx                        /jail/kissdx
     4  192.168.1.203   minidlna                      /jail/minidlna
     5  192.168.1.204   donkey                        /jail/donkey
rnas:/jail# /etc/rc.d/jail restart donkey
Stopping jails: donkey.
Configuring jails:.
Starting jails: donkey.
rnas:/jail#
check that mldonkey is running:

Code: Select all

root@donkey:/home # /usr/local/etc/rc.d/mlnet status
mlnet is running as pid 53667.
root@donkey:/home #
goto /home/p2p/.mldonkey

Code: Select all

cd /home/p2p/.mldonkey
stopt mlnet:

Code: Select all

/usr/local/etc/rc.d/mlnet stop
edit downloads.ini

Code: Select all

ee downloads.ini

Code: Select all

 allowed_ips = [
  "127.0.0.1";"192.168.1.0/24"]

start mlnet:

Code: Select all

/usr/local/etc/rc.d/mlnet start
test that can view config page:

http://IPofyourjail:4000

http://192.168.1.204:4080/
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by raulfg3 »

I recomend to use sancho as GUI for ml donkey: http://sancho.awardspace.com/

or http://mldonkey.sourceforge.net/Sancho


you need to configure to conect to jail IP port 4001:
Host setup manager.jpg
now you can use sancho:
prueba de sancho.jpg

But better if configure ports on your router:
open ports for mldonkey.jpg
Please read doc about how to configure sancho for better knoledge / use of mldonkey:

http://www.shadowandy.net/2009/01/optim ... ur-nas.htm
You do not have the required permissions to view the files attached to this post.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by raulfg3 »

12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

...alex
NewUser
NewUser
Posts: 9
Joined: 12 Jul 2012 08:48
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by ...alex »

First off.... thank you so much for this guide! It worked a treat.

I am having one issue though.... my DirectConnect downloads are crawling over my LAN!

My setup:
DC++ Server is installed on "WindowsPC"
DC++ Client installed on "WindowsPC"
DC++ Client on "WindowsPC" is running in Active mode
MLDonkey running in a jail on my NAS4Free box
Gbit network
SMB transfers ~100MB/s

When using my "WindowsPC" DC++ client to download files from my MLDonkey DC client, i get a maximum of 15KB/s, i get a max of 50KB/s doing the reverse.

I have no idea where to start my troubleshooting. Do you have any suggestions?

...alex
NewUser
NewUser
Posts: 9
Joined: 12 Jul 2012 08:48
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by ...alex »

ok, so i found the default speed limit setting (why would they put this in!!!?!?!?) in downloads.ini and set them all to unlimited. I am still only able to get a max download speed of 10MB/s on a Gbit network though :(

Any ideas?

spoocky68
Starter
Starter
Posts: 24
Joined: 29 Dec 2014 13:54
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by spoocky68 »

Hi. I follow all your steps to install mldonkey in a jail.

I made a thin jail, using TheBrig. Start it thru ssh , and then portsnap fetch. After, portsnap extract, and in a moment the follow message appears and the extract abort:

/usr/ports/devel/p5-Log-Report-Optional/
files/293a4c9707197d1a5e41de9bc9fabfc033f6f2138cc268fb350120eea5b296c0.gz not found -- snapshot corrupt.

I deleted the jail twice, and restart, but always the same error. Can you help me?

Thanxs

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by raulfg3 »

you do not need porsnap inside thebrig jail, use button on thebrig webGUI to install ports.

see this image that is in the Thebrig forum: download/file.php?id=1814


PD: thebrig forum is: viewtopic.php?f=79&t=3894
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

spoocky68
Starter
Starter
Posts: 24
Joined: 29 Dec 2014 13:54
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by spoocky68 »

Hi, every one, again.

Recently i've got to reinstall the Mldonkey because my old NAS broken and, I've not got a jail backup.

Now, when I try to install all again, I've got a new problem follow your instructions.

I've got TheBrig installed (alcatraz over Nas4free 10.1.0.2 prescience) before a lot of problems to run jails.

When finally the jails is run, and I try to install MLdonkey follow your instructions, the problems starts:

1. If I configure Central-ports tab on TheBrig Webgui, and fetch+update, if I come in /usr directory by shell, ports directory doesn't appears in that way.

2. If I try "portsnap fetch" command over shell, it appears the following message: "Looking up portsnap.FreeBSD.org mirrors... none found. Fetching public key from portsnap.FreeBSD.org... failed. No mirrors remaining, giving up"

What can I do? Where can I fetch portsnap from? Is there another way to install Mldonkey?

Thanks a lot! And Excuse moi for be so nerd!

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by raulfg3 »

try: pkg install mldonkey

https://www.netroby.com/view/3652
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

spoocky68
Starter
Starter
Posts: 24
Joined: 29 Dec 2014 13:54
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by spoocky68 »

HI everyone.

I follow your instructions, and finally I can fetch portsnap (a conflict between ips cause problem :( ), and I can start to make mldonkey installation.

After a few minutes, a fatal error appears. When compiler said "Staging for dialog4ports-0.1.5.2, Generating temporary packing list", a long list like this, appears: 'Make [8]:"/dev/null" line 1: Unknown directive' and so to ... line 475:... Then a message "make [8] stopped in /var/ports/usr/ports/ports-mgmt/dialog4ports/work/dialog4ports-0.1.5 Error Code 1."

And others similar messages.

After that a new problem appears with ocaml-lablgl-1.05, saying, after a lot o error code 1 in ocaml-lablgl subdirectories, to finally said, 'make: stopped in /usr/ports/net-p2p/mldonkey Error Code 1 '

What do I do wrong? Is a portsnap fail? How I can execute pkg install mldonkey (the link you told me, doesn't drive to a download page)

Help me! You are my only hope! (Sorry spoiler!)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by raulfg3 »

spoocky68 wrote: How I can execute pkg install mldonkey (the link you told me, doesn't drive to a download page)

Help me! You are my only hope! (Sorry spoiler!)
pkg is a new replacement command for pkg_add, the link is a web page with instructions of how install mldonkey using pkg command.

You only need to log inside the mldonkey jail and write the command in the same way that others command like top, or ifconfig.

PD: remember to log inside the jail prior to execute the command toinstall mldonkey inside the jail, because if you execute on normal shell (outside the jail), you install mldonkey on the base system and must work if is a full install, but is lose if is a embeded install ( on embeded install OS run from RAMDIsk so changes are lose on reboot).

PD: if pkg do not work inside the jail, is because your BSD inside the jail is not 10.x version. in this case you need to write in shell:

pkg_add -R mldonkey that is the command used in 9.x version of BSD to add precompiled packages
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

spoocky68
Starter
Starter
Posts: 24
Joined: 29 Dec 2014 13:54
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by spoocky68 »

Hi, again!. Following your instructions, finally I get to install mldonkey on jail. But when I tried to access to gut (telnet or webgui) my connection is rejected (ips_allowed issue)

The problem is that when I try stop the mlnet service to modify download.ini to include other IPs to operate with it, this message appears:

Running under /root/.mldonkey
2016/01/13 12:34:42 [cO] Starting MLDonkey 3.1.5 ...
2016/01/13 12:34:42 [cO] Language EN, locale UTF-8, ulimit for open files 60000
2016/01/13 12:34:42 [cO] MLDonkey is working in .
2016/01/13 12:34:42 [Gettext] Loading language resource mlnet_strings.en_US.UTF-8
2016/01/13 12:34:42 [cO] loaded language resource file

/dev/urandom does not exist, please create it
If you are using a chroot environment, create it inside the chroot.
2016/01/13 12:34:42 [DNS] Resolving [donkey.local] ...
2016/01/13 12:34:42 [DNS] Resolving [www.mldonkey.org] ...
2016/01/13 12:34:42 [dMain] Libmagic file-type recognition database present
2016/01/13 12:34:42 [cO] Logging in ./mlnet.log

And mlnet service doesn't stop, and cannot modify download.ini

Can you help me, again? I don't understand so much that problem.

I think that I follow all instructions: install pkg, create user p2p, modify rc.conf thru echo command, start the service....

But really, I don't know if the system really works. I'm thinking to delete the jail, and restart... but I'm afraid that problems return to start.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install mldonkey on Nas4Free jail

Post by raulfg3 »

first google a bit how to start / stop a service in BSD 10: https://www.google.es/search?site=&sour ... ice+BSD+10&


eg: https://www.freebsd.org/cgi/man.cgi?que ... ice+BSD+10 or service mldonkey stop or service mlnet stop depending.

then stop mldonkey and edit downloads.ini to allow your Ip.

now, restart service and check that is running (status).

once is running you can install sancho on your windows client to acces it remotely.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “Jails”