Flash 9 for FreeBSD 7.1

2009-05-13 16:03:44来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

I hear the cheers already... Flash 9 for FreeBSD at last! And I don't mean having to run a Windows or Linux browser — Flash 9 in native Firefox 3. FreeBSD's linux emulation layer has undergone some upgrades recently, and as of FreeBSD 7.1 it is able to provide enough kernel support to get the linux Flash player version 9 running. Very good indeed, and hopefully it'll hold us out until Adobe create official native FreeBSD support (assuming that rumour comes true). Note: this only works on i386 and AMD64 platforms.
Let's get down to business. To get Flash 9 working you'll first need to upgrade to FreeBSD 7.1. Now 7.1 is not officially out yet, but if you CVSup from RELENG_7 as of about 2 weeks ago, all the necessary linux compatibility code is there already. I assume you know about CVSup and how to upgrade FreeBSD. Once that's done the rest is straight forward.
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
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:

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:[FreeBSD] 添加一个分区

下一篇:FreeBSD下的Xorg刷新率的控制