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