

# (ExecStart=/usr/sbin/runuser -l -c "/usr/bin/vncserver %i" Leave the remaining lines of the file unmodified After editing your file should look like below file # The vncserver service unit file Now look for the section and replace with vncuser and add the -geometry 1280×1024 clause at the end of the ExecStart parameter. Now let’s edit the file to create separate service for our client. ~]# cp /lib/systemd/system/ /etc/systemd/system/ :4.service So, let’s make a copy of /lib/systemd/system/ file to create our user service file using below command. So, now we will start a new instance of VNC server for a user. When you are using VNC then every user connecting via VNC will start a new service or instance. Now we have successfully installed VNC server GNOME desktop installed.
#Tigervnc server centos 6 install#
So, run the following command to install ~]# yum install tigervnc-server TigerVNC is the open source software and we will use the same that will allow us to make a remote desktop connection. As shown in above image Step 3: Install TigerVNC Server You may have to press C two or more times. Note: if you already have a GUI installed on your system then you may skip this step Troubleshooting(Sometimes Only)Īfter reboot, if your Server Stuck at below given screen so follow the steps given below This can take a few minutes and Once the package group is installed, reboot the server using below command ~]# reboot To get connect with a remotely we need a GNOME or GUI install on the server and a per our scenario we have server with minimal install so we must run the following command to install GNOME ~]# yum groupinstall "GNOME Desktop" Passwd: all authentication tokens updated successfully. Run the below command to create a user ~]# useradd -c "User vncuser - for VNC Access" vncuser This user account will be used for connecting our CentOS servers remotely by VNC clients. Note: If you are a SUDO user then prefix every command with sudo, like #sudo ifconfig So Let’s Start Step 1: Create A User Accountįirst, we need to create a user account.
