linux中不能播放flash player__linux

來源:互聯網
上載者:User
瀏覽時遇到無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 mozilla
/usr/lib/mozilla
/usr/share/mozilla

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

如果還是沒有成功載入則繼續下一步 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


來個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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.