Autor Tema: Como hacer que Xmule coja ED2K links.  (Leído 4712 veces)

Desconectado halo

  • Pro Member
  • ****
  • Mensajes: 541
Como hacer que Xmule coja ED2K links.
« en: 17 de Octubre de 2003, 07:29:02 pm »
De donde lo saque preguntaban si alguien se animaba a traducirlo, y joer, pos me animao. Esta es mi primera traduccion y llevo poco en Linux, asi que si veis algun error no me lo tengais en cuenta ¿faleee?  :lol:
Al final os dejo tambien el original.

Como hacer que Xmule coja los enlaces ED2K del navegador.

------- KONQUEROR -------

1. Encuentra el directorio de servicios de KDE.
Tu puedes encontrarlo a traves de los nombres de archivos finalizados con .protocol,`find /usr -name "*.protocol"` o `find /opt -name "*.protocol"` o poniendo / a la localización si tu quieres.
Las localizaciones mas usadas para esto son /usr/kde/share/services o /opt/kde/share/services.
2.Si el primer punto ha ido correctamente, crea un archivo llamado e2k.protocol en
el mencionado directorio con el siguiente contenido:
[Protocol]
exec=/path/to/xmule "%u"
protocol=ed2k
input=none
output=none
helper=true
listing=false
reading=false
writing=false
makedir=false
deleting=false
3. Reinicia Konqueror
(Credits: gfdsa)

------- OPERA -------
* Opera 6.11
Primero de todo: Opera 6.11 no deja pasar URL completas a programas externos, solo URL sin protocolo. Este comportamiento ha cambiado en lanzamientos posteriores (menos mal).
Crea lmule_submit.sh con este contenido:
#!/bin/sh
/path/to/xmule "ed2k://$1";
ahora edita como “root” /etc/opera6rc o como “no root” ~/.opera/opera6.ini:
[Trusted Applications]
ed2k=/usr/local/bin/lmule_submit.sh
[User Prefs]
TrustedExternalURLProtocols=ed2k
(Credits: thermoman ( Marcel Meckel ) )
* Opera 7.1 (un poco diferente del Opera 6)
Edita cualquiera de los dos /etc/opera6rc o ~/.opera/opera6.ini y añade lo siguiente:
in [User Prefs]
TrustedExternalURLProtocols=ed2k
in [Trusted Applications]
ed2k=/path/to/lmule ed2k://%u
(Credits: ender)

------- MOZILLA -------
1) Ves a http://protozilla.mozdev.org/download.html
Selecciona la version apropiada a tu versión de Mozilla y haz click en "instalar". Se auto instalara protozilla
Ahora cierra la ventana de Mozilla completamente.
Nota:
- Debes dar permiso al directorio de instalacion de Mozilla para esto. Si has instalado mozilla en /usr , tendras que hacerlo como root probablemente.
- La version precompilada descargable de protozilla aparentemente no trabaja con paquetes de Mozilla de Debian. No trabajan juntos con la precompilada version de 1.2.1 disponible en mozilla.org por ejemplo. Tu puedes construir Mozilla y Protozilla tu mismo.
2) Este paso es solamente necesario si tu tienes que iniciar Mozilla como root en el paso 1. Si lo hicistes con el mismo nombre de usuario como normalmente haces, puedes saltartelo.
Haz como root:
cp -r /root/.mozilla/PROFILENAME/RANDOM.slt/protozilla/
/home/USERNAME/.mozilla/PROFILENAME2/RANDOM.slt/"
[copia la configuracion de protozilla desde home del root a home de users]
cd /home/USERNAME/.mozilla/PROFILENAME/RANDOM.slt/
chown -R YOURUSER.YOURGROUP protozilla"
[cd a users de mozilla config-dir y cambia los nuevos parametros del archivo]
Nota:
USERNAME: tu nombre normal (el que sueles usar vamos), no como root
PROFILENAME: nombre del perfil que querras usar
RANDOM:cuerda alfanumerica aleatoria (ein?), autogenerada por Mozilla
YOURUSER, YOURGROUP: user y grupo que usas normalmente
3) setup a protocol-handler for ed2k-links:
- cd a ~/.mozilla/PROFILENAME/RANDOM.slt/protozilla/protocol
- crea un archivo llamado "ed2k.cmd" con el siguiente contenido:
lmule ed2k:$URI_DATA
[haz esto con el editor de texto que prefieras, el archivo no tiene que ser ejecutable]
Ahora reinicia Mozilla, y todo debera funcionar.
(Credits: rpokorny ( R. Pokorny ) )


