How to Setup built-in Fingerprint reader authentication with PAM on any Linux

The aim of this short tutorial is to help you setup and Configure built-in Fingerprint Reader Login authentication on a Linux System. I tested this on My Arch Linux 64-bit Version running on HP Envy 15.
Previously I talked about

There are few packages that you’ll need to install from source to get Fingerprint reader to work. I cannot guarantee that this will work on your machine since I used it on HP only; just try it out.
This article will also explain how to use regular password for backup login method, we wouldn’t use Fingerprint scanner as main way of logging in.

Prerequisite

You must have gcc installed

git

Fingerprint scanner

Installations

> Install all of the following Packages.
If you’re running Arch Linux, you can install fprintd and imagemagick

$ sudo pacman -S fprintd imagemagick

Install Libfprint
It is an open source software library designed to make it easy for application developers to add support for consumer fingerprint readers to their software.

Install fprint_demo
It is a simple GTK+ application to demonstrate and test libfprint’s capabilities. It is written in C.It provides access to many of the features offered by the backing library, libfprint.