nullpo-head / WSL-Hello-sudo

Let's sudo by face recognition of Windows Hello on Windows Subsystem for Linux (WSL). It runs on both WSL 1 and WSL 2. This is a PAM module for Linux on WSL.
MIT License
1.22k stars 46 forks source link

install.sh doesn't work on arch #5

Closed RedBeard0531 closed 4 years ago

RedBeard0531 commented 5 years ago

install.sh assumes that things are in /lib/x86_64-linux-gnu, but arch has all of those paths directly under /lib. Changing the paths made it work, but the script should handle that automatically.

nullpo-head commented 5 years ago

Yeah, now WSL has other distribution than Ubuntu. at least it will be better to show some warning if the script can't find /lib/x86_64-linux-gnu directory in an environment. Thanks.

bcr-ch commented 5 years ago

@RedBeard0531 I have this same issue. How were you able to work around it?

I changed the path to match what Arch uses and it built / installed no problem. I just now can't figure out the syntax of the /etc/pam.d/sudo file as it is quite different from Ubuntu. (new to Arch here).

Thnx

B.

agc93 commented 4 years ago

To add another case: install scripts also don't work in Fedora WSL. Seems like /lib/x86_64-linux-gnu is pretty specific to the Debian variants.

nullpo-head commented 4 years ago

The new install.sh should support other distributions than Ubuntu as well. Thanks.