天天看點

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,終于發現成功加載了,。。。激動中。。。

繼續閱讀