Ed2k links handling-ko KR

From AMule Project FAQ
Revision as of 14:11, 23 January 2008 by Vollstrecker (Talk | contribs)

Jump to: navigation, search

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

당신이 선호하는 웹브라우저에서 ed2k 링크들을 처리하는 방법은 어떤 웹브라우저를 사용하느냐에 달려있다. 그래서, 여기에 대부분의 유명한 웹브라우저들의 방법이 나열되어있다. 이 문서 어느곳에서나 /path/to/ed2k/usr/local/bin/ed2k, /usr/bin/ed2k, C:\Program Files\aMule\ed2k.exe혹은 당신의 시스템 설정에 따라서 어떤것으로 변경되어야 하는것을 알고계십시오.

일반적으로, 대부분의 리눅스 시스템은 자체컴파일된 어뮬/usr/local/bin/ed2ked2k 유틸이 있을 것이며, 패키지설치된 어뮬/usr/bin/ed2k에 있을 겁니다. 예외로, 수세 패키지는 /usr/local/bin/ed2k에 있는걸로 알려져 있다.

인터넷 익스플로러

"시작"으로 가서 -> "실행" 그리고 "regedit"를 실행하세요 (인용을 제외하고).

이제 레지스터리에서, HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ed2k\shell\open\command로 갑니다

알림: ed2k나 하위폴더가 존재하지 않을수 있습니다. 이경우, "New" -> "Key"를 선택하여, ed2k나 무엇이든지 이것의 값을 입력하여 하나씩 이것들을 생성합니다.

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

이제 그냥 "(Default)"을 더블클릭 하고 (혹은 "(Standard)"나 첫번째 값이 있는 무엇이든지) "%1"를 동반하여 ed2k 응용프로그램이 있는 경로를 입력하고 (인용을 포함하여), 그리하여 당신은 C:\Program Files\aMule2\ed2k "%1"과 같이 어떤 값으로 끝내야합니다.

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

마지막으로, HKEY_CLASSES_ROOT\ed2k\shell\open\command에도 똑같이 하면 됩니다

컨쿼러

컨쿼러에서 ed2k 링크가 동작되기 위해서 당신은 다른 프로토콜-파일이 있는 폴더에 프로토클-파일을 추가해야 합니다. 당신은 .protocol로 끝나는 파일이름을 검색하여 이 폴더를 찾을수 있습니다. 검색을 위해 `find /usr -name "*.protocol"` 혹은 `find /opt -name "*.protocol"` 를 실행하세요. 만약 당신이 KDE가 설치된 폴더가 어디에 있는지 알수없으면, 당신은 /으로 경로를 찾는것도 가능합니다.

만약 성공적으로 검색했다면, 언급한 폴더에 ed2k.protocol 이란 파일을 만드세요:

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

이제 컨쿼러를 다시 시작하세요.

알림: 당신은 분명히 보안경고를 받을겁니다. 걱정마세요. 이것은 단지 링크가 외부 응용프로그램에 보내진다는것을 경고하는것 뿐입니다.

알림2: 만약 확인 을 클릭한 후에 보안경고가 생기면, 링크가 여전히 어뮬에 보내지지 않고, 단지 ed2k 링크오른쪽클릭과 컨쿼러 보냄을 하면 새로운 창/텝이 열립니다.

갈런

방법 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

오페라

깨끗한 방법

오페라에서 Tools->Preferences->Paths and Programms->Add...로 갑니다.

"Protocol"에 ed2k을 입력합니다.

"Path" 나 "Open with another application"에 /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 (혹은 그이상)

모즈엑스는 더이상 모질라 1.7 과 불여우 0.9에 동작하지 않습니다. 여기에 모두다 동작하는 대체방법이 있습니다:

  • 만약 설치하였으면 모즈엑스를 제거하거나 최소한 이것으로부터 ed2k 입력을 제거하세요 (단지 모즈엑스가 설치된 경우)
  • about:config를 주소창에 입력하세요
  • 리스트에서 오른쪽 버튼을 클릭하여, 새로 만들기 그리고 연산자를 선택하고; 환경설정 이름network.protocol-handler.external.ed2ktrue를 입력하세요
  • 자 한번더 오른쪽 버튼을 클릭해서, 새로 만들기 그리고 문자열을 선택하고; 환경설정 이름network.protocol-handler.app.ed2k/path/to/ed2k를 입력하세요 (경로는 당신의 시스템에 파일이 설치된 위치임)

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

주의 1: 아마도 이 방법이 Kubuntu-Linux와 작동하려면 "amule-utils" 설치해야 합니다.

주의 2: 모질라 불여우 1.5.x 버전 이후로 윈도우 버전은 더이상 동작하지 않습니다. 반드시 인터넷 익스플로러를 이용 레지스트리 기입 방법을 대신 사용하세요.

링크스

(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

Version

This section needs to be translated, too
Created by Hoenny on 09.10.06 at 18:49
Updated by Vollstrecker on 23.01.08 at 14:11