How to install Graphical User Interface (GUI) on CentOS 7
Step One
Connect to your server as root via SSH.
Create a new user for your GUI login and set a password:
useradd -m NewUserName && passwd NewUserName
Now you can install the KDE GUI with the following command (the server will fetch updates, install the GUI, and reboot automatically):
yum update -y && yum -y groupinstall "KDE Plasma Workspaces" && ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target && init 6
As alternative the following command for an installation of the GNOME GUI (the server will update and reboot automatically):
yum update -y && yum -y groupinstall "GNOME Desktop" "Graphical Administration Tools" && ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target && init 6
You can connect to your VPS via VNC or KVM in case of a dedicated server and login to your new GUI.