Ubuntu上运行Chrome出现“Google Chrome can not be run as root”错误的解决方法
2011-10-09 15:49
1121 查看
hrome安装完毕后提示这个:
Google Chrome can not be run as root.
Please start Google Chrome as a normal user. To run
as root, you must specify an alternate –user-data-
dir for storage of profile information.
意思是Chrome不允许在root下运行,由于这是VPS不是自家电脑,因此不适合换用户,寻觅网络试过很多方法,
比如修改FLAGS之类的都失败,最后找到个不错的方法,在此分享下。
首先需要安装十六进制编辑器
# apt-get -y install hexedit
然后使用编辑器编辑Chrome
# hexedit /opt/google/chrome/chrome
注意:路径如果不同的话请自行使用dpkg -c 安装包来察看安装到哪里了。
进入到编辑器后,光标在左侧,首先按TAB键切换到右侧的ASCII码模式位置,
接着按Ctrl+S打开搜索功能,输入geteuid查找,当光标停到首字母的地方后,
直接将geteuid替换输入成getppid就修改完成了,最后按Ctrl+X保存确认退出。
重新打开Chrome,即可正常运行。
Google Chrome can not be run as root.
Please start Google Chrome as a normal user. To run
as root, you must specify an alternate –user-data-
dir for storage of profile information.
意思是Chrome不允许在root下运行,由于这是VPS不是自家电脑,因此不适合换用户,寻觅网络试过很多方法,
比如修改FLAGS之类的都失败,最后找到个不错的方法,在此分享下。
首先需要安装十六进制编辑器
# apt-get -y install hexedit
然后使用编辑器编辑Chrome
# hexedit /opt/google/chrome/chrome
注意:路径如果不同的话请自行使用dpkg -c 安装包来察看安装到哪里了。
进入到编辑器后,光标在左侧,首先按TAB键切换到右侧的ASCII码模式位置,
接着按Ctrl+S打开搜索功能,输入geteuid查找,当光标停到首字母的地方后,
直接将geteuid替换输入成getppid就修改完成了,最后按Ctrl+X保存确认退出。
重新打开Chrome,即可正常运行。
相关文章推荐
- Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法
- Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法
- BackTrack上运行Chrome出现“Google Chrome can not be run as root”错误
- Google Chrome can not be run as root 解决办法
- ubuntu13.10: google chrome can not be run as root
- ubuntu Google Chrome can not be run as root
- bt5 使用chrome 错误解决Google Chrome can not be run as root.
- 解决Linux下出现Google Chrome does not run as root问题
- ubuntu google chorme can not be run as root
- google-chrome can not be run as root
- google chrome can not be run as root
- root用户无法运行tor解决办法(The tor browser bundle should not be run as root )
- root用户无法运行tor解决办法(The tor browser bundle should not be run as root )
- Chromium can not be run as root错误
- Ubuntu使用sudo命令出现must be setuid root错误的解决方法
- phpcms v9出现Can not connect to MySQL server错误的原因和解决方法
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- python 处理中文时出现的错误'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)" 解决方法
- 出现"cannot be resolved or is not a field"莫名错误的解决方法