aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Handle ed2k-links remotely with Windows client  (Read 8341 times)

dukeofnukem

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Handle ed2k-links remotely with Windows client
« on: March 30, 2006, 11:30:48 AM »

Alohá!

So, everything is working really great so far, I'm using amuled on my linux box (no X) with amuleWEB as the frontend for Firefox on my M$-machine.

Now I'd like to add links remotely just by clicking on them and with only my browser and a call to an external script / program

Since there doesn't seem to be an amuleGUI available for windows that's out of the question, wouldn't have liked that solution that much anyway since from reading around I get the impression that amuleWEB has more functionality (or more of it works).

The zipfile available for Windows contains (beside the amule itself) the small program ed2k about which the wiki states:
Quote
The ed2k command doesn't communicate with aMule through the External Connections interface. Instead, it communicates through the ED2KLinks file.
Also:
Quote
Inspite of the External Connections interface, this interface is mono-directional. and inspite of the Online Signature interface, this one is in-going.

It consists of a regular text file in aMule's directory (in *nix systems that is at ~/.aMule/) which contains the eD2k links aMule should download.

As soon as aMule detects that file's existence, it reads it, starts downloading the links in it, and deletes the file.
My idea would be that in order to simply click on a link in my firefox and amule to download it, I have to

- take a look at how the file is called that ed2k creates

- mount my ~/.aMule folder on my Win-box as a network drive via SMB

- configure my firefox and use ed2k or some other means to create the file that amuled then imports and erases

Would that work? Does anybody have any better / shorter / cleaner ideas on how to implement that?
Logged
CU ;) DoN Mink
aka Netw(o)r King


Drum&Bass is a state of mind

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Handle ed2k-links remotely with Windows client
« Reply #1 on: March 30, 2006, 11:40:44 AM »

there should be a server/client thingy in the development forum from some user who createt that..

so you could simple click on win32 IE-ed2k link and it would send it to daemon...

with the smb-share I doubt it works

btw there is a windows Remote-gui but it cant send the ed2k links to daemon
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."

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Handle ed2k-links remotely with Windows client
« Reply #2 on: March 30, 2006, 01:07:32 PM »

you can always use amulecmd
Logged

dukeofnukem

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Handle ed2k-links remotely with Windows client
« Reply #3 on: March 31, 2006, 11:01:52 AM »

Where would I go to find amulecmd for Windows?

Haven't tried the SMB share yet, but why shouldn't it work if all that happens is that ed2k writes links into a file that is parsed by amuled for ed2k-links and erasing it afterwards?

All I can think of would be the CR+LF problem but since ed2k.exe is designed to write a file that amuled can read I should hope it works  :]
Logged
CU ;) DoN Mink
aka Netw(o)r King


Drum&Bass is a state of mind

dukeofnukem

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Handle ed2k-links remotely with Windows client
« Reply #4 on: March 31, 2006, 11:09:19 AM »

found amulecmd for Windows, before I just didn't realize that the download=>windows link on the main page would not show all windows downloads but just amule itself and that You have to click on "all files" to see it:rolleyes:
Logged
CU ;) DoN Mink
aka Netw(o)r King


Drum&Bass is a state of mind

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Handle ed2k-links remotely with Windows client
« Reply #5 on: March 31, 2006, 11:47:09 AM »

WTF, someone actually thinks by himself!
Logged

dukeofnukem

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Handle ed2k-links remotely with Windows client
« Reply #6 on: March 31, 2006, 02:44:38 PM »

Maybe (if it's not too much trouble restructuring the php) it would save You (replying to unnecessary posts) and us (writing unnecessary posts) time if clicking a link in the "Download" section on the main page would actually show all files available for the respective OS 8)

Don't take this the wrong way, I was just confused as aMule-2.1.1-MSW.zip already contains a remote control tool - ed2k.exe - and there simply was no other download displayed. Thus I assumed that the only remote control tool provided as a binary for Win was ed2k.exe ;(

Actually I was looking for the amulecmd source when I discovered the binary in the "all files" section - but that was among, well, all files including OS X, CVS, Previous Version, etc...

Just my 2c
« Last Edit: March 31, 2006, 02:56:33 PM by dukeofnukem »
Logged
CU ;) DoN Mink
aka Netw(o)r King


