Setup of VNC Server on RHEL 7/CentOS 7 is very similar to that of RHEL 6/CentOS 6. The biggest difference is probably the firewall management as those tools have been replaced with new utilities in 7.x. Here is a quick
bash command sample to get you started with VNC on this RHEL release. Important commands include
yum install tigervnc-server,
firewall-cmd --add-port=5901-5910/tcp --permanent,
vncserver -list, and
vncserver -kill :# (substitute your ACTUAL SESSION NUMBER for
Please see my previous VNC on RHEL 6 article linked above for hints on connecting from a VNC client. If you’re on a private LAN or VPN, you can connect directly, BUT if you’re trying to use VNC from the Internet, you MUST encrypt your session (likely through SSH port forwarding). You should never use un-encrypted VNC over the Internet and you should not allow the VNC ports to be accessed from public IP’s (usually this would be blocked at your router or border firewall, but you can also block with the RHEL firewall as well). When in doubt about system security, you should probably keep the VNC ports closed and require all VNC use over SSH port forwarding (difficult for the users).