aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amulecmd help  (Read 3783 times)

karmacoma

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
amulecmd help
« on: September 22, 2004, 11:19:21 AM »

Hi all,

I'm trying to use amulecmd from a remote computer. I do succesfully enter the text client but then :

[.aMule]$ amulecmd -p 4662

This is amulecmd (TextClient)

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

Creating client...
Now, doing connection....
Using host localhost port 4662
Succeeded ! Connection established

---------------------------------
|       aMule text client       |
---------------------------------


Use 'Help' for command list


aMule$ show DL

aMule$

First I would like to ask how to change the passwrod, I've read a thread saying -f option should be used but no success....

And secondly, everything seems to be working fin but there is no answer from the client doe anybody nknow why????

By the way I installed aMule via rpm package not maunal installation....

Thanks a lot for your help!!!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amulecmd help
« Reply #1 on: September 22, 2004, 01:01:49 PM »

karmacoma,

Which version are you testing? rc5? If so, please, try a current cvs tarball, there are many bug fixes.

http://amule.hirnriss.net/cvs/aMule-cvs-20040922.tar.bz2

The parameter -f is used so that the user does not have to enter the password. It will get the password from the ~/.eMule file. To change the password, you need to run aMule and go to Preferences->Remote_Controls->External_Connection_Parameters.

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

Cheers!
Logged

karmacoma

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amulecmd help
« Reply #2 on: September 22, 2004, 03:06:28 PM »

Thanks a lot Phoenix,

I'll try and let you know... (I guess I should uninstall old RPM first....)
Logged

karmacoma

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amulecmd help
« Reply #3 on: September 24, 2004, 11:55:06 AM »

Hi Phoenix,

I've tried to install the CVS version and found a lot of problems with curl installation. It seems it needs the file curl-configure but it cannot find it. I searched for it but it is not in my installation. However, when checking the Mandrake installation it appears as already installed....

Then I tried to unsinstall it and install it again but the uninstallation was affecting several other programs and I didn't follow on....

Any hint??

thanks a lot
Karmacoma
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amulecmd help
« Reply #4 on: September 24, 2004, 01:54:51 PM »

karmacoma,

Why are you using -p 4662 parameter on amuleweb command line? This is probably wrong, because 4662 is the default amule TCP port. Check what are your port settings in amule preferences. The port number that you specify with -p is the amule external connection port, usually 4712, which is default and needs not to be specified, unless you have changed it (Preferences->Remote_Controls->External_connection_parameters). If you have a password set, use amulecmd with the parameter -f only.

Another thing, to run amulecmd in one computer and control amule in another computer, you have to do:
$ amulecmd --remote-host=192.168.1.1
(use the right IP :P)

The password will be asked.

About the curl problem, you can try to uninstall and install again the rpms. In my system, I have:

$ rpm -qa | grep curl
curl-devel-7.11.1-1
curl-7.11.1-1

Cheers!
Logged

Seagull

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 154
Re: amulecmd help
« Reply #5 on: September 24, 2004, 09:24:42 PM »

libcurl2-devel-7.11.0-2mdk in Mandrake 10

config is in the devel packages, anyway.
Logged

karmacoma

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amulecmd help
« Reply #6 on: September 26, 2004, 09:11:51 PM »

Hi Phoenix,

I'm conecting to my machine through SSH. From the machine itself I try :

[oscar@Moebius oscar]$ amulecmd -f
Unknown option 'f'
Usage: amulecmd [-rh ] [-p ]
  -rh, --remote-host=      host where aMule is running (default localhost)
  -p, --port=              aMule's port for External Connection


If I try the amlecmd with no parameter

[oscar@Moebius oscar]$ amulecmd

This is amulecmd (TextClient)

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

Creating client...
Now, doing connection....
Using host localhost port 4712
Connection Failed. Unable to connect to the specified host


The only way to get into the text client is as it shown above....

The Remote config has:

1.- Accept External Connection - checked
2.- Use TCP ports instead of Unix sokets  -  checked with external port 4672 (default)
3.- Activate Password - Checked

Thanks a lot again!!!!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amulecmd help
« Reply #7 on: September 27, 2004, 10:49:50 AM »

karmacoma,

aMule must be running at the machine (in your case Moebius) *before* you run amulecmd. (Don't get me wrong, some people do that mistake, just checking :D ). The connection between amulecmd and aMule is usually done through TCP port 4712, which is the default external connection port. Unless you have changed that, this should work.

Well, seems to me that you are using rc5, and maybe amulecmd-rc5 does not accept the -f parameter, but that is just to make users life easier... You can always type the password by hand :)

Connecting to TCP port 4662 will not work. With the configuration parameters you have, you would have to do $ amulecmd -p 4672, which is not default.

Do the following in your configuration:
Preferences->Remote_Controls->External_Connection_Parameters:
Change the External TCP port to 4712.
That way you have default values right and will not need -p .

Anyway, I would advise you to use a recent cvs tarball instead of rc5, because there have been *many* changes to that code and many bug fixes.
Logged

karmacoma

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amulecmd help
« Reply #8 on: September 29, 2004, 05:18:19 PM »

Hi Phoenix,

I just did it. I think there were two problems:

1.- I didn't have the proper .tmpl file and the proper amuleweb directory

2.- I was not starting the amuleweb at all...

So what I did was just copy the proper file/directory and then start the amuleweb and it just worked...

Thanks a lot for your help!!!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amulecmd help
« Reply #9 on: September 29, 2004, 07:34:41 PM »

karmacoma,

Nice to hear that, but I think that your original question was about amulecmd, not amuleweb.

amuleweb does not need to be running in order to run amulecmd. But if what you wanted was amuleweb, then I am happy that you have managed it to work! :)

Cheers!
Logged

karmacoma

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amulecmd help
« Reply #10 on: October 01, 2004, 09:11:05 PM »

Hi Phoenix

Yes, I was trying wth amulecmd and it is still what I want to run, however it only started to work after configuring properly amuleweb.... do not know why but it works!!!!!

Thanx!!!!
Logged