Ok, after a lot of reading and effort I've finally set up aMule working on my RT-N66U with entware. Probably easy for some of you, but let's help those that aren't very experienced.
I found this quite tricky because you need to change quite a lot of the default settings and it's not easy because 1) they are not very documented and 2) you don't have a GUI to play with. In the end I installed aMule in Ubuntu, configured it, grabbed the needed files and pasted them in the router's aMule.
I also read several guides about aMule on NAS systems, to configure the web interface and the remote GUI.
Prerequisite: I assume you have entware already installed. Please refer to Merlin's guide about how to install entware.
1) log in via telnet and type:
2) type:
3) type:
4) type:
This will create your aMule's password. Just enter your desired password where I wrote "yourpasswordhere". The command will output a long string, which you need to copy.
5) Download the attachment at the end of my post. Open in notepad++ (not windows notepad) the downloaded amule.conf file. Search "ECPassword=" and paste the string you copied at point 4. Search "Password=" and do the same.
Now search "TempDir=" and "IncomingDir=". These are the downloads folders, which you may want to change to your likings. Defaults are in /mnt/sda1/Torrent
You may want to change other settings in amule.conf. Just to mention some of them: MaxUpload (default is 0, i.e. unlimited upload speed; measured in kB), MaxDownload (default is 0, i.e. unlimited download speed; measured in kB), MinFreeDiskSpace (default is 10240, i.e. stop downloading if less than 10GB of free disk space).
I suggest that you also change the default TCP (Port=) and UDP (UDPPort=) ports, because they are blacklisted by some servers AFAIK.
7) Open shareddir.dat in notepad++ and enter here the folders you want to share with aMule. In the file I provide I share the folder /mnt/sda1/Media: adjust or delete this to your likings. One folder per line.
Please note that the Temp and Incoming folders are shared even if they aren't listed here.
8) Copy addresses.dat, amule.conf, nodes.dat, server.met, shareddir.dat to \\rt-n66u\entware\var\amule (it's /opt/var/amule if you copy via telnet).
9) Edit the firewall-start script as per Merlin's guide about Transmission: refer to the "Firewall configuration" section of that guide. Just use, instead of 51413, the port numbers you chose for TCP and UDP in amule.conf.
10) I found that you sometimes are given low id if aMule starts too early when you reboot your router. To workaround the issue, edit the services-start script (refer to Merlin documentation and google if you don't know how to do it) and enter "sleep 60" instead of "sleep 10".
11) reboot and everything should work!
You can use amule's web interface at the address 192.168.1.1:4711 in your web browser. Or you can download aMuleGUI from www.amule.org. Just download amule from there: open the downloaded archive and grab only the file called aMuleGUI.exe (for windows), that is the remote GUI. Open aMuleGUI.exe and input the router's ip (192.168.1.1) and port number 4712.
12) If you want to remove aMule from automatic startup at boot, see post #20. Credits to @Martineau.
Remember, when you want to edit amule.conf, you need to stop the daemon first. In telnet type "/opt/etc/init.d/S57amuled stop", do the changes you want to amule.conf, in telnet type "/opt/etc/init.d/S57amuled start".
One warning: I haven't enabled ipfilter automatic updates because they make aMule crash. This is a known bug, unfortunately.
You can manually update ipfilter by manually downloading ipfilter file from http://upd.emule-security.org/ipfilter.zip, extracting guarding.p2p and renaming it ipfilter.dat, stopping amule (in telnet "/opt/etc/init.d/S57amuled stop"), copying ipfilter.dat to \\rt-n66u\entware\var\amule, starting amule (in telnet "/opt/etc/init.d/S57amuled start").
I suggest doing this every once in a while.
Final note. You may want to have a look at this great webUI (credits to Matteo Ragni): https://github.com/MatteoRagni/AmuleWebUI-Reloaded
The installation steps differ from what the author says:
1) in telnet "/opt/etc/init.d/S57amuled stop"
2) browse to \\rt-n66u\entware\share\amule\webserver. You will find a folder called "default": rename it to whatever you want. Put the extracted folder here (i.e. in webserver folder) and rename it "default".
3) in telnet "/opt/etc/init.d/S57amuled start".
Attachment: View attachment amule.zip
I found this quite tricky because you need to change quite a lot of the default settings and it's not easy because 1) they are not very documented and 2) you don't have a GUI to play with. In the end I installed aMule in Ubuntu, configured it, grabbed the needed files and pasted them in the router's aMule.
I also read several guides about aMule on NAS systems, to configure the web interface and the remote GUI.
Prerequisite: I assume you have entware already installed. Please refer to Merlin's guide about how to install entware.
1) log in via telnet and type:
Code:
opkg install amule
2) type:
Code:
/opt/etc/init.d/S57amuled start
3) type:
Code:
/opt/etc/init.d/S57amuled stop
4) type:
Code:
echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
5) Download the attachment at the end of my post. Open in notepad++ (not windows notepad) the downloaded amule.conf file. Search "ECPassword=" and paste the string you copied at point 4. Search "Password=" and do the same.
Now search "TempDir=" and "IncomingDir=". These are the downloads folders, which you may want to change to your likings. Defaults are in /mnt/sda1/Torrent
You may want to change other settings in amule.conf. Just to mention some of them: MaxUpload (default is 0, i.e. unlimited upload speed; measured in kB), MaxDownload (default is 0, i.e. unlimited download speed; measured in kB), MinFreeDiskSpace (default is 10240, i.e. stop downloading if less than 10GB of free disk space).
I suggest that you also change the default TCP (Port=) and UDP (UDPPort=) ports, because they are blacklisted by some servers AFAIK.
7) Open shareddir.dat in notepad++ and enter here the folders you want to share with aMule. In the file I provide I share the folder /mnt/sda1/Media: adjust or delete this to your likings. One folder per line.
Please note that the Temp and Incoming folders are shared even if they aren't listed here.
8) Copy addresses.dat, amule.conf, nodes.dat, server.met, shareddir.dat to \\rt-n66u\entware\var\amule (it's /opt/var/amule if you copy via telnet).
9) Edit the firewall-start script as per Merlin's guide about Transmission: refer to the "Firewall configuration" section of that guide. Just use, instead of 51413, the port numbers you chose for TCP and UDP in amule.conf.
10) I found that you sometimes are given low id if aMule starts too early when you reboot your router. To workaround the issue, edit the services-start script (refer to Merlin documentation and google if you don't know how to do it) and enter "sleep 60" instead of "sleep 10".
11) reboot and everything should work!
You can use amule's web interface at the address 192.168.1.1:4711 in your web browser. Or you can download aMuleGUI from www.amule.org. Just download amule from there: open the downloaded archive and grab only the file called aMuleGUI.exe (for windows), that is the remote GUI. Open aMuleGUI.exe and input the router's ip (192.168.1.1) and port number 4712.
12) If you want to remove aMule from automatic startup at boot, see post #20. Credits to @Martineau.
Remember, when you want to edit amule.conf, you need to stop the daemon first. In telnet type "/opt/etc/init.d/S57amuled stop", do the changes you want to amule.conf, in telnet type "/opt/etc/init.d/S57amuled start".
One warning: I haven't enabled ipfilter automatic updates because they make aMule crash. This is a known bug, unfortunately.
You can manually update ipfilter by manually downloading ipfilter file from http://upd.emule-security.org/ipfilter.zip, extracting guarding.p2p and renaming it ipfilter.dat, stopping amule (in telnet "/opt/etc/init.d/S57amuled stop"), copying ipfilter.dat to \\rt-n66u\entware\var\amule, starting amule (in telnet "/opt/etc/init.d/S57amuled start").
I suggest doing this every once in a while.
Final note. You may want to have a look at this great webUI (credits to Matteo Ragni): https://github.com/MatteoRagni/AmuleWebUI-Reloaded
The installation steps differ from what the author says:
1) in telnet "/opt/etc/init.d/S57amuled stop"
2) browse to \\rt-n66u\entware\share\amule\webserver. You will find a folder called "default": rename it to whatever you want. Put the extracted folder here (i.e. in webserver folder) and rename it "default".
3) in telnet "/opt/etc/init.d/S57amuled start".
Attachment: View attachment amule.zip
Last edited: