Difference between revisions of "Ed2k links handling"
m (strange link) |
(links links and more link + wiki wiki and wiki way) |
||
Line 1: | Line 1: | ||
− | 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. | + | 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, | + | 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. |
== Internet Explorer == | == Internet Explorer == | ||
− | + | '''by ''[[User:Jacobo221|Jacobo221]]''''' | |
Go to "Start" -> "Run" and run "regedit" (without quotes). | Go to "Start" -> "Run" and run "regedit" (without quotes). | ||
− | Now, in regedit, get to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\shell\open<br> | + | Now, in regedit, get to ''HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\shell\open''<br> |
− | It could happen that | + | It could happen that ''ed2k'' didn't exist. In such case, create it by selecting "New" -> "Key" and entering ''ed2k'' as value. Then do the same with ''shell'' and ''open''.<br> |
− | Once inside the | + | Once inside the ''open'' key, if ''command'' exists, just double click on it, but if it doesn't, go to "New" -> "Value" and enter the path to the ed2k application as an ASCII string value, followed by ''"%1"'' (with quotes), so you should end with some value like ''C:\Program Files\aMule2\ed2k "%1"''. |
== Konqueror == | == Konqueror == | ||
− | + | '''by ''gfdsa''''' | |
− | + | ''/usr/kde/3.1/share/services'' you can find it by file names ended with ''.protocol'' kinda ''`find /usr -name "*.protocol"`'' or ''`find /opt -name "*.protocol"`'' or even put ''/'' to path if you want. | |
− | If the search was successful, create a file named like | + | If the search was successful, create a file named like ''e2k.protocol'' in |
the mentioned directory: | the mentioned directory: | ||
− | + | ''[Protocol]<br> | |
exec=/path/to/ed2k "%u"<br> | exec=/path/to/ed2k "%u"<br> | ||
protocol=ed2k<br> | protocol=ed2k<br> | ||
Line 28: | Line 28: | ||
writing=false<br> | writing=false<br> | ||
makedir=false<br> | makedir=false<br> | ||
− | deleting=false | + | deleting=false'' |
Now just restart Konqueror. | Now just restart Konqueror. | ||
== Opera == | == Opera == | ||
− | + | '''by ''thermoman [Marcel Meckel]'', ''ender'' and ''[[User:Jacobo221|Jacobo221]]''</b> | |
− | Edit /etc/opera6rc as root or ~/.opera/opera6.ini as non-root: | + | Edit ''/etc/opera6rc'' as root or ''~/.opera/opera6.ini'' as non-root: |
− | + | ''[User Prefs]<br> | |
TrustedExternalURLProtocols=ed2k | TrustedExternalURLProtocols=ed2k | ||
[Trusted Applications]<br> | [Trusted Applications]<br> | ||
− | ed2k=/path/to/ed2k ed2k://%u | + | ed2k=/path/to/ed2k ed2k://%u'' |
− | + | '''Opera 6''' doesn't pass complete URL to external programs; only URL without protocol. The way to walk around this follows. | |
<u>In Linux or some other Unix-like flavour</u><br> | <u>In Linux or some other Unix-like flavour</u><br> | ||
− | Create | + | Create ''amule_submit.sh'' with this content: |
− | + | ''#!/bin/sh<br> | |
− | /path/to/ed2k "ed2k://$1" | + | /path/to/ed2k "ed2k://$1"'' |
− | Change | + | Change ''ed2k=/path/to/ed2k ed2k://%u'' with ''ed2k=/path/to/amule_submit.sh ed2k://%u'' |
<u>In Windows systems</u><br> | <u>In Windows systems</u><br> | ||
− | Crate | + | Crate ''amule_submit.bat'' with this content: |
− | + | ''X:\path\to\ed2k.exe "ed2k://%1"'' | |
− | Change | + | Change ''ed2k=/path/to/ed2k ed2k://%u'' with ''ed2k=X:\path\to\amule_submit.bat ed2k://%u'' |
− | == Mozilla 1.7 (or later) & Firefox 0.9 == | + | == [http://www.mozilla.org Mozilla] 1.7 (or later) & [http://www.mozilla.org/products/firefox Firefox] 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: | + | Mozex doesn't work anymore with [http://www.mozilla.org Mozilla] 1.7 and [http://www.mozilla.org/products/firefox Firefox] 0.9. There is an alternate method that seems to be working with both of them: |
− | *Remove mozex (if installed | + | *Remove [http://mozex.mozdev.org/installation.html MozEx] if installed or at least remove the ed2k inout from it (again, only if [http://mozex.mozdev.org/installation.html MozEx] is installed |
− | *Insert about :config in the address bar | + | *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 | + | *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 ''/usr/bin/ed2k'' (or path to where the file is installed on you system) as Value. | + | *Now another right click, select '''New''' and '''String'''; insert ''network.protocol-handler.app.ed2k'' as '''Preference Name''' and ''/usr/bin/ed2k'' (or path to where the file is installed on you system) as '''Value'''. |
− | == | + | == [http://www.mozilla.org Mozilla] 1.3 to 1.6 & [http://www.mozilla.org/products/firefox Firebird] v0.6 & [http://www.mozilla.org/products/firefox Firefox] v0.8 == |
− | + | '''by ''DeltaHF''''' | |
− | Go to [http://mozex.mozdev.org/installation.html | + | Go to [http://mozex.mozdev.org/installation.html MozEx's WebPage] and install the ''mozex-1.07.xpi'' file.<br> |
− | Restart your Mozilla/FireBird/FireFox, go to | + | Restart your [http://www.mozilla.org Mozilla]/[http://www.mozilla.org/products/firefox FireBird]/[http://www.mozilla.org/products/firefox FireFox], go to Edit -> Preferences -> mozex -> ED2K and set it to ''/usr/local/bin/ed2k %r''<br> |
− | Click | + | Click '''OK''' and you're done. |
<u>Note for Firefox 0.8 users</u><br> | <u>Note for Firefox 0.8 users</u><br> | ||
− | Instead of | + | Instead of Edit -> Preferences -> mozex -> ED2K, you'll find [http://mozex.mozdev.org/installation.html MozEx]'s preferences at Edit -> Preferences -> Extensions -> mozex -> Options -> ED2K |
− | == | + | == [http://www.mozilla.org Mozilla] 1.2.1 or earlier == |
− | + | '''by ''rpokorny [R. Pokorny]''''' | |
− | 1) Go to [http://protozilla.mozdev.org/download.html]<br> | + | 1) Go to [http://protozilla.mozdev.org/download.html Protozilla's WebPage]<br> |
− | Choose the version fitting your Mozilla-version and click on | + | Choose the version fitting your [http://www.mozilla.org Mozilla]-version and click on '''Install'''. It will auto-install [http://protozilla.mozdev.org Protozilla].<br> |
− | Now close Mozilla completely. | + | Now close [http://www.mozilla.org Mozilla] completely. |
− | <u>Notes for Linux and other Unix-like systems users</u><br> | + | <u>Notes for [http://www.kernel.org Linux] and other Unix-like systems users</u><br> |
− | - You must have write permission to the Mozilla installation directory. If you've installed Mozilla in /usr, you'll have to be | + | - You must have write permission to the [http://www.mozilla.org Mozilla] installation directory. If you've installed [http://www.mozilla.org Mozilla] in ''/usr'', you'll have to be '''root''' probably.<br> |
− | - The downloadable precompiled version of protozilla apparently does | + | - The downloadable precompiled version of [http://protozilla.mozdev.org Protozilla] apparently does '''not''' work with [http://www.debian.org Debian]'s [http://www.mozilla.org Mozilla] packages. It '''does''' work together with the precompiled version of 1.2.1 available at [http://www.mozilla.org Mozilla's WebPage] for example (or you can build both [http://www.mozilla.org Mozilla] and [http://protozilla.mozdev.org Protozilla] yourself). |
− | 2) This step is only necessary if you had to start Mozilla/FireBird/ | + | 2) This step is only necessary if you had to start [http://www.mozilla.org Mozilla]/[http://www.mozilla.org/products/firefox FireBird]/[http://www.mozilla.org/products/firefox FireFox] as '''root''' in step 1. |
− | As root do: | + | As '''root''' do: |
− | + | ''cp -r /root/.mozilla/PROFILENAME/RANDOM.slt/protozilla/ /home/USERNAME/.mozilla/PROFILENAME2/RANDOM.slt/'' | |
− | /home/USERNAME/.mozilla/PROFILENAME2/RANDOM.slt/ | + | |
− | This will have copied protozilla-configuration from root's home to user's home. | + | This will have copied protozilla-configuration from root's home directory to user's home directory. |
− | + | ''cd /home/USERNAME/.mozilla/PROFILENAME/RANDOM.slt/ | |
− | chown -R YOURUSER.YOURGROUP protozilla | + | chown -R YOURUSER.YOURGROUP protozilla'' |
This will have changed file-ownership parameters in user's files. | This will have changed file-ownership parameters in user's files. | ||
<u>Note:</u><br> | <u>Note:</u><br> | ||
− | + | '''USERNAME:''' Name of your normal, non-root user.<br> | |
− | + | '''PROFILENAME:''' Name of the profile you'll want to use.<br> | |
− | + | '''RANDOM:''' Random alphanumeric string, autogenerated by mozilla.<br> | |
− | + | '''YOURUSER, YOURGROUP:''' User and group of your normal user.<br> | |
− | 3) Setup a protocol-handler for ed2k | + | 3) Setup a protocol-handler for [[ed2k links]]:<br> |
− | + | ''cd ~/.mozilla/PROFILENAME/RANDOM.slt/protozilla/protocol'' | |
− | create a file called | + | create a file called ''ed2k.cmd'' with the following content: |
− | + | ''ed2k ed2k:$URI_DATA'' | |
(The file doesn't need to be executable). | (The file doesn't need to be executable). | ||
− | Now restart Mozilla. | + | Now restart [http://www.mozilla.org Mozilla]. |
== More information == | == More information == | ||
− | If the above information didn't help you enough, take a look at [http://www.amule.org/amule/ed2k.php] | + | If the above information didn't help you enough, take a look at [http://www.amule.org/amule/ed2k.php http://www.amule.org/amule/ed2k.php] |
Revision as of 05:27, 17 July 2004
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.
Contents
Internet Explorer
by Jacobo221
Go to "Start" -> "Run" and run "regedit" (without quotes).
Now, in regedit, get to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\shell\open
It could happen that ed2k didn't exist. In such case, create it by selecting "New" -> "Key" and entering ed2k as value. Then do the same with shell and open.
Once inside the open key, if command exists, just double click on it, but if it doesn't, go to "New" -> "Value" and enter the path to the ed2k application as an ASCII string value, followed by "%1" (with quotes), so you should end with some value like C:\Program Files\aMule2\ed2k "%1".
Konqueror
by gfdsa
/usr/kde/3.1/share/services you can find it by file names ended with .protocol kinda `find /usr -name "*.protocol"` or `find /opt -name "*.protocol"` or even put / to path if you want.
If the search was successful, create a file named like e2k.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.
Opera
by thermoman [Marcel Meckel], ender and Jacobo221</b>
Edit /etc/opera6rc as root or ~/.opera/opera6.ini as non-root:
[User Prefs]
TrustedExternalURLProtocols=ed2k
[Trusted Applications]
ed2k=/path/to/ed2k ed2k://%u
Opera 6 doesn't pass complete URL to external programs; only URL without protocol. The way to walk around this follows.
In Linux or some other Unix-like flavour
Create amule_submit.sh with this content:
#!/bin/sh
/path/to/ed2k "ed2k://$1"
Change ed2k=/path/to/ed2k ed2k://%u with ed2k=/path/to/amule_submit.sh ed2k://%u
In Windows systems
Crate 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
Mozilla 1.7 (or later) & Firefox 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 inout from it (again, 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 /usr/bin/ed2k (or path to where the file is installed on you system) as Value.
Mozilla 1.3 to 1.6 & Firebird v0.6 & Firefox v0.8
by DeltaHF
Go to MozEx's WebPage and install the mozex-1.07.xpi file.
Restart your Mozilla/FireBird/FireFox, go to Edit -> Preferences -> mozex -> ED2K and set it to /usr/local/bin/ed2k %r
Click OK and you're done.
Note for Firefox 0.8 users
Instead of Edit -> Preferences -> mozex -> ED2K, you'll find MozEx's preferences at Edit -> Preferences -> Extensions -> mozex -> Options -> ED2K
Mozilla 1.2.1 or earlier
by rpokorny [R. Pokorny]
1) Go to Protozilla's WebPage
Choose the version fitting your Mozilla-version and click on Install. It will auto-install Protozilla.
Now close Mozilla completely.
Notes for Linux and other Unix-like systems users
- You must have write permission to the Mozilla installation directory. If you've installed Mozilla in /usr, you'll have to be root probably.
- The downloadable precompiled version of Protozilla apparently does not work with Debian's Mozilla packages. It does work together with the precompiled version of 1.2.1 available at Mozilla's WebPage for example (or you can build both Mozilla and Protozilla yourself).
2) This step is only necessary if you had to start Mozilla/FireBird/FireFox as root in step 1.
As root do: cp -r /root/.mozilla/PROFILENAME/RANDOM.slt/protozilla/ /home/USERNAME/.mozilla/PROFILENAME2/RANDOM.slt/
This will have copied protozilla-configuration from root's home directory to user's home directory.
cd /home/USERNAME/.mozilla/PROFILENAME/RANDOM.slt/ chown -R YOURUSER.YOURGROUP protozilla
This will have changed file-ownership parameters in user's files.
Note:
USERNAME: Name of your normal, non-root user.
PROFILENAME: Name of the profile you'll want to use.
RANDOM: Random alphanumeric string, autogenerated by mozilla.
YOURUSER, YOURGROUP: User and group of your normal user.
3) Setup a protocol-handler for ed2k links:
cd ~/.mozilla/PROFILENAME/RANDOM.slt/protozilla/protocol
create a file called ed2k.cmd with the following content:
ed2k ed2k:$URI_DATA
(The file doesn't need to be executable).
Now restart Mozilla.
More information
If the above information didn't help you enough, take a look at http://www.amule.org/amule/ed2k.php