IndiceBR TableOfContents |
Introduzione
MLDonkey è un peer2peer estremamente potente che funge sia da client che da server. Le sue caratteristiche principali sono la completa mancanza di interfaccia grafica, e il supporto di molti protocolli peer2peer differenti.
Perchè non avere l'interfaccia è una cosa positiva? Significa che MLDonkey può partire al caricamento del sistema e funzionare virtualmente inosservato. È possibile dare alcune istruzione in diversi modi (telnet, attraverso il web, molti strumenti del monitor, e molteplici GUI). Avviare il programma in modo automatico significa farlo eseguire con il proprio utente (mldonkey) che non ha alcun permesso nel sistema e rendendo il tutto molto più sicuro rispetto altri client peer2peer come aMule o Frostwire che devono essere avviate come un utente normale. Un altro vantaggio di separare l'applicazione vera e propria dalla sua interfaccia è che è possibile connettersi, con una qualsiasi interfaccia, da qualunque parte del mondo, basta che l'indirizzo IP sia nell'elenco degli indirzzi IP consentiti da MLDonkey.
Installazione
MLDonkey è nei repository Universe di Ubuntu sotto il nome di mldonkey-server, tuttavia non è raccomandato usare questo pacchetto. Le ragioni sono che prima di tutto non si avvia e non si spegne correttamente, which forces a complete abandonment of the /etc/init.d/mldonkey-server file in favour of just starting it manually. Secondo, il supporto MLDonkey dei protocolli Gnutella e Gnutella 2 protocols qualche tempo fa era interrotto, e riparato recentemente. il pacchetto per Ubuntu (2.3) non funziona mentre l'ultimo rilascio (2.7) è stato aggiustato. Tuttavia è consigliato scaricare MLDonkey da [http://mldonkey.sourceforge.net/Main_Page qua].
Una volta che lo avete scaricato il pacchetto, posizionarlo da qualche parte per installarlo quindi entrare nella cartella con il terminale. È necessario avere dei compilatori del software predefiniti usando il seguente comando:
sudo apt-get install build-essential checkinstall
Scrivere la password e accettare di volere tutto quello che sta per ottenere. Dopo che ha finito installare i file di sviluppo necessari a MLDonkey, che si trovano in pacchetti che terminano in -dev. Fortunatamente, poichè MLDonkey è già in Ubuntu (anche se in una versione più vecchia con un bootup non funzionante) è possibile ottenere tutte le dipendenze con questo comando:
sudo apt-get build-dep mldonkey-server
Ancora una volta bisogna accettare di volere tutte le cose.
Ora è possibile compilare MLDonkey, assicurandosi di essersi posizionati nella cartella giusta, digitando questi comandi:
./configure
Non ci dovrebbero essere nessun tipo di errori. Il prossimo comando:
make
(Questo può richiedere un certo tempo) Quando ha finito, lanciare il comando:
sudo checkinstall -D
Creando un pacchetto di Ubuntu per MLDonkey. Denominarlo mldonkey-custom o in qualcosa di simile, una volta sviluppato il pacchetto è possibile installarlo nel file manager con un doppio clic (sarà rinominato in qualcosa simile a mldonkey-custom_XXXXXXX.deb). Ora è installato.
Running MLDonkey
MLDonkey should be run in an empty folder, since it creates loads of files there. I would recommend running it in a folder such as $HOME/.mldonkey.
It is usually a good idea to run MLDonkey as a restricted user, probably called mldonkey. Create such a user with a command like:
adduser --system --group --home /home/yourusername/.mldonkey mldonkey
This will add a user and a group, both called mldonkey. Now you should go into System->Administration->Users and Groups, tick "Show all users and groups" then look down the list for mldonkey and make a note of it's UID number.
Open a terminal and take it to the .mldonkey folder, then run:
mlnet
Hopefully it will create loads of files. If it gets as far as "Core Started" then end it with Ctrl-C. Open up the new configuration file which should have been created called downloads.ini with a text editor. Find "Section: STARTUP" and look for "run_as_user" and make it equal mldonkey. Look down a bit for "run_as_useruid" and make it equal the UID of mldonkey. Now it should run as the user mldonkey when called with sudo. To start MLDonkey, and to restart it in the future, use (from within your .mldonkey folder):
sudo mlnet
Accessing MLDonkey
There are lots of ways of checking on MLDonkey once it is running. The quickest is with telnet.
telnet 127.0.0.1 4000
Will connect to MLDonkey if it is running. Typing "help" and "longhelp" will tell you how to use this mode.
A more powerful way is to use a web browser. Just point your browser [http://127.0.0.1:4080 here] (or type localhost:4080 into the location bar)
There are many little applets to give you the status of MLDonkey. There are a few in gDesklets, there is one for aDesklets, Gkrellm has one and so does Conky.
The most comprehensive way of interfacing with MLDonkey, however, is to use a GUI. There are two in Ubuntu, the standard GTK one and a QT one. These packages are called mldonkey-gui and kmldonkey respectively. My favourite GUI is called [http://sancho-gui.sourceforge.net/ Sancho]. It is not in Ubuntu, but it has a binary archive for x86 which works well enough on x86 Ubuntu.
Useful Info
Adding Servers
Adding servers can be tedious on a one-by-one basis, but thankfully MLDonkey can use "server.met" files which contain the IP addresses of many servers (this is used for the Edonkey network, but once any connection is established a list of clients for other networks like Gnutella can be downloaded). There is no link to a "server.met" file here since it may become out-of-date rapildly, so instead try searching the Internet for one, or get one from a friend. You can use it in MLDonkey from it's telnet/console like this:
servers /the/path/to/your/server.met c
The "c" command tells MLDonkey to connect to more servers, thus utilising the server.met file.
Importing Temporary Files
MLDonkey uses a different method of storing temporary files than Emule or Amule, however it can import an Emule or Amule temporary directory into it's own lists. The easiest way to do this is with the telnet interface (remember, the "Console" mode of may GUIs is the same as the telnet interface). From there you should run:
import_temp /the/full/path/to/old/temporary/folder
This will add all of the partially completed files from the folder /the/full/path/to/old/temporary/folder to MLDonkey's temporary folder, and add them to it's list of downloads. It's as simple as that.
=See Also =
[http://mldonkey.sourceforge.net MLDonkey's homepage] (where you downloaded the core's source code from) contains loads of useful links if you want to learn some more tricks with MLDonkey.
[:P2PHowTo] This gives a wider view of filesharing applications and their differences
Other than that I hope this guide lets you share your original, freely licenced and public domain files with people on multiple networks using MLDonkey.