How to run google chrome as root in centos 7

This tutorial explains how to install the Google Chrome in Ubuntu Linux and once the Chrome is installed, how to run it under the root user account. Google Chrome is one of the most popular web browsers. Just like the other applications, we cannot install it from the Ubuntu Software Center.

We have to download and install it manually. Chrome is developed by the Google. Google does not allow third parties to distribute it. Google's restrictive license does not allow Ubuntu to distribute the Chrome from its official repositories. We have to manually download and install it.

To install Chrome from the command line, connect the system with the Internet and run the following command. To install the Google Chrome from GUI interface, download the latest stable version from its official site. Select the downloaded file, and do right click. From right click context menu, click the option " Open With Software Install ".

This opens the downloaded file in the installation wizard of Ubuntu Software center. To start the installation, click the Install button. Upon successful authentication, wizard starts the installation. Usually, installation takes less than a minute. Once Chrome is installed, it can be started from both methods; command line and GUI interface. To start it from the command line, use the following command. By default, both options are selected.

Just like the command prompt, we can also start the Chrome from the GUI interface. To start it from GUI interface, click the Dash button. In search box of the opened window, search the keyword " Chrome ". From search result, click the Chrome.

To enhance the system security, by default, Chrome does not start under the root user account. Following error is displayed when Chrome is started under the root account. Make sure you add all three options of configuration values. Skipping second option --test-type will through the following error message when the Chrome will run.

How to Install Google Chrome 75 On RHEL/CentOS 7 and Fedora 30

You are using an unsupported command-line flag: --no-sandbox. Stability and security will be suffered. To run Chrome as root without any error messages, add all three options as explained above and save the file. In search box of Software center, search the keyword Chrome. From search result, click the Google Chrome. We do not accept any kind of Guest Post.

Except Guest post submission, for any other query such as adverting opportunity, product advertisement, feedback, suggestion, error reporting and technical issue or simply just say to hello mail us ComputerNetworkingNotes gmail.Privacy Terms. Quick links. Namely, every time I run a test script, it says Chrome has crashed or exited abnormally. CentOS 6 will die in November - migrate sooner rather than later! Full time Geek, part time moderator.

The Top 10 Things to Do After Installing Kali Linux on Your Computer

Use the FAQ Luke. I updated to 7. Getting WebDriver Traceback most recent call last : File "pytest. Chrome chromedriver Optional argument, if not specified will search path. Code: Select all import time import os from selenium import webdriver print "Starting! Getting Google. An illegal instruction error sounds like it's been compiled for a processor that you don't have - what are you running on? Make sure your nss packages are up to date - there was a bug in those that caused yum to crash with an illegal instruction error on xen machines which I believe is what Amazon images are.

Code: Select all nss. Jan 11 jenkins01 systemd: Created slice user Jan 11 jenkins01 systemd: Starting user Jan 11 jenkins01 systemd: Started Session 13 of user root. Jan 11 jenkins01 systemd: Starting Session 13 of user root. Jan 11 jenkins01 systemd: Removed slice user Jan 11 jenkins01 systemd: Stopping user One: see if you can reproduce this on a non-Amazon instance, preferably a real machine so that you can rule out some sort of similar xen-related bug.

Next, see if you can grab a core dump and feed it into gdb and find out what it's crashing with and if possible where, and what it was trying to run and if that is a real instruction that could be executed at all or if it's doing something stupid and taking a wild branch into mid-air and trying to execute wherever it lands.

If it looks like it's taken a wild step into the unknown then I guess you need to report it to Google as a chrome bug. Board index All times are UTC.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I have installed Google Chrome in Ubuntu When I try to use in normal user, it is working fine. First solution: 1. When done browsing, re-enable Xorg access control: xhost - More info : Howto run google-chrome as root.

Second solution: 1. Chrome can run as root remember to use gksu when doing so so long as you provide it with a profile directory. Rather than type in the profile directory every time you want to run it, create a new bash file I'd name it something like start-chrome. It simply prints Aborted and ends Chrome 48 on Ubuntu BTW, the old hack of changing all occurrences of geteuid to getppid in the chrome binary no longer works.

