How To install VNC server in Centos 5/6

INSTALL VNC server
# rpm -q vnc vnc-server
# vi /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# URL:http://www.uk.research.att.com/vnc/sshvnc.html

# VNCSERVERS="1:myusername"
Sample : VNCSERVERS="1:user01"

# vncpasswd
# vi xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
 unset SESSION_MANAGER 
exec /etc/X11/xinit/xinitrc 
                                                                                                    
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &


# /sbin/service vncserver restart
# chkconfig vncserver on

REMOTE   ip:port
sample: 27.254.46.1xx:590
http://fedoranews.org/tchung/vnc/04.shtml

EDIT REMOTE PORT
# vi /usr/bin/vncserver

Find line that read as follows

Code:
$vncPort = 5900 + $displayNumber;
save
# /sbin/service vncserver restart