home FreeBSD Bike Misc Memorandum About

Flash with Opera on FreeBSD

linux-opera7な理由

 FreeBSDのX環境上でのブラウザの選択肢としてはいくつかありますが、私はLinuxエミュレーションを有効にした上で、portsからwww/linux-opera7を利用しています。mozillaだと重い、ということがoperaを使う理由です。バージョン6だとFreeBSDネイティブなバイナリがあり、portsからも利用できます。しかし、XIMに関する設定は一通りやっているのですが、日本語入力がどうしてもうまくいかないのです。

 よってwww/linux-opera7を利用しています。こちらはちゃんと日本語入力できます。www/linux-operaでもOKです。

Flash プラグインを使いたい

 Flashプラグインは今や必須というぐらい普及しているのでFreeBSD上のOperaでも使いたいものです。そこで、www/linux-flushplugin6をちょこっといじります。www/linux-flushplugin6は基本的にmozilla用にインストールしてくれるので、operaのpluginディレクトリにインストールすればOKです。

$ ls -l /usr/local/lib/linux-flashplugin6/

total 1458
-r--r--r-- 1 root wheel 856 6 18 01:43 flashplayer.xpt
-r--r--r-- 1 root wheel 1464736 6 18 01:43 libflashplayer.so

flushpluginの実体はこの二つのファイルで、これをoperaのpluginディレクトリにシンボリックリンクを張ればよいのです。ちなみにmozillaの場合以下のようになっています。

$ ls -l /usr/local/lib/linux-mozilla/plugins/

total 0
lrwxr-xr-x 1 root wheel 49 6 18 01:43 flashplayer.xpt@ -> /usr/local/lib/linux-flashplugin6/flashplayer.xpt
lrwxr-xr-x 1 root wheel 51 6 18 01:43 libflashplayer.so@ -> /usr/local/lib/linux-flashplugin6/libflashplayer.so

operaのプラグインディレクトリは/usr/X11R6/share/opera/plugins/なので、ここにシンボリックリンクを張ります。

# cd /usr/X11R6/share/opera/plugins
# ln -s /usr/local/lib/linux-flashplugin6/flashplayer.xpt .
# ln -s /usr/local/lib/linux-flashplugin6/libflashplayer.so .
# ls /usr/X11R6/share/opera/plugins

total 174
lrwxr-xr-x 1 root wheel 49 6 18 01:46 flashplayer.xpt@ -> /usr/local/lib/linux-flashplugin6/flashplayer.xpt
lrwxr-xr-x 1 root wheel 51 6 18 01:46 libflashplayer.so@ -> /usr/local/lib/linux-flashplugin6/libflashplayer.so
-rwxr-xr-x 1 root wheel 75272 6 16 19:01 libnpp.so*
-rwxr-xr-x 1 root wheel 69272 6 16 19:01 operamotifwrapper*
-rwxr-xr-x 1 root wheel 31632 6 16 19:01 operaplugincleaner*

これでoperaを再起動するとoperaでFlushプラグインが有効になっています。

説明
FreeBSD上でOperaを使うときにFlashプラグインを有効にする方法です

Creative Commons License
This work is licensed under a Creative Commons License.