This post describes how to access VNC server which is already installed and configured on a CentOS/RHEL server:
- vnc-server for CentOS/RHEL 5
- 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
The Steps
VNC for HTTP access uses a port number other than the default VNC ports that 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
2. Use below command to install it if not done yet:
# yum install tigervnc-server-applet
3. Access VNC from the URL http://[Server IP]:[5800 + VNC Number]. For example:
http://192.168.1.2:5801
4. 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