Installing VNC on DBCS Server Oracle Cloud OCI


I have a DBCS Server on OCI. I need to install the VNC viewer on it so that I can use few GUI setups. I am going to share the steps in this post.


1) Connect to the DBCS server as root

[root@foadbserver ~]# cat /etc/os-release 
NAME="Oracle Linux Server"
VERSION="7.9"


2) Install the libraries for VNC

yum install tigervnc-server -y

yum install xterm xsetroot xclock -y


3) Start VNC Services 

[root@foadbserver ~]# vncserver

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth:  file /root/.Xauthority does not exist

New 'foadbserver:1 (root)' desktop is foadbserver:1

Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/foadbserver:1.log

4) Allow IP tables connectivity

iptables-save > /tmp/iptables.orig
iptables -I INPUT  -p tcp -m state --state NEW -m tcp --dport 5900:5904 -j ACCEPT -m comment --comment "Required for VNC viewer"

Save the updated file to 

iptables-save

Check IPtables status

service iptables status


4) Try to connect using VNC Viewer and validate


Using my public IP address of DBCS











If you like please follow and comment