原文地址 :http://blog.sina.com.cn/s/blog_858820890102v63w.html

不记得从什么时候起,Chromium 不再支持 Netscape plugin API (NPAPI),官方软件仓库中的 flashplugin 已经无法工作。

浏览器不支持flash怎么能用?必须解决之。

1.网上搜索了半天,大多是按照浏览器提示下载Adobe Flash Player 插件,然后解压出libflashplayer.so,把libflashplayer.so复制到/usr/lib/chromium-browser/plugins/,最后重启chromium,地址栏中输入:chrome://plugins ,将Adobe Flash Player 插件启用即可。————这就是官方软件仓库中的 flashplugin的手工安装法嘛!显然是行不通的。

2.好吧,参看Chromium (简体中文) - ArchWiki

可以使用 Google Chrome (新Pepper API)提供的 Flash.

可以通过AUR中提供的软件包进行安装:

请在chrome://plugins中启用 /usr/lib/PepperFlash/libpepflashplayer.so.

好吧,yaourt -S chromium-pepper-flash各种版本,结果都是下不下来资源:

错误: 无法下载 google-chrome-stable-37.0.2062.94-1.i386.rpm

错误: 无法下载 google-chrome-unstable_current_i386.deb

等等

3.看来只能另想办法,既然chrome里面有这个pepper-flash,那我就直接去拿。

