- 论坛徽章:
- 13
|
有
http://blog.chinaunix.net/uid-25256412-id-2939430.html
我是freebsd 但是差不多的!- 15:Using Linux Mode (MacromediaFlash插件没有FBSD版,用Linux wrapper运行其flash版本)
- # kldload linux (加载进来一会用)
- # cd /usr/ports/emulators/linux_base-f10 && make BATCH=YES install distclean
- # vim /etc/rc.conf
- linux_enable="YES"
- :wq
- 16:Firefox 和 MacromediaFlash 和 Add-ons and Chromium
- # cd /usr/ports/www/firefox/ && make BATCH=YES install clean
- vim /boot/loader.conf
- sem_load="YES" (加载module)
- :wq
- # cd /usr/ports/www/firefox-i18n/ && make install clean (中文支持)
- # cd /usr/ports/www/nspluginwrapper && make install clean (提供flash支持)
- # cd /usr/ports/www/linux-f10-flashplugin10 && make install clean (安装flash插件)
- # 安装版本11的话不需要 挂载 linproc , 我安装的11 ..
- # cd /usr/ports/www/linux-f10-flashplugin11 && make install clean (安装flash插件)
-
- # ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \
- /usr/local/lib/browser_plugins/ (做个symbolic Link,官方文档:browser_plugins是个目录,没有的话要创建)
- (目录不行:请直接连接,我就是 直接链接的!)
- # rehash (Updates FreeBSD's path environment variables)
- <For instance when you have installed software you may not be able
- to run the executables without specifying the path.
- rehash solves your problem most of the times>
- % nspluginwrapper -v -a -i (插件必须由每个用户运行 nspluginwrapper 安装)
- <上面的命令会复制 browser_plugins目录下生成的文件 到:~/.mozilla/plugins/npwrapper.libflashplayer.so>
- # 安装版本11(linux-f10-flashplugin11)的话不需要 进行下面的操作 挂载 linproc , 我安装的11 ..
- 实现播放flash 动画效果:
- # mount -t linprocfs linproc /usr/compat/linux/proc (挂载 linproc ,事实上 procfs存在安全问题FBSD早就废弃了)
- # vim /etc/fstab
- linproc /usr/compat/linux/proc linprocfs rw 0 0 (开机自动挂载)
- :wq
- Add-ons:
- firefox - Edit - Preferences - Manage Add-ons - Search
- Ease Link: (转换迅雷、QQ旋风、快车专用链接)
- Adblock Plus: (屏蔽广告)
- Adblock Plus Preferences - Filters -Add filter subscription - Update all subscriptions
- NetVideoHunter Video Downloader: (视频地址检测)
- NetVideoHunter Options - Show in statusbar - Enable the capturing of SWF files
- PS: npviewer.bin 该进程为flash进程,当关闭flash后不会自动
- 结束,sockstat |grep npviewer.bin 会看到N多 占用内存超多
- 我的办法是:
- # echo 'alias killflash killall npviewer.bin'>>~/.cshrc
- Chromium
- # cd /usr/ports/www/chromium/ && make install clean
- echo 'alias chrome chrome --incognito'>>~/.cshrc
复制代码 |
|