OpenWrt Forum Archive

Topic: aMule@OpenWRT working like a charm!

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Here is compiled version of aMule for whiterussian and some install tips (in Polish):

http://eko.one.pl/index.php?page=openwrt-amule 

I tried it with WR0.9 and Asus WL-500gP and 2GB pendrive and it works! You can use web-gui or (for me better solution) amulegui to manage the client (search, adding new downloads etc).

i did found the binaries some weeks ago. but i dont see any source. will you trust on some unknown binaries? do you know the author of the website? any way of getting the patches?

This is my website smile.  Do you want sources/patches?

obsy, can we compile it to Kamikaze 2.6 from your sources?

Titus-36, what is the problem with "unknown binaries"? if it works i think it is ok.

P.S. aMule @ low power & quiet device is what I wanted for long time! Thank you!

(Last edited by Marek on 7 Mar 2007, 11:41)

Probably titus-36 thought about additonal code (spy? warez?) smile I'll publish sources evening on my website.

Marek wrote:

obsy, can we compile it to Kamikaze 2.6 from your sources?

Here you go: https://dev.openwrt.org/ticket/1248

I already ported it a month ago and opened a ticket. Nico already accepted the ticket. Should be easy to backport it with the WR SDK.

(Last edited by forum2006 on 7 Mar 2007, 16:31)

Hi,
I'm trying to compile amule but I don't know how,
so sorry for the stupid questions but:
At the ticket 1248 there is a amule-configuration file in that is written that:

Apply the three patches...

So how do I do that? If I just copy the 3 files to ".../packages/net/amule/patches" and after that I do "make menu config" then in the menuconfig network, amule doesn't show up.

2. packages/net/amule/Makefile needs some cleanup in the Build/Configure section. Maybe there is an easier way to to this.

I don't have the "Makefile" from where do I get that file?

Marek wrote:

Here is compiled version of aMule for whiterussian and some install tips (in Polish):

http://eko.one.pl/index.php?page=openwrt-amule 

I tried it with WR0.9 and Asus WL-500gP and 2GB pendrive and it works! You can use web-gui or (for me better solution) amulegui to manage the client (search, adding new downloads etc).

An english translation would be great...

Hi,
I already read that, but that version was compiled for White Russion. I'm using Kamikaze and have to compile it myselve.

Hi,

I tried to install amule following the Osby's documentation (in Polish) on my Wl-500gp with WR0.9.
The amuleweb doesn't work:

$amule start
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
amuled: forking to background - see you

$ amuleweb
This is amuleweb 2.1.3
Enter password for mule connection:

Creating client...
Connection Failed. Unable to connect to the specified host

It seems that amuleweb is not good for WR0.9, I think!

I saw Marek wrote above about web-gui and amulegui to manage the amule client, but I don't have any idea where to get it for WR0.9.

the same problem for amulecmd too:

$ amulecmd
This is amulecmd 2.1.3
Enter password for mule connection:

Creating client...
Connection Failed. Unable to connect to the specified host

p.s. the password used for the connection is stored on amule.conf file too.

Anycase the ps command shows the emule deamons are started:

$ ps |grep amule
  697 amule       444 S   -ash
  714 amule      4224 S   /tmp/shared/bin/amuled -f
  715 amule      4224 S   /tmp/shared/bin/amuled -f
  716 amule      4224 S   /tmp/shared/bin/amuled -f
  725 amule      4224 S   /tmp/shared/bin/amuled -f
  743 amule       340 R   ps
  744 amule       280 S   grep amule

Did you have a similar problem? Suggestion?

have you hashed your password using MD5?

echo -n password | md5sum | cut -d ' ' -f 1

With amule_src.tgz and the WR SDK the compilation of aMule failed:

