linux下 firefox安裝flash插件

我的linux版本是CentOS 6.

 

瀏覽時遇到無flash插件時,到官網下載一個:

http://get.adobe.com/cn/flashplayer/


我下載的是:install_flash_player_11_linux.i386.tar.gz

OK,開始安裝。


1.找到正確目錄

 

 

#whereis firefox
firefox: /usr/bin/firefox /usr/share/man/man1/firefox.1.gz

 

現在可以確定它在/usr下面了,再找下安裝目錄

 

#find /usr -name firefox

/usr/bin/firefox

 

哎呀,沒找到,/usr/bin/firefox這個是程序,不是目錄

。。。不要忘了firefox的全名是Mozilla Firefox,繼續找

 

#find /usr -name mozilla

/usr/lib/mozilla
/usr/share/mozilla


OK,有兩個目錄出來了。

說說我遇到的事:屁顛屁顛從圖形界面去找這兩個目錄,結果是找不到,沒弄明白,只好用命令了。


2.查看plugins到底放在哪

 

# ls /usr/share/mozilla
extensions

 

這個沒有,下一個

 

# ls /usr/lib/mozilla
extensions  plugins  plugins-wrapped


OK,找到插件目錄/usr/lib/mozilla/plugins

 
3.解壓安裝包install_flash_player_11_linux.i386.tar.gz,找到libflashplayer.so

 

複製libflashplayer.so到firefox插件目錄下

 

#cp flash_source_path/libflashplayer.so /usr/lib/mozilla/plugins

flash_source_path/libflashplayer.so是插件的絕對路徑,如果你在當前目錄下,直接

#cp libflashplayer.so /usr/lib/mozilla/plugins


到這裏插件已經複製進去了,打開firefox,鬱悶,如果還是沒有成功加載則繼續下一步


4.又是權限問題

 

轉入插件目錄

#cd /usr/lib/mozilla/plugins


查看權限

# ls -l
總用量 17000
-rw-r--r--. 1 root root 17047372  3月  2 00:26 libflashplayer.so
-rwxr-xr-x. 1 root root     4332 11月 12 2010 librhythmbox-itms-detection-plugin.so
-rwxr-xr-x. 1 root root    94248 11月 12 2010 libtotem-cone-plugin.so
-rwxr-xr-x. 1 root root   102784 11月 12 2010 libtotem-gmp-plugin.so
-rwxr-xr-x. 1 root root    68600 11月 12 2010 libtotem-mully-plugin.so
-rwxr-xr-x. 1 root root    77188 11月 12 2010 libtotem-narrowspace-plugin.so

 

看吧libflashplayer.so權限和其它插件的不同,不管了,來個755

 

#chmod 755 libflashplayer.so
#ls -l
總用量 17000
-rwxr-xr-x. 1 root root 17047372  3月  2 00:26 libflashplayer.so
-rwxr-xr-x. 1 root root     4332 11月 12 2010 librhythmbox-itms-detection-plugin.so
-rwxr-xr-x. 1 root root    94248 11月 12 2010 libtotem-cone-plugin.so
-rwxr-xr-x. 1 root root   102784 11月 12 2010 libtotem-gmp-plugin.so
-rwxr-xr-x. 1 root root    68600 11月 12 2010 libtotem-mully-plugin.so
-rwxr-xr-x. 1 root root    77188 11月 12 2010 libtotem-narrowspace-plugin.so

 

注:如果發現其用戶和組羣和其它插件不一樣的話,也改下吧,我直接root進行操作的,沒有問題,不知道用其它用戶怎麼樣,命令如下:
#chown root:root libflashplayer.so


再次打開firefox,終於發現成功加載了,。。。激動中。。。

發佈了53 篇原創文章 · 獲贊 3 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章