解决 "X: user not authorized to run the X server, aborting."
2016-07-29 17:48
961 查看
解决 “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 exist X: 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
然后就可以在图形用户界面中进行设置:
相关文章推荐
- Ubuntu 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- ubuntu下chrome无法同步问题解决
- Ubuntu Linux使用体验
- 使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
- 以Ubuntu 9.04为例 将工作环境迁移到 Linux
- Linux下XWindow图形界面的基本概念
- VirtualBox虚拟机XP与宿主机Ubuntu互访共享文件夹
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 15.04 正式版发布下载
- Linux-Ubuntu 10.04安装Cadence-ic610 方法总结图解
- 什么是Mac OS X?跟Linux有什么区别
- Ubuntu 12.04和Windows 7双系统安装图解
- Ubuntu /home下中文目录如何修改成英文?
- 开机出现:grub rescue的修复方法
- Ubuntu连接Android真机调试
- 你应该选择 Ubuntu 还是 Fedora?
- 100 个最佳 Ubuntu 应用(中)