You are not logged in.

#1 2014-01-21 11:58:44

odp
Member
Registered: 2012-04-26
Posts: 136

[SOLVED] can you start X server from ssh (not X forwarding)

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

#2 2014-01-21 12:12:24

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 442

Re: [SOLVED] can you start X server from ssh (not X forwarding)

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

#3 2014-01-21 12:53:28

odp
Member
Registered: 2012-04-26
Posts: 136

Re: [SOLVED] can you start X server from ssh (not X forwarding)

but the X session will inevitably terminate when the ssh session is killed right?

Offline

#4 2014-01-21 16:15:50

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] can you start X server from ssh (not X forwarding)

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

#5 2014-01-21 17:42:51

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] can you start X server from ssh (not X forwarding)

You probably want something along the lines of a vnc server wink


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2014-01-21 22:48:01

ibexmonj
Member
Registered: 2014-01-21
Posts: 9

Re: [SOLVED] can you start X server from ssh (not X forwarding)

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

#7 2014-01-21 23:50:31

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] can you start X server from ssh (not X forwarding)

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

#8 2014-01-22 00:15:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,529
Website

Re: [SOLVED] can you start X server from ssh (not X forwarding)

odp wrote:

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

Online

#9 2014-02-07 09:35:31

odp
Member
Registered: 2012-04-26
Posts: 136

Re: [SOLVED] can you start X server from ssh (not X forwarding)

I wonder why VNC got introduced into this post?

Trillby, I guess because I did not use startx & smile

Thanks!

Offline

Board footer

Powered by FluxBB