HOWTO: Install VNC server on RHEL5
Install a desktop environment and the VNC server:
yum groupinstall "GNOME Desktop Environment" yum install vnc-server
Change to the user who will be owning the session and run `vncserver' to set up their password and create the default files
su kale - vncserver
Edit the xstartup file for that user to point to GNOME:
vi /home/kale/.vnc/xstartup # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc
Kill that VNC session
killall Xvnc
Edit vncserver's config file
vi /etc/sysconfig/vncservers VNCSERVERS="2:kale" VNCSERVERARGS[2]="-geometry 800x600 -nohttpd"
Start VNC
service vncserver start
And connect! Since it's specified in /etc/sysconfig/vncservers that kale's session is on display 2 (the 2:kale bit), the port for this connection is 5902. Connect to this port and enter in the password you specified earlier and voila!