Skip to content

Instantly share code, notes, and snippets.

@marceloperini
Forked from foosel/README.md
Created December 21, 2016 11:20
Show Gist options
  • Save marceloperini/0c5aa2e63f80997ad5fc60cfb8caed89 to your computer and use it in GitHub Desktop.
Save marceloperini/0c5aa2e63f80997ad5fc60cfb8caed89 to your computer and use it in GitHub Desktop.

Revisions

  1. @foosel foosel revised this gist Sep 16, 2014. 1 changed file with 25 additions and 15 deletions.
    40 changes: 25 additions & 15 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -6,36 +6,46 @@ There exists experimental driver support for this in a [fork](https://github.com

    1. Install [fingerprint-gui](https://launchpad.net/~fingerprint/+archive/ubuntu/fingerprint-gui):

    ```
    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
    sudo apt-get update
    sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui
    ```
    ```
    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
    sudo apt-get update
    sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui
    ```

    2. Get your compilation tools and library dependencies:

    sudo apt-get install build-essential automake checkinstall shtool libtool libxv-dev libmagick++-dev
    ```
    sudo apt-get install build-essential automake checkinstall shtool libtool libxv-dev libmagick++-dev
    ```

    3. Get the sources, compile and install them:

    git clone https://github.com/abbradar/fprint_vfs5011
    cd fprint_vfs5011
    ./autogen.sh
    make
    sudo make install
    ```
    git clone https://github.com/abbradar/fprint_vfs5011
    cd fprint_vfs5011
    ./autogen.sh
    make
    sudo make install
    ```

    4. Make sure your user has permissions for accessing the fingerprint sensor device. Create a file `/lib/udev/rules.d/40-libfprint0-custom.rules` with the following contents:

    # Device Validity VFS5011
    ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0017", MODE="0664", GROUP="plugdev"
    ```
    # Device Validity VFS5011
    ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0017", MODE="0664", GROUP="plugdev"
    ```

    5. Add your user to the `plugdev` group:

    sudo usermod -a -G plugdev <username>
    ```
    sudo usermod -a -G plugdev <username>
    ```

    6. Restart udev:

    sudo service udev restart
    ```
    sudo service udev restart
    ```

    7. Log out of your session and log back in.

  2. @foosel foosel revised this gist Sep 16, 2014. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,11 @@ There exists experimental driver support for this in a [fork](https://github.com

    1. Install [fingerprint-gui](https://launchpad.net/~fingerprint/+archive/ubuntu/fingerprint-gui):

    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
    sudo apt-get update
    sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui
    ```
    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
    sudo apt-get update
    sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui
    ```

    2. Get your compilation tools and library dependencies:

  3. @foosel foosel revised this gist Sep 16, 2014. 1 changed file with 16 additions and 14 deletions.
    30 changes: 16 additions & 14 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -6,33 +6,35 @@ There exists experimental driver support for this in a [fork](https://github.com

    1. Install [fingerprint-gui](https://launchpad.net/~fingerprint/+archive/ubuntu/fingerprint-gui):

    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
    sudo apt-get update
    sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui
    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
    sudo apt-get update
    sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui

    2. Get your compilation tools and library dependencies:

    sudo apt-get install build-essential automake checkinstall shtool libtool libxv-dev libmagick++-dev
    sudo apt-get install build-essential automake checkinstall shtool libtool libxv-dev libmagick++-dev

    3. Get the sources, compile and install them:

    git clone https://github.com/abbradar/fprint_vfs5011
    cd fprint_vfs5011
    ./autogen.sh
    make
    sudo make install
    git clone https://github.com/abbradar/fprint_vfs5011
    cd fprint_vfs5011
    ./autogen.sh
    make
    sudo make install

    4. Make sure your user has permissions for accessing the fingerprint sensor device. Create a file `/lib/udev/rules.d/40-libfprint0-custom.rules` with the following contents:

    # Device Validity VFS5011
    ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0017", MODE="0664", GROUP="plugdev"
    # Device Validity VFS5011
    ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0017", MODE="0664", GROUP="plugdev"

    5. Add your user to the `plugdev` group:

    sudo usermod -a -G plugdev <username>
    sudo usermod -a -G plugdev <username>

    6. Restart udev:

    sudo service udev restart
    sudo service udev restart

    7. Enroll your fingerprints with `fingerprint-gui` and see if a `sudo -s` now suddenly asks you for your fingerprint.
    7. Log out of your session and log back in.

    8. Enroll your fingerprints with `fingerprint-gui`, verify them, then see if a `sudo -s` now suddenly asks you for your fingerprint.
  4. @foosel foosel created this gist Sep 16, 2014.
    38 changes: 38 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    `lsusb` lists the fingerprint reader in the x240 as follows:

    Bus 002 Device 003: ID 138a:0017 Validity Sensors, Inc.

    There exists experimental driver support for this in a [fork](https://github.com/abbradar/fprint_vfs5011) of [libfprint for vfs5011 sensors](https://github.com/ars3niy/fprint_vfs5011), however you'll need to compile the driver yourself. To get the fingerprint sensor to work for lightdm login, su etc, follow these steps.

    1. Install [fingerprint-gui](https://launchpad.net/~fingerprint/+archive/ubuntu/fingerprint-gui):

    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
    sudo apt-get update
    sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui

    2. Get your compilation tools and library dependencies:

    sudo apt-get install build-essential automake checkinstall shtool libtool libxv-dev libmagick++-dev

    3. Get the sources, compile and install them:

    git clone https://github.com/abbradar/fprint_vfs5011
    cd fprint_vfs5011
    ./autogen.sh
    make
    sudo make install

    4. Make sure your user has permissions for accessing the fingerprint sensor device. Create a file `/lib/udev/rules.d/40-libfprint0-custom.rules` with the following contents:

    # Device Validity VFS5011
    ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0017", MODE="0664", GROUP="plugdev"

    5. Add your user to the `plugdev` group:

    sudo usermod -a -G plugdev <username>

    6. Restart udev:

    sudo service udev restart

    7. Enroll your fingerprints with `fingerprint-gui` and see if a `sudo -s` now suddenly asks you for your fingerprint.