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
 
 
just run:

sudo -i

最新文章

  1. 七月十三号CSS3总结《2D的转换》
  2. AAS代码运行-第11章-1
  3. Project Woosah Tu (五色土)
  4. Thread.join简单介绍
  5. My97DatePicker 日期控制,开始时间不能>结束时间,结束时间不能<开始时间
  6. Swift---TextView用法
  7. JS 插件使用
  8. MySQL错误代码大全【转载】
  9. nginx + tomcat
  10. 钢管下料问题2(剩余材料最少)lingo求解
  11. cxf2.7.10 与 spring3.0.5集成
  12. MVC-06 安装部署
  13. kernel hexdump分析 (2.0)
  14. java学习记录
  15. Apache无法启动提示the requested operation has failed
  16. python爬虫-抓取acg12动漫壁纸排行设置为桌面壁纸
  17. [Sdoi2010]星际竞速
  18. manacher最长回文子串
  19. ionic3 Modal组件
  20. anaconda中安装TensorFlow的方法

热门文章

  1. PHP Warning: date(): It is not safe to rely on the system's timezone settings.
  2. NC / Netcat - 反弹Shell
  3. Android 给listview设置分割线与边界的距离
  4. px,dp,sp单位转换工具类
  5. BZOJ 2323 细胞(矩阵)
  6. windows2003 iis6.0站点打不开,找不到服务器或 DNS 错误。
  7. linux/unix网络编程之 select
  8. poj 3368 Frequent values(RMQ)
  9. poj1088
  10. js array 数组删除元素