Start VNC Daemons for both service templates and add firewall rules VNC Viewer or VNC Clientĭownload VNC viewer for your OS here and install it.Īfter successful installation, Open VNC Viewer and provide the IP address of the VNC server and connection/service id separated by : like following Now we will add firewall rules to allow traffice from 5904/tcp and 5905/tcpįirewall-cmd -add-port=5904/tcp -permanentįirewall-cmd -add-port=5905/tcp -permanent Systemctl start start enable enable Firewall Configuration For Multiple VNC Sessions Reload daemon, start and enable services as shown below. Vi to each user and assign vnc duke]# su - ~]$ ~]$ su - ~]$ vncpasswdĬhange User names inside files and login to user to assign vnc password We need to copy the configuration template file for each user separately.Ĭp each file using vim and substitute token inside each file with appropriate user, that is already available on the system. VNC sessions for multiple users can be configured on same server. VNC Server Configuration for Multiple Users Issue following command to add the rule for all ports that are currently listening on VNC service (in our case it is 5901/tcp only).įirewall-cmd -add-port=5901/tcp -permanent Multiple VNC sessions will have incremental port numbers like 5901/TCP, 5902/TCP, 5903 and so on. In order to allow external VNC clients to connect to the VNC server, we will have to configure a firewall rule that will allow VNC port traffic to pass through the firewall. Firewall if enabled, will block incoming traffic on that port. VNC allocates TCP port numbers starting from 5901. Systemctl start enable Configuration For Single VNC Session Switch back to root user and issue the following command to reload the configuration changes, start the service and enable it to start on every reboot. The password must at least be 6 characters long.įor this we must switch user from root to the user defined in vnc configuration file (ie duke]# su - ~]$ vncpasswd Now, its time to set the password for the user defined in the configuration file. Update the user on which remote sessions are allowed You have to put any user available on your system. In my case it is user “duke”, already created on the system. Move to the end of the file on line number 41 change with the user on which remote connection is intended. We need to copy a configuration file named To create this file, copy the file as root The VNC server can be configured to start a display for one or more users accounts which are already available on the system. Install VNC Server Configuring VNC Server On the download prompt press “y” to continue install process. Open the terminal, login as root and issue following command. It transmits the keyboard and mouse input from one computer to another, relaying the graphical-screen updates, over a network. It uses the Remote Frame Buffer protocol to remotely control another computer. It works on the client-server principle: a server shares its output (vncserver) and a client (vncviewer) connects to the server. TigerVNC (Tiger Virtual Network Computing) is a system for graphical desktop sharing which allows you to remotely control other computers. How to Install and Configure VNC Server in CentOS 7 VNC Server
0 Comments
Leave a Reply. |