Hello,
If you try to find a tutorial on "How to Install a VNC on CentOS" then you will get a half tutorials and some of tutorials are false.
I have a huge experience in install a VNC because 20+ time I Install a VNC for my clients :(
How to Install VNC on CentOS 5.x?
On SSH enter this command:
1.
yum install vnc-server ```
-
Code:```If Asking for a Permission to Install a VNC Server then Press "y" (without quotas) 3.
yum install vnc ```
Code:```This will take long time(upto 20 - 30 minute - depend on your Server Internet speed) 4.yum groupinstall "GNOME Desktop Environment" ```
Code:```Replace this file /etc/sysconfig/vncservers withnano /etc/sysconfig/vncservers ```
Code:```Next Command: 5.VNCSERVERS="2:root"
VNCSERVERARGS[1]="-geometry 640x480" ```Code:```If this will asking for a enter your VNC Password then enter your root password(do not enter any other password otherwise your VNC not work or show a blank screen) You will get a result like a **New 'hostname.yourdomain.com:1 (root)' desktop is hostname.yourdomain.com:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/hostname.yourdomain.com:1.log** Final Step:vncserver ```
Code:```Uncommant this two lines \#unset SESSION\_MANAGER \#exec /etc/X11/xinit/xinitrc and change last line with this linenano /root/.vnc/xstartup ```
Code:```Enter this commandexec gnome-session & ```
Code:```now again enter this commandvncserver -kill :1 ```
Code:```This will show a: **New 'hostname.yourdomain.com:1 (root)' desktop is hostname.yourdomain.com:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/hostname.yourdomain.com:1.log** Done.... now you can access your VNC using your VPS Main IP Address: example: **x.x.xx.x:1** Sorry for my bad English but If you face any problem then I can help you.. :) VPS Hosting CentOS VPSVNC Installationvncserver ```