Howto:Running Google Chrome as root | Fedora 15 | RHEL 6 | CentOS 6 | Ubuntu 11.04 | Linux

Hello,

I am back with one another post with a trick to Enable Google Chrome as Root.

As Google Chrome is available for Linux but because of some purposes they have disabled access of Google Chrome via Root user.

As I am working with a root user and also expecting that lots of users are working as a root and they wants to run google chrome as a root then this post will helps them.

There are some users who does not like to work as a root and they don’t recommend to work as a root, So i will request them to ignore this post.

This howto is tested on Testing Environment, I request you to follow if you are sure what its going to do, If something or anything anwhere goes wrong you’ll be the only responsible for the same. DO IT AT YOUR OWN RISK.

Now First Let’s look at the Error which you are getting when you try to run Google Chrome as a root. If you are getting error exact like below screenshot then follow this post it will helps you to enable Google Chrome as a root.

Google Chrome Error through root user
Google Chrome Error while running as a root user


Please perform following steps to Run Google Chrome as root.

0) Of Course, Google Chrome Must be installed.

1) You need to be root to perform this steps.

2) We require following package must be installed.

Fedora / Red Hat Users execute this command as root :- [root@tejas-barot-linux-ahmedabad ~]# yum -y install alacarte

Ubuntu Users execute this command as root :- [root@tejas-barot-linux-ahmedabad ~]# apt-get install alacarte

3) Once above package is installed Execute Following command as a root on your terminal

[root@tejas-barot-linux-ahmedabad ~]# alacarte

Once alacarte Window is opened Click on Applications and from Right Panel Select Google Chrome. Look at Below Screenshot.

Google Chrome as a root
Running Google Chrome as a root – Screenshot 1

4) On Google Chrome Menu click on Properties, You will able to see exact details like following screenshot.

Google Chrome Menu Properties
Google Chrome Menu Properties

5) Move to Command Text Box of Google Chrome Menu Properties.

Change this line fromย  /opt/google/chrome/google-chrome %U to /opt/google/chrome/google-chrome --user-data-dir %U. Look at screenshot below.

Enable Google Chrome as a root
Enable Google Chrome as a root

 

====> UPDATED : If This GUI Steps doesn’t work than do following Steps it will work. Thanks manish for your comment.

# vi /opt/google/chrome/google-chrome

and Find line exec -a “$0” “$HERE/chrome” “$@” and change it to following

exec -a “$0” “$HERE/chrome” “$@” –user-data-dir ( Two Hyphens at start of options )

Save and Close File

6) Now Close all windows, Don’t click on Revert.

7) Now Click on Applications -> Internet -> Google Chrome

8) That’s it. It will open Google Chrome as root.

9) If you want to run Google Chrome as root from Terminal then execute following command on Terminal.

google-chrome –user-data-dir

Hope guys this helps you. Waiting for your comments and Feedback.

If this works for your then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

Enjoy Google Chrome as root ๐Ÿ™‚ Enjoy Open Source ๐Ÿ™‚ Enjoy Linux ๐Ÿ™‚

##########################################################################

Tejas Barotโ€™s Latest Linux Quote :-

โ€œThere were so many viruses waiting outside of Computer Room,
I opened door,They came and went out very sadly, Because they didnโ€™t find WindowZ,
Feel Protected, Be Protected, Use Linux and Open Sourceโ€ โ€“
Tejas Barot

For More Linux quotes by Tejas Barot please visit :- http://goo.gl/xb0nZ

##########################################################################

exec -a “$0” “$HERE/chrome” “$@”

Howto: Installing Google Chrome on RHEL 6 for x86 and x86_64 | Red Hat Enterprise Linux 6

Hello Guys,

Today, I am sharing one Howto for Google Chrome on RHEL 6.You can follow this how to on both Architecture. 32bit and 64 bit. By Following this steps you’ll able to Install Google Chrome in Just Two Steps.

Google Chrome is not supported on RHEL 5.x/ CentOS 5.x as there is a older libraries and RPM Issues, But in Red Hat Enterprise Linux 6 Yon install Google Chrome without any dependency issue.

Its lot easy to install Google Chrome on RHEL 6. You just Need to follow the steps and thats is you will able to install Google Chrome on RHEL 6.

To Install Google Chrome on Red Hat Enterprise Linux you have to use Google’s YUM repository itself.

Following are the requirements to Install Google Chrome on RHEL 6 :-

1) You have to be root to follow this how to.
2) YUM should work from Terminal.
3) Following RPM Must be installed
redhat-lsb-4.0-2.1.el6.i686
libcurl-7.19.7-16.el6.i686
If you are using x86_64 (64bit then RPM Architecture looks like following )

redhat-lsb-4.0-2.1.el6.x86_64
libcurl-7.19.7-16.el6.x86_64

If you have not installed above RPMs don’t worry, Above both RPMs available in Installation Media so you can install it easily.

To Install Google Chrome on 32bit Perform Following Steps :-

1) Execute Following Command as a root to setup Google Repository.
wget http://tejasbarot.com/RPMs/google-chrome-i386.repo -O /etc/yum.repos.d/google-chrome-i386.repo

2) Now Execute Following Command as a root to Install Google Chrome on RHEL 6ย  :-
[tejas_barot@tejasbarot ~]#yum -y install google-chrome-stable

As per your Internet connection speed it will be installed, So Wait for Few Minutes until it gets Installed.

3) To Use Google Chrome on RHEL 6, Perform Following :-
Click on Applications -> Internet -> Click on Google Chrome

That’s It. Start Using Google Chrome on Red Hat Enterprise Linux 6. ๐Ÿ™‚

To Install Google Chrome on x86_64 (64bit) Perform Following Steps :-

1) Execute Following Command as a root to setup Google Repository.
wget http://tejasbarot.com/RPMs/google-chrome-64bit.repo -O /etc/yum.repos.d/google-chrome-64bit.repo

2) Now Execute Following Command as a root to Install Google Chrome on RHEL 6ย  :-
[tejas_barot@tejasbarot ~]#yum -y install google-chrome-stable

As per your Internet connection speed it will be installed, So Wait for Few Minutes until it gets Installed.

3) To Use Google Chrome on RHEL 6, Perform Following :-
Click on Applications -> Internet -> Click on Google Chrome

That’s It for x86_64 ( 64bit). Start Using Google Chrome on Red Hat Enterprise Linux 6. ๐Ÿ™‚

Let me know threw comment if you face any issues

Waiting for your Feedback Guys.

Enjoy Google Chrome on Linux ๐Ÿ™‚ Enjoy Google Chrome on RHEL 6 ๐Ÿ™‚ Enjoy Linux ๐Ÿ™‚ Enjoy Open Source ๐Ÿ™‚