aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Enable WebServer of aMule ...  (Read 11107 times)

Guest

  • Guest
Enable WebServer of aMule ...
« on: October 10, 2003, 12:55:21 AM »

Have amule a html interface like mldonkey?
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Http interface ...
« Reply #1 on: October 10, 2003, 01:48:57 AM »

Hi,

You can have a look on the already existing interface (just not activated by default) like this :

1) Shutdown aMule

2) copy from sources of aMule the directory "aMule-1.0.8/src/webserver/" in your "~/.aMule/webserver/".

3) copy from sources of aMule the file "aMule-1.0.8/src/aMule.tmpl" in your "~/.aMule/aMule.tmpl"

4) open a term and type :

echo -n "THEPASWORDYOUWANT" | md5sum | cut -d " " -f 1

This reply something like that :

324f85f6095f9e5fe25b6c85af44b445

5) edit your "~/.eMule" file, locate the "[WebServer]" section and change fields :

Port=10000 <- put the port you want aMule WebServer listen on
Enabled=1
UseGzip=1
Password=324f85f6095f9e5fe25b6c85af44b445 <- put here the password generated in term

6) Restart aMule

But you must know the WebServer is only partially implemented and probably also badly implemented :-).

Hope this help ...

A++
Logged
Creator of aMule & aStats projects

superstoned

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 80
Re: Enable WebServer of aMule ...
« Reply #2 on: October 10, 2003, 04:15:50 PM »

well, the current interface is good enough for me. what I'd like to have whould be support for (a) other p2p-network, some network which has loads of SMALL (mp3) files like gnutella for example. And maybe bittorrent integration, shouldnt be that difficult I guess cuz its very open??? Then I could controll bittorrent much easier as with the current gui...

anyway good work ;)
Logged

enkyl

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
html
« Reply #3 on: November 14, 2003, 02:50:29 AM »

Hi,

Your work is really huge.
The only thing i miss is the possibility to do searches in the web interface. (my amule is shared ...)

And with low priority:
- webserver tab in preferences (it's really a killerfeature to my mind)
- possibility to chose the localisation.

Thanks for your great work.

Enkyl
Logged

enkyl

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
xmule2 webinterface compatibility
« Reply #4 on: November 14, 2003, 01:16:11 PM »

Hello again,

I forgot to suggest you to adapt amule or the webinterface, to work with the xmule2 web interface.
(In case the separation of the core and the ui has not implied heavy changes in the way to adress resquests to the client...)
Logged

da fart

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Enable WebServer of aMule ...
« Reply #5 on: January 02, 2004, 10:15:42 AM »

with the new version of the webserver implementation it would be nice to have an "howto" update since the "sticky" doesn't seem to apply anymore
Logged

Guest

  • Guest
Re: Http interface ...
« Reply #6 on: January 02, 2004, 10:52:49 PM »

Quote
Original von BigBob

Hi,
1) Shutdown aMule
2) copy from sources of aMule the directory "aMule-1.0.8/src/webserver/" in your "~/.aMule/webserver/".
3) copy from sources of aMule the file "aMule-1.0.8/src/aMule.tmpl" in your "~/.aMule/aMule.tmpl"
4) open a term and type :
echo -n "THEPASWORDYOUWANT" | md5sum | cut -d " " -f 1
This reply something like that :
324f85f6095f9e5fe25b6c85af44b445
5) edit your "~/.eMule" file, locate the "[WebServer]" section and change fields :
Port=10000 <- put the port you want aMule WebServer listen on
Enabled=1
UseGzip=1
Password=324f85f6095f9e5fe25b6c85af44b445 <- put here the password generated in term
6) Restart aMule
A++


OK, I did.

[ksk@KS ksk]$
[ksk@KS ksk]$ amuleweb
amuleweb     amulewebDLG  
[ksk@KS ksk]$ amuleweb

This is amuleweb (WebServer)

Enter password for mule connection (return if no pass defined):

Creating client...
Now doing connection...
Using host localhost port /home/ksk/.aMule/muleconn
Accepted Connection from amuleweb

---------------------------------
|       aMule Web Server        |
---------------------------------


Use 'Help' for command list

*** creating web socket and starting listener!
Web Server: Started
aMule[web]$ *** WebServer: Using port: 30000

aMule[web]$


Why 30000, I don't know.
I defined port=10000 in /home/ksk/.eMule