Learn more. How do I run Google Chrome as root? Asked 7 years, 7 months ago. Active 1 year, 2 months ago. Viewed 93k times. Now if I want to use as a root it gives the following error: Google Chrome does not run as root Also when I tried the following command in terminal, it opens Google Chrome: google-chrome --user-data-dir I need a permanent solution for this.

How to Install Google Chrome in Fedora 31/30 & CentOS/RHEL 8/7

Can anybody give me idea about this? Seki 10k 5 5 gold badges 37 37 silver badges 58 58 bronze badges. Rashmi Rashmi 2 2 gold badges 4 4 silver badges 16 16 bronze badges. Just adding my 2 cents here: Overengineered crap. How in the world can it be so difficult to run a program as root? Active Oldest Votes.

Chrome will give warning also. When done browsing, re-enable Xorg access control: xhost - More info : Howto run google-chrome as root Second solution: 1.

Snger Snger 1, 18 18 silver badges 23 23 bronze badges. Just upgraded from Chrome 21 to 48 on Ubuntu Second solution no longer works — just prints Aborted. First solution works. Open google-chrome. Append current home for data directory. JakeGould Can you please mark it as a correct answer?

It works in Ubuntu JimitShah Thats great. Save it. Thats itInstead, you can use Chromium web browser. It works the same as Google Chrome web browser. Let install Chromium on CentOS 7 easy and correctly. It just works the same on local Linux CentOS 7 machine. OK, just run the terminal and type the following command to update the CentOS 7.

If your system is fresh and up to date, do not apply this command. See the screenshot. Watch out! For the first time you run Chromium or Google Chrome, it will prompt you to enter a password. An IT Pro, here is my online knowledge sharing platform. I would like to write and share my experience for computer enthusiasts and technology geeks. Easy File Sharing between Linux and Windows Leave A Reply Cancel Reply.

Save my name, email, and website in this browser for the next time I comment. This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More. By Shais On Feb 12, 0. Install Chromium. Set Chromium as no sandbox to run as the root account.

Run Chromium on CentOS 7. To install Chromium on CentOS 7, just do it with yum install command. You might also like More from author.Google Chrome is a freeware web browser developed by Google Inc.

how to run google chrome as root in centos 7

It was released as a beta version for Microsoft Windows on September 2,and as a stable public release on December 11, Google chrome team provides an official yum repository to install chrome on Fedora and CentOS systems. Now, you have a choice to install the current stable release of Google Chrome or beta release on your Linux system.

Use the following command to launch Google Chrome from a non-root account and enjoy browsing. I, Rahul Kumar am the founder and chief editor of TecAdmin.

I tried to upgrade from Chrome 42 to the latest a big mistake it as turned out. Please help resolve it. I am using scientific linux 6.

Chrome still complains that this is an unsupported option, but still works.

How to run Google Chrome as root on CentOS 7 & RHEL 7 ?

No plug-ins can be loaded. The google chrome wont open, its just producing anything! Now Google Chrome is running, but still has following error messages:. Save my name, email, and website in this browser for the next time I comment.

Search for: Search. Share on Facebook. Share on Twitter. Share on LinkedIn. Share on Reddit. Share on Tumblr. Share on Whatsapp. Rahul Connect on Facebook Connect on Twitter. Related Posts February 19, July 12, at am. October 9, at pm. April 26, at am. March 24, at am.

October 19, at pm. April 28, at pm. September 2, at pm. April 19, at pm.

how to run google chrome as root in centos 7

Yes this installation works also on Oracle Linux 7 like a charm. December 7, at pm. May 5, at am. Try it and hope it helps you. December 6, at am. November 4, at pm. How to fix this? November 5, at pm. All Rights Reserved.Google Chrome is a freeware web browser developed by Google Inc. Google Chrome team proudly announced the release of Google Chrome 75 on June 04, The actual version is This new version bundled with a number of exciting fixes, features and improvements. Important: Google Chrome support for all bit Linux distributions is deprecated from March, Do you see the highlighted output in the above, that clearly telling that the latest version of chrome is available from repository.

