I have a Centos 6 system in which I configured vncserver to manage two different screens:
- the native local screen (the one you can see through the VGA port)
- a software-only virtual screen (where another instance of X server runs)
I edited the /etc/sysconfig/vncservers file as follows:
VNCSERVERS="1:myuser" VNCSERVERARGS="-geometry 800x600"
"myuser" is the actual user enabled to open the virtual screen.
So I'd expect to:
connect to the native screen at 10.0.8.48:5900
connect to the virtual screen at 10.0.8.48:5901
VNC uses progressive available ports in order to accomodate all the managed screens.
However, at 10.0.8.48:5900 the VNC client simply hangs and nothing happens. At 10.0.8.48:5901 the VNC client opens the virtual screen flawlessly
If I change the /etc/sysconfig/vncservers file as follows:
VNCSERVERS="2:myuser" VNCSERVERARGS="-geometry 800x600"
I can connect to the native screen at 10.0.8.48:5902 and to the virtual screen at 10.0.8.48:5901 without any problem.
that's quite confusing... My aim is to map the native screen to port 5900 and the virtual one to 5901