标签:
安装环境:centos 6.5 64位
在centos中安装chromium
安装Google源
1 cd /etc/yum.repos.d/ 2 sudo wget http://people.CentOS.org/hughesjr/chromium/6/chromium-el6.repo
安装Chromium
1 sudo yum install chromium
# 安装后位于 /opt/chromium-browser
安装Flash插件
下载Adobe官方Flash插件
1 // 64位 2 sudo wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.378/install_flash_player_11_linux.x86_64.tar.gz 3 4 // 32位 5 sudo wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.378/install_flash_player_11_linux.i386.tar.gz
解压Flash插件,将会有libflashplayer.so,usr文件和文件夹
1 sudo tar zxvf install_flash_player_11_linux.xxx.tar.gz 2 sudo cp -r usr/* /usr 3 sudo rm -rf usr
安装chrome浏览器
下载chrome浏览器
1 // 64位 2 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm 3 4 // 32位 5 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.rpm
解压Chrome浏览器,将会有etc,opt,usr三个文件夹
1 sudo rpm2cpio google-chrome-stable_current_xxx.rpm | cpio -div
替换Chrome中的Flash插件
1 sudo rm -rf opt/google/chrome/PepperFlash/libpepflashplayer.so 2 sudo cp -r libflashplayer.so opt/google/chrome/PepperFlash/libpepflashplayer.so
增加Chromium的Flash插件
1 sudo mv opt/google/chrome/PepperFlash /opt/chromium-browser/ 2 sudo chown root:root -R /opt/chromium-browser/PepperFlash 3 sudo chmod +x -R /opt/chromium-browser/PepperFlash
标签:
原文地址:http://www.cnblogs.com/sollysong/p/4267627.html