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?
allowed_users=anybody
# dpkg-reconfigure x11-common
sudo -i
How to fix “X: user not authorized to run the X server, aborting.”? -摘自网络
原文:http://www.cnblogs.com/haoliansheng/p/4395838.html