fedora25 以root身份运行谷歌浏览器chromium
1,在fedora系统中的应用商店里搜索chrom进行安装;
2,安装后查找命令所在位置:
[root@wxfeng ~]# whereis chromium-browser chromium-browser: /usr/bin/chromium-browser /usr/lib/chromium-browser /usr/share/man/man1/chromium-browser.1.gz
3,编辑对应的可执行文件,在最后一行$@后添加“–no-sandbox”即可。
exec -a "$0" "$HERE/chromium-browser" $CHROMIUM_DISTRO_FLAGS $CHROMIUM_FLASH_FLAGS "$@ –no-sandbox"
[root@wxfeng ~]# vi /usr/bin/chromium-browser ........... ........... exec -a "$0" "$HERE/chromium-browser" $CHROMIUM_DISTRO_FLAGS $CHROMIUM_FLASH_FLAGS "$@ --no-sandbox"