aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Amule like a deamon  (Read 6402 times)

fbnsantos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Amule like a deamon
« on: December 29, 2004, 01:04:24 AM »

hello,

I have a home server (with FC3) and I have instaled the amule in the server... But I want run the amule without X server and control on a remote PC, because this is for a multi user!!  it's possible?  if yes how I do this? or what is the solutions possible?

And I need that amule deamon work only at 3:00 at 9:00 because the internet provider is doing one promotion of free traffic....anyone can help me?

Thanks,
Filipe Santos
« Last Edit: December 29, 2004, 01:05:07 AM by fbnsantos »
Logged

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: Amule like a deamon
« Reply #1 on: December 29, 2004, 01:25:48 AM »

hi,

take a look here -> http://forum.amule.org/thread.php?threadid=4513

and also search for ' monolithic ' or ' daemon ' here on forum..
u need wxBase-2.5.3 on your server to compile amule daemon..
remote tools will be: amulecmd and webserver

cheers

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Amule like a deamon
« Reply #2 on: December 29, 2004, 09:10:24 AM »

and if it does not work wtih wxBase-2.5.3
try wxGTK-2.5.3...
some poeple reported problems when just using Base package.

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."

fbnsantos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
compile amuled
« Reply #3 on: December 30, 2004, 01:23:46 AM »

Ok, I have anderstood that I need to compile de amuled, but when I doo ./configure --enable-amule-deamon at the end of configure she says that emule deamon is not defined to compile, anyonne can help me with this? I need to compile amuled!

Thanks,
Filipe Santos
Logged

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: Amule like a deamon
« Reply #4 on: December 30, 2004, 01:44:04 AM »

well, post the end of your configure output plz

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Amule like a deamon
« Reply #5 on: December 30, 2004, 02:46:11 AM »

Quote
And I need that amule deamon work only at 3:00 at 9:00 because the internet provider is doing one promotion of free traffic....anyone can help me?

You can use amulecmd for this purpose with cron(8). To compile amulecmd add --enable-amulecmd to your configure flags.

About daemon compilation, please copy the end of configure output here, as deltaHF said.
Logged
concordia cum veritate

fbnsantos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
compile amuled
« Reply #6 on: December 30, 2004, 12:03:49 PM »

ok, the end of config i have this

I use :
Quote
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-wxcas --disable-alc --disable-systray --disable-amule-daemon --disable-gtk --disable-monolithic  

[/QUOTE]

and at the end a have:
Quote
Code: [Select]

  Configure script has finished system check.

  Configured aMule 2.0.0rc8 for 'i686-pc-linux'.

  aMule enabled options:

  **** aMule Core ****
  Should aMule be compiled in debug mode?                  yes
  Should aMule be compiled with verbose console output?    no
  Should aMule be compiled with upload speed sense?        no
  Should aMule be compiled with profiling?                 no
  Should aMule be compiled with optimizations?             no
  Should aMule be compiled with systray?                   no
  Should aMule be compiled with UTF-8 systray?             no
  Should aMule be compiled with pure GTK code?             no
  Should aMule be linked against patched gsocket?          yes
  Should aMule monolithic application be built?            no
  Should aMule daemon version be built? (EXPERIMENTAL)     no
  Should aMule remote gui be built? (EXPERIMENTAL)         no
  Crypto++ library/headers style?                          embeded

  **** aMule TextClient ****
  Should amulecmd (TextClient) be linked against wxbase?   yes
  Should aMule Command Line Client be built?               yes
  Should aMule GUI Client be built?                        no

  **** aMule WebServer ****
  Should aMule WebServer be built?                         yes
  Should aMule WebServer GUI be built?                     no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?      no
  Should aMuleLinkCreator for console (alcc) be built?     yes

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                yes
  Should aMule GUI Statistics (wxCas) be built?            no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                        no
  Libraries aMule will use to build:
                                       wxWidgets          2.4.2
                                       GTK                Not detected (Not used)

  NOTICE: With wxWidgets versions prior 2.5, you need wxBase library to compile:
          amuleweb amulecmd and alcc



the  amuleweb and amulecmd they are compiled...
« Last Edit: December 30, 2004, 12:05:37 PM by fbnsantos »
Logged

errico2

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 65
Re: Amule like a deamon
« Reply #7 on: December 30, 2004, 12:11:18 PM »

Hi fbnsantos:
I had this problem. It could be because you have wx-2.4.x. For compile amuled wx-2.5.x is needed.
If you seen the complete output of the ./configure (not only the last lines), you have to see any error: it will be the reason because it doesn't compile amuled.
Regards, errico2
Logged

errico2

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 65
Re: Amule like a deamon
« Reply #8 on: December 30, 2004, 12:12:28 PM »

Argggg, I didn't seen it:
Libraries aMule will use to build:
                                       wxWidgets          2.4.2
                                       GTK                Not detected (Not used)

You must install wxWidgets 2.5.x version to compile amuled.
Logged

fbnsantos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
run amuled
« Reply #9 on: December 30, 2004, 05:05:36 PM »

hello again,

Ok now I have the amuled (yes the problem was wx-2.5.x, now i have instaled the wx-ALL2.5.2)... but now i have another question, i run in my server amuled a i see:

