Centos8.3 google-chrome installation and startup

1. Installation

1.1 Create a new file

  vi /etc/yum.repos.d/google-chrome.repo

 [google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1  
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub 

1.2.  下载google-chrome-stable_current_x86_64.rpm

1.3  dnf  -y localinstall google-chrome-stable_current_x86_64.rpm

Note: There will be some problems during the installation process, just follow the prompts to solve them.

Two, start

After the installation is complete, I find the application icon or input a command, but it fails to start. The solution is to edit the desktop file and delete those useless.

gedit /usr/share/applications/google-chrome.desktop

[Desktop Entry]
Version=1.0
Name=Google Chrome
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Web Browser

# Gnome and KDE 3 uses Comment.
Comment=Access the Internet

Exec=/usr/bin/google-chrome-stable %U --no-sandbox
StartupNotify=true
Terminal=false
Icon=google-chrome
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
Actions=new-window;new-private-window;

[Desktop Action new-window]
Name=New Window

[Desktop Action new-private-window]
Name=New Incognito Window

#Exec=/usr/bin/google-chrome-stable --incognito
Exec=/usr/bin/google-chrome-stable %U --no-sandbox

Configure according to the above file to start Google Chrome from the desktop icon. Readers can compare the revised content.

There is also a way to start Google Chrome, enter the command in the terminal:

/usr/bin/google-chrome-stable --no-sandbox

 

Guess you like

Origin blog.csdn.net/tswang6503/article/details/112909079