How do I run multiple screens/sessions of VNC?This article applies to the following product(s):
VNC Enterprise Edition
VNC Personal Edition
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:
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:
Related ArticlesNo related articles were found.
AttachmentsNo attachments were found.
2nd of July, 2012