To setup your server to run a full desktop VNC session first we need to install the required packages.
yum groupinstall "GNOME Desktop";yum install tigervnc-server xorg-x11-fonts-Type1
Once you have the software installed copy the default configuration to the new service (which will run on port 5900 (:0).
cp /lib/systemd/system/[email protected] /etc/systemd/system/[email protected]:0.service
Now edit the new file
vi /etc/systemd/system/[email protected]:0.service
And update the 2 occurances of <USER> with your username.
If you are still running the "firewall" service you can add allow inbound connections to the VNC service by using the following commands.
firewall-cmd --permanent --zone=public --add-port=5900/tcp
Su to the user and set a VNC password
su - <USER>
exit # exit back to root user
Configure the service to start the VNC service on boot.
systemctl start [email protected]:0.service
systemctl enable [email protected]:0.service
You should now be able to connect to your new VNC service running as your user by using just the IP address in your VNC client.