Chromium on CentOS

Greg Peterson > Code

Replace Google Chrome with Chromium

I replaced Google Chrome with Chromium on CentOS. This proceedure uses the yum packaging system. It is based on work by Johnny Hughes, package maintainer for CentOS. He explains how to install Chromium in a reply to a blog post, No more support for chrome/chromium on rhel6.<

Quit Google Chrome

1. Edit yum repository files.

Disable /etc/yum.repos.d/google-chrome.repo (moved to google-chrome.repo-OLD):

    [google-chrome]
    name=google-chrome
    baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
    enabled=0
    gpgcheck=1
    gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Create /etc/yum.repos.d/chromium-el6.repo:

    [chromium-el6]
    name=CentOS-$releasever - Chromium EL6
    baseurl=http://people.centos.org/hughesjr/chromium/6/$basearch/
    gpgcheck=1
    enabled=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Testing-6

2. Replace Google Chrome with Chromium:

    # yum remove google-chrome
    # yum install chromium

3. Run scripts to setup extras (see Johnny’s blog post). Run as root:

    # sh ./chrome_libpdf_copy.sh
    # sh ./chrome_pepperflash_copy.sh

4. As a user run chromium. Setup accounts, desktop, etc.

Warning! I logged into my Google account and used my Google Chrome settings, which worked fine. They remained in the system after I replaced Google Chrome with Chromium. Several of my computers use Google Chrome. This might not work for users with one CentOS system and no other Google Chrome installations. In that case first backup the Google Chrome settings (~/.config/google-chrome/Default/ ).

In addition to the steps for yum package replacement, I set Chromium as the preferred Web browser and made a launcher icon for the Gnome panel. These files were generated:

File: ~/.gconf/desktop/gnome/applications/browser/%gconf.xml

    /opt/chromium/chrome-wrapper

File: ~/.local/share/applications/preferred-web-browser.desktop

    [Desktop Entry]
    Version=1.0
    Encoding=UTF-8
    Name=Chromium
    GenericName=Web Browser
    Exec=/opt/chromium/chrome-wrapper %U
    Terminal=false
    Icon=/opt/chromium/product_logo_48.png
    Type=Application
    Categories=Application;Network;WebBrowser;
    MimeType=text/html;text/xml;application/xhtml_xml;
    X-Panel-Monitor=true
    NoDisplay=true

Why Replace Google Chrome on CentOS?

Google Chrome is a branded version of Chromium. It runs consistently across many platforms, enabling users to easily maintain bookmarks, passwords, etc. in a shared database on Google servers. I have been using Google Chrome as my default browser on an Android tablet, iPhone, MacOS X, and CentOS-6.

Beginning with version 26 Google Chrome is no longer supported on CentOS. A list of supported Linux operating systems as of Google Chrome version 28 is shown on [Stable Channel Update ChromeStable28. I prefer CentOS to other Linux distributions. I also like to have common bookmarks and other data, so I decided to replace Google Chrome with Chromium. (END 2013-06-23)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s