2009-03-30

Flash 9 for FreeBSD 7.1

Step 1: Enable Linux compatibility and linprocfs

Add linux_enable="YES" to /etc/rc.conf. Add compat.linux.osrelease=2.6.16 to /etc/sysctl.conf. Add OVERRIDE_LINUX_BASE_PORT=f8 to /etc/make.conf. Add this line to /etc/fstab:

linproc /usr/compat/linux/proc linprocfs rw 0 0

Then run these commands:

mkdir -p /usr/compat/linux/proc
mount /usr/compat/linux/proc
/etc/rc.d/abi start
/etc/rc.d/sysctl start

Step 2: Update ports and install all the needed software

You will now need to install the following ports and their dependencies:

cd /usr/ports/emulators/linux_base-f8 && make install clean
cd /usr/ports/www/linux-flashplugin9 && make install clean
( or cd /usr/ports/www/linux-f8-flashplugin10 && make install clean )
cd /usr/ports/www/nspluginwrapper && make install clean

Follow the nspluginwrapper instructions to enable all available plugins:

# nspluginwrapper -v -a -i
Auto-install plugins from /usr/X11R6/lib/browser_plugins
Looking for plugins in /usr/X11R6/lib/browser_plugins
Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
Install plugin /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
into /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so
Auto-install plugins from /root/.mozilla/plugins
Looking for plugins in /root/.mozilla/plugins

Restart or open Firefox 3 and enter about:plugins into your address bar. You should see something like the following:
"Shockwave Flash 9.0 r124"

Original source : http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71

PS(1) : plugin 原本是放在 /usr/local/lib/brower_plugins 之下. 但 firefox 3.x 之後, 似乎要放到 ~/.mozilla/plugins 才可正常運作.

PS(2) : How to disable flash in FreeBSD:
Method1 : install extension : flashblock
Method2 : install FreeBSD port : dummyflash

PS(3) : plugin 可能存放位置
/usr/local/lib/browser_plugins
/usr/local/lib/firefox/plugin
~/.mozilla/plugins
/usr/X11R6/lib/firefox
/usr/X11R6/lib/browser_plugins

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.