This question is about executing /usr/bin/Xorg
directly on Ubuntu 14.04.
And I know there exists Xdummy, but I couldn't make the dummy driver work properly with the nvidia GPU so it's not an option.
I copied the system-wide xorg.conf
and /usr/lib/xorg/modules
, and modified them a little bit. (Specified ModulePath
in my xorg.conf
too)
Running the following command as root works fine:
Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./16.log -config ./xorg.conf :16
But if I do that as a non-root user (the log file permission is OK), this error occurs:
(EE)
Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 9 (Permission denied)
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "./16.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
Could you please help me to run Xorg without sudo??
setuid
bit on Xorg:chmod +s $(which Xorg)