(这个现在可以直接在网上下载   https://get.adobe.com/cn/flashplayer/?no_redirect)

下载chrome安装包,或者干脆安装一个chrome,然后在/opt/google/chrome/PepperFlash里,我得到了 libpepflashplayer.so,

马上复制到/usr/lib/chromium-browser/plugins/,没有这个目录只有/usr/lib/chromium,看到几个其他的插件so就在/usr/lib/chromium,好那就把 libpepflashplayer.so也复制到这里。

重启chromium,转到chrome://plugins,没有libpepflashplayer.so啊!怎么回事?

4.这里还差点什么,chromium没有搜索到libpepflashplayer.so的存在,怎么办?

漫长的网上寻找,我找到了http://askubuntu.com/questions/158388/how-do-i-make-chromium-use-flash-from-google-chrome,里面有一个回复,还需要修改/etc/chromium-browser/default

Download Google Chrome and extract libpepflashplayer.so from /opt/google/chrome/PepperFlash in the Chrome deb file Copy libpepflashplayer.so to /usr/lib/chromium-browser/plugins Make the necessary changes to the Chromium startup

sudo gedit /etc/chromium-browser/default

Add this to the CHROMIUM_FLAGS

CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium-browser/plugins/libpepflashplayer.so --ppapi-flash-version=11.5.31.2"

You can get the correct version of the flash plugin from the "version": json tag in the mainfest.json from /opt/google/chrome/PepperFlash in the Chrome deb file

于是我对应修改了/etc/chromium/default为:

1
2
3
4
5
# Default settings for chromium. This file is sourced by /usr/bin/chromium
 
# Options to pass to chromium
#CHROMIUM_FLAGS=""
CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium/libpepflashplayer.so --ppapi-flash-version=14.0.0.177"

其中的flash-version可在/opt/google/chrome/PepperFlash/manifest.json里面查到。

最后,再次重启chromium,flash插件已正常工作。

自己按照上面说的并没有正常工作,在用chrome:plugs查看插件时发现有个插件的位置并不在/usr/lib/chromium-browser/plugins/下,而是在/usr/lib/chromium-browser/里,于是把文件考到这个地址里,把上面的地址也都改为这个地址,但是还是不能工作,想了一会把原来那个地址下的/usr/lib/chromium-browser/plugins/的.so文件删除,再次重新启动chromium,插件已经可以正常工作了!妈蛋,被锁在办公室了,要在这里过夜了。。。

ubuntu下chromium 安装flash player的更多相关文章

  1. ubuntu下chromium浏览器flash插件安装

    ubuntu下chromium浏览器默认是不支持flash的,在新立德软件包中搜索flash得到的“Adobe Flash Player plugin installer”也没有什么卵用,因为装完以后 ...

  2. ubuntu下firefox浏览器flash player插件的安装

    自从装了双系统后,ubuntu下的音乐软件只能选择网页播放器了,这无疑是需要播放插件的,这个插件就是falsh player. 当初使用usb启动盘安装的,在安装的过程中还会报找不到CD-rom的错, ...

  3. Linux下firefox安装flash player插件

    下载插件 解压插件 使用命令tar -zxvf install_xxxxxx libflashplayer.so 拷贝目录 然后把切换到root用户,把文件夹拷贝到/usr/lib/mozilla/p ...

  4. Ubuntu14.04下安装Flash Player

    Ubuntu14.04下安装Flash Player youhaidong@youhaidong:~$ sudo apt-get install flashplugin-nonfree [sudo] ...

  5. Ubuntu16.04/centos7 下为chrome/firefox安装flash player插件

    为chrome安装flash: 打开终端,输入:sudo apt-get install pepperflashplugin-nonfree 或官网下载安装google-chrome-stable 为 ...

  6. 【转载】linux环境下为firefox/chrome浏览器安装flash player

    本文转载自 http://blog.sina.com.cn/s/blog_6ad624380102v1xf.html     firefox安装flash player的方法: 先到adobe网站上下 ...

  7. Torch7在Ubuntu下的安装与配置

    Torch7的本系列教程的主要目的是介绍Torch的入门使用.今天首先分享一下Torch7的安装.(在Ubuntu14.04安装torch7) 为什么选择Torch Torch的目标是在建立科学算法的 ...

  8. ubuntu下git安装及使用

    ubuntu下git安装及使用   其实,好几个月前,就已经安装好了,可是一直搁置在那儿,所以密码等一些其它细节都忘的差不多了,所以今天就重新部署了一下,并开始积极使用......... 1,git ...

  9. premake Ubuntu下的安装

    premake是个跨平台的编译工具,先看看在Ubuntu下怎么安装. 首先下载,在/usr目录下: sudo wget -O premake-4.4-beta4-linux.tar.gz http:/ ...

随机推荐

  1. [Ubuntu] Error: The disk drive for /media/sda2 is not ready yet or not present

    After updated Ubuntu, and reboot, I got these error The disk drive for /media/sda2 is not ready yet ...

  2. C# 语音识别

    利用微软操作系统自动的语音识别功能,读取信息. 1.  在项目中添加  ""  引用 2.  引入命名空间:   using SpeechLib; 3.   读取的代码: Spee ...

  3. web工程常见部署方式总结

    作为一个web测试工程师,对测试所属的平台架构,项目部署情况应该是有所了解的,下面在此基础上总结下web项目在各种场景下常用的部署方式: 第一种方法: 开发常用部署方法,直接在myeclipse里部署 ...

  4. 运行eclipse提示 The requested resource () is not available.

    不识别web-inf目录,把文件放在Webcontent下就可以运行. 放在其他文件夹里也可以识别.

  5. 《Linux命令行与shell脚本编程大全》 第二十三章 学习笔记

    第二十三章:使用数据库 MySQL数据库 MySQL客户端界面 mysql命令行参数 参数 描述 -A 禁用自动重新生成哈希表 -b 禁用 出错后的beep声 -B 不使用历史文件 -C 压缩客户端和 ...

  6. Awk使用一例:获取ASCII可见字符

    要做一个需求, 支持可见特殊字符的密码设置. 首先, 需要获取到所有可见特殊字符. 到网上搜索到 ASCII 字符表格, 并复制到文本文件 vschars.txt: 00 00 0 nul 100 4 ...

  7. mysql对比表结构对比同步,sqlyog架构同步工具

    mysql对比表结构对比同步,sqlyog架构同步工具 对比后的结果示例: 执行后的结果示例: 点击:"另存为(S)" 按钮可以把更新sql导出来.

  8. Install Sogou IM 2.0 in Ubuntu14.04+/Xfce

    Ubuntu14.04+ 安装搜狗输入法 搜狗输入法是一款非常友好的输入法产品,从Ubuntu14.04开始对Linux支持,不过只是Debian系的,是Ubuntu优麒麟组引入的.优麒麟是针对国人设 ...

  9. 关于Quartus II 13.0对应开发NIOS II软件程序时报错Symbol 'NULL' could not be resolved问题的解决方法

    关于Quartus II 13.0对应开发NIOS II软件程序时报错Symbol 'NULL' could not be resolved问题的解决方法 近期在评估使用NIOS II处理器进行项目的 ...

  10. 编译器 perforSelecter时 警告去除

    #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks&quo ...