Apache Google 2FA

#Install mod_authn_google for Apache2. 
#Unfortunately I this module is unavailable within Ubuntu's #
#repository, but we can get it from this repository. 
#The steps are: (1) go to your Downloads, 
#(2) download the package dba-apa24-mod_authn_google-r22... .rpm, 
#(3) extract mod_authn_google.so, 
#(4) place the file in /usr/lib/apache2/modules/, 
#(5) grant appropriate permissions, 
#(6) Create module load file: 

cd $HOME/Downloads
wget http://download.opensuse.org/repositories/home:/csbuild:/DBA/RedHat_RHEL-7/x86_64/dba-apa24-mod_authn_google-r22-1.1.x86_64.rpm

rpm2cpio dba-apa24-mod_authn_google-r22-1.1.x86_64.rpm | cpio -iv --to-stdout ./DBA/apache24/WWW/2.4.x/modules/mod_authn_google-r22.so > mod_authn_google.so

sudo mv mod_authn_google.so /usr/lib/apache2/modules/
sudo chown root:root /usr/lib/apache2/modules/mod_authn_google.so
sudo chmod g-w /usr/lib/apache2/modules/mod_authn_google.so

echo "LoadModule authn_google_module /usr/lib/apache2/modules/mod_authn_google.so" | sudo tee /etc/apache2/mods-available/authn_google.load

sudo a2enmod authn_google
D3signa