You are not logged in.
I want to ssh into a machine and run "startx" so that the local monitor will run the desktop environment as if I typed "startx" from the local tty but it does not work. It does this
$ startx
/usr/lib/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the consoleHo can I trick it into working?
Offline
https://wiki.archlinux.org/index.php/Xinit#xserverrc
I suspect you could also set up (but not enable) a custom autologin service on a specific tty, and configure your .profile to autostart X on that tty. So then when you log in via ssh, you'd just need to start the autologin service.
Last edited by Trilby (2019-06-09 12:33:01)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline