Display the screen of a gui program running localy on a remote PC using DISPLAY=x:0.0

3 risposte [Ultimo contenuto]
yvo.brasseur
Offline
Iscritto: 11/21/2018

Hi,
In the case of program a running on IP-A, and displaying its screen on
a remote PC IP-B, I used to do this (before installing Trisquel I used
Xubuntu):

1) on the remote system IP_B:
'xhost +IP-A'
in /etc/X11/xinit/xservrc:
change exec /usr/bin/X -nolisten tcp "$@"
to exec /usr/bin/X -listen tcp "$@"

2) on the local system IP-A:
DISPLAY=IP-B:0:0 xterm
or
xterm -display IP-B:0.0 (or :10.0 etc)

Now I get a message that the display cannot be opened.

I need this as my system IP-B is an old PC attached to a big television
screen (used as monitor) in a meeting room.
Using this DISPLAY= option I could run my demo's on my laptop and
show the resulting screen on the big screen.
Using 'ssh -XC IP-B x2x -east -to :0.0 I could use my local mouse
and keyboard on the big television screen as well. Was very handy ...

Any help or tips are greatly appreciated !

Brgds,
Yvo.

loldier
Offline
Iscritto: 02/17/2016
yvo.brasseur
Offline
Iscritto: 11/21/2018

Hi,
yes, I often use ssh -X remotemachine, but then the application and
its data is on the remotemachine (IP-B), and the display is on my local
machine (IP-A).

I need a solution where the apps and their data are run on the local machine
(IP-A) but displayed on the remote screen (IP-B).
I have multiple portables coming in and using the big screen (IP-B), and
I cannot install all possible apps and data from these visitors.

But thanks for the reaction and the links !

Yvo.

yvo.brasseur
Offline
Iscritto: 11/21/2018

Hi,

it should be possible to do this:

xterm -display user@remotemachine:0.0
(:0.0 being the display no on that remote machine).

I cannot get it to work because port 6000 is not open, but I haven't found out
so far how to open it for incoming tcp calls...

I keep praying ;-)

Yvo.