X version as of Google Chrome and on other side, latest Firefox and Opera browsers run successfully on the same platforms. Google Chrome Cheat Sheet : This free ebook contains dozens of other helpful keyboard shortcuts that will help you on how to use Google Chrome efficiently.

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint!

If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support. Tags: install chrome in fedora install google chrome in linux. View all Posts. I am Ravi Saive, creator of TecMint. Your name can also be listed here. Got a tip? Submit it here to become an TecMint author. I have updated Patch as well still no go. Help on this will be much appreciated. Your email address will not be published.

Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam. Learn how your comment data is processed. How to Install Nagios 4. Ending In: 3 days. Ending In: 4 days.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

It only takes a minute to sign up. How to run google chrome as root in Linux - MoeinFatehi. Now you cannot run google-chrome as root user on updated versions, To run Google Chrome as standard user while Logged in as Root.

how to run google chrome as root in centos 7

If you don't want to run it from Terminal then add chrome in taskbar and then right-click on it, select properties and add the above command in the command parameter. For those who may be still googling at Dec - Google Chrome Version Case 1: Chrome not starting at all In my setup just by running in terminal google-chrome-stable i was getting immediately an error in terminal illegal instruction. No frames, no screen blankingno black windows.

Just a rude console error. This error goes away by using the --no-sandbox command line option. Case 2: Chrome still refuses to open even with --no-sandbox option That was not my case since --no-sandbox was enough, but if you experience such behavior you could try to disable everything when calling chrome, like:. Then you can step by step enable options till to identify which one breaks. Case 3: Message Please start Google Chrome as a normal user.

To run as root you must specify an alternate --user-data-dir for storage of profile information appears. For a more sophisticated solution i personally applied a kind of user check to avoid possible disturbance running chrome as normal user :.

Another Workaround: You can not modify the google-chrome file as indicated above, and you can either follow recomendation of tzafar for creating a new user or to launch chrome using an existing normal user account : gksu -u user google-chrome-stable this worked but some error messages received in terminal. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered.

How to install latest Google Chrome on RHEL/CentOS 7 and Fedora 19/20

How to run google chrome as root in linux Ask Question. Asked 5 years, 3 months ago. Active 2 months ago. Viewed k times. Active Oldest Votes. Enjoy it : if you want to see video tutorial, you can check my blog post: How to run google chrome as root in Linux - MoeinFatehi.

HalosGhost 4, 9 9 gold badges 23 23 silver badges 37 37 bronze badges. I planned to do it till I found out. This is now 14 years ago. You should read up on the principal of least privilege. I ended up having to use --no-sandbox as well. Now you cannot run google-chrome as root user on updated versions, To run Google Chrome as standard user while Logged in as Root open terminal and type: adduser -u chromeuser OR useradd -m chromeuser To run google chrome use command: gksu -u chromeuser google-chrome OR sux chromeuser google-chrome If you don't want to run it from Terminal then add chrome in taskbar and then right-click on it, select properties and add the above command in the command parameter.

Though i received some erros in terminal, but it worked. Case 2: Chrome still refuses to open even with --no-sandbox option That was not my case since --no-sandbox was enough, but if you experience such behavior you could try to disable everything when calling chrome, like: google-chrome-stable --disable-gpu --disable-extensions --disable-d3d11 --disable-local-storage --disable-notifications --disable-offne-pages --disable-plugin-power-saver --disable-plugins-discovery --disable-sync --disable-translate --disable-webgl --no-experiments --no-sandbox Then you can step by step enable options till to identify which one breaks.

I got up and surfing. George Vasiliou George Vasiliou 6, 3 3 gold badges 12 12 silver badges 34 34 bronze badges. To run google chrome as root, add this parameter "--no-sandbox" it will works for me. What are the actual consequences of doing this?


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *