删除内置的Firefox浏览器

1
2
3
#可以选择不删
rm -rf /usr/bin/firefox
rm -rf /usr/lib/firefox

安装Chromium

kali官网

1
sudo apt install chromium -y

安装完毕后,当我们直接运行时(请在图形化界面中运行),可能会报错

1
chromium
1
2
3
4
5
6
[29663:29663:1206/041001.198622:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/chromium/chrome-sandbox is owned by root and has mode 4755.
[1206/041001.211798:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/online: No such file or directory (2)
[1206/041001.213221:ERROR:elf_image_reader.cc(677)] no dynamic segment
[1206/041001.218794:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[1206/041001.219020:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Trace/breakpoint trap

解决方案

参考文献

1
2
3
4
vim /etc/chromium.d/default-flags
#新增
# Run as root Kali
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --password-store=detect --no-sandbox --user-data-dir"
1
echo 'export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --password-store=detect --no-sandbox --user-data-dir"' >> /etc/chromium.d/default-flags