[ksk@KS ksk]$
[ksk@KS ksk]$
[ksk@KS ksk]$ tail -n 20  /home/ksk/.eMule | head -n 9
[WebServer]
Port=10000
Enabled=1
UseGzip=1
Password=324f85f6095f9e5fe25b6c85af44b445
PasswordLow=
PageRefreshTime=10
UseLowRightsUser=0
[Razor_Preferences]
[ksk@KS ksk]$
[ksk@KS ksk]$
[ksk@KS ksk]$

[ksk@KS ksk]$ netstat -natep | grep -i listen | grep -i amule
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:30000           0.0.0.0:*               LISTEN
507        315752216  28297/amuleweb      
tcp        0      0 0.0.0.0:65011           0.0.0.0:*               LISTEN
507        315623983  19672/amule        
[ksk@KS ksk]$
[ksk@KS ksk]$

My problem is, that every www browser freezes. So amuleweb doesnt' work.


lynx localhost:30000


HTTP request sent; waiting for response.

opera, mozilla was also only waiting...
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Http interface ...
« Reply #7 on: January 04, 2004, 01:24:38 PM »

Hi there,
very good job with this new amule version. it runs even better then the one before.
I have the same problem with the webinterface. I also changed the line 72
from WebTemplateFile=eMule.tmpl to WebTemplateFile=aMule.tmpl
since aMule.tmpl is our template file.
Still no affect.

Also I have a very basic question. When I enable the webinterface with
Enabled=1
does it start automatically like it does in the original windows version or do I have to start it manually starting ./amuleweb  ???

Another problem seams to be when I start the amuleweb with the command
./amuleweb -p 8890 <-- should create the webinterface at port 8890
I always get the message
Using host localhost port 8890
aMule is not running, not accepting connections or wrong password supplied


but I typed the password definded in /home/user/.eMule  which we created before with echo -n "password" | md5sum | cut -d " " -f 1
when I start the ./amuleweb without any port definition it starts successfull. but only when I type a blank password. Then I connect with my webbrowser to port 30000 and try to login it does not work. not with the password defined in
/home/usr/.eMule and not with the blank one.
If you can give me and the other guys any hints that would be very welcome.
Thanks upfront.
Carpe diem. :)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Enable WebServer of aMule ...
« Reply #8 on: January 04, 2004, 01:55:07 PM »

u guys better wait for shakraw.. the import of webserver interface from eMule 30e isn't complete yet.

greets
delta

shakraw

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: Enable WebServer of aMule ...
« Reply #9 on: January 13, 2004, 07:23:00 PM »

Please refer to the new amuleweb[Dlg] mini-HowTo here
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Enable WebServer of aMule ...
« Reply #10 on: January 14, 2004, 10:41:16 AM »

?(
Hi there,I did not whanted to ruin your "how to" so I post my little bugs here  ;)

So I first tryed the 1.2.4 version with the webinterface.  because I had some compile errors with the cvs version, but I'll try that later again.
in my .eMule file I put wrote:

[WebServer]
Password=1a1dc91c907325c69271ddf0c944bc72
PasswordLow=
Port=8890
Enabled=1
UseGzip=1
PageRefreshTime=120
UseLowRightsUser=0
.....
[ExternalConnect]
AcceptExternalConnections=1
ECUseTCPPort=1
ECPort=8892
ECPassword=1a1dc91c907325c69271ddf0c944bc72


and then I started the amuleweb like that:
./amuleweb -rh localhost -p 8892

the -h option you wrote was not there, maybe in the CVS version. but does not matter actually my amuleweb booted fine, also with the pass I definded. only problem is that:

*** creating web socket and starting listener!
*** WebServer: Using port: 30000
Web Server: Started


so should not it create the Webserver at port 8890 how I definded in the .eMule file??

So when I tryed my mozilla at http://localhost:30000 the webinterface poped up. But when I tryed http://localhost:8890 nothing came. But 8890 was the port for the amule to listen on definded in .eMule file.
So I try CVS version now but maybe somebody can give any help for the 1.2.4 version  :)
thanks upfront
stefanero

carpe diem
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
:)
« Reply #11 on: January 14, 2004, 11:22:47 AM »

jubie

the current CVS version worked fine  :D
oleole

except for the final login  ?(
hmmmmm, I'll change the pass maybe that workes
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
hmmm
« Reply #12 on: January 14, 2004, 01:06:28 PM »

can anybody else login?   ;(

I left the options like I posted in the beginnin of this page.
anything I missed?  :(

thanks for the help
stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Enable WebServer of aMule ...
« Reply #13 on: January 16, 2004, 10:00:39 AM »

workes now finally :) juhu!!!!!!!!!
in the current CVS version!!! oleoleole

thanks a lot  :D
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."