After receiving your Desktop/VNC VPS or installing a Desktop/VNC template, there are a few steps necessary to setup the VNC server for the first time. Access your VPS via SSH, and run the following commands:
# tightvncserver -geometry 1280x1024 :1
(You may replace "1280x1024" with your desired resolution.)
If you receive an error about a file called .x1-lock, remove the file and retry the above command:
# rm -rf /tmp/.X1-lock
# tightvncserver -geometry 1280x1024 :1
The VNC server will now be running on port 5901 (abbreviated to 1), with any additional VNC desktops you start running on port 5902 (abbreviated to 2), etc. To connect to the desktop, open your desktop VNC client and enter your main IP address, port 5901 or 1, and the default password "host2==".
You can change the default VNC password by running this command:
# vncpasswd
To stop a VNC desktop:
# tightvncserver -kill :1