解决 "X: user not authorized to run the X server, aborting."
来源:互联网 发布:广州南航信息中心 知乎 编辑:程序博客网 时间:2024/05/20 07:38
解决 “X: user not authorized to run the X server, aborting.”
当我们在linux系统中安装完成Xorg和相应的桌面环境的时候,以普通用户身份执行startx
命令的时候,有时会提示以下错误:
ubuntu@ubuntu-armhf:~$ startx &[1] 9612ubuntu@ubuntu-armhf:~$ xauth: file /home/ubuntu/.Xauthority does not existX: user not authorized to run the X server, aborting.
在linux系统中,默认root用户被允许执行X服务器,所以当你以root用户执行startx
的时候不会遇到这种错误提示。在这种情况下我们需要配置X服务器,让它能够允许普通用户执行。配置方法有两种:
直接修改配置文件/etc/X11/Xwrapper.config
在配置文件/etc/X11/Xwrapper.config
中有一个allowed_users
设置,它接受如下三个值:
- root
- anybody
- console
令allowed_users=anybody
,则普通用户也可以正常执行startx
。
执行命令 dpkg-reconfigure x11-common
在debian类系统中,比如ubuntu中,可以执行如下命令:
dpkg-reconfigure x11-common
然后就可以在图形用户界面中进行设置:
0 0
- X: user not authorized to run the X server, aborting
- X: user not authorized to run the X server, aborting
- X: user not authorized to run the X server, aborting
- 解决 "X: user not authorized to run the X server, aborting."
- [解决] User [dr.who] is not authorized to view the logs for application
- The user running validate, does not have permissions to create computer objects in the 'x.com
- This server could not verify that you are authorized to access the document requested.
- [Linux] Can not connect to X server
- TIP: when you get a message in job log user [Dr. Who] is not authorized to view the log
- How to Re-Run the OS X Setup Assistant
- nfs server x.x.x.x not response,still trying...解决
- 错误解决:The type [X] is not accessible due to restriction on required library [Y].
- X++ Run report To PDF
- ASP.NET is not authorized to access the requested resource.
- 解决linux挂载U盘时:Not authorized to perform operation
- Address x.x.x.x maps to localhost, but this does not map back to the address
- bochs--can not connect to X server 问题
- can not connect to X Server 0.0 Error
- hdu-1018Big Number(阶乘求位数)
- Tensorflow交叉熵计算错误
- uva 122 小球下落 树的模拟
- vertx学习成果
- iOS开源项目推荐|侧滑与右滑返回手势;几句代码快速集成自定义转场效果+ 全手势驱动
- 解决 "X: user not authorized to run the X server, aborting."
- 前端框架之SiteMesh
- Linux 解除安裝 Java?
- Android ConditionVariable
- 加密会话(SSL)Cookie 中缺少 Secure 属性
- Java基础——初始化块
- firefox profile问题的排查
- self和Super的msgSend
- 仿饿了么百度地图定位