1. 程式人生 > >CentOS如何給Firefox安裝Flash外掛

CentOS如何給Firefox安裝Flash外掛

http://blog.sina.com.cn/s/blog_4560b80b0100lqbz.html

點選這個地址下載flash player外掛原始檔http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz

解壓tar -zxvf install_flash_player_10_linux.tar.gz ,解壓後是一個libflashplayer.so 接下來
#ln -s /usr/lib/nspluginwrapper/noarch/npviewer /usr/bin/npviewer

#sh /etc/sysconfig/nspluginwrapper -v -i /檔案路徑/libflashplayer.so

#cp /檔案路徑/libflashplayer.so /usr/lib/mozilla/plugins

# sh /etc/sysconfig/nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so(絕對路徑)

#sh /etc/sysconfig/nspluginwrapper -l

開啟firefox瀏覽器 在位址列裡輸入 about:plugins 輸入flash即可看到已經安裝好flashpalyer,享受flash的網頁吧!

-------------------------------------------------------------------------------------------------

CentOS下自帶了firefox,但沒有flash外掛的,按它自己的提示安裝不成功,需要手動安裝,如下:

1.開啟flash官網,http://labs.adobe.com/downloads/flashplayer11-2.html

下載外掛tar.gz格式的,解壓后里面有一個usr資料夾,一個libflashplayer.so和一個readme.txt檔案.

主要是那個libflashplayer.so檔案,在終端下,進行root角色,把libflashplayer.so檔案拷貝到firfox資料夾的/plugins目錄下:

$ cp libflashplayer.so /usr/lib64/mozilla/plugins/

增加許可權

$ chmod 755 /usr/lib64/mozilla/plugins/libflashplayer.so 

安裝成功後,重啟firefox ,在firefox的位址列目裡輸入about:plugins,會顯示下面結果,表明安裝成功。Shockwave Flash