How to fix “X: user not authorized to run the X server, aborting.”? -摘自网络
2024-10-13 03:44:28
This is just a simple tips to solve a error message when you start your X session with “startx” command as normal user. The error message may be like this:
blackgod@debian:~$ startx
xauth: creating new authority file /home/blackgod/.Xauthority
X: user not authorized to run the X server, aborting.
In linux, by default root user is allowed to run X server in most cases. So you don’t face this issue while running “startx” as root user.
Basically the Xorg X server needs to be configured to to authorize this user. Where should we configure this?
/etc/X11/Xwrapper.config – This file has as setting called “allowed_users”. It can accept three values:
1. root
2. anybody
3. console
The above values are self explanatory. You can edit this value to set as anybody for normal user to start X server. If normal user starts X server from console, console can also be set. It can be like this.
allowed_users=anybody
In Debian and its derivatives like Ubuntu, you can run the following command to do it in user friendly screen as shown below.
# dpkg-reconfigure x11-common
how to How to run Terminal as root?
just run:
sudo -i
最新文章
- 七月十三号CSS3总结《2D的转换》
- AAS代码运行-第11章-1
- Project Woosah Tu (五色土)
- Thread.join简单介绍
- My97DatePicker 日期控制,开始时间不能>;结束时间,结束时间不能<;开始时间
- Swift---TextView用法
- JS 插件使用
- MySQL错误代码大全【转载】
- nginx + tomcat
- 钢管下料问题2(剩余材料最少)lingo求解
- cxf2.7.10 与 spring3.0.5集成
- MVC-06 安装部署
- kernel hexdump分析 (2.0)
- java学习记录
- Apache无法启动提示the requested operation has failed
- python爬虫-抓取acg12动漫壁纸排行设置为桌面壁纸
- [Sdoi2010]星际竞速
- manacher最长回文子串
- ionic3 Modal组件
- anaconda中安装TensorFlow的方法
热门文章
- PHP Warning: date(): It is not safe to rely on the system&#39;s timezone settings.
- NC / Netcat - 反弹Shell
- Android 给listview设置分割线与边界的距离
- px,dp,sp单位转换工具类
- BZOJ 2323 细胞(矩阵)
- windows2003 iis6.0站点打不开,找不到服务器或 DNS 错误。
- linux/unix网络编程之 select
- poj 3368 Frequent values(RMQ)
- poj1088
- js array 数组删除元素