How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux 7.
- Mahammad Rafi
- Apr 8, 2019
- 1 min read
TigerVNC (Tiger Virtual Network Computing) is a system for graphical desktop sharing which allows you to remotely control other computers.
Note : Unlike in previous Red Hat Enterprise Linux distributions, TigerVNC in Red Hat Enterprise Linux 7 uses the systemd system management daemon for its configuration. The /etc/sysconfig/vncserver configuration file has been replaced by /etc/systemd/system/vncserver@.service.
VNC Server
vncserver is a utility which starts a VNC (Virtual Network Computing) desktop. It runs Xvnc with appropriate options and starts a window manager on the VNC desktop. vncserver allows users to run separate sessions in parallel on a machine which can then be accessed by any number of clients from anywhere.
- Installing VNC Server
To install the TigerVNC server, issue the following command as root:
[root@net7 ~]# yum install tigervnc-server
Loaded plugins: langpacks, product-id
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.2.80-0.30.20130314svn5065.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
tigervnc-server x86_64 1.2.80-0.30.20130314svn5065.el7 base 199 k
Transaction Summary
=======================================================================
Install 1 Package
Total download size: 199 k
Installed size: 489 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : tigervnc-server-1.2.80-0.30.20130314svn5065.el7.x86_64
Verifying : tigervnc-server-1.2.80-0.30.20130314svn5065.el7.x86_64
Installed:
tigervnc-server.x86_64 0:1.2.80-0.30.20130314svn5065.el7
Complete!
[root@net7 ~]#

Configuring VNC Server
The VNC server can be configured to start a display for one or more users, provided that accounts for the users exist on the system, with optional parameters such as for display settings, network address and port, and security settings.
Configuring a VNC Display for a Single User
A configuration file named /etc/systemd/system/vncserver@.service is required. To create this file, copy the /usr/lib/systemd/system/vncserver@.service file as root:
~]# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
Comments