http://wiki.amule.org/t/api.php?action=feedcontributions&user=84.181.18.147&feedformat=atomAMule Project FAQ - User contributions [en]2024-03-28T20:04:37ZUser contributionsMediaWiki 1.23.3http://wiki.amule.org/t/index.php?title=Ed2k_links_handling-deEd2k links handling-de2006-06-22T20:46:53Z<p>84.181.18.147: </p>
<hr />
<div>'''I've just started translating, please excuse any incomplete parts.'''<br />
<br />
Die Art wie [[aMule]] die [[ed2k link]]s mit deinem favorisierten Browser handhabt, hängt davon ab, welchen Webbrowser du nutzt. Also ist hier eine Liste mit Mini-HowTos für jeden der populärsten Webbrowser.<br />
Beachte, dass überall in diesem Dokument ''/path/to/ed2k'' mit ''/usr/local/bin/ed2k'', ''/usr/bin/ed2k'', ''C:\Programme\aMule\ed2k.exe'' oder etwas anderem ersetzt werden sollte, je nachdem wie dein System konfiguriert ist.<br />
<br />
Allgemein wird bei den meisten [http://www.kernel.org Linux]systemen ein selbstkompiliertes [[aMule]] das [[FAQ_ed2k_command|ed2k]] Hilfsprogramm in ''/usr/local/bin/ed2k'' installieren, wohingegen bei einer Paketinstallation von aMule es nach ''/usr/bin/ed2k'' installiert wird. Als Ausnahme ist es bekannt, dass [http://www.suse.de SuSe]-Pakete es nach ''/usr/local/bin/ed2k'' installieren.<br />
<br />
== [http://www.microsoft.com/windows/ie Internet Explorer] ==<br />
'''von ''[[User:Jacobo221|Jacobo221]]'''''<br />
<br />
Gehe zu "Start" -> "Ausführen" und starte "regedit" (ohne Anführungszeichen).<br />
<br />
Gehe nun im regedit zu ''HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\shell\open\command''<br />
<br />
'''Anmerkung:''' Es könnte passieren, dass ''ed2k'' und/oder seine Unterordner nicht existieren. Erstelle sie in diesem Fall einer nach dem anderen durch rechtsklicken "Neu" -> "Schlüssel" und der Eingabe von ''ed2k'' oder was auch immer der Wert ist.<br />
<br />
http://www.amule.org/dev-up/ed2k-win1.jpg<br />
<br />
Nun klicke einfach doppelt auf "(Standard)" (oder was auch immer der erste Wert dort ist) und gib den Pfad zur ed2k-Anwendung ein, gefolgt von ''"%1"'' (mit Anführungszeichen), so dass am Ende ein Wert wie ''C:\Programme\aMule2\ed2k "%1"'' vorhanden ist.<br />
<br />
http://www.amule.org/dev-up/ed2k-win2.jpg<br />
<br />
Mache das gleiche schlussendlich auch in ''HKEY_CLASSES_ROOT\ed2k\shell\open\command''.<br />
<br />
<br />
== [http://www.konqueror.org Konqueror] ==<br />
'''von ''gfdsa'''''<br />
<br />
''/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.<br />
<br />
Wenn die Suche erfolgreich war, erstelle eine Datei namens ''ed2k.protocol'' im der angesprochenen Ordner:<br />
<br />
<code>[Protocol]<br><br />
exec=/path/to/ed2k "%u"<br><br />
protocol=ed2k<br><br />
input=none<br><br />
output=none<br><br />
helper=true<br><br />
listing=false<br><br />
reading=false<br><br />
writing=false<br><br />
makedir=false<br><br />
deleting=false</code><br />
<br />
Nun starte [http://www.konqueror.org Konqueror] einfach neu.<br />
<br />
'''Anmerkung:''' Du könntest eine Sicherheitswarnung erhalten. Keine Sorge, es ist nur eine Warnung, dass dein Link zu einer externen Anwendung gesendet wird.<br />
<br />
'''Anmerkung 2:''' Wenn nach dem Klicken von ''OK'' Bei der Sicherheitswarnung der Link immer noch nicht zu [[aMule]] gesendet wird, klicke einfach mit rechts auf den [[ed2k-Link]] und befehle [http://www.konqueror.org Konqueror] es in einem neuen Tab/Fenster zu öffnen.<br />
<br />
== [http://galeon.sourceforge.net Galeon] ==<br />
<br />
=== Methode 1 ===<br />
<br />
Gehe im [http://freshmeat.net/projects/gnomecc GNOME Control Center] zu "Komplex" -> "Dateitypen und Programme" -> "Internetdienste" -> "Dienst hinzufügen...".<br />
<br />
Gib ''ed2k'' in das Protokollfeld ein.<br />
<br />
Gib ''ed2k %s'' in das Programmfeld ein.<br />
<br />
Deselektiere "In Terminal ausführen." wenn es ausgewählt ist.<br />
<br />
Klicke auf ''OK'' und es ist getan!<br />
<br />
=== Methode 2 ===<br />
<br />
Führe die folgenden 3 Befehle aus um die entsprechenden ''gconf''-Schlüssel zu erstellen:<br />
*''gconftool-2 -t string -s /desktop/gnome/url-handlers/ed2k/command "/usr/local/bin/ed2k %s"''<br />
*''gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/enabled true''<br />
*''gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/needs_terminal false''<br />
Ersetze "''/usr/local/bin/ed2k''" oben mit dem Pfad und dem Namen der ed2k-Anwendung in deinem System.<br />
<br />
Die Deinstallation ist ähnlich einfach:<br />
*''gconftool-2 -u /desktop/gnome/url-handlers/ed2k --recursive-unset''<br />
<br />
== [http://www.opera.com Opera] ==<br />
'''von ''thermoman (Marcel Meckel)'', ''ender'' und ''[[User:Jacobo221|Jacobo221]]''<br />
<br />
=== Auf die saubere Art und Weise ===<br />
<br />
Gehe in [http://www.opera.com Opera] zu ''Werkzeuge->Einstellungen->Pfade und Programme->Hinzufügen...''<br />
<br />
Gib im "Protokoll"-Feld ''ed2k'' ein.<br />
<br />
Gib im "Pfad" oder "Öffne mit anderer Anwendung"-Feld ''/path/to/ed2k'' ein.<br />
<br />
http://www.amule.org/dev-up/ed2k-op.jpg<br />
<br />
=== Auf die schmutzige Art und Weise ===<br />
<br />
Wenn die obigen Anweisungen nicht funktioniert haben, kannst du versuchen ''/etc/opera6rc'' als root oder ''~/.opera/opera6.ini'' als normaler Benutzer zu editieren und folgende Änderungen machen:<br />
<br />
''[User Prefs]''<br><br />
''TrustedExternalURLProtocols=ed2k''<br><br />
''[Trusted Applications]''<br><br />
''ed2k=ed2k''<br />
<br />
=== Opera 6 Fehler ===<br />
<br />
'''[http://www.opera.com Opera] 6''' gibt keine kompletten URLs an externe Programme weiter, nur URLs ohne Protokoll. Die Art und Weise das zu Umgehen folgt.<br />
<br />
==== [http://www.kernel.org Linux] oder ein anderes [http://www.unix.org Unix]-ähnliches Betriebssystem ====<br />
<br />
Erstelle die Datei ''amule_submit.sh'' mit diesem Inhalt:<br />
<br />
<code>#!/bin/sh<br><br />
/path/to/ed2k "ed2k://$1"</code><br />
<br />
Ändere nun in ''Werkzeuge->Einstellungen->Pfade und Programme->Hinzufügen...'' oder in der ''opera6rc'' Datei ''ed2k=/path/to/ed2k'' mit ''ed2k=/path/to/amule_submit.sh''.<br />
<br />
==== [http://www.microsoft.com/windows Windows] ====<br />
<br />
Erstelle die Datei ''amule_submit.bat'' mit diesem Inhalt:<br />
<br />
''X:\path\to\ed2k.exe "ed2k://%1"''<br />
<br />
<br />
Ändere ''ed2k=/path/to/ed2k ed2k://%u'' zu ''ed2k=X:\path\to\amule_submit.bat ed2k://%u''<br />
<br />
== [http://www.mozilla.org Mozilla] 1.7 (oder neuer) & [http://www.mozilla.org/products/firefox Firefox] 0.9 (oder neuer)==<br />
'''von''GhePeU'''''<br />
<br />
Mozex funktioniert nicht mehr mit [http://www.mozilla.org Mozilla] 1.7 und [http://www.mozilla.org/products/firefox Firefox] 0.9. Es gibt eine alternative Methode, die mit beiden zu funktionieren scheint:<br />
<br />
*Entferne [http://mozex.mozdev.org/installation.html MozEx] wenn es installiert ist oder entferne zumindestens die ed2k-Eingabe (nur wenn [http://mozex.mozdev.org/installation.html MozEx] installiert ist.)<br />
<br />
*Füge ''about:config'' in der Adresszeile ein.<br />
<br />
*Klicke mit rechts auf die Liste, wähle '''Neu''', dann '''Boolean'''; füge ''network.protocol-handler.external.ed2k'' als '''Einstellungsname''' und ''true'' als '''Wert''' ein.<br />
<br />
*Nun ein weiterer Rechtsklick, wähle '''Neu''' und '''String'''; füge ''network.protocol-handler.app.ed2k'' als '''Einstellungsname''' und ''/path/to/ed2k'' (Der Pfad wo die Datei auf dem System installiert ist.) als '''Wert''' ein.<br />
<br />
http://www.amule.org/dev-up/ed2k-ff9.jpg<br />
<br />
'''Anmerkung 1:''' Seit der Version 1.5.x von Mozilla Firefox funktioniert diese Methode nicht mehr für die Windowsversion. Du musst stattdessen die Internet Explorer-Methode mit den Registrierungseinträgen nutzen.<br />
<br />
<br />
== [http://www.mozilla.org/products/firefox Firefox] v0.8 ==<br />
<br />
Gehe zu [http://mozex.mozdev.org/installation.html MozExs Webseite] und installiere die ''mozex-1.07.xpi''-Datei.<br />
<br />
Starte [http://www.mozilla.org/products/firefox FireFox] neu, gehe zu Bearbeiten -> Einstellungen -> Erweiterungen -> mozex -> Optionen -> ED2K und lege es als ''/path/to/ed2k %r'' fest.<br />
<br />
Klicke auf '''OK''' und es ist getan.<br />
<br />
http://www.amule.org/dev-up/ed2k-firefox.png<br />
<br />
http://www.amule.org/dev-up/ed2k-mozex.png<br />
<br />
== [http://www.mozilla.org Mozilla] 1.3 to 1.6 & [http://www.mozilla.org/products/firefox Firebird] v0.6 ==<br />
'''von ''DeltaHF'''''<br />
Gehe zu [http://mozex.mozdev.org/installation.html MozEx's Webseite] und installiere die ''mozex-1.07.xpi''-Datei.<br />
<br />
Starte [http://www.mozilla.org Mozilla]/[http://www.mozilla.org/products/firefox FireBird] neu, gehe zu Bearbeiten -> Einstellungen -> mozex -> ED2K und lege es als ''/path/to/ed2k %r'' fest.<br />
<br />
Klicke auf '''OK''' und es ist getan.<br />
<br />
<br />
<br />
http://www.amule.org/dev-up/ed2k-moz.png<br />
<br />
== [http://www.mozilla.org Mozilla] 1.2.1 or earlier ==<br />
'''von ''rpokorny [R. Pokorny]'''''<br />
<br />
1) Gehe zu [http://protozilla.mozdev.org/download.html Protozillas Webseite]<br><br />
Wähle die zu deiner [http://www.mozilla.org Mozilla]-Version passende Version aus und klicke auf ''Installieren''. Es wird [http://protozilla.mozdev.org Protozilla] automatisch installieren.<br><br />
Schliesse nun [http://www.mozilla.org Mozilla] völlig.<br />
<br />
<u>Anmerkungen für [http://www.kernel.org Linux]-Nutzer und Nutzer anderer Unix-artigen Systeme</u><br><br />
- Du benötigst Schreibrechte für [http://www.mozilla.org Mozilla]s Installationverzeichnis. Wenn du [http://www.mozilla.org Mozilla] nach ''/usr'' installiert hast, musst du wahrscheinlich '''root''' sein.<br><br />
- Das Herunterladen der vorkompilierten Version von [http://protozilla.mozdev.org Protozilla] funktioniert augenschlich '''nicht''' mit [http://www.debian.org Debian]s [http://www.mozilla.org Mozilla]-Paketen. Es funktioniert beispielsweise mit der vorkompilierten Version 1.2.1, die auf [http://www.mozilla.org Mozillas Webseite] verfügbar ist. (Oder du kannst sowohl [http://www.mozilla.org Mozilla] als auch [http://protozilla.mozdev.org Protozilla] selbst kompilieren).<br />
<br />
2) Dieser Schritt ist nur nötig, wenn du [http://www.mozilla.org Mozilla]/[http://www.mozilla.org/products/firefox FireBird]/[http://www.mozilla.org/products/firefox FireFox] im ersten Schritt als '''root''' starten musstest.<br />
<br />
Führe als '''root''' aus:<br />
''cp -r /root/.mozilla/PROFILENAME/RANDOM.slt/protozilla/ /home/USERNAME/.mozilla/PROFILENAME2/RANDOM.slt/''<br />
<br />
Das kopiert die protozilla-Konfiguration von roots Homeverzeichnis zum Homeverzeichnis des Benutzers.<br />
<br />
''cd /home/USERNAME/.mozilla/PROFILENAME/RANDOM.slt/<br />
chown -R YOURUSER.YOURGROUP protozilla''<br />
<br />
Das ändert die Datei-Eigentumsverhältnisparameter in den Benutzerdateien.<br />
<br />
<u>Anmerkungen:</u><br><br />
'''USERNAME:''' Name des normalen, nicht-root Benutzers.<br><br />
'''PROFILENAME:''' Name des Profiles, welches du nutzen möchtest.<br><br />
'''RANDOM:''' Zufälliger alphanumerische Zeichenkette, automatisch von Mozilla generiert.<br><br />
'''YOURUSER, YOURGROUP:''' Benutzer und Gruppe des normalen Benutzers.<br><br />
<br />
3) Richte eine Protokollbewältigung für [[ed2k link]]s:<br><br />
''cd ~/.mozilla/PROFILENAME/RANDOM.slt/protozilla/protocol''<br />
<br />
Erstelle eine Datei namens ''ed2k.cmd'' mit dem folgenden Inhalt:<br />
<br />
''ed2k ed2k:$URI_DATA''<br />
<br />
(Die Datei muss nicht ausführbar sein.).<br />
<br />
Starte nun [http://www.mozilla.org Mozilla] neu.<br />
<br />
== [http://xray.sai.msu.ru/~karpov/links-hacked Links] ==<br />
(Probably this will work for the usual links and/or [[ed2k link|elinks]], too)<br />
<br />
add to ''url.c'' behind the lines about telnet and tn3270:<br />
''--snip''<br />
''{"ed2k", 0, NULL, ed2k_func, 0, 0, 0},''<br />
''--snap''<br />
<br />
add to ''links.h'' behind the definitions of /* mailto.c */:<br />
''--snip''<br />
''void ed2k_func(struct session *, unsigned char *);''<br />
''--snap''<br />
<br />
add to ''mailto.c'' at the end:<br />
''--snip''<br />
''void ed2k_func(struct session *ses, unsigned char *url)''<br />
''{''<br />
''tn_func(ses, url, options_get("network_program_ed2k"), TEXT(T_ED2K), TEXT(T_BAD_ED2K_URL));''<br />
''}''<br />
''--snap''<br />
<br />
add to ''options_register.c'' behind telnet and tn3270:<br />
''--snip''<br />
''register_option_char("network_program_ed2k", TEXT(T_ED2K_PROG),NULL,2);''<br />
''--snap''<br />
<br />
add to ''intl/*.lng'' behind <br />
''"T_TN3270_PROG": T_ED2K_PROG, "ed2k program",'' (or whatever that is in your language), behind<br />
''"T_TN3270": T_ED2K, "ed2k",'' and behind <br />
''"T_BAD_TN3270_URL": T_BAD_ED2K_URL'' (I guess you've got the picture)<br />
<br />
If you want to automatize this stuff, execute the following commands:<br />
''cd intl''<br />
''for l in *.lng; do''<br />
''cp $l $l.bak''<br />
''cat $l.bak | sed -e "/T_TN3270_PROG*/aT_ED2K_PROG\, \"ed2k program\"\," \''<br />
''-e "/T_TN3270,\ */aT_ED2K\, \"ed2k\"\," \''<br />
''-e "/T_BAD_TN3270_URL*/aT_BAD_ED2K_URL\, \"Bad ed2k url\"\," > $l''<br />
''done''<br />
<br />
Anyway, run afterwards before recompiling links-hacked:<br />
''./synclang''<br />
''cd ..''<br />
<br />
Now you can compile with<br />
''./configure'' (add your favourite options here) ''&&''<br />
''make &&''<br />
''make install''<br />
<br />
Because links somewhat malforms the urls, we need a small bash script handler:<br />
''cat > /usr/bin/ed2k4links.sh << "EOF"''<br />
<br />
''#!/bin/bash''<br />
<br />
''ed2k $(echo "ed2k://$1" | sed s/_/\|/g)''<br />
''EOF''<br />
''chmod a+x /usr/bin/ed2k4links.sh''<br />
<br />
Do not forget to setup links (Options->Network Options->Mail and Telnet Programs) to call our ''ed2k4links.sh'' for [[ed2k link]]s:<br />
''ed2k4links.sh %''<br />
<br />
Attention: The Percent Mark is important! Now links should work with [[ed2k link]]s.<br />
<br />
== Remotely handling links ==<br />
<br />
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.<br />
<br />
How?<br />
<br />
Easy enough: using [[aMuleCMD]] (thanks '''djtm''' for this tip). Instead of using the [[ed2k command]], use the following as the command to use:<br />
<br />
''/'''path'''/'''to'''/amulecmd -rh $server -pw $pw -c "Add %u"''<br />
<br />
Obviously, you'll have to replace ''$server'' and ''$pw'' with your server's [[IP]] (or [http://www.webopedia.com/TERM/D/DNS.html DNS]) and your [[External Connections]] password.<br />
<br />
Please note that the above tip is only available since [[aMule]] 2.0.0rc8.<br />
<br />
'''NOTE 1:''' 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.<br />
<br />
'''NOTE 2:''' If you prefer simple tools, try this shell script (for [http://www.kernel.org Linux]) - can be used with the above mentioned tip:<br />
<br />
#!/bin/bash<br />
beep -f 100 -l 40 -r2<br />
(sleep 1; echo dllink $1; sleep 2; echo q;) | nc '''''IP''''' '''''PORT'''''<br />
beep -l 15 -r3<br />
<br />
''nc'' is [http://netcat.sourceforge.net Netcat], but you can use telnet too (that's a bit simpler in [http://www.cygwin.com 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.<br />
<br />
***N O T E***<br />
I found the perfect way to do this.<br />
<br />
To make FireFox launch ed2k links correctly (in aMule) you have to<br />
follow some simple steps to tell it how to handle a new external<br />
protocol. This should get rid of the dreaded "ed2k is not a registered<br />
protocol" error you were most likely getting before.<br />
<br />
* Enter about:config in the address bar.<br />
* Right click on the list, select New, then Boolean; enter<br />
network.protocol-handler.external.ed2k as Preference Name and true as Value<br />
* Now right click, select New and String; enter<br />
network.protocol-handler.app.ed2k as Preference Name and /usr/bin/ed2k</div>84.181.18.147