음냐 요즘 이런 허접한 팁을 자꾸만 올리게 되네요....ㅡ.ㅡ;;
오늘도 다들 아시지만 다시 한번 상기하는 의미에서 한번 지껄여 봅니다....
다들 모질라나 피닉스에서 plugger를 사용들하실겁니다.
근데 이놈이 asf, wmv같은 거나 몇몇 플러그인이 동작 안하는걸 자주 보셨을
겁니다.
플러거를 조금만 만져 주시면 이놈이 멋지게 동작 할수가 있죠
자그럼 플러거를 한번 애무(주물러) 봅시다.....
일단 필요한 준비물 !!!
1. plugger의 소스 rpm(왜 하필 소스 rpm이냐구요? PluginSDK30b5가 동봉
되어있기때문에 편해서....)
ftp://rpmfind.net/linux/rawhide/1.0/SRPMS/SRPMS/plugger-4.0-19.src.rpm 2. rpm -ivh plugger-4.0-19.src.rpm 을 실행
합니다. 3. 소스rpm을 설치 하면 /usr/src/packages/SOURCES에 들어 가게 됩니다.
그 디렉으로 이동을 합니다.
그러면 거기에 몇몇 patch파일과 plugger-4.0.tar.gz와 unux-sdk-3.0b5.tar.Z가 있을겁니다.
일단 plugger-4.0.tar.gz를 압축을 풉니다. 그리고 unux-sdk-3.05.tar.Z도 압축을 풀어 줍니다.
그런후에 unux-sdk-305.tar.Z풀고 나면 PluginSDK30b5라는 디렉에 나올겁니다.
그 디렉토리를 plugger-4.0.tar.gz을 압축푼 디렉으로 옮겨 줍니다. (mv PluginSDK30b5 plugger-4.0)
4. 자 그런후에 plugger-4.0으로 이동 합니다 (cd plugger-4.0)
5. 자 이제 레드헷계열이라면 레드헷에 맞게 Makefile을 고쳐 줍니다
그렇다고 해서 vi로 열어서 고치라는게 아니구요 참으로 편하게 이 소스rpm을 만든 사람이 p
atch파일을 다 마련 해뒀군요 patch -p1 < ../plugger-4.0-redhat.patch 이렇게 하면 레드헷에 맞게 수
정이 됩니다. 6. 그리고 이제 플러그인이 잘 동작 하도록 우리만의 설정으로 바꿔야 겠죠.
pluggerrc가 있는데 이놈이 어떤 마임타입이 있으면 이렇게 동작해라라고 지정해둔 설정 파
일입니다. 이놈을 열어 보면 video 탑입과 audio타입 그리고 몇몇 application타입들이 정의 되
어있을겁니다. 거기에 자신에 맞게 추가를 해주시면 됩니다.
예를 들자면 asf를 넣고 싶다면 video/mpeg : mpeg, mpg, mpe: MPEG animation 위에 다음과 같이 넣어 줍
니다. video/x-ms-asf: asf : ASF animation
그리고 나서 저장 하시고 난후 빠져 나옵니다.
7. 이제 컴파일을 합니다
make linux
이렇게 하면 컴파일이 되고 난후에 plugger-4.0과 plugger.so가 만들어 집니다. 그럼 plugger-4.0은 /
usr/bin/plugger로 카피 해주시고 plugger.so는 자신의 웹브라이져의 plugins디렉으로 카피해주시고
pluggerrc는 /etc/로 카피 해주시면 됩니다. 8. 모질라를 사용하신다면 저렇게 하고 나서 플러
그인 정보를 보시면 자신이 새로 넣은 항목이 보일겁니다. 피닉스는 주소 창에 about:plugins
라고 치면 나옵니다. 9. 다음은 저의 pluggerrc의 설정입니다. 전 asf와 wmv와 txt파일을 웹에서
직접 볼수 있도록 했습니다 . txt는 제가 KDE를 사용하는 관계로 kedit를 사용해서 볼수 있도
록 했습니다. # Configure file for plugger version 4.0 # Commands which are not installed on your system will not
# be used. #
#요기 아래가 제가 추가한 부분 필요하다면 자신에 맞게 추가 하세요!!
text/plain: txt: TEXT file
repeat swallow(kedit) fill: kedit "$file" <---kedit를 사용
video/x-ms-wmv: asf, wmv: ASF animation
video/x-ms-asf: asf, wmv: ASF animation
video/x-ms-asx: asx : ASX animation <---요기까지 추가한 부분
video/mpeg: mpeg, mpg, mpe, asf, wmv: MPEG animation
video/x-mpeg: mpeg, mpg, mpe: MPEG animation
video/x-mpeg2: mpv2, mp2ve: MPEG2 animation
exits nokill: xine -pq "$file" 2>/dev/null 1>/dev/null
ignore_errors maxaspect swallow(MPlayer):mplayer "$file" >/dev/null 2>/dev/null </dev/null
stream: mtvp -W$window - 2>/dev/null 1>/dev/null
loop:mtvp -l -W$window "$file"
:mtvp -W$window "$file"
loop: xanim +Av100 -Zr +W$window +q +f "$file"
: xanim +Av100 -Zr +W$window +q +Ze +f "$file"
video/msvideo: avi: AVI animation
video/x-msvideo: avi: AVI animation
exits nokill: xine -pq "$file" 2>/dev/null 1>/dev/null
ignore_errors maxaspect swallow(MPlayer):if mplayer -autoq 3 "$file" 2>&1 | grep 'Sorry,' >/dev/null ; then mplayer -vo
x11 -autoq 3 "$file" >/dev/null 2>/dev/null ; fi </dev/null loop:xanim +Av100 -Zr +W$window +q +f "$file"
:xanim +Av100 -Zr +W$window +q +Ze +f "$file"
video/quicktime: mov,qt: Quicktime animation
video/x-quicktime: mov,qt: Quicktime animation
exits nokill: xine -pq "$file" 2>/dev/null 1>/dev/null
video/dl: dl: DL animation
video/x-dl: dl: DL animation
video/sgi-movie: movie,movi,mv: SGI animation
video/x-sgi-movie: movie,movi,mv: SGI animation
video/anim: iff,anim5,anim3,anim7: IFF animation
video/x-anim: iff,anim5,anim3,anim7: IFF animation
video/fli: fli, flc: FLI animation
video/x-fli: fli, flc: FLI animation
loop:xanim +Av100 -Zr +W$window +q +f "$file"
:xanim +Av100 -Zr +W$window +q +Ze +f "$file"
audio/mid: midi,mid: MIDI audio file
audio/x-mid: midi,mid: MIDI audio file
audio/midi: midi,mid: MIDI audio file
audio/x-midi: midi,mid: MIDI audio file
exits : timidity "$file"
audio/mod: mod: Soundracker audio Module
audio/x-mod: mod: Soundracker audio Module
repeat swallow(alsaplayer): alsaplayer -q "$file" >/dev/null
loop: xmp -l --nocmd "$file" 2>/dev/null
: xmp --nocmd "$file" 2>/dev/null
loop: mikmod -i -r "$file" 2>/dev/null 1>/dev/null
: mikmod -i "$file" 2>/dev/null 1>/dev/null
audio/mp3: mp3: MPEG audio
audio/x-mp3: mp3: MPEG audio
audio/mpeg2: mp2: MPEG audio
audio/x-mpeg2: mp2: MPEG audio
audio/mpeg3: mp3: MPEG audio
audio/x-mpeg3: mp3: MPEG audio
audio/mpeg: mpa,abs,mpega: MPEG audio
audio/x-mpeg: mpa,abs,mpega: MPEG audio
stream, preload: mpg123 -q -b 128 -
repeat swallow(alsaplayer): alsaplayer -q "$file" >/dev/null
: mpg123 -q -b 128 "$file"
nokill exits:xmms "$file"
audio/basic: au,snd: Basic audio file
audio/x-basic: au,snd: Basic audio file
loop: xanim +Av100 -Zr +W$window +q +f "$file"
: xanim +Av100 -Zr +W$window +q +f +Ze "$file"
audio/wav:wav:Microsoft wave file
audio/x-wav:wav:Microsoft wave file
: play "$file"
nokill exits:xmms "$file"
image/tiff: tiff,tif: TIFF image
image/x-tiff: tiff,tif: TIFF image
repeat swallow(gqview) fill: gqview -t "$file" >/dev/null 2>/dev/null
repeat swallow(display) fill: display "$file"
repeat swallow(Sdtimage) fill: sdtimage "$file"
repeat swallow(xli) fill: xli -quiet "$file" >/dev/null 2>/dev/null
repeat swallow(xloadimage) fill: xloadimage -quiet "$file" >/dev/null 2>/dev/null
exits: xloadimage -quiet -windowid $window "$file"
exits: display -window $window -backdrop $file
exits: xli -quiet -windowid $window "$file"
image/sun-raster: rs: SUN raster image
image/x-sun-raster: rs: SUN raster image
image/x-MS-bmp: bmp: Windows Bitmap
image/x-bmp: bmp: Windows Bitmap
image/bmp: bmp: Windows Bitmap
image/x-rgb: rgb: RGB Image
image/x-portable-pixmap: ppm: PPM Image
image/x-portable-graymap: pgm: PGM Image
image/x-portable-bitmap: pbm: PBM Image
image/x-portable-anymap: pnm: PBM Image
repeat swallow(display) fill: display "$file"
repeat swallow(Sdtimage) fill: sdtimage "$file"
repeat swallow(gqview) fill: gqview -t "$file" >/dev/null 2>/dev/null
repeat swallow(xli) fill: xli -quiet "$file" >/dev/null 2>/dev/null
repeat swallow(xloadimage) fill: xloadimage -quiet "$file" >/dev/null 2>/dev/null
exits: xli -quiet -windowid $window "$file"
exits: xloadimage -quiet -windowid $window "$file"
exits: display -window $window -backdrop $file
# This does not work
# swallow(XVroot) maxaspect: xv -nopos "$file"
audio/mpeg-url: m3u: MPEG music resource locator
audio/x-mpeg-url: m3u: MPEG music resource locator
audio/mpegurl: m3u: MPEG music resource locator
audio/x-mpegurl: m3u: MPEG music resource locator
nokill exits:xmms "$file"
:internal:url
audio/x-pn-realaudio: ra,rm,ram : Realaudio-plugin resource locator
exits nokill: realplay "$file"
application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
repeat swallow(documentShell) fill: acroread -geometry +9000+9000 -xrm '*userFrontEndProgram: FALSE' "$file"
repeat swallow(xpdf) fill: xpdf -g +9000+9000 "$file"
repeat swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file" 2>/dev/null
text/plain: c : C file
application/x-dvi: dvi: DVI file
repeat swallow(xdvi) fill: xdvi -safer -hush -geometry +9000+9000 "$file"
application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
repeat swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file" 2>/dev/null
repeat swallow(Pageview) fill: pageview "$file"
application/rtf: rtf: Rich Text Format
application/x-msword: doc, dot: Microsoft Word Document
application/msword: doc, dot: Microsoft Word Document
nokill exits: oowriter "$file"
repeat swallow(AbiWord) fill: AbiWord -nosplash -geometry +9000+9000 "$file" >/dev/null 2>/dev/null
repeat swallow(PCFileViewer) fill: sdtpcv "$file"
repeat swallow(PCFileViewer) fill: /opt/SUNWdtpcv/bin/sdtpcv "$file"
application/vnd.stardivision.calc: sdc,sxc,sds,stc : StarCalc Document
nokill exits: oocalc "$file"
application/vnd.stardivision.draw: sda,sxd,std : StarDraw Document
nokill exits: oodraw "$file"
application/vnd.stardivision.impress: sdd,sxi,sti : StarImpress Document
nokill exits: ooimpress "$file"
application/vnd.stardivision.math: sdf : StarMath Document
nokill exits: oomath "$file"
application/vnd.stardivision.writer: sdw,sgl,sxw,sxg,stw : StarWriter Document
nokill exits: oowriter "$file"
application/vnd.ms-excel: xls, xlb: Microsoft Excel Document
repeat swallow(PluggerGnumeric) fill: gnumeric --class PluggerGnumeric "$file"
repeat swallow(PCFileViewer) fill: sdtpcv "$file"
repeat swallow(PCFileViewer) fill: /opt/SUNWdtpcv/bin/sdtpcv "$file"
지금 까지 허접한 팁을 읽어 주셔서 감사......
--
삽질은 언제가 목마르다.........2% ......