debian下爲firefox安裝flash插件

轉自:http://www.cnblogs.com/SunOne/p/6820145.html

從Adobe官網下載flash:http://get.adobe.com/cn/flashplayer/

我下載的版本是:flash_player_npapi_linux.x86_64.tar.gz
找到正確目錄

sunone@HY-Chess:~$ whereis firefox
firefox: /usr/bin/firefox
sunone@HY-Chess:~$ find /usr/ -name firefox
/usr/bin/firefox
find: `/usr/lost+found': Permission denied
sunone@HY-Chess:~$ find /usr/ -name mozilla
/usr/share/mozilla
/usr/share/ca-certificates/mozilla
find: `/usr/lost+found': Permission denied
/usr/lib/mozilla
查看plugins 到底放在哪裏

sunone@HY-Chess:~$ ls /usr/share/mozilla/
extensions
sunone@HY-Chess:~$ ls /usr/lib/mozilla/
extensions  plugins
Ok,找到插件目錄 /usr/lib/mozilla/plugins
解壓下載的插件安裝包
sunone@HY-Chess:~/Downloads$ tar -zxvf flash_player_npapi_linux.x86_64.tar.gz
找到libflashplayer.so文件和usr/這個文件夾,複製libflashplayer.so/usr/lib/mozilla/plugins

sunone@HY-Chess:~/Downloads$ sudo cp libflashplayer.so /usr/lib/mozilla/plugins/


把usr/文件夾複製到/usr

sunone@HY-Chess:~/Downloads$ sudo cp -r usr/* /usr

重啓瀏覽器,插件加載成功。

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