I would like to log in from machine A to machine B -- and regardless or whether anyone is logged in on B* open a new graphical terminal on :1**.
To further clarify: This is a lab situation with one supervisor and ~30 guest machines. On the guest machines [e.g. B-Z], a user may or may not be logged in. Regardless of whether a user is logged in, I would like administrator [A] to be able to control the displays (and terminal selection) of the guest machines [B-Z]. [Something such as iTalc would be good -- but it's not working and that's a different question.]
*If someone was logged in I could grab their Xauthority and set DISPLAY=:0
and execute images on their screen, e.g., with xroot
**Or it's possible to use xroot to startx, which is just a wrapper for xinit. E.g. xroot "startx -- :1"
& then xroot chvt 1
-- but a new WM starts with root privileges.
How can I ssh into the machine (on which I have root permissions) and start a new X session whether or not anyone is logged in? (Ideally, without the terminal window showing up)
As is, with:
xinit --:1
the error message:
(EE) Fatal server error: (EE) Server is already active for display 0
is generated. Which seems odd, as xinit was passed :1.
[The machines are using XDM]
:1
toxinit
because your command is missing a space. It should bexinit -- :1
. I'm not sure what you want to accomplish though. If someone is logged in on the machine's console, do you want to open a window on their interface or not?