Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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[1]="-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[2]="-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

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.