Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up a VNC server as per the directions in the following guide:

Some background:

The first problem I ran into was that there was no ~/.vnc/xstartup file. I solved that issue by running the vncstartup as per these instructions:

The next problem I ran into was that I could no longer start or stop the service with /sbin/service vncserver start. I was receiving the error:

Starting VNC server: 2:username [FAILED]

The solution that I found was that I was supposed to run vncstartup :2 while logged in as username. This is the link with that info:

I've now logged into username and attempted to run vncserver :2 but it is giving me this error:

vncserver: Could not create /var/www/.vnc.

I had created username as a web admin account that I originally set up to log in with FTP - thus the /var/www directory.

Finally, the question(s) - should I be creating an account specifically for VNC separate from the FTP log in account? If so, what directory or settings should this user have so that I can run vncserver :2 and finally log in?

share|improve this question
up vote 0 down vote accepted

I tend to prefer running as a separate user from the web server for normal operation. When using VNC or any kind of GUI, it's going to expect that your home directory is writable. You'll need to create a user with a writable home directory to run VNC. Once that's doable, you should be able to start VNC manually or through a service.

share|improve this answer
I've decided to abandon VNC for the time being, so I can't test out what you mentioned but I appreciate the answer. – Nick Apr 1 '11 at 6:49

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.