You are not logged in.
Hi folks,
Lets say my computer at home just rebooted.
I can boot it up again with WOL.
Login to it over SSH from a remote site.
I have proccesses I need to start, but they require X-server to run.
Is it possible to start X over SSH?
This is not a question regarding X forwarding over ssh.
This is not a question on Remote Desktop.
Thanks
Last edited by odp (2014-02-07 09:35:53)
Offline
The answer is: YES.
by the way, if you launch X with the startx command, it will launch "plain X", unless you have specified something in your users .xinitrc file.
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
but the X session will inevitably terminate when the ssh session is killed right?
Offline
Using screen may help? I'm definitely not sure if this is the way to go, though.
Matt
"It is very difficult to educate the educated."
Offline
You probably want something along the lines of a vnc server
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Heres one of the example of what i do. I am not a pro just a suggestion
I have arch arm on my rasp pi. best i setup a display manager (slim) I use to ssh remotely, start vnc server locally and then startx.
you can run vnc with '&' and you can then end your ssh session and your vnc server will still be available after you disconnect ur session.
Offline
I just want to note that I have played a bit with plain old vnc. But I was quite impressed with the performance and overall responsiveness of x2go. It runs over SSH and works amazingly well. I guess it is ultimately an open version of NoMachine.
Offline
but the X session will inevitably terminate when the ssh session is killed right?
Why? I haven't done this specifically with a ssh session, but why would ending the ssh session kill x?
If you run just run xinit from your ssh session then yes, but setsid and/or nohup should allow you to run xinit and then do other things in your ssh session or just logout.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I wonder why VNC got introduced into this post?
Trillby, I guess because I did not use startx &
Thanks!
Offline