How to run Google Chrome as root – Fedora 16, CentOS 6 / RHEL 6

ADVERTISEMENT

Google Chrome LogoIn my last post i have showed you how to install Google Chrome on Fedora 16, CentOS 6 / RHEL 6; I have installed Google Chrome as root user and when I tried to start Google Chrome it given a following error.

ADVERTISEMENT
Article will continue after the ad

 

 

I was looking for the solution; by googling I have found easy way to enable root user to run Google Chrome.

Follow the steps to run Google Chrome as root user in Fedora 16, CentOS 6 / RHEL 6.

Open Terminal (Applications –> System Tools –> Terminal).

Edit the /usr/bin/google-chrome and add the –user-data-dirat the end of the last line (Line No: 42).

[root@geeksite~/]# vi /usr/bin/google-chrome

Before

35
36
37
38
39
40
41
42
export LD_LIBRARY_PATH
 
export CHROME_VERSION_EXTRA="stable"
 
# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
 
exec -a "$0" "$HERE/chrome" "$@"

After

35
36
37
38
39
40
41
42
export LD_LIBRARY_PATH
 
export CHROME_VERSION_EXTRA="stable"
 
# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
 
exec -a "$0" "$HERE/chrome" "$@" --user-data-dir

That’s all. Now you can start Google Chrome from menu as root.

ADVERTISEMENT

POSTS YOU MAY LIKE -:)

Share This Post

  • Amarjeeta

    Thanks….

  • Julien

    Worked Well !!!

    # vi /usr/bin/google-chrome
    ( didn’t worked for me, I think we don’t have enough dependencies installed on server for that )

    # nano /usr/bin/google-chrome

    worked for me.

    Thanks

  • saptarshi Mallick

    Thank you for this solution

  • Paolo

    Ok, well done.
    Thanks

  • sathish

    [root@test ~]# google-chrome
    Aborted (core dumped)

    • kiko

      Same issue with me. Im using CentOS release 6.8 (Final)
      Linux KiKo1606 2.6.32-642.1.1.el6.x86_64 #1

      [root]# google-chrome-stable –disable-gpu
      Aborted
      [root]# google-chrome-stable
      Aborted

Shares