zoukankan      html  css  js  c++  java
  • centos7.3安装chrome

    Centos7安装chrome浏览器

    1.配置yum源

      在目录 /etc/yum.repos.d/ 下新建文件 google-chrome.repo

      cd /ect/yum.repos.d/
      vim google-chrome.repo

    2.写入如下内容:

      [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

    3.安装google chrome浏览器:

      yum -y install google-chrome-stable

    注意:Google官方源可能在中国无法使用,导致安装失败或者在国内无法更新,可以添加以下参数来安装:

      yum -y install google-chrome-stable --nogpgcheck

    4.运行chrome 
      找到chrome路径,并做个软连接,方便使用:

        which google-chrome-stable

        ln -s /usr/bin/google-chrome-stable    /bin/chrome (xxx为google的绝对路径)

      使用root用户启动chrome示例时会提示添加参数–no-sandbox

        chrome --no-sandbox

    问题:点击/usr/share/applictions/下google图标没用

    决解:

      vim /bin/chrome

      把exec -a "$0" "$HERE/chrome" "$@" 改成

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

    命令运行chrome和点击图标就ok了

     
  • 相关阅读:
    linux学习之线程篇(二)
    linux学习之线程篇(一)
    linux学习之进程篇(四)
    linux学习之信号篇(二)
    linux学习之信号篇(一)
    myshell案例
    linux学习之gdb调试工具篇
    linux学习之Makefile篇
    linux学习之进程篇(三)
    Linux常用命令-1
  • 原文地址:https://www.cnblogs.com/wwchihiro/p/9377405.html
Copyright © 2011-2022 走看看