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:
- Simply, change allowed_users=root to allowed_users=anybody
- save the file
- try to run xinit.