Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to set up a VNC server as per the directions in the following guide: http://help.godaddy.com/article/6012?locale=en#access

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: http://ubuntuforums.org/showpost.php?p=9708808&postcount=8

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: http://www.linuxforums.org/forum/applications/125293-vnc-server-failed-start.html

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

1 Answer 1

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

 
discard

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.