0x00前提
已經安裝好google chrome .
0x01
在終端執行命令: google-chrome,發現如圖:
錯誤提示:在root下只能使用 --no-sandbox選項來運行chrome,我們跟着提示來試試看
0x02
在終端執行命令: google-chrome --no-sandbox,結果
enter執行
成功進入chrome,但此方法的弊端是每次都只能從命令行啓動,命令後面必須跟"--no-sandbox"的選項,爲了每次使用方便,可以從圖形界面啓動,我們需要修改下chrome的文件使其永久生效.
0x03
在終端執行命令:vim /opt/google/chrome/google-chrome
enter執行
如圖在vim中移動光標找到"exec -a "$0" "$HERE/chrome" "$@""這一行,在末尾加上"--user-date-dir --no-sandbox"(注意中間的空格)
ctrl+s保存
0x04
在終端執行:google-chrone
enter執行
或者單擊側欄的chrome圖標,進入如圖.