LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to configure VNC server after installation in Red Hat Entriprise Linux 6 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-vnc-server-after-installation-in-red-hat-entriprise-linux-6-a-896332/)

coolpraz 08-09-2011 06:35 AM

How to configure VNC server after installation in Red Hat Entriprise Linux 6
 
I sucessfully install vnc server and client in my machine after installation in GUI mode i clicked on service and enable vnc server

when i click on start.
It says that "This service is being refreshed right now"

Then after i use terminal and typed "#service vncserver start"
its display error message
"Starting VNC server: no displays configured [FAILED]"

plz help me with detail infromation of this problem.

mike-ocs 08-25-2011 09:21 AM

I don't know if you did this, but you'll need to edit /etc/sysconfig/vncservers. The whole file is commented out by default. At the bottom of the file you should see the last two lines which look like:
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

At a minimum, you'll need to modify the VNCSERVERS line to specify a display for a user. Replace "myusername" with the username that should have the vncserver running. So for user mike, it might look like:
VNCSERVERS="2:mike"

You don't need to specify anything for the VNCSERVERARGS line, but you could if you wanted to. Keep in mind that for each user specified in VNCSERVERS, you'll need to switch over to that user (su - username) and run the vncpasswd command.

Mike

coolpraz 08-26-2011 07:55 AM

thanks mike


All times are GMT -5. The time now is 07:43 AM.