Thursday, April 18, 2013

Starting VNC server: no displays configured on CentOS 6

One of the issue I faced when starting VNC for the first time can be found at Unable to launch VNCServer due to fontpath issues on CentOS 6

Another issue I faced when starting up ie
# service vncserver restart 

You might see this error
Starting VNC server: no displays configured  on CentOS 6

To solve the issues, you have to look at the CentOS Howto for VNC (Virtual Networking Computing)
The portion that helped me was
.....
.....
Edit /etc/sysconfig/vncservers, and add the following to the end of the file.

VNCSERVERARGS[1]="-geometry 640x480"
VNCSERVERARGS[2]="-geometry 640x480"
VNCSERVERARGS[3]="-geometry 800x600"
.....
.....

After editing the vncserver, start the vncserver. You should eliminate the error
# service vncserver start