thinkpad x1 carbon 5th 2017 ubuntu20.04安装指纹登录

操作完整记录

为解决指纹识别问题,这几年先后尝试了网上不少方法,最近终于有所突破了(安全性未知)。

当前环境:Ubuntu 20.04,GNOME 3.36.8

一点点准备工作:

通过lsusb检测到指纹识别设备:

chunk@chunk-ThinkPad-X1-Carbon-5th:~$ lsusb 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 138a:0097 Validity Sensors, Inc. 
Bus 001 Device 003: ID 13d3:5682 IMC Networks Integrated Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Validity Sensors 这个是指纹识别设备。然后可以进行下面的操作了!!!

chunk@chunk-ThinkPad-X1-Carbon-5th:~$ sudo apt remove fprintd
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libfprint-2-2 libgstreamer-plugins-bad1.0-0 libva-wayland2
使用'sudo apt autoremove'来卸载它(它们)。
下列软件包将被【卸载】:
  fprintd libpam-fprintd
升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 0 个软件包未被升级。
解压缩后将会空出 727 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 192157 个文件和目录。)
正在卸载 libpam-fprintd:amd64 (1.90.9-1~ubuntu20.04.1) ...
正在卸载 fprintd (1.90.9-1~ubuntu20.04.1) ...
正在处理用于 dbus (1.12.16-2ubuntu2.1) 的触发器 ...
正在处理用于 man-db (2.9.1-1) 的触发器 ...
chunk@chunk-ThinkPad-X1-Carbon-5th:~$ sudo add-apt-repository ppa:uunicorn/open-fprintd
 This PPA contains experimental software. Please use at your own risk.
 更多信息: https://launchpad.net/~uunicorn/+archive/ubuntu/open-fprintd
按 [ENTER] 继续或 Ctrl-c 取消安装。

命中:1 http://cn.archive.ubuntu.com/ubuntu focal InRelease       
获取:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
获取:3 http://ppa.launchpad.net/uunicorn/open-fprintd/ubuntu focal InRelease [18.0 kB]
获取:4 http://cn.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]              
获取:5 http://ppa.launchpad.net/uunicorn/open-fprintd/ubuntu focal/main i386 Packages [1,096 B]   
获取:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [866 kB]                                                       
获取:7 http://cn.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]          
获取:8 http://ppa.launchpad.net/uunicorn/open-fprintd/ubuntu focal/main amd64 Packages [1,104 B]
获取:9 http://ppa.launchpad.net/uunicorn/open-fprintd/ubuntu focal/main Translation-en [644 B]                                           
获取:10 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,213 kB]                          
获取:11 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [282 kB]
获取:12 http://cn.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [535 kB]                                                                
获取:13 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [27.6 kB]                                                        
获取:14 http://cn.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [259 kB]                                                               
获取:15 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [8,684 B]                                                         
获取:16 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [61.1 kB]                                                    
获取:17 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,468 B]                                                  
获取:18 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [283 kB]                                                        
获取:19 http://cn.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 48x48 Icons [60.5 kB]                                                          
获取:20 http://cn.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64 Icons [95.0 kB]                                                          
获取:21 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.2 kB]                                                        
获取:22 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [855 kB]                                                           
获取:23 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [633 kB]                                                            
获取:24 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [182 kB]                                                           
获取:25 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [353 kB]                                                    
获取:26 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 48x48 Icons [215 kB]                                                       
获取:27 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 64x64 Icons [377 kB]                                                       
获取:28 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [18.9 kB]                                                    
获取:29 http://cn.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]                                                   
获取:30 http://cn.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [10.4 kB]                                                 
已下载 6,701 kB,耗时 9(725 kB/s)                                                                                                                 
正在读取软件包列表... 完成
chunk@chunk-ThinkPad-X1-Carbon-5th:~$ sudo apt-get update
命中:1 http://security.ubuntu.com/ubuntu focal-security InRelease
命中:2 http://cn.archive.ubuntu.com/ubuntu focal InRelease       
命中:3 http://ppa.launchpad.net/uunicorn/open-fprintd/ubuntu focal InRelease
命中:4 http://cn.archive.ubuntu.com/ubuntu focal-updates InRelease
命中:5 http://cn.archive.ubuntu.com/ubuntu focal-backports InRelease
正在读取软件包列表... 完成
chunk@chunk-ThinkPad-X1-Carbon-5th:~$ sudo apt install open-fprintd fprintd-clients python3-validity
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包是自动安装的并且现在不需要了:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libfprint-2-2 libgstreamer-plugins-bad1.0-0 libva-wayland2
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  innoextract libboost-filesystem1.67.0 libboost-iostreams1.67.0 libboost-program-options1.67.0 libboost-system1.67.0 python3-usb
下列【新】软件包将被安装:
  fprintd-clients innoextract libboost-filesystem1.67.0 libboost-iostreams1.67.0 libboost-program-options1.67.0 libboost-system1.67.0 open-fprintd
  python3-usb python3-validity
