lost and found ( for me ? )

Scientific Linux 6.1 32bit : how to install Google Chrome


# uname -r
2.6.32-131.6.1.el6.i686

# cat /etc/redhat-release
Scientific Linux release 6.1 (Carbon)

install the following RPMs which is needed for Google Chrome , if you have not installed these RPMs.
redhat-lsb.i686                  4.0-3.el6                @sl
redhat-lsb.i686                  4.0-3.el6                @sl

# yum install redhat-lsb.i686 libcurl.i686


add Google Chrome repository
# cat /etc/yum.repos.d/google-chrome.repo
[google-chrome-32bit]
name= Google Chrome for 32bit Users
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

# yum install google-chrome-stable.i386 -y


When you try to start Chrom as root user , you will see the following error and will not start Chrome.
“Google Chrome can not be run as root”


To solve this , create the following shell script.
# cat my_icon/chrome.sh
#!/bin/bash
xhost +
su -l abc /opt/google/chrome/google-chrome
xhost -


su -l non-root user

make Chrome icon for convenience.




thank you for reading.

4 comments:

  1. add Google Chrome repository
    # cat /etc/yum.repos.d/google-chrome.repo

    Did you mean

    add Google Chrome repository
    # cat > /etc/yum.repos.d/google-chrome.repo

    ReplyDelete
  2. Hello,

    Thanks for stopping by.

    create "google.repo" file under /etc/yum.repos.d/ direcotry with vi or something.

    # vi /etc/yum.repos.d/google.repo

    and then write the following lines in google.repo file.

    [google-chrome-32bit]
    name= Google Chrome for 32bit Users
    baseurl=http://dl.google.com/linux/rpm/stable/i386
    enabled=1
    gpgcheck=1
    gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub


    Hope this helps.
    Cheers!

    ReplyDelete
  3. I have installed google chrome, but it is not coming up. Not response when clicking the icon.

    ReplyDelete
  4. Hi,

    What happens if you try to run chrome via CLI ?

    run chrome as a non root user.

    $ /usr/bin/google-chrome

    also , please check whether or not chrome is running.

    become root user

    # ps aux | grep chrome | grep -v grep

    Thanks,

    ReplyDelete

Note: Only a member of this blog may post a comment.