- 論壇徽章:
- 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是個目錄,沒有的話要創(chuàng)建)
- (目錄不行:請直接連接,我就是 直接鏈接的!)
- # 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 ..
- 實現(xiàn)播放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
復制代碼 |
|