升级了 0 个软件包,新安装了 9 个软件包,要卸载 0 个软件包,有 16 个软件包未被升级。
需要下载 1,331 kB 的归档。
解压缩后会消耗 10.5 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 libboost-system1.67.0 amd64 1.67.0-17ubuntu8 [204 kB]
获取:2 http://ppa.launchpad.net/uunicorn/open-fprintd/ubuntu focal/main amd64 fprintd-clients amd64 1.90.1-1ubuntu3 [24.8 kB]
获取:3 http://ppa.launchpad.net/uunicorn/open-fprintd/ubuntu focal/main amd64 open-fprintd all 0.6~ppa1 [6,916 B]
获取:4 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 libboost-filesystem1.67.0 amd64 1.67.0-17ubuntu8 [234 kB]
获取:5 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 libboost-iostreams1.67.0 amd64 1.67.0-17ubuntu8 [224 kB]
获取:6 http://ppa.launchpad.net/uunicorn/open-fprintd/ubuntu focal/main amd64 python3-validity all 0.12~ppa1 [74.0 kB]
获取:7 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 libboost-program-options1.67.0 amd64 1.67.0-17ubuntu8 [331 kB]
获取:8 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 python3-usb all 1.0.2-1build1 [37.6 kB]
获取:9 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 innoextract amd64 1.8-1 [195 kB]
已下载 1,331 kB,耗时 4(378 kB/s)                                          
正在选中未选择的软件包 fprintd-clients。
(正在读取数据库 ... 系统当前共安装有 192128 个文件和目录。)
准备解压 .../0-fprintd-clients_1.90.1-1ubuntu3_amd64.deb  ...
正在解压 fprintd-clients (1.90.1-1ubuntu3) ...
正在选中未选择的软件包 libboost-system1.67.0:amd64。
准备解压 .../1-libboost-system1.67.0_1.67.0-17ubuntu8_amd64.deb  ...
正在解压 libboost-system1.67.0:amd64 (1.67.0-17ubuntu8) ...
正在选中未选择的软件包 libboost-filesystem1.67.0:amd64。
准备解压 .../2-libboost-filesystem1.67.0_1.67.0-17ubuntu8_amd64.deb  ...
正在解压 libboost-filesystem1.67.0:amd64 (1.67.0-17ubuntu8) ...
正在选中未选择的软件包 libboost-iostreams1.67.0:amd64。
准备解压 .../3-libboost-iostreams1.67.0_1.67.0-17ubuntu8_amd64.deb  ...
正在解压 libboost-iostreams1.67.0:amd64 (1.67.0-17ubuntu8) ...
正在选中未选择的软件包 libboost-program-options1.67.0:amd64。
准备解压 .../4-libboost-program-options1.67.0_1.67.0-17ubuntu8_amd64.deb  ...
正在解压 libboost-program-options1.67.0:amd64 (1.67.0-17ubuntu8) ...
正在选中未选择的软件包 open-fprintd。
准备解压 .../5-open-fprintd_0.6~ppa1_all.deb  ...
正在解压 open-fprintd (0.6~ppa1) ...
正在选中未选择的软件包 python3-usb。
准备解压 .../6-python3-usb_1.0.2-1build1_all.deb  ...
正在解压 python3-usb (1.0.2-1build1) ...
正在选中未选择的软件包 innoextract。
准备解压 .../7-innoextract_1.8-1_amd64.deb  ...
正在解压 innoextract (1.8-1) ...
正在选中未选择的软件包 python3-validity。
准备解压 .../8-python3-validity_0.12~ppa1_all.deb  ...
正在解压 python3-validity (0.12~ppa1) ...
正在设置 fprintd-clients (1.90.1-1ubuntu3) ...
正在设置 libboost-program-options1.67.0:amd64 (1.67.0-17ubuntu8) ...
正在设置 python3-usb (1.0.2-1build1) ...
正在设置 libboost-iostreams1.67.0:amd64 (1.67.0-17ubuntu8) ...
正在设置 open-fprintd (0.6~ppa1) ...
Created symlink /etc/systemd/system/suspend.target.wants/open-fprintd-suspend.service → /lib/systemd/system/open-fprintd-suspend.service.
Created symlink /etc/systemd/system/hibernate.target.wants/open-fprintd-suspend.service → /lib/systemd/system/open-fprintd-suspend.service.
Created symlink /etc/systemd/system/hybrid-sleep.target.wants/open-fprintd-suspend.service → /lib/systemd/system/open-fprintd-suspend.service.
Created symlink /etc/systemd/system/suspend-then-hibernate.target.wants/open-fprintd-suspend.service → /lib/systemd/system/open-fprintd-suspend.servic
e.
Created symlink /etc/systemd/system/suspend.target.wants/open-fprintd-resume.service → /lib/systemd/system/open-fprintd-resume.service.
Created symlink /etc/systemd/system/hibernate.target.wants/open-fprintd-resume.service → /lib/systemd/system/open-fprintd-resume.service.
Created symlink /etc/systemd/system/hybrid-sleep.target.wants/open-fprintd-resume.service → /lib/systemd/system/open-fprintd-resume.service.
Created symlink /etc/systemd/system/suspend-then-hibernate.target.wants/open-fprintd-resume.service → /lib/systemd/system/open-fprintd-resume.service.
open-fprintd.service is a disabled or a static unit, not starting it.
正在设置 libboost-system1.67.0:amd64 (1.67.0-17ubuntu8) ...
正在设置 libboost-filesystem1.67.0:amd64 (1.67.0-17ubuntu8) ...
正在设置 innoextract (1.8-1) ...
正在设置 python3-validity (0.12~ppa1) ...
python3-validity.service is a disabled or a static unit, not starting it.
Downloading https://download.lenovo.com/pccbbs/mobiles/nz3gf07w.exe to extract 6_07f_lenovo_mis_qm.xpfwext
Extracting "version 5.3.3542.26 (NZ3GF07W)" - setup data version 5.5.7 (unicode)
 - "codeGetExtractPath/WBF_Drivers/6_07f_lenovo_mis_qm.xpfwext"
