python-validity icon indicating copy to clipboard operation
python-validity copied to clipboard

Void linux / non systemd support

Open KoalaV2 opened this issue 4 years ago • 5 comments

Please add support for non systemd linux distros!

KoalaV2 avatar Dec 26 '20 22:12 KoalaV2

Yes, please!

VPetukhov avatar Jan 25 '21 14:01 VPetukhov

Bump

void-m4110c avatar Feb 20 '21 16:02 void-m4110c

Bump!

SimPilotAdamT avatar Dec 05 '21 12:12 SimPilotAdamT

To add something a bit more constructive, it seems like the fprintd-clients's dependency of systemd-libs is the reason why this doesn't support distro's like Artix/Void Linux.

SimPilotAdamT avatar Dec 05 '21 13:12 SimPilotAdamT

I got it to work image

The steps that worked for me was:

  1. Manually clone the repo to /opt/python-validity
    • Go to the repo and run python setup.py install --prefix=/usr
  2. Get the PKGBUILD of open-fprintd
  3. Remove fprintd-clients (line 9) from the dependencies.
  4. Run makepkg -si and let it install the "open-fprintd" package.
  5. Write an init script for your init of your choice, in my case it was OpenRC:
    • Filename: open-fprintd
#!/usr/bin/openrc-run                                                                        
                                                                                             
supervisor=supervise-daemon                                                                  
command="env PYTHONPATH=/opt/python-validity /opt/python-validity/dbus_service/dbus-service" 
command_args=""                                                                              
pidfile=                                                                                     
                                                                                             
name="open-fprintd"                                                                          
description="Open FPrint Daemon"                                                             
  • (This is very rough so please tell me the proper stuff to fix my init script file.)
  1. Place the init file in /etc/init.d and chmod +x it
  2. Install fprintd (pacman -S fprintd)
  3. Start the init file you just made using rc-service open-fprintd start
  4. If it works, add it to your default init runlevel rc-update add open-fprintd
  5. Run fprintd-enroll and hope it works :)

Everything should be done as root with some obvious exceptions.

Midou36O avatar Aug 17 '23 14:08 Midou36O