top of page

How to configure Virtual Network Computing (VNC) in Red Hat Enterprise Linux 7.

  • Writer: Mahammad Rafi
    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


adult-apple-device-business-340152.jpg

Linux .....because life is too short for reboots

I am an avid fan of Linux and open source enthusiast so I make a  decision to meet people through Technical Live Blogger. I have been enjoying Linux for the past six years. Back in 2013, I stumbled upon an article about the Ubuntu live CD. That moment changed my life. I know that statements like that belong to those exaggerators but it is actually true. Within 24 hours of reading the article, I had turned my own desktop in Ubuntu one – a platform where I have explored many Linux things ever since. If you just want to say hello, do say "Hello" at md.rafi1615@gmail.com or visit the virtualworld.

  • LinkedIn Social Icon
  • Twitter Social Icon
  • Instagram Social Icon
  • Facebook Social Icon

© 2023 by Extreme Blog. Proudly created by Mahammad Rafi

bottom of page