Solve the problem that Chrome cannot be started under the root user of centos 7, centoschrome

Source: Internet
Author: User

Solve the problem that Chrome cannot be started under the root user of centos 7, centoschrome

Because the ucentos 7 system comes with the Firefox browser, you need to install the Chrome browser. However, after installing it under the root user, Chrome cannot be started normally. The installation and troubleshooting are as follows:

1. Download from the official website

Google-chrome-stable_current_x86_64.rpm

2. Double-click this file to install or rpm-ivh google-chrome-stable_current_x86_64.rpm

The execution may report a lack of dependency packages. you can install the corresponding dependency packages.

3. After the installation is complete, you will find the google-chrome browser in the application ---> network --->

However, chrome does not respond after double-clicking.

4. There are many Baidu websites. selinux should be disabled and the operations are as follows:

Vi/etc/selinux/config

Set SELINUX = disabled

Still unable to open chrome from shortcut

4. Locate the chrome Command Line Location and manually execute

[Root @ localhost chrome] # rpm-qa | grep chrome

Google-chrome-stable-65.0.3325.181-1.x86_64

[Root @ localhost chrome] # rpm-ql grep google-chrome-stable

/Opt/google/chrome/google-chrome-stable

/Usr/bin/google-chrome-stable

Execute google-chrome through the command line and report the following error:

[Root @ localhost chrome] #/usr/bin/google-chrome-stable
[6313: 6313: 0321/180337. 608535: ERROR: zygote_host_impl_linux.cc (90)] Running as root without -- no-sandbox is not supported. See https://crbug.com/638180.
[Root @ localhost chrome] #/opt/google/chrome/google-chrome
[6344: 6344: 0321/180547. 903143: ERROR: zygote_host_impl_linux.cc (90)] Running as root without -- no-sandbox is not supported. See https://crbug.com/638180.

5. Based on the keyword (zygote_host_impl_linux.cc (90)] Running as root without -- no-sandbox is not supported), find the content in reference 1 and find the root permission problem. The solution is as follows:

1. Start the command line:/usr/bin/google-chrome-stable -- no-sandbox

2. if you do not want to start the command line, enter/usr/share/applications/in the file, find the chrome chart, right-click the chart, and add -- no-sandbox after the property, or vi/usr/share/applications/google-chrome.desktop, start add -- no-sandbox, double-click this icon to start chrome

Problem: chrome cannot be started in desktop chrome.

The solution is as follows:

Find the location of the desktop shortcut in the folder (see reference 2) and find that the content of the desktop application is indeed in/usr/share/applications /.

However, you can double-click the desktop icon in the file to start the desktop.

1. Drag chrome in/usr/share/applications/to the desktop, generate a desktop icon, double-click the desktop icon, and chrome will pop up.

2. then, a message like "untrusted" is reported. Click "OK" and then chrome hours in/usr/share/applications, the chrome icon in the Desktop Application> network> disappears.

3. chrome on the Beibei table is displayed in/usr/share/applications/, and chrome icon in/usr/share/applications/. Double-click the icon to open it.

I guess it may be that the desktop application in gnome has not read the latest configuration, but it still uses the old configuration in memory, which leads to the failure, until the content in/usr/share/applications/is deleted, the configuration in the memory may be cleared, and the chrome icon in/usr/share/applications/can be added again, the above is only speculation and there is no factual basis.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.