How to configure vnc on RHEL 6.1?

i am first time using RHEL 6.1

i have to configure vnc on this server to access desktop remotely for this server.

i installed these rpm :

rpm -ivh VNC-Server-5.0.3-Linux-x64.rpm
rpm -ivh VNC-Viewer-5.0.3-Linux-x64.rpm

there is no directory /etc/sysconfig/vncserver in RHEL 6 as it was in RHEL 5.

please tell me how to proceed to configure vnc on this server ?

You would have to list the contents of those RPM's to see where it has placed the configuration files.

I'm not familiar with the packages you've installed, as I only tend to use TigerVNC, for which I can tell you the configuration file is /etc/sysconfig/vncservers , but for the package you've installed, you need to list its contents, as I said.

i dont know how to find list of RPM contents.

is there any difference in vnc , tigervnc , real vnc ?

If you don't know how something in a program works, the manual page is usually a good place to start learning :wink:

Features may vary between VNC servers, and they may be suited to specific tasks, but they all do essentially the same thing.

i know man command in linux .

but man .... what ??

man rpm. We were talking about RPM!

So, for example:

# rpm -ql tigervnc-server
/etc/rc.d/init.d/vncserver
/etc/sysconfig/vncservers
/usr/bin/Xvnc
/usr/bin/vncconfig
/usr/bin/vncpasswd
/usr/bin/vncserver
/usr/bin/x0vncserver
/usr/share/man/man1/Xvnc.1.gz
/usr/share/man/man1/vncconfig.1.gz
/usr/share/man/man1/vncpasswd.1.gz
/usr/share/man/man1/vncserver.1.gz
/usr/share/man/man1/x0vncserver.1.gz

rpm -ql vnc*
package vnc-server-4.1.2-14.el5_6.6.x86_64.rpm is not installed