How to Download The LFS Tarballs Via Edonkey

xiaoxiao2021-03-05  23

Author: Jeroen Coumans

Date: 2003-11-07

License: GNU Free Documentation License Version 1.2

Synopsis: How to Download The LFS Tarballs Via Edonkey

Description:

A legitimate and increasingly Popular Option for Distributing Packages Online IS

Via Peer-to-Peer (P2P) NetWorks. This Hint Describes How To Install and

Configure mldonkey.

Prerequisites:

A Broadband Internet Connection and some patience.

Hint:

A bit of history:

The First Succesful P2P NetWork Was Napster. By Sharing Music The Program Attracted Millions Of Users. IT

Wasn't Used for Much Legal Content Though, Which is why it got shut down. Basically, Napster worked by

Connecting People's Clients to Each Other Via Servers. The Servers WERE Compailable To Catalogues and WERE

Used to store the information of what each client offered.

More Recent P2P NetWorks Use A Decentralized Approach To Filesharing. The Most Popular Variants Nowadays

Are The FastTrack Network, Used by Kazaa, And The Edonkey Network. The Edonkey Protocol (AND T)

Popularized Implementation of Emule) HAS The Following Features:

* Files Can Be Downloaded from Different Sources At The Same Time.

* Files Are Identified by UNIQUE Identifiers (MD4) That Can Be Used to Find New

Sources for a file.

* Files Are Checked Using Checksums, And Chunks (9MB) That Are Corrupted Are

Downloaded Again.

* Files Chunks Can Be Downloaded in Any Order.

* Files Are Shared As Soon as a checked chunk Has Been Downloaded, To Speed ​​Up

.

* NEED SOME Servers to Be Known, Mldonkey Can Use Servers.ini File That I in

The distribution.

(List copied from the mldonkey wiki)

ON http://www.linuxfromscratch.org/lfs/packages.html You Find Seveledonkey Links. There Can Be Used to Download The LFS Packages Tarball Via An

EDONKEY Client. Lucky For US, The Protocol Has Several Fully-Functional Open

Source Implementations (XMule, Amule, Emule, Mldonkey). You can Also Use the

Official Implementation (Edonkey and Overnet), Althought IT Has Little Advantages

