Difference between revisions of "Ed2k links handling-ko KR"

From AMule Project FAQ
Jump to: navigation, search
Line 8: Line 8:
 
As a general idea, in most [http://www.kernel.org Linux] systems, self-compiled [[aMule]]s will install the [[FAQ_ed2k_command|ed2k]] utility in ''/usr/local/bin/ed2k'', while package-installed [[aMule]]s will install it in ''/usr/bin/ed2k''. As an exception, it is known that [http://www.suse.com SuSE] packages install it in ''/usr/local/bin/ed2k''.
 
As a general idea, in most [http://www.kernel.org Linux] systems, self-compiled [[aMule]]s will install the [[FAQ_ed2k_command|ed2k]] utility in ''/usr/local/bin/ed2k'', while package-installed [[aMule]]s will install it in ''/usr/bin/ed2k''. As an exception, it is known that [http://www.suse.com SuSE] packages install it in ''/usr/local/bin/ed2k''.
  
== [http://www.microsoft.com/windows/ie Internet Explorer] ==
+
== [http://www.microsoft.com/windows/ie 인터넷 익스플러] ==
 
'''by ''[[User:Jacobo221|Jacobo221]]'''''
 
'''by ''[[User:Jacobo221|Jacobo221]]'''''
  
Line 25: Line 25:
 
Finally, do the same in ''HKEY_CLASSES_ROOT\ed2k\shell\open\command''
 
Finally, do the same in ''HKEY_CLASSES_ROOT\ed2k\shell\open\command''
  
== [http://www.konqueror.org Konqueror] ==
+
== [http://www.konqueror.org 권쿼러] ==
 
'''by ''gfdsa'''''
 
'''by ''gfdsa'''''
  
Line 51: Line 51:
 
'''NOTE2:''' If after clicking ''OK'' on the security warning the link is still not being sent to [[aMule]], just right-click on the [[ed2k link]] and tell [http://www.konqueror.org Konqueror] to open it in a new window/tab.
 
'''NOTE2:''' If after clicking ''OK'' on the security warning the link is still not being sent to [[aMule]], just right-click on the [[ed2k link]] and tell [http://www.konqueror.org Konqueror] to open it in a new window/tab.
  
== [http://galeon.sourceforge.net Galeon] ==
+
== [http://galeon.sourceforge.net 갈런] ==
  
=== Method 1 ===
+
=== 방법 1 ===
  
 
In the [http://freshmeat.net/projects/gnomecc GNOME Control Center] go to "Complex" -> "File Types and Programs" -> "Internet Services" -> "Add Service...".
 
In the [http://freshmeat.net/projects/gnomecc GNOME Control Center] go to "Complex" -> "File Types and Programs" -> "Internet Services" -> "Add Service...".
Line 65: Line 65:
 
Click ''OK'' and you're done!
 
Click ''OK'' and you're done!
  
=== Method 2 ===
+
=== 방법 2 ===
  
 
Execute the following three commands to create the appropriate ''gconf'' keys:
 
Execute the following three commands to create the appropriate ''gconf'' keys:
Line 76: Line 76:
 
*''gconftool-2 -u /desktop/gnome/url-handlers/ed2k --recursive-unset''
 
*''gconftool-2 -u /desktop/gnome/url-handlers/ed2k --recursive-unset''
  
== [http://www.opera.com Opera]  ==
+
== [http://www.opera.com 오페라]  ==
 
'''by ''thermoman (Marcel Meckel)'', ''ender'' and ''[[User:Jacobo221|Jacobo221]]''
 
'''by ''thermoman (Marcel Meckel)'', ''ender'' and ''[[User:Jacobo221|Jacobo221]]''
  
=== Clean way ===
+
=== 깔끔한 방법 ===
  
 
In [http://www.opera.com Opera] go to ''Tools->Preferences->Paths and Programms->Add...''
 
In [http://www.opera.com Opera] go to ''Tools->Preferences->Paths and Programms->Add...''
Line 89: Line 89:
 
http://www.amule.org/dev-up/ed2k-op.jpg
 
http://www.amule.org/dev-up/ed2k-op.jpg
  
=== Dirty way ===
+
=== 지저분한 방법 ===
  
 
If he above instructions didn't work, you can try edit ''/etc/opera6rc'' as root or ''~/.opera/opera6.ini'' as non-root and setting:
 
If he above instructions didn't work, you can try edit ''/etc/opera6rc'' as root or ''~/.opera/opera6.ini'' as non-root and setting:
Line 98: Line 98:
 
''ed2k=ed2k''
 
''ed2k=ed2k''
  
=== Opera 6 bug ===
+
=== 오페라 6 버그 ===
  
 
'''[http://www.opera.com Opera] 6''' doesn't pass complete URL to external programs; only URL without protocol. The way to walk around this follows.
 
'''[http://www.opera.com Opera] 6''' doesn't pass complete URL to external programs; only URL without protocol. The way to walk around this follows.
  
==== [http://www.kernel.org Linux] or some other [http://www.unix.org Unix]-like flavour ====
+
==== [http://www.kernel.org 리눅스] 혹은 [http://www.unix.org 유닉스]-같이 선호하는 좀다른것 ====
  
 
Create ''amule_submit.sh'' with this content:
 
Create ''amule_submit.sh'' with this content:
Line 111: Line 111:
 
Now in ''Tools->Preferences->Paths and Programms->Add...->Path'' or in the ''opera6rc'' file change ''ed2k=/path/to/ed2k'' with ''ed2k=/path/to/amule_submit.sh''
 
Now in ''Tools->Preferences->Paths and Programms->Add...->Path'' or in the ''opera6rc'' file change ''ed2k=/path/to/ed2k'' with ''ed2k=/path/to/amule_submit.sh''
  
==== [http://www.microsoft.com/windows Windows] ====
+
==== [http://www.microsoft.com/windows 윈도우] ====
  
 
Create ''amule_submit.bat'' with this content:
 
Create ''amule_submit.bat'' with this content:
Line 120: Line 120:
 
Change ''ed2k=/path/to/ed2k ed2k://%u'' with ''ed2k=X:\path\to\amule_submit.bat ed2k://%u''
 
Change ''ed2k=/path/to/ed2k ed2k://%u'' with ''ed2k=X:\path\to\amule_submit.bat ed2k://%u''
  
== [http://www.mozilla.org Mozilla] 1.7 (or later) & [http://www.mozilla.org/products/firefox Firefox] 0.9 (or later)==
+
== [http://www.mozilla.org 모질라] 1.7 (혹은 그이상) & [http://www.mozilla.org/products/firefox 불여우] 0.9 (혹은 그이상)==
 
'''by ''GhePeU'''''
 
'''by ''GhePeU'''''
  
Line 138: Line 138:
  
  
== [http://xray.sai.msu.ru/~karpov/links-hacked Links] ==
+
== [http://xray.sai.msu.ru/~karpov/links-hacked 링크스] ==
 
(Probably this will work for the usual links and/or [[ed2k link|elinks]], too)
 
(Probably this will work for the usual links and/or [[ed2k link|elinks]], too)
  
Line 201: Line 201:
 
Attention: The Percent Mark is important! Now links should work with [[ed2k link]]s.
 
Attention: The Percent Mark is important! Now links should work with [[ed2k link]]s.
  
== Remotely handling links ==
+
== 링크 원격 처리기 ==
  
 
You can also handle links remotely, which means that you click over an [[ed2k link]] in a browser somewhere in the world and it gets into your home's [[aMule]] queue.
 
You can also handle links remotely, which means that you click over an [[ed2k link]] in a browser somewhere in the world and it gets into your home's [[aMule]] queue.

Revision as of 18:05, 9 October 2006

영국말 | 독일말 | 네델란드말 | 한국말

The way to have aMule handle your ed2k links on your favorite WebBrowser will depend on which WebBrowser you use. So, here's a list of mini-HowTos for each of the most popular WebBrowsers. Have in mind that everywhere on this document, /path/to/ed2k should be replaced with /usr/local/bin/ed2k, /usr/bin/ed2k, C:\Program Files\aMule\ed2k.exe or whatever, depending on your own system's configuration.

As a general idea, in most Linux systems, self-compiled aMules will install the ed2k utility in /usr/local/bin/ed2k, while package-installed aMules will install it in /usr/bin/ed2k. As an exception, it is known that SuSE packages install it in /usr/local/bin/ed2k.

인터넷 익스플러

by Jacobo221

Go to "Start" -> "Run" and run "regedit" (without quotes).

Now, in regedit, go to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\shell\open\command

NOTE: It could happen that ed2k and/or it's subfolders didn't exist. In such case, create them one-by-one by selecting "New" -> "Key" and entering ed2k or whatever as it's value.

http://www.amule.org/dev-up/ed2k-win1.jpg

Now just double click on "(Default)" (or "(Standard)" or whatever the first value is there) and enter the path to the ed2k application, followed by "%1" (with quotes), so you should end with some value like C:\Program Files\aMule2\ed2k "%1".

http://www.amule.org/dev-up/ed2k-win2.jpg

Finally, do the same in HKEY_CLASSES_ROOT\ed2k\shell\open\command

권쿼러

by gfdsa

To have ed2k links work from Konqueror you have to add a protocol-file to the directory with the other protocol-files. You can find this directory by searching for file names ending with .protocol. To search run `find /usr -name "*.protocol"` or `find /opt -name "*.protocol"`. If you're not sure about the directory where KDE is installed you can even put / as search path.

If the search was successful, create a file named like ed2k.protocol in the mentioned directory:

[Protocol]
exec=/path/to/ed2k "%u"
protocol=ed2k
input=none
output=none
helper=true
listing=false
reading=false
writing=false
makedir=false
deleting=false

Now just restart Konqueror.

NOTE: You might get a security warning. don't worry. it is just warning you that the link is being sent to an external application.

NOTE2: If after clicking OK on the security warning the link is still not being sent to aMule, just right-click on the ed2k link and tell Konqueror to open it in a new window/tab.

갈런

방법 1

In the GNOME Control Center go to "Complex" -> "File Types and Programs" -> "Internet Services" -> "Add Service...".

In the protocol filed enter ed2k

In the Program field enter ed2k "%s"

Unselect "Run in terminal" if it is selected.

Click OK and you're done!

방법 2

Execute the following three commands to create the appropriate gconf keys:

  • gconftool-2 -t string -s /desktop/gnome/url-handlers/ed2k/command "/usr/local/bin/ed2k \"%s\""
  • gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/enabled true
  • gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/needs_terminal false

Replace "/usr/local/bin/ed2k" above with the path and name of the ed2k executable on your system.

Uninstalling this protocol handler is similarly simple:

  • gconftool-2 -u /desktop/gnome/url-handlers/ed2k --recursive-unset

오페라

by thermoman (Marcel Meckel), ender and Jacobo221

깔끔한 방법

In Opera go to Tools->Preferences->Paths and Programms->Add...

In the "Protocol" field enter ed2k

In the "Path" or "Open with another application" field enter /path/to/ed2k

http://www.amule.org/dev-up/ed2k-op.jpg

지저분한 방법

If he above instructions didn't work, you can try edit /etc/opera6rc as root or ~/.opera/opera6.ini as non-root and setting:

[User Prefs]
TrustedExternalURLProtocols=ed2k
[Trusted Applications]
ed2k=ed2k

오페라 6 버그

Opera 6 doesn't pass complete URL to external programs; only URL without protocol. The way to walk around this follows.

리눅스 혹은 유닉스-같이 선호하는 좀다른것

Create amule_submit.sh with this content:

#!/bin/sh
/path/to/ed2k "ed2k://$1"

Now in Tools->Preferences->Paths and Programms->Add...->Path or in the opera6rc file change ed2k=/path/to/ed2k with ed2k=/path/to/amule_submit.sh

윈도우

Create amule_submit.bat with this content:

X:\path\to\ed2k.exe "ed2k://%1"


Change ed2k=/path/to/ed2k ed2k://%u with ed2k=X:\path\to\amule_submit.bat ed2k://%u

모질라 1.7 (혹은 그이상) & 불여우 0.9 (혹은 그이상)

by GhePeU

Mozex doesn't work anymore with Mozilla 1.7 and Firefox 0.9. There is an alternate method that seems to be working with both of them:

  • Remove MozEx if installed or at least remove the ed2k input from it (only if MozEx is installed)
  • Insert about:config in the address bar
  • Right click on the list, select New, then Boolean; insert network.protocol-handler.external.ed2k as Preference Name and true as Value
  • Now another right click, select New and String; insert network.protocol-handler.app.ed2k as Preference Name and /path/to/ed2k (path to where the file is installed on your system) as Value.

http://www.amule.org/dev-up/ed2k-ff9.jpg

NOTE 1: Since version 1.5.x of Mozilla Firefox this method doesn't work any longer for the windows version. You must use the Internet Explorer method with the registry entries instead.


링크스

(Probably this will work for the usual links and/or elinks, too)

add to url.c behind the lines about telnet and tn3270:

 --snip
 {"ed2k", 0, NULL, ed2k_func, 0, 0, 0},
 --snap

add to links.h behind the definitions of /* mailto.c */:

 --snip
 void ed2k_func(struct session *, unsigned char *);
 --snap

add to mailto.c at the end:

 --snip
 void ed2k_func(struct session *ses, unsigned char *url)
 {
 tn_func(ses, url, options_get("network_program_ed2k"), TEXT(T_ED2K), TEXT(T_BAD_ED2K_URL));
 }
 --snap

add to options_register.c behind telnet and tn3270:

 --snip
 register_option_char("network_program_ed2k", TEXT(T_ED2K_PROG),NULL,2);
 --snap

add to intl/*.lng behind

 "T_TN3270_PROG": T_ED2K_PROG, "ed2k program", (or whatever that is in your language), behind
 "T_TN3270": T_ED2K, "ed2k", and behind 
 "T_BAD_TN3270_URL": T_BAD_ED2K_URL (I guess you've got the picture)

If you want to automatize this stuff, execute the following commands:

 cd intl
 for l in *.lng; do
   cp $l $l.bak
   cat $l.bak | sed -e "/T_TN3270_PROG*/aT_ED2K_PROG\, \"ed2k program\"\," \
    -e "/T_TN3270,\ */aT_ED2K\, \"ed2k\"\," \
    -e "/T_BAD_TN3270_URL*/aT_BAD_ED2K_URL\, \"Bad ed2k url\"\," > $l
 done
 

Anyway, run afterwards before recompiling links-hacked:

 ./synclang
 cd ..

Now you can compile with

 ./configure (add your favourite options here) &&
 make &&
 make install

Because links somewhat malforms the urls, we need a small bash script handler:

 cat > /usr/bin/ed2k4links.sh << "EOF"
 #!/bin/bash
 ed2k $(echo "ed2k://$1" | sed s/_/\|/g)
 EOF
 chmod a+x /usr/bin/ed2k4links.sh

Do not forget to setup links (Options->Network Options->Mail and Telnet Programs) to call our ed2k4links.sh for ed2k links:

 ed2k4links.sh %

Attention: The Percent Mark is important! Now links should work with ed2k links.

링크 원격 처리기

You can also handle links remotely, which means that you click over an ed2k link in a browser somewhere in the world and it gets into your home's aMule queue.

How?

Easy enough: using aMuleCMD (thanks djtm for this tip). Instead of using the ed2k command, use the following as the command to use:

/path/to/amulecmd -rh $server -pw $pw -c "Add %u"

On newer version the command is:

/path/to/amulecmd -h $server -P $pw -c "Add %u"

Obviously, you'll have to replace $server and $pw with your server's IP (or DNS) and your External Connections password.

Please note that the above tip is only available since aMule 2.0.0rc8.

NOTE 1: In Firefox, it is not possible to start a command with parameters. An easy solution is a shell script with the command described above. You only have to replace %u with $1. This shell script must be executable (chmod +x ed2k.sh) and defined as external ed2k app in Firefox.

NOTE 2: If you prefer simple tools, try this shell script (for Linux) - can be used with the above mentioned tip:

#!/bin/bash
beep -f 100 -l 40 -r2
(sleep 1; echo dllink $1; sleep 2; echo q;) | nc IP PORT
beep -l 15 -r3

nc is Netcat, but you can use telnet too (that's a bit simpler in Cygwin), beep is a simple program for beeping. IP and PORT should be replaced with the IP address and port of your remote server. That's it.

      • N O T E***

I found the perfect way to do this.

To make FireFox launch ed2k links correctly (in aMule) you have to follow some simple steps to tell it how to handle a new external protocol. This should get rid of the dreaded "ed2k is not a registered protocol" error you were most likely getting before.

  • Enter about:config in the address bar.
  • Right click on the list, select New, then Boolean; enter
 network.protocol-handler.external.ed2k as Preference Name and true as Value
  • Now right click, select New and String; enter

network.protocol-handler.app.ed2k as Preference Name and /usr/bin/ed2k