


Replace with your real user, in my case, i replaced with a user called raj. # Clean any existing files in /tmp/.X11-unix environmentĮxecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'ĮxecStart=/sbin/runuser -l -c "/usr/bin/vncserver %i"ĮxecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' vi the end of the file, you will find the lines like below. You can connect the VNC server by specifying ipaddress:sub-port ( 192.168.2.109:5 or 192.168.2.109:5905) cp the copied file. While copying, you can mention which port it should listen.īy default VNC server listens on 5900, but if you setup port-offset for VNC we can run a service on a sub-port of the default port 5900.įor example, if we mention port 5, the desktop will be accessible on 5905.
#Tigervnc vnc install#
yum install -y tigervnc-server xorg-x11-fonts-Type1 Configure VNC ServerĬopy the VNC server configuration file to /etc/systemd/system/ for configuring the system service. So, you can install the tigervnc server and X11 fonts packages using the YUM command. VNC server package is available on base operating system repository. READ: Install Gnome Desktop on CentOS 7 / RHEL 7 Install VNC Server Prerequisitesīefore installing the VNC server, you would need install Gnome desktop using YUM command. You need to setup the vnc server manually. VNC server and client are not installed, by default.

The following simple guide helps you to setup the VNC server on RHEL 7 / CentOS 7 machines, VNC help to share the desktop with the other machines which have a client installed.
