我正在使用 Ubuntu 11.10。我去以下网址下载了Pam Face Authentication软件, 并下载了natty narhwall的版本。
我使用以下命令安装了该软件:
sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libhighgui2.1 libhighgui-dev libqt4-dev libpam0g-dev checkinstall
cd /tmp && wget http://pam-face-authentication.googlecode.com/files/pam-face-authentication-0.3.tar.gz
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
Run Code Online (Sandbox Code Playgroud)
安装了软件,我可以运行 qt-facetrainer。但问题是当我重新启动系统时,我看到默认登录屏幕出现在我应该输入密码登录的地方。网络摄像头根本没有启动。而且我不能用我的脸登录。这意味着我认为 pam 人脸身份验证程序根本没有启动。
请让我知道如何使用 pam face 身份验证程序使用我的面孔登录。
安装PAM人脸认证
首先打开终端,然后执行以下命令:
sudo add-apt-repository ppa:antonio.chiurazzi
sudo apt-get update
sudo apt-get install pam-face-authentication
Run Code Online (Sandbox Code Playgroud)
上面的命令将用于 pam-face-authentication 的 Ubuntu 存储库添加到您的软件包源列表中,然后实际安装该插件。
配置
现在需要向系统学习一些人脸图形。因此,从开始菜单启动 Facetrainer 应用程序并按照指示进行操作。
为了能够使用人脸验证登录,必须首先启用该模块。因此,您必须在终端中执行以下命令(立即):
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
Run Code Online (Sandbox Code Playgroud)
通过此操作,将创建文件/usr/share/pam-configs/face_authentication并包含插件信息。
使用下一个命令,您可以启用或禁用该插件:
sudo pam-auth-update --package face_authentication
| 归档时间: |
|
| 查看次数: |
6047 次 |
| 最近记录: |