Here is a short howto on configuring VNC server for Oracle Linux 6.
1. Check if the server is connected to Oracle Linux yum server Or ULN to avoid the dependency issue.
# yum repolist
2. Install the vnc server RPMs:
# yum install vnc*
This installs latest version of RPMs: tigervnc-server-module, tigervnc and tigervnc-server.
# yum install tigervnc-server-module tigervnc tigervnc-server
3. Edit the “/etc/sysconfig/vncservers” file to configure the required displays. The following entries enable VNC for display numbers “:2” and “:3“. Notice multiple “display:user” pairs are defined on a single line, but the arguments for each display are defined separately.
# vi /etc/sysconfig/vncservers VNCSERVERS="2:root 3:oracle" VNCSERVERARGS[2]="-geometry 1280x1024 -nolisten tcp -localhost" VNCSERVERARGS[3]="-geometry 1280x1024"
4. Set the VNC password for any users defined in the “/etc/sysconfig/vncservers” file.
# vncpasswd Password: Verify:
5. Enable the “vncserver” service for autostart and start the service :
# chkconfig vncserver on # service vncserver start
6. Run commandto start or stop the vncserver :
# vncserver
Install vnc viewer in client machine then try to access the vncserver.