Local vncviewer vs changing Unix display number
Tue Apr 15 14:22:01 2003
Joel E. Lieberman, Ph.D. said:
> Hi folks -
> I have a question concerning best practices for sharing a VNC server
> with Linux/Unix.
> Assume that I have a Xvnc server process set up for X1 display (server:1),
> am at the physical console and a user is somewhere remote.
> I can effectively "share" the desktop (X1) with the other user by having
> them start a vncviewer directed to the server:1 while I connect by
> a local vncviewer in shared mode at my console. This works correctly as
> My question is this: Is it also possible for me (at the console) to
> to the VNC Server's X1 display environment directly by setting my local
> display to that X server, and if it is possible, would this be better or
> worse than starting my own local vncviewer as a means of "sharing" the
> vncserver session on X1?
Using two vncviewers is the way to go. The Xvnc server has no concept of
your actual video hardware, so you can't have it display directly to the
There are other extensions to allow you to share a normal X session
started on the console with VNC, but not built in. And in order to do
what you are suggesting, you would have to run two X sessions on the local
console, so anyone with keyboard access could easily switch to watch the
second session without being challenged for a password.