Tuesday, October 18, 2011

VNC Configuration

Some of the configuration tips for VNC server instances and window sizes.

To create new instance, add an entry in file /etc/sysconfig/vncservers.
For example, I have created two instances and following is the content of this file:

VNCSERVERS="1:root 2:root"
VNCSERVERARGS[1]="-geometry 1280x800 -depth 16"
VNCSERVERARGS[2]="-geometry 1260x710 -depth 16"

The first line indicates the usernames to access each of the server instances.
In this case both are ‘root’. So it can be accesses by entering <ip-address>:1 and <ip-address>:2 in the VNC client window.

The reason for creating two instances here is nothing but two different resolutions.
The first instance’s resolution “1280x800” is best for full-screen usage.
The second instance’s resolution “1260x710” is best for full-size client window. (Expand the vnc client window to fill size by clicking on ‘Maximize’ button on top right corner)

One more important point, you need to keep ‘vncconfig’ running to be able to share clipboard to/from your desktop to VNC server.
Use following command to start vncconfig:
vncconfig -nowin &

Cheers,
Sarang

Enhanced by Zemanta

No comments:

Post a Comment