Page 1 of 1

Having X only by remote access - Disable X on local console

Posted: Fri Dec 07, 2018 11:34 pm
by sycoweb
Hi,
I would like to run X for remote access only. BTW using a remote X Terminal,
but leaving local console , screen and keyboard, in "console" mode : only tty in charactere mode, for CLI login.
I did'n't found a way to set this mode.
Cann some one help me please ?
Thanks.
Syco (FRENCH - so you can help in French as you like)

Re: Having X only by remote access - Disable X on local console

Posted: Sat Dec 08, 2018 10:26 am
by richrarobi
As long as you have x installed on the local system (actually on both systems), you can do this. Run the pi as a command line only system. Set it up to do this with raspi-config.

Then from your remote system call it in ssh by par example:-
ssh -l pi -Y c.local
or
ssh -Y c.local
if the login name is same.

when you have connected to your pi (in example, c.local), you can run x apps like this: -

pcmanfm&
Note that on first boot of the pi, these often "bomb out" on first run. Just run again.
geany&

etc.
there used to be terminal emulators that did this like Reflection-X but they used to cost a fortune.

Re: Having X only by remote access - Disable X on local console

Posted: Sat Dec 08, 2018 12:23 pm
by sycoweb
Hi richrarobi, and thanks for responding,

I knew this method, indeed, that I use by now :
- 1) run X terminal (XMing, for free !, and MobaXterm)
- 2) login using SSH and X11 forwarding (sets the DISPLAY variable)
- 3) start X applications that runs on the X terminal

But what I would like to do is :
- run X terminal
- immediately obtain a connection, with XDMCP I guess ... so, like with Xorg running on server

So I think I need Xorg to be started on the server, isn't it ?
But, leaving local console in comand line mode.
Maybe a setting in Xorg ?
thanks,
SYco

Re: Having X only by remote access - Disable X on local console

Posted: Tue Dec 11, 2018 10:15 am
by richrarobi
I don't use the pi gui, all my pi's are "headless". You need to have the X-system INSTALLED on the pi, but you can still keep it booting up to the commandline as set in raspi-config. The X-system sends the screen info to your local machine (known in X as the "server" which does seem the wrong way round to many).

Your command like pcmanfm& which is what I usually call up, runs on the pi, but sends the screen data to the pc running ssh.

You can do things like right clicking on a python program and opening it wit geany. The geany screen will pop up on your pc next to your pcmanfm screen.

Remember you have to keep the terminal screen open as it is driving the X. I published a complete guide somewhere on the forums.
I found this:- viewtopic.php?p=728951