首页 > 代码库 > centos中安装chromium和flash

centos中安装chromium和flash

安装环境: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.gz3 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.gz2 sudo cp -r usr/* /usr3 sudo rm -rf usr

 

安装chrome浏览器

下载chrome浏览器

1 // 64位2 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm3 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.so2 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/PepperFlash3 sudo chmod +x -R /opt/chromium-browser/PepperFlash

 

centos中安装chromium和flash