Introduction¶
This page is a guide to help you set up Touch ID on Linux.
Limitations¶
Before proceeding further, users should note certain limitations that are currently there for Touch ID support on Linux:
- Only those fingers that have been enrolled in macOS can be used on Linux. If you delete a fingerprint from macOS, it will no longer be available on Linux as well.
- If you force shut down the Mac, experience a kernel panic, or in some cases, suspend, Touch ID will stop working on Linux. You simply need to boot into macOS and login to re-enable them.
Installation¶
Currently Touch ID support is available only for Ubuntu/Debian based distributions. Follow the instructions below to set up Touch ID.
Ubuntu¶
-
Add the t2-ubuntu-repo apt repo by following the instructions given here.
-
Now install the Touch ID daemon by running:
Enrolling fingerprints¶
Once you have installed the Touch ID daemon, your DE will allow you to enroll new fingerprints. Follow your DE's instructions, and enroll only those fingers that have been enrolled in macOS. Any attempt to enroll some other finger will simply lead to failure of that finger to enroll.
Optional configuration for the Touch ID daemon¶
The daemon can be further be optionally configured by editing the config file of the daemon. First create the config file by running:
Autosync macOS fingerprints with Linux¶
Instead of manually enrolling your macOS fingerprints on Linux, you can choose to make them sync automatically for a user. For that:
- Edit
/etc/kait2en/t2-touchid.conf. - Replace
noneinT2_TOUCHID_BIND_USERwith your username. - Run
sudo systemctl restart kait2en-t2-touchid.service.
Note that the auto enrolled fingerprints will be randomly named and names may not correspond to the correct finger. If you care about naming, it's best to enrol manually.
Use fingerprints from a particular macOS user in case multiple macOS user accounts exist¶
In case multiple user accounts exist on a macOS installation with each account having fingerprints enrolled, you will have to specify the UID of the user whose fingerprints you wish to use on Linux. For that:
-
Boot into macOS. Over there open terminal and run
dscl . -list /Users UniqueID | awk '$2 >=500'. An example output is:Here the UID of george is 501 and of john is 502.
-
Now boot into Linux. Over there, edit
/etc/kait2en/t2-touchid.conf. - Replace
autoinT2_TOUCHID_UIDwith your UID you obtained from macOS. - Run
sudo systemctl restart kait2en-t2-touchid.service.
Credits¶
Support for Touch ID has been developed by André Eikmeyer from the KaiT2en project.