How to run Google Chrome as root – Ubuntu 11.10 / Linux Mint 12

ADVERTISEMENT

Google Chrome LogoIn my last post i have showed you how to install Google Chrome on Ubuntu 11.10 / Linux Mint 12; 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 Ubuntu 11.10 / Linux Mint 12.

Open Terminal ( Ctrl + Alt + T).

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

raj@geeksite~/$ sudo gedit /usr/bin/google-chrome

Before

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

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

  • kithiyon

    thanks
    its working

  • Thanks!
    Hearthstone.

Shares