FreeBSD中Firefox的安装、汉化以及Flash插件的安装

1.安装Firefox3.5

#pkg_add -r firefox35

注意:安装过程中会有以下提示:Firefox在显示HTML5的页面元素是会需要模块sem,否则会出现“Bad system call (core dumped)“的错误,可以在/boot/loader.conf加入”sem_load=”YES”来解决这个问题。

 

2.安装Firefox的多国语言包

#pkg_add -r firefox35-i18n

语言包是以Firefox插件的形式安装的,启动firefox后,只需在Tools->Quick Locals Switcher中修改为zh_CN,重启Firefox就可以看到中文界面。

 

3.安装Flash插件

众所周知,FreeBSD下没有原原生的Flash player,这也是FreeBSD没能在个人桌面领域没能大展拳脚的一方面的原因吧。这里使用linux的Flash插件,可真的拿人的手短,设置起来还真挺麻烦的。

3.1. 安装port:www/nspluginwrapper,它使的FreeBSD可以使用其它平台上的插件,这个port依赖:emulators/linux_base-f10,所以在这之前必须要设定好linux compability。

3.2. 安装port:www/linux-f10-flashplugin10,并创建以下链接:

#ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \

/usr/local/lib/browser_plugins/

 

3.3. 设置linux的进程文件系统

linux的进程文件系统linprocfs,必须被挂载到/usr/compat/liunx/proc:

# mount -t linprocfs linproc /usr/compat/linux/proc

或者把它写入/etc/fstab,以便开机时系统自动挂载:

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

 

3.4. 为每个用户安装插件

%nspluginwrapper -v -a -i

%ln -s /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so /usr/local/lib/firefox3/plugins/npwrapper.libflashplayer.so

 

重启Firefox,终于看到熟悉的flash啦。

评论

此博客中的热门博文

FreeBSD安装Pure-FTPd及user manager for PureFTPd

debian lighttpd php ssl

解决nginx出现File not found的问题