Over the Others and is Only Available As Binary (Big No-no for LFS'ers). I'll

ONLY EXPLAIN How to Install and Use Mldonkey Though, Since That Is What I Have

Actual Experience With. if people are Willing to Control Instructions for

Their favorite client, I'll Gladly Put IT in here. :)

About Edonkey:

Edonkey Works with queues: if you start a download, you'll get placed in the

Queue of Everyone Who Shares That Package. Downloading Costs you Points While

Uploading Gains you points so you are reasoned for sharing. Whatver you

Download Gets Automatically Shared.

Some rules of thumb to keep in minid:

1. You Probably Want To Regulate How much Bandwidth Your Client Can Use, And

2. The Longer Your Client Runs, The Faster Your Downloads Will Go. In The

Beginning, They'll Be Slow. I Recommend Letting IT Run As Long As you can

Afford Your Computer To BE Online (Mine IS 24x7).

3. The More People Who Share A Certain File, The Faster Your Download Will Go.

MLDONKEY:

MLDonkey Requires Ocaml for Compilation and Lablgtk for the ugly

GTK-1.2-Based Gui. You can use --enable-batch to wget and install the log

Just for mldonkey, or install the seperately if you're paranoid. Skip the

Installation of Ocaml and lablgtk if you intend to use --enable-bach.

Download Ocaml from:

http://caml.inria.fr/distrib/ocaml-3.06/ocaml-3.06.tar.gzinstalling Ocaml The Way Mldonkey Would:

./configure -prefix / usr -no-tk -with-pthread &&

CD Config &&

MV Makefile makefile.old &&

Sed /

"S / OtherLibraries =. * / OtherLibraries = Unix Dynlink Num Str BigArray Threads /" /

Makefile.old> Makefile &&

CD .. &&

Make World Opt Opt.opt &&

Make install_manodir = / tmp install

There Are Several Gui Implementations for Mldonkey. You can use themed to

Each Other Since The All Use A Client-Server Model To Communicate with the THE

MLDONKEY Daemon. it is not required to install any gui wegh, since you can

Also Communicate With The Mldonkey Daemon Via Telnet or Via a WebBased Gui. To

Build The GTK-1.2-Based GUI Bundled with Mldonkey, You Require Lablgtk.

Download Lablgtk from:

http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/Lablgtk-1.2.6.tar.gz

Install lablgtk:

Make Configure &&

Make &&

Make Opt &&

Make Install

Installing Mldonkey:

Get your source from http://savannah.nongnu.org/download/mldonkey/. The current

Stable Release Can Be Downloaded from

Http://savannah.nongnu.org/download/mldonkey/release-2.5-4/official/mldonkey-2.5

-4. Tar.gz. Compile It with the folloading commands:

./configure --prefix = / usr &&

Make &&

Make Install

If you only want to use mldonkey for the edonkey network, add --disable-multinet

To Configure Options. If You Want to Disable The GUI: --disable-gui. Check

--help for other options.

To Install the G2GUI:

Haven't Tried Compiling It Yet, But Installing The GTK2 or Motif Version IS A

Breeze. Download the appropriate File from

Http://developer.berlios.de/project/showfiles.php?group_id=610, unpack it andrun g2gui.sh. It Needs a java vm in the path though.

Running Mldonkey:

It is recommented to use a seperate user for mldonkey, for example "mldonkey".

Make Sure It Is An Unique User WHO Only Has Access To His Home Directory. I Use

The Following Commands to Start Mldonkey with daemontools' setuidgid:

CD / Home / Mldonkey / EXEC / USR / BIN / ENV - PWD = / Home / Mldonkey / Sbin / Setuidgid Mldonkey

/ usr / bin / mlnet -stdout

A Similar Command Which Uses Su Would Go Like this:

Su - mldonkey;

CD $ HOME

/ usr / bin / env -i home = $ home shell = / bin / bash /

/ bin / bash --noprofile - Norc

/ usr / bin / mlnet -stdout

The daemon now Runs and Outputs a lot of messages. You Can Run IT in The

Background by Leaving Out the -stdout and putting an ampersand (&) at the end of

THE LINE. You can also Run It supervised with daemocks. The first thing

Daemon Tries to Do Is Connect to a Server. Allthough The Edonkey Protocol IS

DECENTRALIZED AND FUNCN Server-Less, Servers Are Used AS Catalogue to Speed

Up Searches. Mldonkey Comes with A Large ServerList and Automatically Maintains

ITS Server Lists, So this Part Doesn't Require Any Action. If You Have Trouble

Connecting, Your Firewall May BE Blocking The Daemon. My BLFS FireWall Allows

Mldonkey to work with the folowing line:

Iptables -a INPUT -P TCP - Dport 4662 -M State --State New, Establish /

-J ACCEPT

You May Check The Following Resources if That Doesn't Work Though (Watch Line

Wrapping:

http://mldonkey.berlios.de/modules.php?name=wiki&pagename=firewall

Http://mldonkey.berlios.de/modules.php?name=wiki&pagename=whatfireWallportstoop

EN

Http://mldonkey.berlios.de/modules.php?name=wikikienename=iptableslast But Not Least: It's also Possible To Compile Mldonkey Staticly and

Install it in a chroot. this shouth't be a lot of work for people Who Are

Experienced in That Sort of Thing.

Configuring Mldonkey:

You can Control Mldonkey Via Several Ways:

* Via your browser: http://127.0.0.1:4080/

* Via The GTK GUI: MLDONKEY_GUI

* Via Telnet: Telnet 127.0.0.1 4000

Start Downloading Files By Using The Input Field in Your Browser,

THE ED2K: // Field at the bottom of the downloads tab in the gui or by "DLLINK

ED2K: // "VIA Telnet. if you like to share files, put them in

/ home / mldonkey / incoming / and they'll automatically be shaped.

To Enable Mozilla / Mozillafirebird to Automatically Download ED2K: // Links, COPY

/usr/src/mldonkey/distrib/ed2k_mozilla/src/ed2kprotocol.js to

/us/lib/mozilla/components/ed2kprotocol.js. Now all links on the lfs package

Page Work! To Use Mldonkey with KDE / KONQUEROR, Install the Program At

http://www.gibreel.net/projects/kmldonkey/

Links:

OFFICIAL EDONKEY HomePage: http://www.edonkey2000.com/

Official mldonkey homepage: http://www.nongnu.org/mldonkey/

MLDONKEY World (Community Page): http://mldonkey.berlios.de/

MLDONKEY FAQ: http://www.nongnu.org/mldonkey/faq.html

Acknowledgements:

* None yet

Changelog:

[2003-11-06]

* Initial Hint.

[2003-11-07]

* SPELL Fixes. Added Information About The Different GUI'S.

转载请注明原文地址:https://www.9cbs.com/read-37392.html

New Post(0)