注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Q超越兔子的蜗牛O--逸云沙鸥Linux

飘飘何所似,天地一沙鸥;落霞与孤鹜齐飞,秋水共长天一色~~

 
 
 

日志

 
 

[转] Ubuntu 10.10 利用 pam-face-authentication 实现人脸识别 登录  

2010-11-17 01:44:37|  分类: Ubuntu笔记 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

官网地址: http://pam-face-authentication.org/wiki/index.php?title=Installation#Ubuntu

(K)Ubuntu

(K)Ubuntu 10.04

Installation Instructions

Pre-requisites

Some dependencies need to be installed for PFA. To do so, open a terminal and paste this command:

sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libhighgui4 libhighgui-dev libqt4-dev libpam0g-dev checkinstall 

We are also installing checkinstall - program that will create a package out of the installed files as to not mess up the computer and make it easy to uninstall the whole thing.

Installation

To install PFA itself, you need to execute the following commands in the terminal.

cd /tmp wget http://pam-face-authentication.googlecode.com/files/pam-face-authentication-0.3.tar.gz tar zxf pam-face-authentication-0.3.tar.gz && cd pam-face-authentication-* mkdir build && cd build cmake -D CMAKE_INSTALL_PREFIX=/usr .. make sudo checkinstall --pkgname=pam-authentication-face-auth 

Checkinstall will ask you about few things, you can easily just say Yes and press Enter few times. It will install the package automatically.

Configuration

Now it's necessary to learn some face figures to the system. Therefore execute

qt-facetrainer 

from command line or startup menu. Then follow the instructions on the screen and put up a pretty smile. Note: Don't execute qt-facetrainer as root!

GDM and KDE

For being able to login using face authentication, the module must be enabled first. There are two ways to do this and you might choose either Option A or B

Option A: Execute these commands to enable face authentication in Ubuntu's login manager:

sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/su sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/sudo 

If you are using Ubuntu (GDM), issue the following commands:

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 

When using Kubuntu (KDE), execute the following:

sudo sed -i '1i auth sufficient pam_face_authentication.so enableX' /etc/pam.d/kde 

Option B: The second way is to create a PAM profile first and then enable it. So, in terminal you have to execute the following (at once):

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 

Weblinks

  评论这张
 
阅读(1126)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017