Chinaunix首页 | 论坛 | 博客
  • 博客访问: 154262
  • 博文数量: 29
  • 博客积分: 1662
  • 博客等级: 上尉
  • 技术积分: 327
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-13 18:53
个人简介

thanks

文章分类
文章存档

2022年(1)

2017年(1)

2016年(1)

2015年(3)

2014年(9)

2011年(1)

2009年(1)

2008年(12)

我的朋友

分类: LINUX

2014-11-16 19:31:01

update2016


firefox flash可以直接

点击(此处)折叠或打开

  1. update-flashplugin-nonfree --install




因为现在已经迁移到debian平台下,这里给出一些源代码信息作为权威参考。
当然前提是计算机系统被墙,没有办法的情况下,自己到镜像下载一个deb64bit文件,然后本地操作也可以流畅用flash

自己也可以解压看update-pepperflashplugin-nonfree脚本文件关于install执行的代码段

点击(此处)折叠或打开

  1. if [ -f $cachedir/$debfile ]
  2.             then
  3.                 cp -p $cachedir/$debfile .
  4.             fi
  5.     
  6.             if [ ! -f $debfile ]
  7.             then
  8.                 wgetoptions="$wgetalways $wgetprogress"
  9.                 [ "$quiet" != "yes" ] || wgetoptions="$wgetquiet $wgetalways"
  10.                 [ "$fast" != "yes" ] || wgetoptions="$wgetoptions $wgetfast"
  11.                 wgetoptions="$wgetoptions -O $UNPACKDIR/$debfile" # to change wget message : Saving to ...
  12.     
  13.                 HOME=/root wget $wgetoptions $deburl || die_hard_with_a_cleanup "wget failed to download $deburl"
  14.     
  15.                 [ `stat --format=%s $debfile` = "$debsize" ] || die_hard_with_a_cleanup "rejecting $debfile : wrong size"
  16.                 [ `sha1sum $debfile|sed -e "s, .*,,"` = "$debsha1" ] || die_hard_with_a_cleanup "rejecting $debfile : wrong sha1sum"
  17.                 [ `md5sum $debfile|sed -e "s, .*,,"` = "$debmd5" ] || die_hard_with_a_cleanup "rejecting $debfile : wrong md5sum"
  18.             fi
  19.     
  20.             dpkg-deb -x $debfile unpackchrome

  21.             sofile=unpackchrome/opt/google/chrome/PepperFlash/libpepflashplayer.so
  22.             [ -e $sofile ] || sofile=unpackchrome/opt/google/chrome-unstable/PepperFlash/libpepflashplayer.so
  23.             [ -e $sofile ] || sofile=unpackchrome/opt/google/chrome-beta/PepperFlash/libpepflashplayer.so
  24.             [ -e $sofile ] || sofile=unpackchrome/opt/google/chrome/PepperFlash/libpepflashplayer.so

  25.             mv -f $sofile /usr/lib/pepperflashplugin-nonfree
  26.             chown root:root /usr/lib/pepperflashplugin-nonfree/libpepflashplayer.so
  27.             chmod 644 /usr/lib/pepperflashplugin-nonfree/libpepflashplayer.so

  28.             jsonfile=unpackchrome/opt/google/chrome/PepperFlash/manifest.json
  29.             [ -e $jsonfile ] || jsonfile=unpackchrome/opt/google/chrome-unstable/PepperFlash/manifest.json
  30.             [ -e $jsonfile ] || jsonfile=unpackchrome/opt/google/chrome-beta/PepperFlash/manifest.json
  31.             [ -e $jsonfile ] || jsonfile=unpackchrome/opt/google/chrome/PepperFlash/manifest.json

  32.             if [ -e $jsonfile ]
  33.             then
  34.                 mv -f $jsonfile /usr/lib/pepperflashplugin-nonfree
  35.                 chown root:root /usr/lib/pepperflashplugin-nonfree/manifest.json
  36.                 chmod 644 /usr/lib/pepperflashplugin-nonfree/manifest.json
  37.             fi

  38.             mv $debfile $cachedir
  39.         fi




=========
直接安装官方的chrome是最简单的办法,能够省事

不过使用linux系统自带的浏览器会干净一些,至少没有官方的广告跟踪程序。
这个时候就需要安装flash插件了,参考pepflash ppa;

点击(此处)折叠或打开

  1. add-apt-repository ppa:skunk/pepper-flash
  2. apt-get update;
  3. apt-get install pepflashplugin-installer


如果被墙,会出现网络错误提示

点击(此处)折叠或打开

  1. IOError: [Errno socket error] [Errno 101] Network is unreachable
  2. Setting up pepflashplugin-installer (16.0.0.235~cr39.0.2171.95-1-0skunk0) ...
不过你可以手动下载chrome amd64 linux安装包,可以参考技术点

点击(此处)折叠或打开

  1. shell@ubuntu:~$ ls /usr/lib/pepflashplugin-installer/
  2. install_plugin libpepflashplayer.so manifest.json pepflashplayer.sh
  3. shell@ubuntu:~$
  4. shell@ubuntu:~$ cat /etc/chromium-browser/
  5. customizations/ default policies/
  6. shell@ubuntu:~$ cat /etc/chromium-browser/default
  7. # Default settings for chromium-browser. This file is sourced by /bin/sh from
  8. # /usr/bin/chromium-browser


  9. # Options to pass to chromium-browser
  10. CHROMIUM_FLAGS=""
  11.  . /usr/lib/pepflashplugin-installer/pepflashplayer.sh
  12. shell@ubuntu:~$
  13. shell@ubuntu:~$
  14. shell@ubuntu:~$
  15. shell@ubuntu:~$ dpkg-deb -x google-chrome-stable_38.0.2125.111-1_amd64.deb /tmp/
  16. tar: .: Cannot utime: Operation not permitted
  17. tar: .: Cannot change mode to rwx------: Operation not permitted
  18. tar: Exiting with failure status due to previous errors
  19. dpkg-deb: error: subprocess tar returned error exit status 2
  20. shell@ubuntu:~$
  21. shell@ubuntu:~$ ls /tmp/opt/google/chrome/PepperFlash/
  22. libpepflashplayer.so manifest.json
  23. shell@ubuntu:~$
  24. shell@ubuntu:~$



debian adobe flash 手动更新

点击(此处)折叠或打开

  1. update-flashplugin-nonfree --install



感谢开发者维护者提供的技术信息
===
goagent ca problem
$ sudo cp local/CA.crt /usr/share/ca-certificates/goagent.crt
$ sudo dpkg-reconfigure ca-certificates


阅读(1951) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~