Install Chromium (with Pepper Flash) on CentOS/Red Hat (RHEL) 6.4

This is huide howto install Chromium Browser (with Pepper Flash plugin and Chrome PDF viewer plugin) on CentOS 6 / Red Hat (RHEL) 6. Move directly to Chromium install guide.

It’s true Google Says Red Hat Enterprise Linux 6 Is Obsolete and after latest update, Google Chrome won’t work anymore on CentOS 6/Red Hat (RHEL) 6. Someone might think that it’s time to change Firefox or Opera, but if you have get used to Google Chrome, then it might be hard. Currently it might be possible to compile newer GCC and get Google Chrome working on Enterprise Linux 6, but more important news is that, the Google says Red Hat Enterprise Linux 6 Is Obsolete and later Google Chrome updates might need something new dependencies what Enterprise Linux 6 doesn’t have.

One interesting thins is Google Chrome still supports example Windows XP and Ubuntu 10.04, but yes, it looks like CentOS/RHEL users have to wait CentOS 7 / Red Hat (RHEL) 7 to get Google Chrome work again.

You will get following error when you try to install Google Chrome currently on CentOS/RHEL 6:

--> Finished Dependency Resolution
Error: Package: google-chrome-stable-28.0.1500.52-207119.x86_64 (google-chrome)
           Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

And if you check GLIBCXX versions then you see this:

strings /usr/{lib,lib64}/libstdc++.so.6 | grep GLIBCXX
 
## Output ##
strings: '/usr/lib/libstdc++.so.6': No such file
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH

No GLIBCXX_3.4.15!

That’s why here is guide howto install Chromium Browser (with Pepper Flash plugin and Chrome PDF viewer plugin) on CentOS/Red Hat (RHEL) 6.4/6.3/6.2/6.1/6. Yes it’s not Google Chrome, but much better choice than change to another browser if you like Google Chrome style and with Chrome plugins it’s really close original Google Chrome.

Install Chromium Browser on CentOS 6.4 / Red Hat (RHEL) 6.4

1. Change root user

su -
## OR ##
sudo -i

2. Install/enable hughesjr Chromium EL 6 repository

cd /etc/yum.repos.d
 
wget http://people.centos.org/hughesjr/chromium/6/chromium-el6.repo

3. Install Chromium Browser on CentOS 6 / RHEL 6

yum install chromium

4. Install Pepper Flash Player on Chromium

Note: this is optional step and you will need 200-250 Mb temporary disk space.

4.1 Get hughesjr Helper Script

cd /tmp
wget https://raw.github.com/hughesjr/chromium_el_builder/master/chrome_pepperflash_copy.sh

4.2 Make chrome_pepperflash_copy.sh Executable

chmod +x chrome_pepperflash_copy.sh

4.3 Install Pepper Flash on Chromium

./chrome_pepperflash_copy.sh

This will take a while, it downloads Google Chrome and extracts Pepper Flash plugin to /opt/chromium and modify Chromium launcher.

5. Install Google Chrome PDF Viewer Plugin on Chromium

Note: this is optional step and you will need 200-250 Mb temporary disk space.

5.1 Get hughesjr Helper Script

cd /tmp
wget https://raw.github.com/hughesjr/chromium_el_builder/master/chrome_libpdf_copy.sh

5.2 Make chrome_libpdf_copy.sh Executable

chmod +x chrome_libpdf_copy.sh

5.3 Install Google Chrome PDF Viewer Plugin on Chromium

./chrome_libpdf_copy.sh

This will take a while, it downloads Google Chrome and extracts Google Chrome PDF Viewer plugin to /opt/chromium.

6. Start Chromium Browser

Use Chromium Launcher from Menu:

Or alternatively run command:

/opt/chromium/chrome-wrapper %U
 
## or start with pepper flash ##
/opt/chromium/chrome-wrapper %U --ppapi-flash-path=/opt/chromium/PepperFlash/libpepflashplayer.so --ppapi-flash-version=$(grep '"version":' /opt/chromium/PepperFlash/manifest.json | grep -Po '(?<=version": ")(?:\d|\.)*')

Chromium running on CentOS 6

Chromium running on CentOS 6.4 with Pepper Flash Plugin and Chrome PDF Viewer Plugin

Chromium running on CentOS 6.4 (Adobe Flash Test Page)

你可能感兴趣的:(Linux相关)