0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00
howdy/README.md

85 lines
4.4 KiB
Markdown
Raw Normal View History

2018-09-24 18:13:56 +02:00
# Howdy for Linux [![](https://img.shields.io/travis/boltgolt/howdy/master.svg)](https://travis-ci.org/boltgolt/howdy) [![](https://img.shields.io/github/release/boltgolt/howdy.svg?colorB=4c1)](https://github.com/boltgolt/howdy/releases)
2018-01-05 02:41:56 +01:00
2018-06-28 15:30:10 +02:00
Windows Hello™ style authentication for Linux. Use your built-in IR emitters and camera in combination with face recognition to prove who you are.
2018-01-05 02:41:56 +01:00
2018-06-28 15:30:10 +02:00
Using the central authentication system (PAM), this works everywhere you would otherwise need your password: Login, lock screen, sudo, su, etc.
2018-01-05 16:07:48 +01:00
2018-06-28 15:38:19 +02:00
## Installation
2018-01-05 16:07:48 +01:00
2018-10-04 09:59:39 +02:00
Howdy is currently available for Debian/Ubuntu and Arch Linux. If youre interested in packaging Howdy for your distro, dont hesitate to open an issue. If you're using Fedora and want to work on a RPM port, take a look at [#26](https://github.com/boltgolt/howdy/issues/26).
2018-06-28 15:30:10 +02:00
**Note:** The build of dlib can hang on 100% for over a minute, give it time.
2018-09-24 18:13:56 +02:00
### Debian (Ubuntu, Linux Mint, etc)
2018-06-28 15:30:10 +02:00
Run the installer by pasting (`ctrl+shift+V`) the following commands into the terminal one at a time:
2018-01-05 16:07:48 +01:00
```
sudo add-apt-repository ppa:boltgolt/howdy
sudo apt update
sudo apt install howdy
```
2018-01-05 16:07:48 +01:00
2018-06-28 15:30:10 +02:00
This will guide you through the installation.
2018-06-28 15:38:19 +02:00
### Arch Linux
2018-06-28 15:30:10 +02:00
Install the `howdy` package from the AUR. For AUR installation instructions, take a look at this [wiki page](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages).
You will need to do some additional configuration steps. Please read the [ArchWiki entry](https://wiki.archlinux.org/index.php/Howdy) for more information.
2018-11-29 03:18:12 +01:00
### Fedora
The `howdy` package is now available in a [Fedora COPR repository](https://copr.fedorainfracloud.org/coprs/luya/howdy/) by simply execute the following command from a terminal:
```
sudo dnf copr enable luya/howdy
sudo dnf install howdy
```
2018-06-28 15:38:19 +02:00
## Setup
2018-04-13 22:40:01 +02:00
2018-06-28 15:30:10 +02:00
After installation, you need to let Howdy learn your face. Run `sudo howdy add` to add a face model.
2018-01-05 16:07:48 +01:00
2018-02-11 01:54:44 +01:00
If nothing went wrong we should be able to run sudo by just showing your face. Open a new terminal and run `sudo -i` to see it in action.
2018-01-05 16:07:48 +01:00
2018-06-28 15:30:10 +02:00
If you're curious you can run `sudo howdy config` to open the central config file and see the options Howdy has. On most systems this will open the nano editor, where you have to press `ctrl`+`x` to save your changes.
2018-06-28 15:38:19 +02:00
## CLI
2018-01-05 16:07:48 +01:00
2018-04-13 22:40:01 +02:00
The installer adds a `howdy` command to manage face models for the current user. Use `howdy --help` or `man howdy` to list the available options.
2018-01-05 16:07:48 +01:00
Usage:
```
2018-04-13 21:19:28 +02:00
howdy [-U user] [-y] command [argument]
```
2018-04-13 21:19:28 +02:00
| Command | Description |
|-----------|-----------------------------------------------|
2018-04-13 22:40:01 +02:00
| `add` | Add a new face model for an user |
| `clear` | Remove all face models for an user |
| `config` | Open the config file in gedit |
2018-04-13 21:19:28 +02:00
| `disable` | Disable or enable howdy |
2018-04-13 22:40:01 +02:00
| `list` | List all saved face models for an user |
| `remove` | Remove a specific model for an user |
2018-04-13 21:19:28 +02:00
| `test` | Test the camera and recognition methods |
2018-06-28 15:38:19 +02:00
## Contributing [![](https://img.shields.io/travis/boltgolt/howdy/dev.svg?label=dev%20build)](https://github.com/boltgolt/howdy/tree/dev) [![](https://img.shields.io/github/issues-raw/boltgolt/howdy/enhancement.svg?label=feature+requests&colorB=4c1)](https://github.com/boltgolt/howdy/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement)
2018-04-21 01:46:33 +02:00
2018-10-03 16:58:03 +02:00
The easiest ways to contribute to Howdy is by starring the repository and opening GitHub issues for features you'd like to see. If you want to do more, you can also [buy me a coffee](https://www.buymeacoffee.com/boltgolt).
2018-09-24 18:13:56 +02:00
2018-09-24 18:23:50 +02:00
Code contributions are also very welcome. If you want to port Howdy to another distro, feel free to contact me.
2018-04-21 01:46:33 +02:00
2018-06-28 15:38:19 +02:00
## Troubleshooting
2018-01-05 16:07:48 +01:00
2018-02-11 01:54:44 +01:00
Any python errors get logged directly into the console and should indicate what went wrong. If authentication still fails but no errors are printed you could take a look at the last lines in `/var/log/auth.log` to see if anything has been reported there.
2018-02-11 01:54:44 +01:00
If you encounter an error that hasn't been reported yet, don't be afraid to open a new issue.
2018-06-28 15:38:19 +02:00
## A note on security
This script is in no way as secure as a password and will never be. Although it's harder to fool than normal face recognition, a person who looks similar to you or well-printed photo of you could be enough to do it.
2018-10-03 16:58:03 +02:00
To minimize the chance of this program being compromised, it's recommended to leave Howdy in `/lib/security` and to keep it read-only.
2018-02-11 01:54:44 +01:00
DO NOT USE HOWDY AS THE SOLE AUTHENTICATION METHOD FOR YOUR SYSTEM.