Now you can log into your Ubuntu with your webcam using this facial recognition login .. :)
Installation
edit /etc/pam.d/gdm and remove this line:
then, edit /etc/pam.d/gnome-screensaver and remove this line:
then, run this code in your terminal and wait for the system to get restart:
Installation
Open a terminal (Applications > Accessories > Terminal) and enter in the following two lines carefully.
sudo add-apt-repository ppa:antonio.chiurazzi/ppa
sudo apt-get update && sudo apt-get install pam-face-authentication
Now run the ‘Face Trainer’ application from the Applications > Other menu.
Now to add the face authentication module to GDM, Ubuntu’s default login-manager:
sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/gdm
sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/gnome-screensaver
Depending on your webcam model/make you may need to install and add libv4l to preload:
- Create the file /etc/ld.so.preload
- Paste in the path to the v411compat.so file commonly found in /usr/lib/libv4l (create it if not found)
Now everything is done, just restart or logoff your system and have fun.. :)
Uninstall
In case you want to uninstall this service, just follow these steps-
edit /etc/pam.d/gdm and remove this line:
auth sufficient pam_face_authentication.so enableX
then, edit /etc/pam.d/gnome-screensaver and remove this line:
auth sufficient pam_face_authentication.so enableX
then, run this code in your terminal and wait for the system to get restart:
sudo /etc/init.d/gdm restart
The service has already been discontinued, but you need to remove the useless support files from your system, so when the system resumes, just remove the FACE TRAINER application
then, run the following code in your terminal:
sudo rm /etc/ld.so.preload
then, edit v411compat.so file commonly found in /usr/lib/libv4l, and remove the path:
/etc/ld.so.preload
Now you are done, The face recognition has been completely removed from your system..
No comments:
Post a Comment