Depedency
RHEL7.9, LDAP/NIS, KDE Desktop, VNC
Install KDE Desktop
Configure BASE & EPEL Repository
# yum -y groupinstall "X Window system"
# yum -y groupinstall "KDE"
# init 3
# init 5
Install VNC
# yum -y install xterm
# rpm -ivh VNC-Server-6.2.0-Linux-x64.rpm
Disable firewalld/selinux/NetworkManager
# systemctl stop firewalld
# systemctl disable firewalld
# vim /etc/selinux/config
...
SELINUX=disabled
...
# setenforce 0
# systemctl stop NetworkManager
# systemctl disable NetworkManager
Activation
# /usr/bin/vnclicense -add XXXXX-XXXXX-XXXXX-XXXXX
NIS/LDAP Authentication
Create a custom VNC authentication file
# vim /etc/pam.d/vncserver.custom
auth include password-auth
account include password-auth
session include password-auth
Create a custom VNC profile
# vim /etc/vnc/config.d/common.custom
PamApplicationName=vncserver.custom
Set fonts
# vim /etc/vnc/config
...
-pn
-fp "catalogue:/etc/X11/fontpath.d,built-ins"
Start Service
# systemctl start vncserver-virtuald.service
# systemctl enable vncserver-virtuald.service