Howto:Running Google Chrome as root | Fedora | 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   /usr/bin/chromium-browser %U  /usr/bin/chromium-browser--user-data-dir %U  (即你软件启动的路径,取决于自己的具体安装路径)

(/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   /usr/bin/chromium-browser (其实时软链接  /usr/bin/chromium-browser -> /opt/chromium-browser/chromium-browser.sh)

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” “$@”

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值