lkubuntu

A listing of random software, tips, tweaks, hacks, and tutorials I made for Ubuntu

PAM Face Authentication

Yes, you read the title correctly. PAM Face Authentication lets you login with only your webcam and your smile!

Home Page: http://www.pam-face-authentication.org/

The installation is a bit complicated, so we recommend that you copy and paste the commands.
NOTICE: It is not recommended to use GDM. Use KDM instead.

sudo add-apt-repository ppa:antonio.chiurazzi
sudo apt-get update
sudo apt-get install pam-face-authentication
cat << EOF | sudo tee /usr/share/pam-configs/face_authentication /dev/null
Name: face_authentication profile
Default: yes
Priority: 900
Auth-Type: Primary
Auth:
[success=end default=ignore] pam_face_authentication.so enableX
EOF
sudo pam-auth-update --package face_authentication
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
cat << EOF | sudo tee /etc/ld.so.preload /dev/null
/usr/lib/libv4l/v4l1compat.so
EOF

Reboot, then run:

qt-facetrainer

To remove:

cat /etc/pam.d/gnome-screensaver | sed 's:auth sufficient pam_face_authentication\.so enableX::g' | grep -v '^$' > temp; sudo mv temp /etc/pam.d/gnome-screensaver
cat /etc/pam.d/gdm | sed 's:auth sufficient pam_face_authentication\.so enableX::g' | grep -v '^$' > temp; sudo mv temp /etc/pam.d/gdm
sudo pam-auth-update --package face_authentication
sudo rm -f /usr/share/pam-configs/face_authentication
sudo apt-get install ppa-purge
sudo apt-get purge pam-face-authentication
sudo ppa-purge ppa:antonio.chiurazzi

If you have any problems, feel free to leave a comment.

About these ads

19 responses to “PAM Face Authentication

  1. Jorge June 28, 2011 at 9:47 am

    Qt-facetrainer, don’t use it if you’re ugly!

  2. Paul Sladen June 28, 2011 at 12:09 pm

    Congratulations on the packaging. I’d been wanting to see this done for ages. I can confirm that positive recognition works… (now just to test the negative recognition with other people and see if the system can be fooled a la Demolition Man).

    With control-panel and installer integration (for setting up a matching face at account creation time) face recognition for login will make a very interesting contribution to the Free Desktop in the future.

  3. Scott Long June 28, 2011 at 3:25 pm

    I actually tried this awhile back and it totally screwed up my system. Ended up having to re-install Lucid to fix it. Use at your own risk…..this is not perfected.

    • lkjoel June 28, 2011 at 3:34 pm

      Yeah, I have around 8-10 sets, but now it works perfectly.
      So I think that someone must have many sets for it to work.

  4. Antonio Chiurazzi June 30, 2011 at 4:27 am

    I’m the packer of PAM.

    The source code is a bit complicated to install, so I have build the .deb and the repo.

    I can assure you that PAM don’t destroy your system.

    If you want disable/remove it from GDM and gnome-screensaver, is only necessary to paste this commands:

    GDM

    sudo gedit /etc/pam.d/gdm

    and remove

    auth sufficient pam_face_authentication.so enableX

    Gnome-screensaver

    sudo gedit /etc/pam.d/gnome-screensaver

    and remove

    auth sufficient pam_face_authentication.so enableX

    If you want purge all :

    sudo apt-get install ppa-purge

    sudo ppa-purge ppa:antonio.chiurazzi

    There are some bug, but with the 0.4 version many will be fix. ;)

    Enjoy

    • lkjoel June 30, 2011 at 1:28 pm

      Thanks! I updated the post.

      • Antonio Chiurazzi June 30, 2011 at 4:57 pm

        you’re welcome ;)

  5. Lkhagvaa July 25, 2012 at 4:01 am

    I have a problem.

    When executing this command ->> /build$ cmake -D CMAKE_INSTALL_PREFIX=/usr ..
    — Checking GNUCXX version 3/4 to determine OpenCV /opt/net/ path
    CMake Error at cmake/modules/FindOpenCV.cmake:239 (MESSAGE):
    OpenCV required but some headers or libs not found. Please specify it’s
    location with OpenCV_ROOT_DIR env. variable.
    Call Stack (most recent call first):
    CMakeLists.txt:75 (FIND_PACKAGE)

    — Configuring incomplete, errors occurred!

    • lkjoel July 25, 2012 at 4:44 am

      Try this:
      sudo apt-get install libopencv-dev

      • Lkhagvaa July 25, 2012 at 5:51 am

        I already installed this package :(

        • lkjoel July 25, 2012 at 5:53 am

          Could you pastebin the result of:
          sudo dpkg -l | grep -i opencv

      • Lkhagvaa July 25, 2012 at 6:01 am

        http://pastie.org/pastes/4328526/text

      • lkjoel July 25, 2012 at 3:05 pm

        Try this:
        sudo apt-get install libcv-dev
        It’s a slightly different package that should install more development packages.

      • Lkhagvaa July 26, 2012 at 3:37 am

        This command returns message that libcv-dev package already installed

      • lkjoel July 26, 2012 at 11:33 pm

        I’m sorry for not asking this earlier. You are trying to compile from source, right?

      • Lkhagvaa July 27, 2012 at 3:43 am

        Yes, I’m trying from source …
        I tried install this way but this doesn’t work.
        When executing this command >> sudo apt-get install pam-face-authentication
        error >> Reading package lists… Done
        Building dependency tree
        Reading state information… Done
        E: Unable to locate package pam-face-authentication

        • Elangkumaran April 10, 2014 at 10:20 am

          I’m facing the same problem with CMake not being able to find the OpenCV root directory.
          Did you get around to solving this?

  6. ketan d gaikwad February 15, 2013 at 6:03 am

    hello i am installing this on ubuntu 12.04 Lts plz give me procedure to install it because i am facing lots of errors while installing….

    • MiJyn February 15, 2013 at 10:46 pm

      Could you paste the errors? (preferably on a pastebin :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 174 other followers

%d bloggers like this: