Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "InternetRete/Condivisione/MlDonkey"
Differenze tra le versioni 1 e 38 (in 37 versioni)
Versione 1 del 29/04/2007 20.27.28
Dimensione: 7091
Autore: NaldiniPaolo
Commento:
Versione 38 del 30/04/2007 15.58.55
Dimensione: 7973
Commento: PID errore
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 1: Linea 1:
#format wiki
Linea 5: Linea 6:
= Introduction = = Introduzione =
Linea 7: Linea 8:
MLDonkey is an extremely powerful peer2peer client and server. It's most notable features are it's complete lack of an interface, and it's support for many different peer2peer protocols. ||<tablestyle="text-align: justify; width:65%; " style="border:none;" 5%>attachment:logo.png ||<style="padding:0.5em; border:none;">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. ||
Linea 9: Linea 10:
Why is having no interface so good? Well it means that MLDonkey can start at boot and run virtually unnoticed in the background. If you do want to give it some instructions then there are loads of different ways of doing it (telnet, web-based, many monitor applets and multiple GUIs). Running the core on it's own means that it can run as it's own user ({{{mldonkey}}}) who has no permission to do anything else, making it more secure than those peer2peer applications which must be run as a regular user such as aMule and Frostwire. Another advantage of seperating the core from the interface is that any interface can connect from any location, even from the other side of the world, as long as the IP address it is coming from is in MLDonkey's list of allowed IPs. 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 a``Mule 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.
Linea 11: Linea 12:
= Installation = = Download =
Se si desidera usare la versione più recente del programma è possibile scaricare e salvare nella propria '''Home''' il pacchetto contenente i sorgenti da [http://mldonkey.sourceforge.net/Main_Page questo] indirizzo.
Linea 13: Linea 15:
MLDonkey is in Ubuntu's Universe repository under the name {{{mldonkey-server}}}, however I would not recommend you use that package. The reasons are that firstly it doesn't launch and shutdown properly, which forces a complete abandonment of the /etc/init.d/mldonkey-server file in favour of just starting it manually. Secondly MLDonkey's support of the Gnutella and Gnutella 2 protocols was broken a while ago, and fixed recently. Ubuntu's package (2.3) is broken whilst the latest release (2.7) is fixed. Therefore I suggest you download MLDonkey from [http://mldonkey.sourceforge.net/Main_Page here]. == Compilazione da sorgenti ==
Linea 15: Linea 17:
Once you have the source you should find somewhere to build it then enter that folder with a terminal. You will need to install the standard software compilers using: Una volta terminato il download, prima di procedere con la [:InstallareProgrammiDaSorgenti:compilazione] è necessario assicurarsi di avere gli strumenti necessari alle operazioni:
Linea 17: Linea 19:
sudo apt-get install build-essential checkinstall sudo apt-get install build-essential checkinstall gcc g++ libc-dev make zlib1g-dev libbz2-dev libgd2-noxpm-dev libmagic-dev
Linea 19: Linea 21:
Type your password and tell it you want all of the stuff it is going to get. After it has finished you will need to install the development files needed to build MLDonkey, which are stored in packages ending in -dev. Luckily, since MLDonkey is already in Ubuntu (albeit an older version with a broken bootup) you can get all of these dependencies using:
{{{
sudo apt-get build-dep mldonkey-server
}}}
Once again tell it you want all of that stuff.
Linea 25: Linea 22:
Now you can compile MLDonkey so, making sure your terminal is in the right folder, you need to run: Per compilare '''MLDonkey''' bisogna prima portarsi all'interno della directory dove si ha scompattato l'archivio, dunque digitare i seguenti comandi:
Linea 28: Linea 25:
}}}
And there shouldn't be any errors. Next build it with:
{{{
Linea 33: Linea 27:
(This can take a while) When it has finished you should run:
= Avviare MLDonkey =
Per accedere avviare mldonkey bisonga accedere alla cartella di installazione, per esempio
{{{cd ~/Mldonkey
}}}
In seguito eseguire mlnet
{{{./mlnet
}}}
== Utente Mldonkey (Sconsigliato) ==

È una buona idea assegnare l'uso di '''MLDonkey''' ad utente con privilegi limitati. Per creare un utente digitare il seguente comando:
Linea 35: Linea 39:
sudo checkinstall -D adduser --system --group --home /home/tuonome/.mldonkey mldonkey
Linea 37: Linea 41:
To create an Ubuntu package of MLDonkey. Call it {{{mldonkey-custom}}} or something, then once it has built the package you can install it by double clicking on it in the file manager (it will be called something like mldonkey-custom_XXXXXXX.deb). Now it is installed.
Linea 39: Linea 42:
= Running MLDonkey = Questo comando aggiungerà un utente e un gruppo, entrambi denominati {{{mldonkey}}}. Ora entrare in Sistema->Amministrazione->Utenti e Gruppi, spuntare "Mostra tutti gli utenti e i gruppi" e osservare sotto la lista di mldonkey e prendere nota del numero UID.
Linea 41: Linea 44:
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):
Eventualmente genererà gli eseguibili. Se ottiene la dicitura "Core Started" allora terminare con '''Ctrl-C'''. Aprire il nuovo file di configurazione ,che dovrebbe essere stato generato, chiamato {{{downloads.ini}}} con un editor di testi. Trovare "Section: STARTUP" e cercare "run_as_user" e renderlo uguale a {{{mldonkey}}}. Osservare in basso "run_as_useruid" ed inserire il numero UID di {{{mldonkey}}}. Ora dovrebbe funzionare come utente {{{mldonkey}}} quando è chiamato con sudo. Per avviare MLDonkey, e riavviare in futuri, usare (dalla vostra cartella .mldonkey):
Linea 58: Linea 49:
= Accessing MLDonkey = = Accessi MLDonkey =
Linea 60: Linea 51:
There are lots of ways of checking on MLDonkey once it is running. The quickest is with telnet. == Interfaccia Web ==
Per avviare l'interfaccia WEB basta aprire il browser predefinito, per esempio firefox e scrivere nella barra degli indirizzi
{{{localhost:4080
}}}

== Sancho ==
La mia GUI preferita si chiama [http://sancho-gui.sourceforge.net/ Sancho]. Non è per Ubuntu, ma ha un archivio binario per x86 che funziona abbastanza bene su Ubuntu x86.

=== Installazione ===
Per installare Sancho basta dare questo comando
{{{sh <script>.sh
}}}

=== Avviare Sancho ===
Per avviarlo basta dare questo comando
{{{./sancho
}}}
== Telnet ==
Ci sono molti modi per controllare MLDonkey una volta avviato. Il più rapido è con '''telnet'''.
Linea 64: Linea 73:
Will connect to MLDonkey if it is running. Typing "help" and "longhelp" will tell you how to use this mode.
Linea 66: Linea 74:
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) Si connetterà a MLDonkey se in esecuzione. Scrivendo "help" e "longhelp" vi spiegherà come usare questi comandi.
Linea 68: Linea 76:
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. == Altro ==
Linea 70: Linea 78:
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. Il metodo più comprensivo mediante interfaccia, tuttavia, è usare la GUI. Ce ne sono due in Ubuntu, la standard '''GTK''' a la '''QT'''. Questi pacchetti sono chiamati rispettivamente {{{mldonkey-gui}}} e {{{kmldonkey}}}.
Linea 72: Linea 80:
= Useful Info = Se si desidera avere anche un'interfaccia grafica è utile installare uno fra i pacchetti ''mldonkey-gui'' o ''kmldonkey'', a seconda del Desktop Manager usato (il primo per '''GNOME''', il secondo per '''KDE''').
Ci sono molti piccoli strumenti che ti danno lo stato di MLDonkey. Ce ne sono un pò per gDesklets, una per aDesklets, Gkrellm è una e funziona con Conky.
Linea 74: Linea 83:
== Adding Servers == = Configurazione =
Linea 76: Linea 85:
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: == Alias ==

== Server preferiti ==

== Aggiungere server ==

Aggiungere server uno alla volta può essere noioso, ma fotunatamente MLDonkey può usare il file "server.met" che contiene gli indirizzi IP di molti server (questo è usato per la rete Edonkey, ma una volta che tutto il collegamento è stabilito una lista dei client di altre reti come Gnutella possono essere scaricati).Qua non ci sono link al file "server.met" poichè può diventare obsoleto rapidamente, così provare a cercare in Internet, o ottenerlo da amici. È possibile usarlo in MLDonkey da questa console di telnet, così:
Linea 81: Linea 96:
The "c" command tells MLDonkey to connect to more servers, thus utilising the server.met file. Il comando "c"  chiede a MLDonkey di connettersi a molti server, utilizzando il file server.met.
Linea 83: Linea 98:
== Importing Temporary Files == == Importazione File Provvisori ==
Linea 85: Linea 100:
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: MLDonkey usa metodi diversi da Emule o Amule per conservare i file provvisori, tuttavia può omportare una directory temporanea di Emule o Amule temporary directory into it's own lists. Il metodo più facile per fare questo è usare l'interfaccia telnet (ricordarsi, la "Console" delle GUIs è simile all'interfaccia di telnet). Da qui lanciare:
Linea 87: Linea 102:
import_temp /the/full/path/to/old/temporary/folder import_temp percorso/intero/della/vecchia/cartella/temporanea
Linea 89: Linea 104:
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.
Linea 91: Linea 105:
=See Also = Questo aggiungerà tutti i file parzialmente completati dalla cartella {{{percorso/intero/della/vecchia/cartella/temporanea}}} alla cartella temporanea di MLDonkey, e li aggiunge alla lista di downloads.
Linea 93: Linea 107:
[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. = Risoluzione dei problemi =
Linea 95: Linea 109:
[:P2PHowTo] This gives a wider view of filesharing applications and their differences == Problemi di DNS ==
Se all'avvio di mldonkey ricevete questo messaggio di errore
{{{[DNS] Resolving [www.mldonkey.net] ...
Linea 97: Linea 113:
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. DNS resolution does not work! Looking up www.mldonkey.net failed with Not_found.
The core therefore is unable to get eDonkey serverlists and loading
.torrent files via dllink from websites is also impossible.
If you are using MLDonkey in a chroot environment you should
consider reading this article to get DNS support back:
http://mldonkey.sourceforge.net/Chroot
}}}
lanciate questo comando per risolvere il problema
{{{cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/mldonkey co -P mldonkey
}}}

== File bloccati ==

== Errore PID ==
Se quando avviate mlnet il terminale vi da questo messiggio di errore
{{{This means another MLDonkey process could still be working
in this directory. Please shut it down before starting
a new instance here. If you are sure no other process uses
this directory delete mlnet.pid and restart the core.
}}}
Significa che stai già eseguendo mlnet. Se non dovesse essere vero andare nella cartella '''~/.mldoney''' e cancellare il file '''mlnet.pid'''

= Ulteriori risorse =

[http://mldonkey.sourceforge.net Homepage MLDonkey] (dove scaricare il "cuore" del codice) contiene dei link utili per imparare a conoscere dei trucchetti su MLDonkey.

[wiki:Ubuntu/P2PHowTo]: dà un parere più ampio sulle applicazioni filesharing e le loro differenze.

Documento originale: [https://help.ubuntu.com/community/MLDonkey MLDonkey (en)]
----
CategoryNuoviDocumenti

BR

Introduzione

attachment:logo.png

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.

Download

Se si desidera usare la versione più recente del programma è possibile scaricare e salvare nella propria Home il pacchetto contenente i sorgenti da [http://mldonkey.sourceforge.net/Main_Page questo] indirizzo.

Compilazione da sorgenti

Una volta terminato il download, prima di procedere con la [:InstallareProgrammiDaSorgenti:compilazione] è necessario assicurarsi di avere gli strumenti necessari alle operazioni:

sudo apt-get install build-essential checkinstall gcc g++ libc-dev make zlib1g-dev libbz2-dev libgd2-noxpm-dev libmagic-dev

Per compilare MLDonkey bisogna prima portarsi all'interno della directory dove si ha scompattato l'archivio, dunque digitare i seguenti comandi:

./configure
make

Avviare MLDonkey

Per accedere avviare mldonkey bisonga accedere alla cartella di installazione, per esempio {{{cd ~/Mldonkey }}} In seguito eseguire mlnet {{{./mlnet }}}

Utente Mldonkey (Sconsigliato)

È una buona idea assegnare l'uso di MLDonkey ad utente con privilegi limitati. Per creare un utente digitare il seguente comando:

adduser --system --group --home /home/tuonome/.mldonkey mldonkey

Questo comando aggiungerà un utente e un gruppo, entrambi denominati mldonkey. Ora entrare in Sistema->Amministrazione->Utenti e Gruppi, spuntare "Mostra tutti gli utenti e i gruppi" e osservare sotto la lista di mldonkey e prendere nota del numero UID.

Eventualmente genererà gli eseguibili. Se ottiene la dicitura "Core Started" allora terminare con Ctrl-C. Aprire il nuovo file di configurazione ,che dovrebbe essere stato generato, chiamato downloads.ini con un editor di testi. Trovare "Section: STARTUP" e cercare "run_as_user" e renderlo uguale a mldonkey. Osservare in basso "run_as_useruid" ed inserire il numero UID di mldonkey. Ora dovrebbe funzionare come utente mldonkey quando è chiamato con sudo. Per avviare MLDonkey, e riavviare in futuri, usare (dalla vostra cartella .mldonkey):

sudo mlnet

Accessi MLDonkey

Interfaccia Web

Per avviare l'interfaccia WEB basta aprire il browser predefinito, per esempio firefox e scrivere nella barra degli indirizzi {{{localhost:4080 }}}

Sancho

La mia GUI preferita si chiama [http://sancho-gui.sourceforge.net/ Sancho]. Non è per Ubuntu, ma ha un archivio binario per x86 che funziona abbastanza bene su Ubuntu x86.

Installazione

Per installare Sancho basta dare questo comando {{{sh <script>.sh }}}

Avviare Sancho

Per avviarlo basta dare questo comando {{{./sancho }}}

Telnet

Ci sono molti modi per controllare MLDonkey una volta avviato. Il più rapido è con telnet.

telnet 127.0.0.1 4000

Si connetterà a MLDonkey se in esecuzione. Scrivendo "help" e "longhelp" vi spiegherà come usare questi comandi.

Altro

Il metodo più comprensivo mediante interfaccia, tuttavia, è usare la GUI. Ce ne sono due in Ubuntu, la standard GTK a la QT. Questi pacchetti sono chiamati rispettivamente mldonkey-gui e kmldonkey.

Se si desidera avere anche un'interfaccia grafica è utile installare uno fra i pacchetti mldonkey-gui o kmldonkey, a seconda del Desktop Manager usato (il primo per GNOME, il secondo per KDE). Ci sono molti piccoli strumenti che ti danno lo stato di MLDonkey. Ce ne sono un pò per gDesklets, una per aDesklets, Gkrellm è una e funziona con Conky.

Configurazione

Alias

Server preferiti

Aggiungere server

Aggiungere server uno alla volta può essere noioso, ma fotunatamente MLDonkey può usare il file "server.met" che contiene gli indirizzi IP di molti server (questo è usato per la rete Edonkey, ma una volta che tutto il collegamento è stabilito una lista dei client di altre reti come Gnutella possono essere scaricati).Qua non ci sono link al file "server.met" poichè può diventare obsoleto rapidamente, così provare a cercare in Internet, o ottenerlo da amici. È possibile usarlo in MLDonkey da questa console di telnet, così:

servers /the/path/to/your/server.met
c

Il comando "c" chiede a MLDonkey di connettersi a molti server, utilizzando il file server.met.

Importazione File Provvisori

MLDonkey usa metodi diversi da Emule o Amule per conservare i file provvisori, tuttavia può omportare una directory temporanea di Emule o Amule temporary directory into it's own lists. Il metodo più facile per fare questo è usare l'interfaccia telnet (ricordarsi, la "Console" delle GUIs è simile all'interfaccia di telnet). Da qui lanciare:

import_temp percorso/intero/della/vecchia/cartella/temporanea

Questo aggiungerà tutti i file parzialmente completati dalla cartella percorso/intero/della/vecchia/cartella/temporanea alla cartella temporanea di MLDonkey, e li aggiunge alla lista di downloads.

Risoluzione dei problemi

Problemi di DNS

Se all'avvio di mldonkey ricevete questo messaggio di errore {{{[DNS] Resolving [www.mldonkey.net] ...

DNS resolution does not work! Looking up www.mldonkey.net failed with Not_found. The core therefore is unable to get eDonkey serverlists and loading .torrent files via dllink from websites is also impossible. If you are using MLDonkey in a chroot environment you should consider reading this article to get DNS support back: http://mldonkey.sourceforge.net/Chroot }}} lanciate questo comando per risolvere il problema {{{cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/mldonkey co -P mldonkey }}}

File bloccati

Errore PID

Se quando avviate mlnet il terminale vi da questo messiggio di errore {{{This means another MLDonkey process could still be working in this directory. Please shut it down before starting a new instance here. If you are sure no other process uses this directory delete mlnet.pid and restart the core. }}} Significa che stai già eseguendo mlnet. Se non dovesse essere vero andare nella cartella ~/.mldoney e cancellare il file mlnet.pid

Ulteriori risorse

[http://mldonkey.sourceforge.net Homepage MLDonkey] (dove scaricare il "cuore" del codice) contiene dei link utili per imparare a conoscere dei trucchetti su MLDonkey.

[wiki:Ubuntu/P2PHowTo]: dà un parere più ampio sulle applicazioni filesharing e le loro differenze.

Documento originale: [https://help.ubuntu.com/community/MLDonkey MLDonkey (en)]


CategoryNuoviDocumenti