Ubuntu安装adobe flash player插件(PPAPI和NPAPI)
2017-02-22 11:34
721 查看
CSDN | GitHub |
---|---|
Aderstep–紫夜阑珊-青伶巷草 | AderXCoding/system/tools/flashplayer |
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可, 转载请注明出处
各平台不同浏览器使用的
adobe flash player
Platform | Browser | Player |
---|---|---|
Windows | Internet Explorer | ActiveX |
Windows | Internet Explorer (embedded - Windows 8.1) | ActiveX |
Windows | Edge (embedded - Windows 10) | ActiveX |
Windows | Firefox | NPAPI |
Windows | Chrome (embedded) | PPAPI |
Windows | Opera, Chromium-based browsers | PPAPI |
Macintosh OS X | Firefox, Safari | NPAPI |
Macintosh OS X | Chrome (embedded) | PPAPI |
Macintosh OS X | Opera, Chromium-based browsers | PPAPI |
Linux | Firefox | NPAPI |
Linux | Chrome (embedded) | PPAPI |
Linux | Opera, Chromium-based browsers | PPAPI |
ChromeOS | ChromeOS | PPAPI |
1 问题
1.1 Linux下的Flash Player
Flash Player For Linux自
11.2起已经停止更新, 目前
Linux平台下面的
Flash Player只能依靠
Google Chrome的
PPAPI(Pepper Flash Player)进行更新
(Chrome Only)
Adobe仅维护这个版本, 其它浏览器包括
Chromium都只能使用
Flash Player 11.2
但由于 Chromium 宣布将抛弃旧的标准(NPAPI),导致原本的 Flash Player 将无法在 Chromium 运行,所以决定在 Chromium 中使用 Pepper Flash Player ,这个Pepper Flash Player 是通过下载 Google Chrome 然后提取出来给 Chromium 使用的。
1.2 NPAPI 和 PPAPI
NPAPI是当今最流行的插件架构, 由网景开发, 后
Mozilla维护, 几乎所有浏览器都支持, 不过存在很大的安全隐患, 插件可以窃取系统底层权限, 发起恶意攻击.
2010年,
NPAPI(Netscape Plugin API)基础上开发了新的
PPAPI(Pepper Plugin API), 将外挂插件全部放到沙盒里运行,
2012年
Windows、Mac版本的
Chrome浏览器先后升级了
PPAPI Flash Player, 随后彻底淘汰了
NPAPI.
PPAPI的
flash相较于
NPAPI来讲, 内存占用更大, 因为全在沙盒里面运行, 顺便一提
flash每次更新基本上都是修补安全漏洞.
2 安装PPAPI
2.1 源中安装PPAPI
早期源中使用包adobe-flashplugin来安装
PPAPI. 但是后来此包废弃, 取而代之的是
pepperflashplugin-nonfree, 但目前测试的过程中, 此包也有问题
目前这个安装器已经收录于
Ubuntu 14.04官方源(从
Debian源中导入)
Ubuntu 14.04用户可以通过以下命令安装
Pepper Flash Player For Chromium:
sudo apt-get install pepperflashplugin-nonfree sudo update-pepperflashplugin-nonfree --install
如果你想使用
Beta版的
Google Chrome中的
Pepper Flash Player, 那么可以把第二个命令改为 :
sudo update-pepperflashplugin-nonfree --install --beta --unverified
如果想使用非稳定版的
Google Chrome中的
Pepper Flash Player, 那么可以把第二个命令改为 :
sudo update-pepperflashplugin-nonfree --install --unstable --unverified
如果你想卸载这个
Flash Player, 那么请执行以下命令 :
sudo update-pepperflashplugin-nonfree --uninstall
如果安装成功, 会将
PPAPI安装到
/usr/lib/pepperflashplugin-nonfree/
如果安装过程中提示出错
ERROR: failed to retrieve status information from google : W: There is no public key available for the following key IDs: 1397BC53640DB551
这是因为谷歌改变了它的签名密钥, 解决办法, 参见PepperFlashPlayer
gpg --keyserver pgp.mit.edu --recv-keys 1397BC53640DB551 gpg --export --armor 1397BC53640DB551 | sudo sh -c 'cat >> /usr/lib/pepperflashplugin-nonfree/pubkey-google.txt'
2.2 用二进制包安装
如果提示无法下载和安装, 则我们需要自己下载二进制包, 完成安装.2.2.1 下载Adobe Falsh Player for Chromium(PPAPI)
下载对应版本的Flash Player其中
deb包已经无法下载, 因为其对应的 adobe-flashplugin 软件包已经不在源中了, 参见ubuntu package搜索adobe-flashplugin
其他
rpm包均可下载安装
我们目前的环境是
Ubuntu, 官方没有提供
deb包, 而
apt的源也已经失效, 因此我们只能下载
tar.gz格式的二进制包.
NPAPI
#NPAPI wget https://fpdownload.adobe.com/get/flashplayer/pdc/24.0.0.221/flash_player_npapi_linux.x86_64.tar.gz[/code]
PPAPIwget https://fpdownload.adobe.com/pub/flashplayer/pdc/24.0.0.221/flash_player_ppapi_linux.x86_64.tar.gz[/code]tar -zxvf flash_player_ppapi_linux.x86_64.tar.gz
主要是一个名为libpepflashplayer.so的链接库.2.2.2 安装PPAPI
安装PPAPI其实就是将flashplayer的链接库系统或个人的链接库目录, 或者安装到浏览器的链接库目录
为了兼容软件包pdate-pepperflashplugin-nonfree
现在将libpepflashplayer.so文件从下载文件夹移动到/usr/lib/pepperflashplugin-nonfree目录.
你可以通过命令︰sudo mv ~/Downloads/flash_player_ppapi_*/libpepflashplayer.so /usr/lib/pepperflashplugin-nonfree /3 安装NPAPI
3.1 源中安装
NPAPI在源中由flashplugin-installer提供sudo apt-get install flashplugin-installer
安装过程中会下载flash_player_npapi_linux.tar.gz的包, 并自动安装到/usr/lib/flashplugin-installer/3.2 二进制包安装
3.2.1 下载Adobe Falsh Player for Firefox(NPAPI)
采用与PPAPI同样的方法安装
下载对应版本的Flash Player
或者直接下载#NPAPI wget https://fpdownload.adobe.com/get/flashplayer/pdc/24.0.0.221/flash_player_npapi_linux.x86_64.tar.gz[/code]3.2.2 安装
同样将二进制包中的链接库拷贝到/usr/lib/flashplugin-installer/, 或者浏览器可以找到的其他目录即可cp flash_player_npapi_linux/* /usr/lib/flashplugin-installer/4 验证
访问adobe test page
或者打开其他带flash的网页即可5 参照
参照
安装铬的 Flash 播放器, 在 Ubuntu 中的歌剧 16.10
Opera帮助文档
http://blog.sina.com.cn/s/blog_6c9d65a10101hz8q.html
PepperFlashPlayer-install-Debian
PepperFlashPlayer-Debian
pepper-flash-chromium-opera-ubuntu/
askubuntu-lash-plugin-doesnt-appear-in-opera
askubuntu-opera-directory-at-usr-lib-is-missing
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可
相关文章推荐
- Ubuntu15.04上为火狐浏览器安装Adobe Flash Player插件
- ubuntu如何安装 adobe flash player或adobe插件
- ubuntu 13.10 & Ubuntu 14.04 64位安装及配置 google拼音输入法及Adobe flash player、mp3 插件安装、中文GBK编码等
- ubuntu 11.10 下为Firefox安装Adobe Flash Player 插件的问题 (转载)
- ubuntu 13.10 64位安装及配置 google拼音输入法及Adobe flash player、mp3 插件安装、中文GBK编码等 -转
- Ubuntu16.04 安装Adobe Flash Player插件
- 64位ubuntu中chrome浏览器安装Adobe Flashplayer插件
- ubuntu16.04安装Adobe Flash Player插件
- Ubuntu下为Firefox安装Adobe Flash Player
- Ubuntu下为Firefox安装Adobe Flash Player
- Ubuntu下为Firefox安装Adobe Flash Player
- Ubuntu下为Firefox安装Adobe Flash Player
- Ubuntu 14.04 LTS 下安装Adobe Flash Player
- ubuntu adobe flash player 安装
- linux位系统安装官方install_flash_player_npapi_linux.x86_64.tar.gz插件包的方法
- Ubuntu下为Firefox安装Adobe Flash Player 2015-04-10 09:00 36人阅读 评论(0) 收藏
- Ubuntu下为Firefox安装Adobe Flash Player
- Ubuntu1204安装adobe flash player插件
- Ubuntu下为Firefox安装Adobe Flash Player
- Ubuntu 下安装adobe flash player