Drum&Bass is a state of mind

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Handle ed2k-links remotely with Windows client
« Reply #7 on: March 31, 2006, 04:51:40 PM »

Maybe some categories on download might be an idea. Might.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Handle ed2k-links remotely with Windows client
« Reply #8 on: March 31, 2006, 05:10:21 PM »

You like it better now?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Handle ed2k-links remotely with Windows client
« Reply #9 on: March 31, 2006, 05:18:53 PM »

i do ,

btw the main download link of the forum itself still points to teh 2.1.0 download
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."

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Handle ed2k-links remotely with Windows client
« Reply #10 on: March 31, 2006, 05:35:29 PM »

Lies.
Logged

dukeofnukem

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Handle ed2k-links remotely with Windows client
« Reply #11 on: April 03, 2006, 10:55:35 AM »

Jsut checked back after the weekend and I really like it better. Now, if I could have a striped green-yellow do-thingy with blue flashes, a turbocharger and an integrated RSS feed please. Oh, and make it wireless...
Tnk Yu :)
Logged
CU ;) DoN Mink
aka Netw(o)r King


Drum&Bass is a state of mind

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Handle ed2k-links remotely with Windows client
« Reply #12 on: April 03, 2006, 12:56:57 PM »

Sure. Donations go to paypal@amule.org :P
Logged

dukeofnukem

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: Handle ed2k-links remotely with Windows client
« Reply #13 on: April 05, 2006, 02:34:16 PM »

Alright, here it goes again. Either I haven't found it yet or nobody who has suceeded in using amulecmd on a windows box as a remote controller catching links for amuled on a linux box has posted the proceedings.

So first I try amulecmd... maybe I should add to the wiki that the parameter syntax is somewhat different for the windows version than for the *nix version that's described in the wiki... later. Anyway, it basically works quite well.

Trying what the wiki states conerning firefox doesn't change anything about firefox complaining that ed2k is not a registered protocol. BTW, does anyone know the proper path syntax for files in the "about:config" section? Tried about everything, from "file:///" to *nix notation to case sensitive (registry) to URI but since this section never seems to take effect anyway I wouldn't know...

Stumbled upon this extension for Firefox and looking at the user comments it seems to work for local installations (*nix only?) but due to the lack of documentation or configuration abilities it turned out to be quite useless.

The addition about using a small script was tried although I don't think (but don't know for sure either) that parameters are passed to a command shell within windows when a program calls a .cmd or .bat (does anybody know anything for sure?) so I went and at least tried to get the IE section going.

IE doesn't seem to be able to interpret the link properly either, it complains that the document of the type "|file||" cannot be opened.

Funnily enough now firefox wants to launch an external application that uses the registry-setting made for IE but it doesn't seem to actually do so, pointing it to a test .bat that simply echoes something and pauses does as little as the full amulecmd call. Put the call in """ to avoid cut off parsing and all but to no avail.

A little disappointed I decided to give the ed2k.exe a try but due to my limited knowledge of what it actually does and my inability to find any documentation I couldn't figure out whether it checks the registry for an installation path of amule on the local machine or whether it can be told which file or path to write to or anything. When calling it on the command line with an ed2k link it does - right - nothing.

How in the world does anyone catch links in a windows browser and send them to a linux amuled using amulecmd?

I know I could try amuleGUI but I don't really want to install more software if it's possible this way, kinda a matter of personal pride X(
« Last Edit: April 05, 2006, 02:37:33 PM by dukeofnukem »
Logged
CU ;) DoN Mink
aka Netw(o)r King


Drum&Bass is a state of mind

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Handle ed2k-links remotely with Windows client
« Reply #14 on: April 05, 2006, 03:11:55 PM »

I'll have to try at some point.
Logged
Pages: [1] 2