aMule Forum
English => aMule Help => Topic started by: dukeofnukem 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:
The ed2k command doesn't communicate with aMule through the External Connections interface. Instead, it communicates through the ED2KLinks file.
Also: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?
-
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
-
you can always use amulecmd
-
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 :]
-
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:
-
WTF, someone actually thinks by himself!
-
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
-
Maybe some categories on download might be an idea. Might.
-
You like it better now?
-
i do ,
btw the main download link of the forum itself still points to teh 2.1.0 download
-
Lies.
-
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 :)
-
Sure. Donations go to paypal@amule.org :P
-
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 (http://www.amule.org/wiki/index.php/Ed2k_links_handling#Mozilla_1.7_(or_later)_&_Firefox_0.9_(or_later)) 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 (https://addons.mozilla.org/extensions/moreinfo.php?application=mozilla&category=Download%20Tools&numpg=10&id=609) 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 (http://www.amule.org/wiki/index.php/Ed2k_links_handling#Remotely_handling_links) 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 (http://www.amule.org/wiki/index.php/Ed2k_links_handling#Internet_Explorer) 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(
-
I'll have to try at some point.
-
well to start from teh back of your post
amuleGUI would not help here aswell....
ed2k tool creates a file in the .aMule dir (on the windows mashine) and a aMule running here would catch that file, and add it to the dl list --> so it wont help you aswell
I had 2 tools which could actually "pick" up the ed2k protocoll from any browser on windows, and compunicate with the linux-daemon, one send teh link to amuleweb itself
and one had a different "server" on the linux box who pasted teh link in the ed2k-file in the homedir, so amuled would pick it up aswelll
problem is, due to server swicht both threads with those tools are lost :-/
-
ahh the one who uses google finds what he needs ;)
one programm is called send2emule, I used it before with amuleweb and it works without problems...
another one whcih I havent tryed yet is CBB eMule Click Transfer
just google for those 2 and one will work
they both work teh same way, they require a working amuleweb. they will ask for your amuleweb password, and port and then send those ed2k links directly to teh amuleweb, this will add it to amule(d)
hope taht helps
edit: hmpf ok its really a while ago since I last used it..and it worked with our "old" amuleweb, but since we use amuleweb-php its not working anymore, since it cant login -> stupid cookies, I will talk to lfroen if he can somehow "enable that feature again"
-
Thanx guys, effort appreciated 8)
Another pragmatic idea that does involve manual interaction though is
- using something like a link extractor (https://addons.mozilla.org/firefox/605/) in firefox
- paste the link(s) into a text-file located somewhere on the linux box mounted via smb
- as a cronjob run dos2unix on the file, chmod / chown it and move it to the correct place (~/.aMule folder of the user running amuled)
And while a direct transfer especially via amuleweb would be a much better and more elegant solution one question remains in order to try this crude version: what is the filename and the format (plain text, lf?) amuled expects?
Oh, and just wondering: how often does amuled check whether the file is there? Sounds like a relatively resource intensive function, IMHO one wouldn't run a stat every second or so.
-
since forum search works again I found the thread in the devel forum -> http://forum.amule.org/thread.php?threadid=6831
-
Thanks, I'll try and contact fsaction later since the dl link is broken.
This requires a binary server to run on the linux box? Hope it won't be smashed to pieces at runtime by my grsecurity kernel ;(
-
short status report due to lack of time:
fsaction answered very quickly and provided me with a new version of his tool, big THANK YOU for that! :))
Unfortunately due to a various number of reasons I simply didn't have the time to try anything out yet but I'm quite confident that things will work out in the end. The upcoming holidays this weekend will hopefully give me the time to actually get back to it.
Will keep You updated...
-
Update:
Unfortunately things happened as I feared: fsaction's tool would be killed off by my grsecurity-kernel. But before I had the time to work on that problem with chpax this thread (http://forum.amule.org/thread.php?threadid=8626&sid=) came up and solved it all :))
Maybe make that sticky or put it in the FAQ?
Thanks for all the help! 8)