How To Install and Configure VNC Server in OEL 7 / RHEL 7
The following simple guide helps you to setup the VNC server on RHEL 7 / OEL 7 machines, VNC help to share the desktop with the other machines which have a client installed.
VNC server and client are not installed, by default. You need to setup the vnc server manually.
Prerequisites
Before installing the VNC server, you would need install Gnome desktop using YUM command.
Install VNC Server
VNC server package is available on base operating system repository. So, you can install the tigervnc server and X11 fonts packages using the YUM command.
YUM utility
#yum install -y tigervnc-server xorg-x11-fonts-Type1
Disable the Firewall follow the below link
Add firewall rules to allow the VNC connection. The following rule is set as per the port-offset mentioned in the previous step.
http://www.premieronlinetrainings.com/blog/oracle-rac-dba/How-to-start-%2F-Stop-or-enable-%2F-disable-Firewalld-in-OEL-%2FRHEL-7/101/
Start VNC Server
[root@ebs1229 ~]# vncserver :2
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
New 'ebs1229.premier.com:2 (root)' desktop is ebs1229.premier.com:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ebs1229.premier.com:2.log
[root@ebs1229 ~]#
Access VNC Desktop
Open up a VNC viewer from Windows machine and enter a remote desktop address.
|
You will be asked to enter the password, enter the password that you have created earlier.

|
|
Now you will get the vnc desktop session.

|