解决 X: user not authorized to run the X server, aborting.
解决 “X: user not authorized to run the X server, aborting.”
当我们在linux系统中安装完成Xorg和相应的桌面环境的时候,以普通用户身份执行startx
命令的时候,有时会提示以下错误:
ubuntu@ubuntu-armhf:~$ startx &
[1] 9612
ubuntu@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
然后就可以在图形用户界面中进行设置:
解决 X: user not authorized to run the X server, aborting.相关推荐
- the selection cannot be run on any server解决方法
最近在STS4中Tomcat9&JDK8&MySQL8环境下运行老环境(Tomcat6&JDK8&MySQL5)的动态web项目(Dynamic Web Project ...
- the selection cannot be run on any server解决办法
the selection cannot be run on any server解决办法 1.问题描述 用eclipse导入一个写好的MVC项目文件时,运行会报错 the selection can ...
- 解决IDEA中出现Error:Cannot run program “D:\ideaJDK\jdk1.8.0_241\bin\java“导致程序无法运行的问题。
解决IDEA中出现Error:Cannot run program "D:\ideaJDK\jdk1.8.0_241\bin\java"导致程序无法运行的问题. 问题产生 当我启动 ...
- 解决MySQL workbench的Can‘t connect to MySQL server on ‘127.0.0.1‘(10061)问题
解决MySQL workbench的Can't connect to MySQL server on '127.0.0.1'(10061)问题 参考文章: (1)解决MySQL workbench的C ...
- MYSQL登录遇到的问题:解决ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘(10061)
解决ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost:3306' (10061)问题 重新捡起mysql,在配置时出现了这 ...
- 解决CentOS-HTTP出现“httpd: Could not reliably determine the server‘s fully qualified domain name”问题
解决CentOS-HTTP出现"httpd: Could not reliably determine the server's fully qualified domain name&qu ...
- Nginx重启时丢失nginx.pid文件解决方法nginx: [emerg] open() “/var/run/nginx/nginx.pid“ failed (2: No such fi
nginx: [emerg] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory) 不要在 ...
- sshd启动报错解决:Missing privilege separation directory: /run/sshd
报错: Missing privilege separation directory: /run/sshd解决: # sudo mkdir /run/sshd
- 多种方法解决docker无权限问题 /var/run/docker.sock: connect: permission denied
问题:无权限使用docker命令 报错信息 [test@pri00 ~]$ docker ps Got permission denied while trying to connect to the ...
最新文章
- 分割catalina.out 每天生成一个文件
- python代码写完怎么运行-教你如何编写、保存与运行 Python 程序
- css初始化样式文件_前端必备技能 webpack 4. webpack处理CSS资源
- Python类与对象技巧(2):拓展子类属性
- 网站添加页面热力图--百度统计
- Python 第五天
- 安装rpm报错:requires Ruby version >= 2.*.*
- 网管日志-06.08.16
- 使用java反射写一个通用的jdbc查询
- asp.net中如何退出整个框架(frameset ),回到登录界面?
- Oracle数据库学习(一)--数据库原理及SQL
- 机器学习算法之SVM的多分类
- 一个工业相机通用类解决大部分业内流行相机的访问(基于大华相机的动态链接库开发的通用相机类)C#版
- Greenplum5.9.0简单使用
- 塞班系统服务器,在Symbian系统邮件应用程序中使用IMAP服务
- 视频I帧、P帧、B帧总结
- 2021-2027全球与中国拆弹机器人市场现状及未来发展趋势
- php 大型网站内链,制定网站内链优化策略
- 合肥工业大学计算机与信息学院学生会宗旨,合肥工业大学宣城校区第一届学生会成立大会召开...
- 用python求兀_python求π