<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://test.amule.szerverem.hu/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kr%C3%B3tki</id>
		<title>AMule Project FAQ - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kr%C3%B3tki"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/Kr%C3%B3tki"/>
		<updated>2026-04-05T22:45:00Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Ed2k_links_handling</id>
		<title>Ed2k links handling</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Ed2k_links_handling"/>
				<updated>2008-10-12T11:34:33Z</updated>
		
		<summary type="html">&lt;p&gt;Krótki: /* System-wide configuration */ fix the ed2k program's path&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[Ed2k_links_handling-de|Deutsch]] | &lt;br /&gt;
[[Ed2k_links_handling-nl|Nederlands]] | &lt;br /&gt;
[[Ed2k_links_handling-ko_KR|Korean]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The way to make [[aMule]] handle your [[ed2k link|ed2k links]] on your favorite web browser will depend on which web browser you use and which operating system you have installed. So, here's a list of mini-HowTos for each of the most popular web browsers and operating systems.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
= Local handling of ed2k links =&lt;br /&gt;
== GNU/Linux ==&lt;br /&gt;
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.opensuse.org SuSE] packages install it in ''/usr/local/bin/ed2k''.&lt;br /&gt;
&lt;br /&gt;
If you have installed Debian or Ubuntu '''you must install''' &amp;quot;'''amule-utils'''&amp;quot; to get this way working.&lt;br /&gt;
&lt;br /&gt;
=== [http://www.mozilla.org/products/firefox Firefox] 2 and 3 (or later)===&lt;br /&gt;
Handling ED2k links in Firefox can be configured in two ways: either for an individual user, or for all users of the computer.&lt;br /&gt;
&lt;br /&gt;
==== Configuration for a single user ====&lt;br /&gt;
*Insert ''about:config'' in the address bar&lt;br /&gt;
&lt;br /&gt;
*Right click on the list, select '''New''', then '''Boolean'''; insert ''network.protocol-handler.external.ed2k'' as '''Preference Name''' and ''true'' as '''Value'''&lt;br /&gt;
&lt;br /&gt;
*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'''.&lt;br /&gt;
&lt;br /&gt;
For Firefox 3 and higher only, you should also:&lt;br /&gt;
&lt;br /&gt;
*Right click on the list, select '''New''', then '''Boolean'''; insert ''network.protocol-handler.expose.ed2k'' as '''Preference Name''' and ''false'' as '''Value'''&lt;br /&gt;
&lt;br /&gt;
After that, click over an ed2k link, and Firefox should ask which app you want to use to open the link. Choose /usr/local/bin/ed2k and it should work.&lt;br /&gt;
&lt;br /&gt;
[[Image:Ed2k-ff3.png]]&lt;br /&gt;
&lt;br /&gt;
==== System-wide configuration ====&lt;br /&gt;
*Having root privileges, open the file ''/usr/share/firefox/greprefs/all.js'' (or ''/usr/local/share/firefox/greprefs/all.js'') in a text editor&lt;br /&gt;
&lt;br /&gt;
*Add the following lines at the end of the file:&lt;br /&gt;
 // ED2K link handling&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.external.ed2k&amp;quot;, true);&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.app.ed2k&amp;quot;, &amp;quot;/path/to/ed2k&amp;quot;);&lt;br /&gt;
Substitute the &amp;quot;/path/to/ed2k&amp;quot; string with the program's real path.&lt;br /&gt;
&lt;br /&gt;
For Firefox 3 and higher only:&lt;br /&gt;
*Add yet another line to the ''all.js''file:&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.expose.ed2k&amp;quot;, false);&lt;br /&gt;
&lt;br /&gt;
After saving changes, restart the browser. After clicking over an ed2k link, Firefox should ask which app you want to use to open the link. Choose /usr/local/bin/ed2k and it should work.&lt;br /&gt;
&lt;br /&gt;
=== [http://www.opera.com Opera]  ===&lt;br /&gt;
&lt;br /&gt;
In [http://www.opera.com Opera] go to ''Tools -&amp;gt; Preferences -&amp;gt; Programms -&amp;gt; Add...''&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Protocol&amp;quot; field enter ''ed2k''&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Open with another application&amp;quot; field enter ''/path/to/ed2k''&lt;br /&gt;
&lt;br /&gt;
[[Image:Ed2k-op.png]]&lt;br /&gt;
&lt;br /&gt;
=== [http://www.konqueror.org Konqueror] ===&lt;br /&gt;
To have ed2k links work from [http://www.konqueror.com 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 &amp;quot;*.protocol&amp;quot;`'' or ''`find /opt -name &amp;quot;*.protocol&amp;quot;`''. If you're not sure about the directory where KDE is installed you can even put ''/'' as search path.&lt;br /&gt;
&lt;br /&gt;
If the search was successful, create a file named like ''ed2k.protocol'' in the mentioned directory:&lt;br /&gt;
 [Protocol]&lt;br /&gt;
 exec=/path/to/ed2k &amp;quot;%u&amp;quot;&lt;br /&gt;
 protocol=ed2k&lt;br /&gt;
 input=none&lt;br /&gt;
 output=none&lt;br /&gt;
 helper=true&lt;br /&gt;
 listing=false&lt;br /&gt;
 reading=false&lt;br /&gt;
 writing=false&lt;br /&gt;
 makedir=false&lt;br /&gt;
 deleting=false&lt;br /&gt;
&lt;br /&gt;
Now just restart [http://www.konqueror.org Konqueror].&lt;br /&gt;
&lt;br /&gt;
'''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.&lt;br /&gt;
&lt;br /&gt;
'''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.&lt;br /&gt;
&lt;br /&gt;
=== [http://galeon.sourceforge.net Galeon] ===&lt;br /&gt;
&lt;br /&gt;
Execute the following three commands to create the appropriate ''gconf'' keys:&lt;br /&gt;
&lt;br /&gt;
*''gconftool-2 -t string -s /desktop/gnome/url-handlers/ed2k/command &amp;quot;/usr/bin/ed2k \&amp;quot;%s\&amp;quot;&amp;quot;''&lt;br /&gt;
*''gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/enabled true''&lt;br /&gt;
*''gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/needs_terminal false''&lt;br /&gt;
&lt;br /&gt;
Replace &amp;quot;''/usr/bin/ed2k''&amp;quot; above with the path and name of the ''ed2k'' executable on your system.&lt;br /&gt;
&lt;br /&gt;
Uninstalling this protocol handler is similarly simple:&lt;br /&gt;
*''gconftool-2 -u /desktop/gnome/url-handlers/ed2k --recursive-unset''&lt;br /&gt;
&lt;br /&gt;
=== [http://xray.sai.msu.ru/~karpov/links-hacked Links] ===&lt;br /&gt;
(Probably this will work for the usual links and/or [[ed2k link|elinks]], too)&lt;br /&gt;
&lt;br /&gt;
add to ''url.c'' behind the lines about telnet and tn3270:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''{&amp;quot;ed2k&amp;quot;, 0, NULL, ed2k_func, 0, 0, 0},''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''links.h'' behind the definitions of /* mailto.c */:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''void ed2k_func(struct session *, unsigned char *);''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''mailto.c'' at the end:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''void ed2k_func(struct session *ses, unsigned char *url)''&lt;br /&gt;
  ''{''&lt;br /&gt;
  ''tn_func(ses, url, options_get(&amp;quot;network_program_ed2k&amp;quot;), TEXT(T_ED2K), TEXT(T_BAD_ED2K_URL));''&lt;br /&gt;
  ''}''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''options_register.c'' behind telnet and tn3270:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''register_option_char(&amp;quot;network_program_ed2k&amp;quot;, TEXT(T_ED2K_PROG),NULL,2);''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''intl/*.lng'' behind &lt;br /&gt;
  ''&amp;quot;T_TN3270_PROG&amp;quot;: T_ED2K_PROG, &amp;quot;ed2k program&amp;quot;,'' (or whatever that is in your language), behind&lt;br /&gt;
  ''&amp;quot;T_TN3270&amp;quot;: T_ED2K, &amp;quot;ed2k&amp;quot;,'' and behind &lt;br /&gt;
  ''&amp;quot;T_BAD_TN3270_URL&amp;quot;: T_BAD_ED2K_URL'' (I guess you've got the picture)&lt;br /&gt;
&lt;br /&gt;
If you want to automatize this stuff, execute the following commands:&lt;br /&gt;
  ''cd intl''&lt;br /&gt;
  ''for l in *.lng; do''&lt;br /&gt;
    ''cp $l $l.bak''&lt;br /&gt;
    ''cat $l.bak | sed -e &amp;quot;/T_TN3270_PROG*/aT_ED2K_PROG\, \&amp;quot;ed2k program\&amp;quot;\,&amp;quot; \''&lt;br /&gt;
     ''-e &amp;quot;/T_TN3270,\ */aT_ED2K\, \&amp;quot;ed2k\&amp;quot;\,&amp;quot; \''&lt;br /&gt;
     ''-e &amp;quot;/T_BAD_TN3270_URL*/aT_BAD_ED2K_URL\, \&amp;quot;Bad ed2k url\&amp;quot;\,&amp;quot; &amp;gt; $l''&lt;br /&gt;
  ''done''&lt;br /&gt;
  &lt;br /&gt;
Anyway, run afterwards before recompiling links-hacked:&lt;br /&gt;
  ''./synclang''&lt;br /&gt;
  ''cd ..''&lt;br /&gt;
&lt;br /&gt;
Now you can compile with&lt;br /&gt;
  ''./configure'' (add your favourite options here) ''&amp;amp;&amp;amp;''&lt;br /&gt;
  ''make &amp;amp;&amp;amp;''&lt;br /&gt;
  ''make install''&lt;br /&gt;
&lt;br /&gt;
Because links somewhat malforms the urls, we need a small bash script handler:&lt;br /&gt;
  ''cat &amp;gt; /usr/bin/ed2k4links.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;''&lt;br /&gt;
  ''#!/bin/bash''&lt;br /&gt;
  ''ed2k $(echo &amp;quot;ed2k://$1&amp;quot; | sed s/_/\|/g)''&lt;br /&gt;
  ''EOF''&lt;br /&gt;
  ''chmod a+x /usr/bin/ed2k4links.sh''&lt;br /&gt;
&lt;br /&gt;
Do not forget to setup links (Options-&amp;gt;Network Options-&amp;gt;Mail and Telnet Programs) to call our ''ed2k4links.sh'' for [[ed2k link]]s:&lt;br /&gt;
  ''ed2k4links.sh %''&lt;br /&gt;
&lt;br /&gt;
Attention: The Percent Mark is important! Now links should work with [[ed2k link]]s.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
To make Windows aware of the ed2k link protocol we need to add some keys to the registry. Create a file called ed2k.reg and add this code:&lt;br /&gt;
 REGEDIT4&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k]&lt;br /&gt;
 @=&amp;quot;URL: ed2k Protocol&amp;quot;&lt;br /&gt;
 &amp;quot;URL Protocol&amp;quot;=&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\DefaultIcon]&lt;br /&gt;
 @=&amp;quot;C:\\Program Files\\aMule\\amulegui.exe&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell]&lt;br /&gt;
 @=&amp;quot;open&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open]&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open\command]&lt;br /&gt;
 @=&amp;quot;\&amp;quot;C:\\Program Files\\aMule\\ed2k \&amp;quot;%1\&amp;quot;&amp;quot;&lt;br /&gt;
Save the file and run it (double click) to add these keys to the registry.&lt;br /&gt;
&lt;br /&gt;
=== [http://www.microsoft.com/windows/ie Internet Explorer] ===&lt;br /&gt;
Internet Explorer will recognize ed2k links with just the changes in the registry.&lt;br /&gt;
&lt;br /&gt;
== Mac OS X ==&lt;br /&gt;
&lt;br /&gt;
Adapted from Ken's post in the [http://forum.amule.org/index.php?topic=5679.msg30209#msg30209 forum].&lt;br /&gt;
&lt;br /&gt;
# Run aMule at least once&lt;br /&gt;
# Run Safari (even if you normally use Firefox or another browser)&lt;br /&gt;
# Browse to a page with an ed2k link that you want to download&lt;br /&gt;
# Drag the link to the location field at the top of the window&lt;br /&gt;
# The OS will present a dialog asking if you want to allow a program to run to handle the link.  Allow it.&lt;br /&gt;
&lt;br /&gt;
Now, the program that helps aMule handle ed2k links is known to the system.&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
If you use Safari, you will have to drag the link to the location field every time.  For unclear reasons, Safari will not process ed2k (or other non-Apple protocol) links if you click on them.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
If you use Firefox, clicking on an ed2k link will work. The first time, for security purposes, Firefox will present a dialog asking if you want to allow the helper program to run. (Yes, even though the OS already asked you the same question.) After that, it will work just as you would expect.&lt;br /&gt;
&lt;br /&gt;
= Remote handling of ed2k links =&lt;br /&gt;
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. It works by using [[aMuleCMD]] instead of using the [[ed2k command]].&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Instead of using the [[ed2k command]], use the following as the command to use:&lt;br /&gt;
&lt;br /&gt;
''/'''path'''/'''to'''/amulecmd -h $server -P $pw -c &amp;quot;Add %u&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Obviously, you'll have to replace ''$server'' and ''$pw'' with your server's [[IP address|IP]] (or [http://www.webopedia.com/TERM/D/DNS.html DNS]) and your [[External Connections]] password.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In [http://www.mozilla.org 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.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
Make sure aMule is installed with the [[aMuleCMD]] option checked.&lt;br /&gt;
&lt;br /&gt;
We need a batch script to handle the ed2k links from the browser, and we need to add some keys to the registry to make the browser recognize the ed2k links.&lt;br /&gt;
&lt;br /&gt;
Create a file named '''ed2k_remote.bat''' containing the following code:&lt;br /&gt;
 @echo off&lt;br /&gt;
 set link=%1&lt;br /&gt;
 for /f &amp;quot;useback tokens=*&amp;quot; %%a in ('%link%') do set link=%%~a&lt;br /&gt;
 &amp;quot;c:\Program Files\aMule\amulecmd.exe&amp;quot; /h '''server''' /P '''pass''' /c &amp;quot;add %link%&amp;quot;&lt;br /&gt;
Don't forget to replace '''server''' and '''pass''' with your data and save the file in your aMule directory ''C:\Program Files\aMule''.&lt;br /&gt;
&lt;br /&gt;
Create a file named '''ed2k_remote.reg''' containing the following code:&lt;br /&gt;
 REGEDIT4&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k]&lt;br /&gt;
 @=&amp;quot;URL: ed2k Protocol&amp;quot;&lt;br /&gt;
 &amp;quot;URL Protocol&amp;quot;=&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\DefaultIcon]&lt;br /&gt;
 @=&amp;quot;C:\\Program Files\\aMule\\amulegui.exe&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell]&lt;br /&gt;
 @=&amp;quot;open&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open]&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open\command]&lt;br /&gt;
 @=&amp;quot;\&amp;quot;C:\\Program Files\\aMule\\ed2k_remote.bat\&amp;quot; \&amp;quot;%1\&amp;quot;&amp;quot;&lt;br /&gt;
Save the file and run it (double click) to add these keys to the registry.&lt;br /&gt;
&lt;br /&gt;
=== Internet Explorer ===&lt;br /&gt;
You should be OK with just the changes to the registry and the batch script in your aMule directory.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
The first time you click an ed2k link in Firefox you will get the following dialog:&lt;br /&gt;
&lt;br /&gt;
[[Image:Firefox ed2k link.PNG]]&lt;br /&gt;
&lt;br /&gt;
Tick the Remember box and click OK.&lt;br /&gt;
&lt;br /&gt;
=== Opera ===&lt;br /&gt;
Open the preferences window and click the Programs tab&lt;br /&gt;
&lt;br /&gt;
[[Image:Opera preferences programs.PNG]]&lt;br /&gt;
&lt;br /&gt;
Click the Add... button&lt;br /&gt;
&lt;br /&gt;
Make Opera aware of the ed2k link protocol with these settings:&lt;br /&gt;
&lt;br /&gt;
[[Image:Opera_protocols_ed2k.PNG]]&lt;/div&gt;</summary>
		<author><name>Krótki</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Ed2k_links_handling</id>
		<title>Ed2k links handling</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Ed2k_links_handling"/>
				<updated>2008-10-12T11:31:29Z</updated>
		
		<summary type="html">&lt;p&gt;Krótki: Removed duplicate info about FF, and added info about system-wide configuration of FF under Linux&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[Ed2k_links_handling-de|Deutsch]] | &lt;br /&gt;
[[Ed2k_links_handling-nl|Nederlands]] | &lt;br /&gt;
[[Ed2k_links_handling-ko_KR|Korean]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The way to make [[aMule]] handle your [[ed2k link|ed2k links]] on your favorite web browser will depend on which web browser you use and which operating system you have installed. So, here's a list of mini-HowTos for each of the most popular web browsers and operating systems.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
= Local handling of ed2k links =&lt;br /&gt;
== GNU/Linux ==&lt;br /&gt;
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.opensuse.org SuSE] packages install it in ''/usr/local/bin/ed2k''.&lt;br /&gt;
&lt;br /&gt;
If you have installed Debian or Ubuntu '''you must install''' &amp;quot;'''amule-utils'''&amp;quot; to get this way working.&lt;br /&gt;
&lt;br /&gt;
=== [http://www.mozilla.org/products/firefox Firefox] 2 and 3 (or later)===&lt;br /&gt;
Handling ED2k links in Firefox can be configured in two ways: either for an individual user, or for all users of the computer.&lt;br /&gt;
&lt;br /&gt;
==== Configuration for a single user ====&lt;br /&gt;
*Insert ''about:config'' in the address bar&lt;br /&gt;
&lt;br /&gt;
*Right click on the list, select '''New''', then '''Boolean'''; insert ''network.protocol-handler.external.ed2k'' as '''Preference Name''' and ''true'' as '''Value'''&lt;br /&gt;
&lt;br /&gt;
*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'''.&lt;br /&gt;
&lt;br /&gt;
For Firefox 3 and higher only, you should also:&lt;br /&gt;
&lt;br /&gt;
*Right click on the list, select '''New''', then '''Boolean'''; insert ''network.protocol-handler.expose.ed2k'' as '''Preference Name''' and ''false'' as '''Value'''&lt;br /&gt;
&lt;br /&gt;
After that, click over an ed2k link, and Firefox should ask which app you want to use to open the link. Choose /usr/local/bin/ed2k and it should work.&lt;br /&gt;
&lt;br /&gt;
[[Image:Ed2k-ff3.png]]&lt;br /&gt;
&lt;br /&gt;
==== System-wide configuration ====&lt;br /&gt;
*Having root privileges, open the file ''/usr/share/firefox/greprefs/all.js'' (or ''/usr/local/share/firefox/greprefs/all.js'') in a text editor&lt;br /&gt;
&lt;br /&gt;
*Add the following lines at the end of the file:&lt;br /&gt;
 // ED2K link handling&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.external.ed2k&amp;quot;, true);&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.app.ed2k&amp;quot;, &amp;quot;/usr/bin/ed2k&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
For Firefox 3 and higher only:&lt;br /&gt;
*Add yet another line to the ''all.js''file:&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.expose.ed2k&amp;quot;, false);&lt;br /&gt;
&lt;br /&gt;
After saving changes, restart the browser. After clicking over an ed2k link, Firefox should ask which app you want to use to open the link. Choose /usr/local/bin/ed2k and it should work.&lt;br /&gt;
&lt;br /&gt;
=== [http://www.opera.com Opera]  ===&lt;br /&gt;
&lt;br /&gt;
In [http://www.opera.com Opera] go to ''Tools -&amp;gt; Preferences -&amp;gt; Programms -&amp;gt; Add...''&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Protocol&amp;quot; field enter ''ed2k''&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Open with another application&amp;quot; field enter ''/path/to/ed2k''&lt;br /&gt;
&lt;br /&gt;
[[Image:Ed2k-op.png]]&lt;br /&gt;
&lt;br /&gt;
=== [http://www.konqueror.org Konqueror] ===&lt;br /&gt;
To have ed2k links work from [http://www.konqueror.com 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 &amp;quot;*.protocol&amp;quot;`'' or ''`find /opt -name &amp;quot;*.protocol&amp;quot;`''. If you're not sure about the directory where KDE is installed you can even put ''/'' as search path.&lt;br /&gt;
&lt;br /&gt;
If the search was successful, create a file named like ''ed2k.protocol'' in the mentioned directory:&lt;br /&gt;
 [Protocol]&lt;br /&gt;
 exec=/path/to/ed2k &amp;quot;%u&amp;quot;&lt;br /&gt;
 protocol=ed2k&lt;br /&gt;
 input=none&lt;br /&gt;
 output=none&lt;br /&gt;
 helper=true&lt;br /&gt;
 listing=false&lt;br /&gt;
 reading=false&lt;br /&gt;
 writing=false&lt;br /&gt;
 makedir=false&lt;br /&gt;
 deleting=false&lt;br /&gt;
&lt;br /&gt;
Now just restart [http://www.konqueror.org Konqueror].&lt;br /&gt;
&lt;br /&gt;
'''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.&lt;br /&gt;
&lt;br /&gt;
'''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.&lt;br /&gt;
&lt;br /&gt;
=== [http://galeon.sourceforge.net Galeon] ===&lt;br /&gt;
&lt;br /&gt;
Execute the following three commands to create the appropriate ''gconf'' keys:&lt;br /&gt;
&lt;br /&gt;
*''gconftool-2 -t string -s /desktop/gnome/url-handlers/ed2k/command &amp;quot;/usr/bin/ed2k \&amp;quot;%s\&amp;quot;&amp;quot;''&lt;br /&gt;
*''gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/enabled true''&lt;br /&gt;
*''gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/needs_terminal false''&lt;br /&gt;
&lt;br /&gt;
Replace &amp;quot;''/usr/bin/ed2k''&amp;quot; above with the path and name of the ''ed2k'' executable on your system.&lt;br /&gt;
&lt;br /&gt;
Uninstalling this protocol handler is similarly simple:&lt;br /&gt;
*''gconftool-2 -u /desktop/gnome/url-handlers/ed2k --recursive-unset''&lt;br /&gt;
&lt;br /&gt;
=== [http://xray.sai.msu.ru/~karpov/links-hacked Links] ===&lt;br /&gt;
(Probably this will work for the usual links and/or [[ed2k link|elinks]], too)&lt;br /&gt;
&lt;br /&gt;
add to ''url.c'' behind the lines about telnet and tn3270:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''{&amp;quot;ed2k&amp;quot;, 0, NULL, ed2k_func, 0, 0, 0},''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''links.h'' behind the definitions of /* mailto.c */:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''void ed2k_func(struct session *, unsigned char *);''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''mailto.c'' at the end:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''void ed2k_func(struct session *ses, unsigned char *url)''&lt;br /&gt;
  ''{''&lt;br /&gt;
  ''tn_func(ses, url, options_get(&amp;quot;network_program_ed2k&amp;quot;), TEXT(T_ED2K), TEXT(T_BAD_ED2K_URL));''&lt;br /&gt;
  ''}''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''options_register.c'' behind telnet and tn3270:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''register_option_char(&amp;quot;network_program_ed2k&amp;quot;, TEXT(T_ED2K_PROG),NULL,2);''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''intl/*.lng'' behind &lt;br /&gt;
  ''&amp;quot;T_TN3270_PROG&amp;quot;: T_ED2K_PROG, &amp;quot;ed2k program&amp;quot;,'' (or whatever that is in your language), behind&lt;br /&gt;
  ''&amp;quot;T_TN3270&amp;quot;: T_ED2K, &amp;quot;ed2k&amp;quot;,'' and behind &lt;br /&gt;
  ''&amp;quot;T_BAD_TN3270_URL&amp;quot;: T_BAD_ED2K_URL'' (I guess you've got the picture)&lt;br /&gt;
&lt;br /&gt;
If you want to automatize this stuff, execute the following commands:&lt;br /&gt;
  ''cd intl''&lt;br /&gt;
  ''for l in *.lng; do''&lt;br /&gt;
    ''cp $l $l.bak''&lt;br /&gt;
    ''cat $l.bak | sed -e &amp;quot;/T_TN3270_PROG*/aT_ED2K_PROG\, \&amp;quot;ed2k program\&amp;quot;\,&amp;quot; \''&lt;br /&gt;
     ''-e &amp;quot;/T_TN3270,\ */aT_ED2K\, \&amp;quot;ed2k\&amp;quot;\,&amp;quot; \''&lt;br /&gt;
     ''-e &amp;quot;/T_BAD_TN3270_URL*/aT_BAD_ED2K_URL\, \&amp;quot;Bad ed2k url\&amp;quot;\,&amp;quot; &amp;gt; $l''&lt;br /&gt;
  ''done''&lt;br /&gt;
  &lt;br /&gt;
Anyway, run afterwards before recompiling links-hacked:&lt;br /&gt;
  ''./synclang''&lt;br /&gt;
  ''cd ..''&lt;br /&gt;
&lt;br /&gt;
Now you can compile with&lt;br /&gt;
  ''./configure'' (add your favourite options here) ''&amp;amp;&amp;amp;''&lt;br /&gt;
  ''make &amp;amp;&amp;amp;''&lt;br /&gt;
  ''make install''&lt;br /&gt;
&lt;br /&gt;
Because links somewhat malforms the urls, we need a small bash script handler:&lt;br /&gt;
  ''cat &amp;gt; /usr/bin/ed2k4links.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;''&lt;br /&gt;
  ''#!/bin/bash''&lt;br /&gt;
  ''ed2k $(echo &amp;quot;ed2k://$1&amp;quot; | sed s/_/\|/g)''&lt;br /&gt;
  ''EOF''&lt;br /&gt;
  ''chmod a+x /usr/bin/ed2k4links.sh''&lt;br /&gt;
&lt;br /&gt;
Do not forget to setup links (Options-&amp;gt;Network Options-&amp;gt;Mail and Telnet Programs) to call our ''ed2k4links.sh'' for [[ed2k link]]s:&lt;br /&gt;
  ''ed2k4links.sh %''&lt;br /&gt;
&lt;br /&gt;
Attention: The Percent Mark is important! Now links should work with [[ed2k link]]s.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
To make Windows aware of the ed2k link protocol we need to add some keys to the registry. Create a file called ed2k.reg and add this code:&lt;br /&gt;
 REGEDIT4&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k]&lt;br /&gt;
 @=&amp;quot;URL: ed2k Protocol&amp;quot;&lt;br /&gt;
 &amp;quot;URL Protocol&amp;quot;=&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\DefaultIcon]&lt;br /&gt;
 @=&amp;quot;C:\\Program Files\\aMule\\amulegui.exe&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell]&lt;br /&gt;
 @=&amp;quot;open&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open]&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open\command]&lt;br /&gt;
 @=&amp;quot;\&amp;quot;C:\\Program Files\\aMule\\ed2k \&amp;quot;%1\&amp;quot;&amp;quot;&lt;br /&gt;
Save the file and run it (double click) to add these keys to the registry.&lt;br /&gt;
&lt;br /&gt;
=== [http://www.microsoft.com/windows/ie Internet Explorer] ===&lt;br /&gt;
Internet Explorer will recognize ed2k links with just the changes in the registry.&lt;br /&gt;
&lt;br /&gt;
== Mac OS X ==&lt;br /&gt;
&lt;br /&gt;
Adapted from Ken's post in the [http://forum.amule.org/index.php?topic=5679.msg30209#msg30209 forum].&lt;br /&gt;
&lt;br /&gt;
# Run aMule at least once&lt;br /&gt;
# Run Safari (even if you normally use Firefox or another browser)&lt;br /&gt;
# Browse to a page with an ed2k link that you want to download&lt;br /&gt;
# Drag the link to the location field at the top of the window&lt;br /&gt;
# The OS will present a dialog asking if you want to allow a program to run to handle the link.  Allow it.&lt;br /&gt;
&lt;br /&gt;
Now, the program that helps aMule handle ed2k links is known to the system.&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
If you use Safari, you will have to drag the link to the location field every time.  For unclear reasons, Safari will not process ed2k (or other non-Apple protocol) links if you click on them.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
If you use Firefox, clicking on an ed2k link will work. The first time, for security purposes, Firefox will present a dialog asking if you want to allow the helper program to run. (Yes, even though the OS already asked you the same question.) After that, it will work just as you would expect.&lt;br /&gt;
&lt;br /&gt;
= Remote handling of ed2k links =&lt;br /&gt;
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. It works by using [[aMuleCMD]] instead of using the [[ed2k command]].&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Instead of using the [[ed2k command]], use the following as the command to use:&lt;br /&gt;
&lt;br /&gt;
''/'''path'''/'''to'''/amulecmd -h $server -P $pw -c &amp;quot;Add %u&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Obviously, you'll have to replace ''$server'' and ''$pw'' with your server's [[IP address|IP]] (or [http://www.webopedia.com/TERM/D/DNS.html DNS]) and your [[External Connections]] password.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In [http://www.mozilla.org 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.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
Make sure aMule is installed with the [[aMuleCMD]] option checked.&lt;br /&gt;
&lt;br /&gt;
We need a batch script to handle the ed2k links from the browser, and we need to add some keys to the registry to make the browser recognize the ed2k links.&lt;br /&gt;
&lt;br /&gt;
Create a file named '''ed2k_remote.bat''' containing the following code:&lt;br /&gt;
 @echo off&lt;br /&gt;
 set link=%1&lt;br /&gt;
 for /f &amp;quot;useback tokens=*&amp;quot; %%a in ('%link%') do set link=%%~a&lt;br /&gt;
 &amp;quot;c:\Program Files\aMule\amulecmd.exe&amp;quot; /h '''server''' /P '''pass''' /c &amp;quot;add %link%&amp;quot;&lt;br /&gt;
Don't forget to replace '''server''' and '''pass''' with your data and save the file in your aMule directory ''C:\Program Files\aMule''.&lt;br /&gt;
&lt;br /&gt;
Create a file named '''ed2k_remote.reg''' containing the following code:&lt;br /&gt;
 REGEDIT4&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k]&lt;br /&gt;
 @=&amp;quot;URL: ed2k Protocol&amp;quot;&lt;br /&gt;
 &amp;quot;URL Protocol&amp;quot;=&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\DefaultIcon]&lt;br /&gt;
 @=&amp;quot;C:\\Program Files\\aMule\\amulegui.exe&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell]&lt;br /&gt;
 @=&amp;quot;open&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open]&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open\command]&lt;br /&gt;
 @=&amp;quot;\&amp;quot;C:\\Program Files\\aMule\\ed2k_remote.bat\&amp;quot; \&amp;quot;%1\&amp;quot;&amp;quot;&lt;br /&gt;
Save the file and run it (double click) to add these keys to the registry.&lt;br /&gt;
&lt;br /&gt;
=== Internet Explorer ===&lt;br /&gt;
You should be OK with just the changes to the registry and the batch script in your aMule directory.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
The first time you click an ed2k link in Firefox you will get the following dialog:&lt;br /&gt;
&lt;br /&gt;
[[Image:Firefox ed2k link.PNG]]&lt;br /&gt;
&lt;br /&gt;
Tick the Remember box and click OK.&lt;br /&gt;
&lt;br /&gt;
=== Opera ===&lt;br /&gt;
Open the preferences window and click the Programs tab&lt;br /&gt;
&lt;br /&gt;
[[Image:Opera preferences programs.PNG]]&lt;br /&gt;
&lt;br /&gt;
Click the Add... button&lt;br /&gt;
&lt;br /&gt;
Make Opera aware of the ed2k link protocol with these settings:&lt;br /&gt;
&lt;br /&gt;
[[Image:Opera_protocols_ed2k.PNG]]&lt;/div&gt;</summary>
		<author><name>Krótki</name></author>	</entry>

	</feed>