How To Install totpcgi on Fedora 34

totpcgi is A centralized totp solution based on google-authenticator

Introduction

In this tutorial we learn how to install totpcgi on Fedora 34.

What is totpcgi

A CGI/FCGI application to centralize google-authenticator deployments.

We can use yum or dnf to install totpcgi on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install totpcgi.

Install totpcgi on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install totpcgi using dnf by running the following command:

sudo dnf -y install totpcgi

Install totpcgi on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install totpcgi using yum by running the following command:

sudo yum -y install totpcgi

How To Uninstall totpcgi on Fedora 34

To uninstall only the totpcgi package we can use the following command:

sudo dnf remove totpcgi

totpcgi Package Contents on Fedora 34

/etc/httpd/conf.d/totpcgi.conf
/etc/totpcgi/totpcgi.conf
/usr/share/doc/totpcgi
/usr/share/doc/totpcgi/INSTALL.rst
/usr/share/doc/totpcgi/README.rst
/usr/share/doc/totpcgi/contrib
/usr/share/doc/totpcgi/contrib/freeradius
/usr/share/doc/totpcgi/contrib/freeradius/RADIUS-usage.txt
/usr/share/doc/totpcgi/contrib/freeradius/totpcgi-handler.pl
/usr/share/doc/totpcgi/contrib/freeradius/totpcgi-handler.yaml
/usr/share/doc/totpcgi/contrib/gitolite
/usr/share/doc/totpcgi/contrib/gitolite/README.rst
/usr/share/doc/totpcgi/contrib/gitolite/command.py
/usr/share/doc/totpcgi/contrib/gitolite/vref.py
/usr/share/doc/totpcgi/contrib/mysql.sql
/usr/share/doc/totpcgi/contrib/pam_url.conf
/usr/share/doc/totpcgi/contrib/postgres.sql
/usr/share/doc/totpcgi/contrib/puppet
/usr/share/doc/totpcgi/contrib/puppet/quickstart.rst
/usr/share/doc/totpcgi/contrib/puppet/totpcgi
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/files
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/files/httpd-provisioning.conf
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/files/httpd-ssl.conf
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/files/provisioning.conf
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/files/sudo.pam
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/files/totpcgi.conf
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/manifests
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/manifests/client.pp
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/manifests/server.pp
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/templates
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/templates/httpd-totpcgi.conf.erb
/usr/share/doc/totpcgi/contrib/puppet/totpcgi/templates/pam_url.conf.erb
/usr/share/doc/totpcgi/contrib/sshd.pam
/usr/share/doc/totpcgi/contrib/sudo.pam
/usr/share/doc/totpcgi/contrib/totpprov.1
/usr/share/doc/totpcgi/contrib/totpprov.py
/usr/share/doc/totpcgi/contrib/totpprov.rst
/usr/share/doc/totpcgi/contrib/vhost-totpcgi-provisioning.conf
/usr/share/doc/totpcgi/contrib/vhost-totpcgi.conf
/usr/share/doc/totpcgi/totp.fcgi
/var/lib/totpcgi
/var/www/totpcgi
/var/www/totpcgi/index.cgi

References

Summary

In this tutorial we learn how to install totpcgi on Fedora 34 using yum and dnf.