zoukankan      html  css  js  c++  java
  • OS: chrome installed for redhat8.4

    install chrome for redhat8.4 documents

     

     

     

    0、依赖库查询:https://pkgs.org/ 

    1. reference: https://m.linuxidc.com/Linux/2019-09/160524.htm

     

     

     

    2. download "google-chrome", web = https://www.google.cn/chrome/

    2.1 wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

     

     

     

    3. donwnload folder "chrome_for_redhat84" , 4 files of rpm.

    3.1 google-chrome-stable_current_x86_64.rpm

    3.2 liberation-fonts-2.00.3-7.el8.noarch.rpm # you can do not download this file, if you have repo 'appstream'

    3.3 mesa-vulkan-drivers-20.1.4-1.el8.x86_64.rpm # you can do not download this file, if you have repo 'appstream'

    3.4 vulkan-loader-1.2.148.0-1.el8.x86_64.rpm

     

     

     

    4. install chrome.

    4.1 cd "chrome_for_redhat84" folder

    4.2 install liberation-fonts: [root@redhatos Downloads]# dnf localinstall --nogpgcheck liberation-fonts-2.00.3-7.el8.noarch.rpm

    4.3 install google-chrome: [root@redhatos Downloads]# dnf localinstall google-chrome-stable-91.0.4472.77-1.x86_64.rpm

    4.4 install 'google-chrome' steps.

     

    [root@redhatos Downloads]# dnf localinstall google-chrome-stable-91.0.4472.77-1.x86_64
    Last metadata expiration check: 0:12:01 ago on Thu 27 May 2021 09:31:34 PM CST.
    Not a valid rpm file path: google-chrome-stable-91.0.4472.77-1.x86_64
    Error: Nothing to do.
    [root@redhatos Downloads]# dnf localinstall google-chrome-stable-91.0.4472.77-1.x86_64.rpm
    Last metadata expiration check: 0:12:18 ago on Thu 27 May 2021 09:31:34 PM CST.
    Can not load RPM file: google-chrome-stable-91.0.4472.77-1.x86_64.rpm.
    Could not open: google-chrome-stable-91.0.4472.77-1.x86_64.rpm
    [root@redhatos Downloads]# dnf localinstall google-chrome-stable_current_x86_64.rpm
    Last metadata expiration check: 0:12:51 ago on Thu 27 May 2021 09:31:34 PM CST.
    Dependencies resolved.
    ==================================================================================================================================================
    Package Architecture Version Repository Size
    ==================================================================================================================================================
    Installing:
    google-chrome-stable x86_64 91.0.4472.77-1 @commandline 79 M
    Installing dependencies:
    mesa-vulkan-drivers x86_64 20.3.3-2.el8 local-appstream 5.4 M
    vulkan-loader x86_64 1.2.162.0-1.el8 local-appstream 118 k

    Transaction Summary
    ==================================================================================================================================================
    Install 3 Packages

    Total size: 85 M
    Installed size: 274 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
    Preparing : 1/1
    Installing : vulkan-loader-1.2.162.0-1.el8.x86_64 1/3
    Installing : mesa-vulkan-drivers-20.3.3-2.el8.x86_64 2/3
    Running scriptlet: google-chrome-stable-91.0.4472.77-1.x86_64 3/3
    Installing : google-chrome-stable-91.0.4472.77-1.x86_64 3/3
    Running scriptlet: google-chrome-stable-91.0.4472.77-1.x86_64 3/3
    Verifying : mesa-vulkan-drivers-20.3.3-2.el8.x86_64 1/3
    Verifying : vulkan-loader-1.2.162.0-1.el8.x86_64 2/3
    Verifying : google-chrome-stable-91.0.4472.77-1.x86_64 3/3
    Installed products updated.

    Installed:
    google-chrome-stable-91.0.4472.77-1.x86_64 mesa-vulkan-drivers-20.3.3-2.el8.x86_64 vulkan-loader-1.2.162.0-1.el8.x86_64

    Complete!
    [root@redhatos Downloads]#

     

     

     

    5. open chrome in 'terminal', and fix bug 'no-sandbox'   

    5.1 [root@redhatos Downloads]# google-chrome --no-sandbox


    ====== reference

    1)安装浏览器

    # apt-get install gonme

    # apt-get update

    # apt-get install google-chrome-stable

     

    2)启动Chrome浏览器

    # google-chrome

    这时会报错:
    [31560:31560:0207/085601.085852:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See

    # google-chrome --no-sandbox //之后重启系统




    3)问题:no-sandbox

    # whereis google-chrome
     google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz
    # vim /usr/bin/google-chrome

     

    将 exec -a "$0" "$HERE/chrome" "$@" 改为

    exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox

    以后只要 #google-chrome 就可以打开Chrome了

    虽然也会弹出一堆错误,但是终于成功打开了!!

     

     

     

     

    6. finished installation 'google chrome' in redhat8.4, enjoyed !

     

     

     

     

    本文由lnlidawei(https://www.cnblogs.com/lnlidawei)原创或整理,转载请注明出处。
  • 相关阅读:
    linux 错误总结
    linux xampp常见问题
    !WebGL
    !站点列表(无关的站点)
    代码: 瀑布流
    插件:★★★ !!!图片懒加载 lazyload.js 、 jquery.scrollLoading.js
    html调用静态json例子
    !!! jquery mobile常用代码
    国内各类“壳子”浏览器,userAgent 一览
    checkbox的美化(转)
  • 原文地址:https://www.cnblogs.com/lnlidawei/p/14863203.html
Copyright © 2011-2022 走看看