My understanding is that when I run ssh -X coder0@roku2
, the ssh server inside roku2
(assuming a default configuration) starts an X display on port :10
, which corresponds to TCP port 6010
. When I run some graphical process like xterm
, it then proxies traffic from port 6010
to port 22
on roku2
to send back and forth graphical packets that are rendered my laptop.
I'm trying to write the X11 packets that get sent in a graphical process running on roku2
to a file inside roku2
. Therefore, I tried to login without the -X
flag and start my own display inside roku2
by simply running Xorg :10
. However, I get told that only console users are allowed to do this operation.
Why is it possible for me to start an X display through ssh
, but not directly? Is there any way I can start a X display directly so that I can write the packets that come to it to a file inside roku2
?
Note 1: Solving this error through means displayed on other forums (https://github.com/dnschneid/crouton/issues/2676) is not possible since I dont have the privileges in roku2
to alter the config files that I need to change.
Note 2: It seems that I should be able to start a new X display without having any special privileges in the first place: the invocation
Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./10.log -config ./xorg.conf :10
is used on https://xpra.org/trac/wiki/Xdummy to start a display without any need to be sudo or a console user. This by the way, also fails for me.