SUMMARY: Two X-terminals for one client program

From: Thomas Chr. Leer (tcl@terma.dk)
Date: Fri Sep 03 1999 - 02:15:07 CDT


Original question:

> Hi all,
>
> I have an X client program running on a Solaris machine without a
> frame buffer using an X-terminal connected to the LAN for displaying
> and interacting with the program.
>
> I would like to attach a second X-server device to the LAN to be able
> to simultaneously display the program elsewhere on the LAN as well.
>
> Are you aware of any such program that will allow me to have a primary
> TCP connection between an X client and a server for the interactive
> user and a secondary connection elsewhere for people who are watching
> the program???
>
> I thought of using VNC, but it seems to require a program on the
> primary display device, which is a third-party X-terminal, in order to
> send things to the viewer program, so no way to port and compile the
> VNC stuff there.

I tried out the xmx from http://www.cs.brown.edu/software/xmx/

Running on the same type of machine as suggested by the author (SUN
Ultra-10, Solaris 2.6), the xmx produced really bad colors on all
Solaris displays.

Our application requires a lot of colors from the color map and they
seemed to be messed up when running through xmx. I spend a few hours
trying to set various combinations of command-line options for xmx,
but without any luck. When our application requested something from
the X-server, it crashed, and xmx crashed as well.

However, next day I went on trying to display it on an X-terminal from
NeoWare, and here the colors were allright. It was necessary to use
the '-owncmap' option to get this to work.

Mark Hall wrote:
>Since your Solaris machine doesn't have a frame buffer (I'm assuming you
>mean graphical display), you can set up VNC as a SERVER on this machine,
>and it will simulate an X server, which you can display the program to
>(call it display A:0). Display B and C (two X terminals) can be used to
>VIEW the VNC server's display.
>
>./vncviewer -shared -display B:0 A:0
>./vncviewer -shared -display C:0 A:0
>
>This launches the viewer and sends the VNC display to xterms B and C,
>while connecting to server A:0 (where the program is running). THe
>-shared flag allows multiple connections (say a 3rd, 5th, etc) to this
>shared display space, PLUS is has the added benefit of not terminating
>the VNC sessions when a user disconnects. This way, the program to be
>"watched" can run 24x7, etc.

Unfortunately I never got to try this, because it was decided to leave
the issue; my boss was suddenly afraid of making things unstable by
running a third-party program together with our own
application. However, I think this could work as well, and it is worth
a try to see if the colors get right on our SUNs.

I would like to thank the following people for their replies:

Thomas Anders
Patrick R. Demorais
Mark_Hall
Anit G. Lulla
Balfour, Scott
David Schronce
Seth Rothenberg

Regards,

Thomas



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:25 CDT