ORIGINAL

How to make xMule take ED2K links from browser?

------- KONQUEROR -------
1. Find kde services directory.
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.
Usual locations for it are /usr/kde/share/services or /opt/kde/share/services.
2. If the first was successful, create a file named like e2k.protocol in
the mentioned directory with the following content:
[Protocol]
exec=/path/to/xmule "%u"
protocol=ed2k
input=none
output=none
helper=true
listing=false
reading=false
writing=false
makedir=false
deleting=false
3. Restart konqueror
(Credits: gfdsa)

------- OPERA -------
* Opera 6.11
First of all: Opera 6.11 doesn't pass complete URL to external programs - only URL
without protocol. don't know wheather this behaviour has changed in later releases.
create lmule_submit.sh with this content:
#!/bin/sh
/path/to/xmule "ed2k://$1";
now edit (as root) /etc/opera6rc or as non-root ~/.opera/opera6.ini:
[Trusted Applications]
ed2k=/usr/local/bin/lmule_submit.sh
[User Prefs]
TrustedExternalURLProtocols=ed2k
(Credits: thermoman ( Marcel Meckel ) )
* Opera 7.1 (slightly different from Opera 6)
Edit either /etc/opera6rc or ~/.opera/opera6.ini and add the following:
in [User Prefs]
TrustedExternalURLProtocols=ed2k
in [Trusted Applications]
ed2k=/path/to/lmule ed2k://%u
(Credits: ender)

------- MOZILLA -------
1) Go to http://protozilla.mozdev.org/download.html
Choose the version fitting your mozilla-version and click on "install". It will auto-install protozilla
Now close mozilla completely.
Notes:
- You must have write permission to the mozilla-installation-directory for this. If you've installed mozilla to /usr , you'll have to be root probably.
- The downloadable precompiled version of protozilla apparently does _not_ work with debian mozilla packages. It _does_ work together with the precompiled version of 1.2.1 available at mozilla.org for example [or you can build both mozilla and protozilla yourself]
2) This step is only necessary if you had to start mozilla as root in step 1). If you did step 1) with the same user as you normally use, you can skip it
as root do:
cp -r /root/.mozilla/PROFILENAME/RANDOM.slt/protozilla/
/home/USERNAME/.mozilla/PROFILENAME2/RANDOM.slt/"
[copy protozilla-configuration from root's home to user's home]
cd /home/USERNAME/.mozilla/PROFILENAME/RANDOM.slt/
chown -R YOURUSER.YOURGROUP protozilla"
[cd to user's mozilla config-dir and change file-ownership parameters]
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 to ~/.mozilla/PROFILENAME/RANDOM.slt/protozilla/protocol
-create a file called "ed2k.cmd" with the following content:
lmule ed2k:$URI_DATA
[do this with your favorite text-editor, the file doesn't have to be executable]
Now restart mozilla, and everything should work.
(Credits: rpokorny ( R. Pokorny ) )

Saluetes.  :roll:
Condemnation , Tried , Here on the stand , With the book in my hand , And truth on my side
Accusations , Lies , Hand me my sentence , I'll show no repentance , I'll suffer with pride If for honesty , You want apologies , I don't sympathize...

Desconectado Dabo

  • Administrator
  • *
  • Mensajes: 15344
    • https://www.daboblog.com
Como hacer que Xmule coja ED2K links.
« Respuesta #1 en: 17 de Octubre de 2003, 10:30:22 pm »
vaya bueno amigo, te lo estas currando  :D  :D  un monton

guay  :!:
Hacking, computing, are in my blood, are a part of me, a part of my life...Debian GNU/Linux rules.

Twitter; https://twitter.com/daboblog
Instagram: @daboblog


www.daboblog.com | www.debianhackers.net | www.caborian.com | www.apachectl.com | www.davidhernandez

 

Aviso Legal | Política de Privacidad | Política de Cookies

el contenido de la web se rige bajo licencia
Creative Commons License