Done.
Found firmware at /tmp/tmpl0i75uud/codeGetExtractPath/WBF_Drivers/6_07f_lenovo_mis_qm.xpfwext
正在处理用于 man-db (2.9.1-1) 的触发器 ...
正在处理用于 dbus (1.12.16-2ubuntu2.1) 的触发器 ...
正在处理用于 libc-bin (2.31-0ubuntu9.2) 的触发器 ...

###录完指纹我就发现,锁屏后可以用指纹登录了,下面是叫你录指纹。
chunk@chunk-ThinkPad-X1-Carbon-5th:~$ fprintd-enroll
Using device /net/reactivated/Fprint/Device/0
Enrolling right-index-finger finger.
Enroll result: enroll-stage-passed
Enroll result: enroll-stage-passed
Enroll result: enroll-stage-passed
Enroll result: enroll-stage-passed
Enroll result: enroll-stage-passed
Enroll result: enroll-retry-scan
Enroll result: enroll-stage-passed
Enroll result: enroll-stage-passed
Enroll result: enroll-completed

后面是按照参考文件进行完整的操作

#启用 open-fprintd恢复和挂起服务。   这个挂起服务?我有点不明白,如果有网友看到的话,知道这个是什么,请告诉我。
chunk@chunk-ThinkPad-X1-Carbon-5th:~$ sudo systemctl enable open-fprintd-resume open-fprintd-suspend
#开启指纹识别授权。
chunk@chunk-ThinkPad-X1-Carbon-5th:~$ sudo pam-auth-update
chunk@chunk-ThinkPad-X1-Carbon-5th:~$ 


看了看上面的安装过程中,发现会在联想官网下载一个exe,总共symlink连接了8个target服务,然后调用python3的传感器脚本。

参考:
Thinkpad X1 Carbon 笔记本在 Ubuntu环境下安装和启用指纹识别器

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

少陽君

谢谢老板的拿铁

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值