How to Install Vlock on CentOS 7

To Install Vlock on CentOS 7

Vlock is a utility used for locking one or several user virtual console sessions in Linux. It is widely applicable in case of a multi user system, since it allows users to lock their own sessions while other users can still access the same system via other virtual consoles. If needed, the entire console can also be locked down using Vlock. You can also disable switching of virtual console. It is very simple to install Vlock, and in this tutorial, you are going to learn about the method to install Vlock on CentOS 7.


Installing Vlock

Before you begin with the installation process, you ought to update your system, that can be done using the following command.

[root@linuxhelp1 ~]#     yum update

Once updated, you can install the package by deploying the following command.

[root@linuxhelp1 ~]# yum install vlock*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.dhakacom.com
 * epel: ftp.riken.jp
 * extras: mirror.dhakacom.com
 * updates: mirror.dhakacom.com
* webtatic: sp.repo.webtatic.com
Resolving Dependencies
-->  Running transaction check
--->  Package vlock.i386 0:1.3-23 set to be updated
-->  Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================
 Package                   Arch                     Version                       Repository             Size
==============================================================================================================
Installing:
 vlock                     i386                     1.3-23                        a                      11 k
Transaction Summary
==============================================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 11 k
Is this ok [y/N]: y
.
.
.
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : vlock                                                                                  1/1
Installed:
  vlock.i386 0:1.3-23
Complete!

Vlock has been successfully installed. You can check it by locking the terminal which you are currently working on. Use the following command for the same purpose.
After typing command it will ask you root (admin) password .

[root@linuxhelp1 ~]# vlock -c
This tty (pts/0) is not a virtual console.

The pts/0 is now locked by root.
Password: 


With this the installation and checking process is complete. With Vlock, you can safely work on your console without the dread of it getting disturbed by another user when working on a multi user system.

Tag : CentOS
FAQ
Q
How does the insert stay in the V-Lock base? Will it fall or bounce out with the movement of my boat?
A
For most applications the V-Lock design and gravity will keep the insert in the base. In cases where an upward force might apply the V-Lock includes a spring loaded pull-pin which latches the insert to the base.
Q
How do I attach the V-Lock insert to my accessory?
A
It depends on the accessory but basically the same way you would have attached the accessory directly to your boat without the V-Lock.
Q
What is the V-Lock made of? How well does it tolerate the water, sun and temperature exposure typical of what my boat sees?
A
The original V-Lock base is made of powder coated aluminum. It holds up very well in a typical boating environment. Like anything metal on your boat it is recommended that salt water be rinsed off to minimize oxidation.
Q
How does the V-Lock base attach to my boat?
A
The V-Lock base can be attached to the boat with screws or be bolted through depending on your boat and the location where you wish to mount them. Some customers have has success with various toggle bolts and well nuts.
Q
What are the dimensions of the V-Lock?
A
The V-Lock base is 4" across at that top, 3 1/2" high and 3/4" thick.
The surface of the standard insert to which you attach your application is 4" square. The large inserts have an 8" mounting surface.