Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法
来源:互联网 发布:阿里鱼卡 知乎 编辑:程序博客网 时间:2024/06/06 12:51
如果玩Linux的桌面环境,那Ubuntu的绝对是首选,本人无聊蛋疼把其中一台VPS搞上个桌面环境(Ubuntu 10.04+GNOME+VNC),由于配置不高,打算用Chrome代替默认的Firefox,在内置软件中心里只找到了Chromium,暂时还没蛋疼到玩这个,所以跑去官方下载了个dev版的Chrome。
# cd /tmp/#wget -c http://linux-trip.googlecode.com/files/google-chrome-unstable_current_i386.deb
接着安装依赖组件
# apt-get -y install libcurl3 xdg-utils
然后安装主程序
# dpkg -i google-chrome-unstable_current_i386.deb
基本安装完毕,一般情况下在桌面环境中直接打开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查找,当光标停到首字母的地方后,直接输入getppid就能修改了,最后按Ctrl+X保存退出。
重新打开Chrome,正常运行。
后记:不仅是Chrome,Chromium也同样适用,不过相对文件位置有所不同。
- Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法
- Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法
- ubuntu Google Chrome can not be run as root
- Google Chrome can not be run as root 【不能以根用户身份运行 Google Chrome】
- Google Chrome can not be run as root 解决办法
- Google Chrome can not be run as root (redhat6)
- google-chrome can not be run as root
- ubuntu13.10: google chrome can not be run as root
- google chrome can not be run as root
- ubuntu google chorme can not be run as root
- 解决Linux下出现Google Chrome does not run as root问题
- Chromium can not be run as root错误
- root 运行 Google Chrome
- Chrome 在linux下面提示不能 run as root的解决方法
- CentOS安装Chrome及Please start Google Chrome as a normal user. To run as root, you must specify an ...
- chromium can not run as root
- root用户无法运行tor解决办法(The tor browser bundle should not be run as root )
- Chrome默认不能以root身份运行 Google Chrome 浏览器
- 数据库知识总结
- C++快速排序I
- 键盘钩子
- 【数字图像处理】一种求图像边缘的方法
- 【金明的预算方案】解题报告
- Ubuntu运行Chrome出现“Google Chrome can not be run as root”的解决方法
- Linux 几个特殊进程
- 数字图像处理中的傅立叶变换
- NoSQl Databases的一些总结
- Linux 内存管理 面试回答
- 关于eclipse中关联各版本Android.jar对应的源代码方法
- 傅立叶变换在图像处理中的作用
- ubuntu下手工切换gcc版本
- 如何求补码