checking for zlib >= 1.1.4... cross-compilation detected, checking only the header
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gdlib-config... /home/ubuntu/wr-post0.9/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.33)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libpng-config... /home/ubuntu/wr-post0.9/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking for gd.h... (cached) yes
checking whether we need the GUI... no
checking for /opt/wl-500gp/wxgtk/bin/wx-config... no
configure: error:
                wxWidgets must be installed on your system but wx-config
                script couldn't be found. Please check that wx-config is
                in path or specified by --with-wx-config=path flag, the
                directory where wxWidgets libraries are installed (returned
                by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
                equivalent variable and wxWidgets version is 2.6.0 or above.

make[2]: *** [/home/ubuntu/wr-post0.9/OpenWrt-SDK-Linux-i686-1/build_mipsel/aMule-2.1.3/.configured] Error 1
make[2]: Leaving directory `/home/ubuntu/wr-post0.9/OpenWrt-SDK-Linux-i686-1/package/amule'
make[1]: *** [amule-compile] Error 2
make[1]: Leaving directory `/home/ubuntu/wr-post0.9/OpenWrt-SDK-Linux-i686-1/package'
make: *** [package/amule-compile] Error 2
ubuntu@OpenWrt-DevEnv:~/wr-post0.9/OpenWrt-SDK-Linux-i686-1$

I'll try to clean up the things a bit to get it compiled with WR and Kamikaze....

(Last edited by forum2006 on 23 Apr 2007, 11:48)

forum2006 wrote:

With amule_src.tgz and the WR SDK the compilation of aMule failed:

... because you need also wxWidgets, yes.

Marek wrote:

have you hashed your password using MD5?

echo -n password | md5sum | cut -d ' ' -f 1

Thank you Marek, It works well now!
I haven't hashed the password before edit amule.conf.
Now I'm using amule without problem!

Now that I'm using amule, I just found a bug on my WL-500gp (WR0.9+usb2-HD):
The daemon "amuled" crashes every few minutes.
I don't know if it's a library problem or a memory problem.
In any case I added a swap memory of about 320Mbyte (maybe too big), but without successful.

# free
   total         used         free       shared      buffers
   Mem:      30516      29832           684              0         1084
   Swap:    321292       1236      320056
   Total:     351808     31068      320740

# swapon -s
   Filename                                                 Type            Size      Used     Priority
   /dev/scsi/host0/bus0/target0/lun0/part2    partition       321292  1236    -1

Due to continues crashes I thought to add a crontab script. The script checks every 1 minute if amuled is down in order to restart the daemon.

# crontab -l -u amule
*/1 * * * * /tmp/shared/home/amule/bin/amule-check

# cat /tmp/shared/home/amule/bin/amule-check

   #!/bin/sh
   INFO=`date`
   ps |grep amuled| grep -v grep || (/tmp/shared/bin/amule stop; \
   /tmp/shared/bin/amule start; echo "$INFO - amule stopped and started!" \
   >> /tmp/shared/home/amule/.aMule/start_log)

You can see the crashes from 8am on 24th of Apr 2007

Tue Apr 24 08:03:01 CEST 2007 - amule stopped and started!
Tue Apr 24 08:15:01 CEST 2007 - amule stopped and started!
Tue Apr 24 08:30:02 CEST 2007 - amule stopped and started!
Tue Apr 24 08:39:01 CEST 2007 - amule stopped and started!
Tue Apr 24 09:06:02 CEST 2007 - amule stopped and started!
Tue Apr 24 09:12:01 CEST 2007 - amule stopped and started!
Tue Apr 24 09:18:01 CEST 2007 - amule stopped and started!
Tue Apr 24 09:21:02 CEST 2007 - amule stopped and started!
Tue Apr 24 09:33:01 CEST 2007 - amule stopped and started!
Tue Apr 24 09:39:01 CEST 2007 - amule stopped and started!
Tue Apr 24 09:47:01 CEST 2007 - amule stopped and started!
Tue Apr 24 10:02:01 CEST 2007 - amule stopped and started!
Tue Apr 24 10:05:01 CEST 2007 - amule stopped and started!
Tue Apr 24 10:11:02 CEST 2007 - amule stopped and started!
Tue Apr 24 10:20:01 CEST 2007 - amule stopped and started!
Tue Apr 24 10:24:01 CEST 2007 - amule stopped and started!
Tue Apr 24 10:31:01 CEST 2007 - amule stopped and started!
Tue Apr 24 10:41:01 CEST 2007 - amule stopped and started!

Did you have the same problem? Did you fix it?

I have the same problem but not every few minutes but every few hours. If you decrease the total and per file connection limit you should got it more stable, but not full stable, even if you use big swap file.
I don't know what is the reason of this issue.
I tried to compile it for kamikaze with success, but the amule process crash imedetelly after some file start to download (connecting to servers, searching etc works correctly)..

news? did you fix the amule crash problem on WhiteRussian?
What is the best solution for P2P on WR? I need your opinion because my amule crashes every 20 minutes...it's not the good way to use P2P!

bye

move to kamikaze and search forum for amle for ipkg files or compile it by yourself. Its pretty stable.

maybe i am lucky, after swapon a 64m swap partition, amule works fine on my asus wl-hdd, whiterussian.
from midnight to this morning, it is stable. i will double check its status today.
but two new problems happened.
1, when amule start for a few minutes, can not run amulecmd or amuleweb, so that i cannot check status, add new download. only amule stop and start again, and immediately run amule cmd or amuleweb, i can operate amule.
2, cannot display chinese. it is difficult to search and manage downloads.
the 1st problem i think maybe caused by small memory of wl-hdd, it only has 16m. amule will eat all phisycal memory.
the 2nd problem maybe need re-compile amule?
anyone help. thx

hi guys, if your amule does not stable, use a new "server.met" file may be helpful.

I added a new server.met file butmy amule installation is very unstable.

It dies in about 6 seconds, It says it's forking to the background, it stay alive for about 6-10 secs and then dies.....

Anyone an idea?

m4rc0 wrote:

I added a new server.met file butmy amule installation is very unstable.

It dies in about 6 seconds, It says it's forking to the background, it stay alive for about 6-10 secs and then dies.....

Anyone an idea?

Dumb mistake forgot to set password...


Now I have to following problem....

root@Hellhound:/opt/tmp/shared# ./bin/amuleweb
FATAL ERROR: Cannot find template: php-default
This is amuleweb 2.1.3
Enter password for mule connection:

Yes I have set the template....

free
   total         used         free       shared      buffers
   Mem:      30516      29832           684              0         1084
   Swap:    321292       1236      320056
   Total:     351808     31068      320740

320Mb memory usage!!!??
I tried compiling mldonkey under a chroot mipsel debian on my asus wl500g deluxe some times ago.
I worked quite well, but I didn't make heavy usage with it.
It used about 40mb ram.
I don't think it is possible to cross compile it, as it is written in eiffel.
Compiling it inside the router with debian is very easy!

The discussion might have continued from here.