This post describes how to access VNC server which is already installed and configured on a CentOS/RHEL 6 machine:
- vnc-server for CentOS/RHEL 6
- tigervnc-server for CentOS/RHEL 6
Before starting, it is assumed that the access the VNC console via vncviewer is possible:
# vncviewer [Server IP]:5901
But the below message is received when tried to access using URL: http://[Server IP]:5901 over web broswer:
RFB 003.008
VNC for HTTP access use a port number other than the default VNC port begin from 5900. To access VNC using HTTP follow the steps outlined below:
1. For CentOS/RHEL 6, make sure tigervnc-server-applet is installed:
# rpm -q tigervnc-server-applet tigervnc-server-applet-1.0.90-0.17.20110314svn4359.el6.noarch
Use this command to install it if not done yet:
# yum install tigervnc-server-applet
2. Access VNC from the URL http://[Server IP]:[5800 + VNC Number]. For e.g. http://192.168.1.2:5801.
3. It is possible to access using vncviewer at the same time.
# vncviewer [Server IP]:[5900 + VNC Number]
For Example:
# vncviewer 192.168.1.2:5901