Kali Linux 上的 Google Chrome 无法启动

L0r*_*d3r 2 linux google-chrome

我正在使用 Kali Linux amd64 并从 Google Chrome 官方网站安装了 Google Chrome 稳定版,但它没有启动也没有显示任何错误

我试过从命令行启动它,但它不会给出任何输出。

系统信息:

  • 英特尔酷睿 i3 64 位
  • 4 GB 内存

我尝试过的:

  • 重新安装了很多次没有运气
  • 去除胡椒闪光没有运气

小智 6

创建标准用户(默认为 root)并与他一起运行。如果您需要其他解决方案,请使用谷歌。有很多,但这是最简单的。

编辑(作为根):

  1. cd /opt/google/chrome

  2. 启动 chrome 根本行不通,因为在 Kali linux 中我们是 root 用户,chrome 希望我们成为另一个用户。所以像这样启动它首先为chrome用户存储mkdir /root/chrome创建一个目录

    然后像这样开始: ./chrome --user-data-dir /root/chrome &

    &这样我们就可以继续使用该外壳而铬是开放的。

  3. 无论如何关闭 chrome 并让我们设置快捷方式和别名。现在/opt/google/chrome不在你的PATH身上,所以只是从任何地方输入 chrome 都不会启动它。轻松修复设置别名或符号链接。

    首先,让我们为第 8 步创建一个始终发生的启动脚本

    cd /opt/google/chrome touch startchrome.sh chmod +x startchrome.sh vim startchrome.sh

  4. 在脚本中只需输入:

    /opt/google/chrome --user-data-dir /root/chrome &

  5. 现在创建别名 - 但我们不会那样做,因为我们还需要将它永久保存在 /root/.bashrc 中,这比下一个符号链接方法更麻烦:

    alias chrome=/opt/google/chrome/startchrome.sh

    或者制作符号链接:

    ln -s /opt/google/chrome/startchrome.sh /usr/local/bin/chrome

  6. 现在要制作桌面快捷方式,此应用程序随 Kali linux 一起提供,但请仔细检查

    apt-get install gnome-panel gnome-desktop-item-edit /root/Desktop/ --create-new

  7. 现在将类型保留为应用程序并将名称设置为“Chrome”,然后输入命令或浏览/opt/google/chrome/startchrome.sh 并点击确定

来源