【kali】安装谷歌游览器

目的

我们的目标是在 Kali Linux 上安装Google Chrome Web 浏览器

安装步骤

1、下载 Google Chrome

使用 wget 命令来下载最新版本的 Google Chrome 的 debian 安装包。

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
2、安装 Google Chrome

在 Kali Linux 安装 Google Chrome 最容易的方法就是使用 gdebi ,它会自动帮你下载所有的依赖包

安装gdebi

apt install gdebi-core

安装谷歌游览器

gdebi google-chrome-stable_current_amd64.deb

启动 Google Chrome

开启一个终端,执行 google-chrome 命令来启动 Google Chrome 浏览器

启动时候报错解决方法

报错信息:[3853:3853:0520/115723.747971:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

从安全角度考虑,Chrome不应在root环境下运行,如果某些原因必须以root身份运行Chrome,可以运行下面的命令

google-chrome --no-sandbox --user-data-dir &

就可以开心的使用谷歌游览器了

重启系统,设置快捷方式

vim /usr/bin/google-chrome

修改配置文件

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

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

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

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

  • 6
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值