Quote
Code: [Select]
I run amuled -i (I have tryed without i )

Initialising aMule
Userhash loaded: 15F1DE9B110E01010CE16CC121596FCE
*** UDP socket at 4665
*** reading servers
Loading temp files from /root/.aMule/Temp.
Empty dir /root/.aMule/Incoming/ shared
*** TCP socket at 4662
ListenSocket: Ok.
*** UDP socket at 4672
AICH Thread: Syncronization thread started.
AICH Thread: Masterhashes of known files have been loaded.
AICH Thread: No new files found.
AICH Thread: Thread terminated.




and I doo amuleweb (to serv a html page? i m right? I need to control de emule  with firefox or another web browser)

Quote
Code: [Select]
In the server I have the folling answers:
amuleweb

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

Creating client...
Now, doing connection....
Using host 'localhost.localdomain' port:4712
Trying to connect (timeout = 10 sec)...
Connection Failed. Unable to connect to the specified host

<<<<<<<<<<<<


amuleweb -p 4662
Enter password for mule connection (return if no pass defined):

Creating client...
Now, doing connection....
Using host 'localhost.localdomain' port:4662
Trying to connect (timeout = 10 sec)...
ECSocket::ReadBuffer error The socket is non-blocking and the operation would block
A socket error occured during authentication. Exiting.


<<<<<
but if i do in another pc of my network

amuleweb -rh 192.168.0.1 -p 4662

This is amuleweb (WebInterface)

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

Creating client...
Now doing connection...
Using host  port 4662

Trying to connect (timeout = 10 sec) ...
Succeeded ! Connection established

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


Use 'Help' for command list

Web Server: Started
amuleweb$
WSThread: Thread started
WSThread: created service
WSThread: created socket listening on :0

amuleweb$ Help

->Help: Avalaible commands :

Help: Shows this help.                                  Syns: help
Quit: Exits Textclient.                                 Syns: quit, Exit, exit
->End of listing


With the last try I have conected ... but in the webbrowser i do localhost:4711 or localhost:4662 and i do not see anything!!! and 4712 says conection refused

what i need to do for this work? it's possible control with the webbrowser isn't?

Thanks for answers,
Filipe Santos
« Last Edit: December 30, 2004, 05:12:54 PM by fbnsantos »
Logged

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: Amule like a deamon
« Reply #10 on: December 30, 2004, 08:44:50 PM »

hi,

http://www.amule.org/wiki/index.php/Webserver

check the howto plz and be sure to copy aMule.tmpl and the webserver dir (from amules /src) into your .aMule

cheers

fbnsantos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
LowID
« Reply #11 on: December 30, 2004, 11:03:57 PM »

ok, now I have the emuled and the amuleweb run well (my probleam was the file .eMule I have confused with preferences.dat  ?( )... now I have another problem that is the LowID, but I do d
no anderstood well this problem because with the others comp on the internal network the amule and emule run without lowid  (I have the iptables ok...) and on home server I have the problem LowID and the amuled start with the file with many sources and at 1mim pass drecrase very rapid? can anyone help me with this? the firewall is disable!!!

I have the amuled and amuleweb run in PIII 500MHz with FC3 AND IS MY ROUTER, and one client with firefox in another comp on the network... I do not use password that can be a problem?

And another problem is that anyone is uploading files, witch in another computers the files that they are in 2 min hare people uploading...

the comand iptables -L shows:

Quote
Code: [Select]
Chain INPUT (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere            state INVALID
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere            state RELATED
ACCEPT     all  --  anywhere             anywhere            state ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:https
ACCEPT     icmp --  anywhere             anywhere            state NEW
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:cvspserver
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:4661
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:4662
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:4242
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpt:4665
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:4243
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpt:4243
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpt:4241
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:4241
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpt:4244
ACCEPT     all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere            udp spts:4661:4665
ACCEPT     udp  --  anywhere             anywhere            udp dpts:4661:4665
ACCEPT     tcp  --  anywhere             anywhere            tcp spts:4661:4665
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:4661:4665
DROP       all  --  anywhere             anywhere            state INVALID,NEW
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
DROP       icmp --  anywhere             anywhere            state INVALID






Thanks for your attention
Filipe Santos
« Last Edit: December 30, 2004, 11:45:45 PM by fbnsantos »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Amule like a deamon
« Reply #12 on: December 31, 2004, 12:20:32 PM »

To use the daemon without losing sources, you need to get the latest cvs tarball.
Logged

fbnsantos

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
amuled download
« Reply #13 on: December 31, 2004, 02:02:19 PM »

Ok the problem of downloads a upload is solved thanks!! :) now the problem is the low ID this is a problem of this versions or this is only the problem on my server ? because I do not have firewall active!!!

thanks to deltaHF, stefanero,  errico2 and Kry for your attention

Thanks people for the help ;) and a happy new year !!! 2005
Filipe Santos

Viva Viva Viva 2005 um bom ano para todos ....
« Last Edit: December 31, 2004, 02:07:20 PM by fbnsantos »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Amule like a deamon
« Reply #14 on: December 31, 2004, 02:28:43 PM »

lowID is problem of your firewall-router settings....
not with server or amule

check http://wiki.amule.org
and then firewall

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."