If you work with embedded systems running Linux, you could encounter the following error message when you try to run the X server from a sudoer user:
X: user not authorized to run the X server, aborting.
Solving this problem is very simple:
- Login into your system
- login as sudo
- edit the file /etc/X11/Xwrapper.config, your current Xwrapper.config file shall look like the following one:
# Xwrapper.config (Debian X Window System server wrapper configuration file) # # This file was generated by the post-installation script of the x11-common # package using values from the debconf database. # # See the Xwrapper.config(5) manual page for more information. # # This file is automatically updated on upgrades of the x11-common package # *only* if it has not been modified since the last upgrade of that package. # # If you have edited this file but would like it to be automatically updated # again, run the following command as root: # dpkg-reconfigure x11-common allowed_users=root
- Simply, change allowed_users=root to allowed_users=anybody
- save the file
- try to run xinit.
Gg1