个人工具
登录
查看“UbuntuHelp:MLDonkey”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:MLDonkey”的源代码
来自Ubuntu中文
←
UbuntuHelp:MLDonkey
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/MLDonkey}} {{Languages|UbuntuHelp:MLDonkey}} == Introduction == [[UbuntuHelp:MLDonkey|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. Why is having no interface so good? Well it means that [[UbuntuHelp:MLDonkey|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 (<code><nowiki>mldonkey</nowiki></code>) 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 [[UbuntuHelp:MLDonkey|MLDonkey]]'s list of allowed IPs. == Installation == [[UbuntuHelp:MLDonkey|MLDonkey]] is in Ubuntu's Universe repository under the name <code><nowiki>mldonkey-server</nowiki></code>, 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 [[UbuntuHelp:MLDonkey|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 [[UbuntuHelp:MLDonkey|MLDonkey]] from [http://mldonkey.sourceforge.net/Main_Page here]. 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: <pre><nowiki> sudo apt-get install build-essential checkinstall </nowiki></pre> 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 [[UbuntuHelp:MLDonkey|MLDonkey]], which are stored in packages ending in -dev. Luckily, since [[UbuntuHelp:MLDonkey|MLDonkey]] is already in Ubuntu (albeit an older version with a broken bootup) you can get all of these dependencies using: <pre><nowiki> sudo apt-get build-dep mldonkey-server </nowiki></pre> Once again tell it you want all of that stuff. Now you can compile [[UbuntuHelp:MLDonkey|MLDonkey]] so, making sure your terminal is in the right folder, you need to run: <pre><nowiki> ./configure </nowiki></pre> And there shouldn't be any errors. Next build it with: <pre><nowiki> make </nowiki></pre> (This can take a while) When it has finished you should run: <pre><nowiki> sudo checkinstall -D </nowiki></pre> To create an Ubuntu package of [[UbuntuHelp:MLDonkey|MLDonkey]]. Call it <code><nowiki>mldonkey-custom</nowiki></code> 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. == Running [[UbuntuHelp:MLDonkey|MLDonkey]] == [[UbuntuHelp: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 [[UbuntuHelp:MLDonkey|MLDonkey]] as a restricted user, probably called <code><nowiki>mldonkey</nowiki></code>. Create such a user with a command like: <pre><nowiki> adduser --system --group --home /home/yourusername/.mldonkey mldonkey </nowiki></pre> This will add a user and a group, both called <code><nowiki>mldonkey</nowiki></code>. 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: <pre><nowiki> mlnet </nowiki></pre> 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 <code><nowiki>downloads.ini</nowiki></code> with a text editor. Find "Section: STARTUP" and look for "run_as_user" and make it equal <code><nowiki>mldonkey</nowiki></code>. Look down a bit for "run_as_useruid" and make it equal the UID of <code><nowiki>mldonkey</nowiki></code>. Now it should run as the user <code><nowiki>mldonkey</nowiki></code> when called with sudo. To start [[UbuntuHelp:MLDonkey|MLDonkey]], and to restart it in the future, use (from within your .mldonkey folder): <pre><nowiki> sudo mlnet </nowiki></pre> == Accessing [[UbuntuHelp:MLDonkey|MLDonkey]] == There are lots of ways of checking on [[UbuntuHelp:MLDonkey|MLDonkey]] once it is running. The quickest is with telnet. <pre><nowiki> telnet 127.0.0.1 4000 </nowiki></pre> Will connect to [[UbuntuHelp:MLDonkey|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 [[UbuntuHelp:MLDonkey|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 [[UbuntuHelp:MLDonkey|MLDonkey]], however, is to use a GUI. There are two in Ubuntu, the standard GTK one and a QT one. These packages are called <code><nowiki>mldonkey-gui</nowiki></code> and <code><nowiki>kmldonkey</nowiki></code> 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 [[UbuntuHelp:MLDonkey|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 [[UbuntuHelp:MLDonkey|MLDonkey]] from it's telnet/console like this: <pre><nowiki> servers /the/path/to/your/server.met c </nowiki></pre> The "c" command tells [[UbuntuHelp:MLDonkey|MLDonkey]] to connect to more servers, thus utilising the server.met file. === Importing Temporary Files === [[UbuntuHelp:MLDonkey|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: <pre><nowiki> import_temp /the/full/path/to/old/temporary/folder </nowiki></pre> This will add all of the partially completed files from the folder <code><nowiki>/the/full/path/to/old/temporary/folder</nowiki></code> to [[UbuntuHelp:MLDonkey|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 [[UbuntuHelp:MLDonkey|MLDonkey]]. [[UbuntuHelp: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 [[UbuntuHelp:MLDonkey|MLDonkey]]. ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:MLDonkey
。