How do I run multiple screens/sessions of VNC?

VNC Server for UNIX can be used as a stand-alone "virtual" X server, or it can attach to an existing X Server.

To start a new virtual X server accessible via VNC, use the "vncserver" command. The man page describes it in full detail, but the most common usage is:

   $ vncserver
   VNC Server Enterprise Edition E4.3.1 - built Aug 14 2007 16:37:39
   Copyright (C) 2002-2007 RealVNC Ltd.
   See http://www.realvnc.com for information on VNC.
   Running applications in /home/unh/.vnc/xstartup
   Log file is /home/unh/.vnc/server:1.log
   New desktop is server:1

The final line tells you how to connect to the server. In this case the server was allocated display number :1, and you must specify this when connecting. For example, using the UNIX vncviewer command-line program you would enter:

   $ vncviewer ipaddress:1

To run a second Xvnc session, simply run the vncserver command again, and it will create a new Xvnc session on the next available screen/port.

To attach to an existing X Server, you use the vnc.so loadable module (if your platform and X Server support it) or x0vncserver otherwise. These are described in detail on-line:

http://www.realvnc.com/products/enterprise/4.5/x0.html


Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
4th of February, 2011

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions



How would you rate this answer?




Thank you for rating this answer.

Continue

© RealVNC Limited