I know – filesharing is a difficult topic nowadays. But still, I need mldonkey from time to time – it’s useful to download large iso-images (who wants to do this with Firefox or wants to wait turning off the client until downloaded? This task has to reside on a server!)
So, today’s goal is getting mldonkey up and running. As older versions had some problems on the old server, I add net-p2p/mldonkey to /etc/portage/package.keywords. Then, I emerge mldonkey – but first, I have to add this line to /etc/portage/package.use:
media-libs/gd truetype
as indicated by portage.
After emerging, I configure and tweak mldonkey a little. Here’s my /etc/conf.d/mldonkey (without the comments):
USER="p2p"
MLDONKEY_DIR="/home/p2p/mldonkey"
LOG="/var/log/mldonkey.log"
USE_LOGGER=true
LOW_DOWN="5"
LOW_UP="1"
HIGH_DOWN="15"
HIGH_UP="3"
NICE="19"
SERVER="localhost"
PORT="4080"
Now, create /home/p2p/mldonkey and chown it to p2p:users. Start mldonkey (/etc/init.d/mldonkey), and it will create its structure in the directory. Stop it again.
Then, update two other files – first, donkey.ini (only the first, altered part):
port = 6667
max_connected_servers = 3
reliable_sources = true
ban_identity_thieves = true
server_black_list = []
force_high_id = false
force_client_high_id = false
update_server_list_server = true
update_server_list_server_met = true
update_server_list_client = false
max_sources_per_file = 500
The other file to alter is downloads.ini (again, just the relevant parts):
(************************************)
(* SECTION : Interfaces *)
(* Options to control ports used by mldonkey interfaces *)
(************************************)
allowed_ips = [
"127.0.0.1";
"10.10.10.0/24";]
(************************************)
(* SECTION : Bandwidth *)
(* Bandwidth options *)
(************************************)
max_hard_upload_rate = 0
max_hard_download_rate = 0
max_hard_upload_rate_2 = 5
max_hard_download_rate_2 = 20
max_opened_connections = 100
max_indirect_connections = 30
max_upload_slots = 3
max_release_slots = 20
friends_upload_slot = false
small_files_slot_limit = 10240
dynamic_slots = false
max_connections_per_second = 10
With these settings, we restart mldonkey and try to download some small files (like an .md5). Works – we’re done!













