ITCooky Recipes

Lets cooky it yammy things!

Old Technologies – eMule: Installing the aMule p2p client on Raspberry Pi!

дата November 30, 2020

At the time of the massive promotional company of Torrents, when every teapot told about it, the eMule users laughed – why do you have to register if a true p2p works without all that by nature, that is, a priori! Now, of course, with the development of technology, the financial need (especially in Russia) in p2p methods of transferring information has disappeared, so eMule is of interest only to IT-archaeologists and marketers who insert it into their products to increase its functionality.(like Synology).

For the implementation, I need a Raspberry Pi, I have the fourth, ans i use homemade case (its not necessary)

Home server on Raspberry Pi 4 with NVMe, RTC, UPS in a DIY case!

Remember that p2p works for reception and delivery, decide if your internet connection method is suitable for this, it is good if the incoming and outgoing traffic is unlimited! The files are downloaded and delivered in parts, the task is distributed among all network participants, so it is very stable and effective; by the way, Windows updates work the same way and you distribute them from your PC to everyone else, somewhere in the depth of your configuration there is (Configuration -> Update and Security -> Windows Update -> Advanced configuration -> “Choose how and when to get updates.” Uncheck “Updates from multiple locations”) Well, and the games of course are downloaded via p2p, distributing huge files to everyone from a single source is impossible to organize for a large number of clients.

The eMule client for Windows has not been updated since 2010 and it still works, which is already impressive. The aMule Linux client was last updated in 2016, and we are going to install it. Excellent manual aMule en una Raspberry Pi Server: y olvídate de dejar el ordenador encendido descargando

sudo apt install amule amule-daemon

Add user
sudo adduser amule

Edit file
sudo vi /etc/default/amule-daemon

Here we indicate the username created for amule and its folder

# Configuration for /etc/init.d/amule-daemon

# The init.d script will only run if this variable non-empty.

# You can set this variable to make the daemon use an alternative HOME.
# The daemon will use $AMULED_HOME/.aMule as the directory, so if you
# want to have $AMULED_HOME the real root (with an Incoming and Temp
# directories), you can do `ln -s . $AMULED_HOME/.aMule`.

Firts start
sudo service amule-daemon start
It should have created the .aMule folder automatically, but it didn’t create it for me, you need to restart it
sudo /etc/init.d/amule-daemon restart
Yes now

Configuring access to amule behind web
It is convenient to work with aMule via the web, no need to connect a monitor and keyboard to the RPI

First, we create a password and translate it to md5
echo -n My_PassVV{}roI | md5sum

78c43e0ec84f7f92f1c6c7abc4576595  -

without dash character at th end

sudo vi /home/amule/.aMule/amule.conf

We look for this lines and write them like this, with our password


sudo /etc/init.d/amule-daemon stop
wait 10 seconds and do
sudo /etc/init.d/amule-daemon start

If everything is ok then amule will start listening ports, we need 4711 for web interface, see
netstat -lptn

(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0  *               LISTEN      -                   
tcp        0      0    *               LISTEN      -                   
tcp        0      0  *               LISTEN      -                   
tcp        0      0  *               LISTEN      -                   
tcp6       0      0 :::22                   :::*                    LISTEN

On a PC on the same network as RPI, go to the URL
instead of 123 ip of your raspberry

And we see that

Here we enter the password that we generated previously, we have one for the web as well as for AC (AC pass I think you can connect with it through amule software clients).

First, let’s connect to the server where there are more clients and files; In theory the server shouldn’t affect download speed and file search results, but it does affect a lot. To connect at the left of the server name, you need to click the small box with a check mark

Looks like eMule Security No1 is alive enough!

In settings, you can set maximum download and upload speeds, but still works without redacting

The search works with flaws: we write what we want to find clicks [Search] > nothing happens, we press [Click here to update the search results] > and only now the see results …

We put the check boxes to the left of what we want to download, and in the lower left, we click [Download] . Better to choose files with a large number of fonts – more than 10 is a lot!

It used to be recommended to open ports on your router for eMule to avoid getting LowID when connecting to server. Now it is not necessary and difficult: Internet providers (MTS, Megafon, etc.) decided that port forwarding is a separate service and you need to buy a static IP; 10 years ago it was not a special service.

The download, if there are many sources, starts in a couple of minutes and at high speed

After downloading, you need to delete the file from ./.aMule/Incoming folder or you can leave it there, then you will become another source for download!

If you are lucky enough to find something rare, old, and single source, you will wait for months to download it, easy with Raspberry Pi as it does not consume much electricity or space! And you may not download it, it all depends of the source!

If you don’t need amule to start at boot this can be disabled
sudo systemctl disable amule-daemon

To start amule manually, under user amule, you must specify the folder with amule files; you can place it anywhere, the main thing is to specify
sudo su -m amule -c '/usr/bin/amuled onestart -f --config-dir=/mnt/usb/.aMule/' > /dev/null 2

UPD: The amule web interface shuts itself down!
I fixed it with a monitoring script

mage file
vi /home/pi/
with code

if  /usr/bin/pgrep amuleweb 
echo "it works"
sudo /usr/bin/pgrep amuled | sudo /usr/bin/xargs kill
sleep 60
sudo su -m amule -c '/usr/bin/amuled onestart -f --config-dir=/mnt/usb/.aMule/' > /dev/null 2

And run it every 5 minutes
sudo crontab -e
add the line

*/5 * * * * sh /home/pi/

Leave a Reply

Your email address will not be published. Required fields are marked *