Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on Debian #37

Open
williamdes opened this issue Feb 17, 2023 · 6 comments
Open

Install on Debian #37

williamdes opened this issue Feb 17, 2023 · 6 comments

Comments

@williamdes
Copy link

Using the next Debian 12.

# untar to some place, like /tmp
sudo mv /tmp/yubikey-touch-detector-1.10.0-linux64/yubikey-touch-detector /usr/bin/yubikey-touch-detector
mv /tmp/yubikey-touch-detector-1.10.0-linux64/yubikey-touch-detector.service ~/.config/systemd/user/yubikey-touch-detector.service
mv /tmp/yubikey-touch-detector-1.10.0-linux64/yubikey-touch-detector.socket ~/.config/systemd/user/yubikey-touch-detector.socket

# Config
# See: https://superuser.com/a/365918/609233
mkdir -v ${XDG_CONFIG_HOME:-$HOME/.config}/yubikey-touch-detector/
nano ${XDG_CONFIG_HOME:-$HOME/.config}/yubikey-touch-detector/service.conf
# Enable desktop notifications: https://github.com/maximbaz/yubikey-touch-detector#configuring-the-app

# Register service and start it
systemctl --user daemon-reload
systemctl --user enable --now yubikey-touch-detector.service
# Check running
systemctl --user status yubikey-touch-detector.service
# Cleanup
rm -r /tmp/yubikey-touch-detector-1.10.0-linux64/

You can add this to the README

@maximbaz
Copy link
Owner

Thanks for sharing. This looks quite similar to how you install any application on Linux, may I ask what was the most unintuitive part of the installation?

@williamdes
Copy link
Author

Thanks for sharing. This looks quite similar to how you install any application on Linux, may I ask what was the most unintuitive part of the installation?

the part where I had to research where to put service files and what value XDG_CONFIG_HOME was ^^

also, the notification has no icon, it's a bit ugly

@maximbaz
Copy link
Owner

I think this belongs to wiki, as location of systemd files and XDG environment variables aren't really something this project decides 😊 Feel free to create a page on wiki though, it's fully editable by anyone!

The notification is a demo, and you'll see both in other closed issues and maybe on wiki that the preferred approach is to build your own notification mechanism - it's very easy!

@williamdes
Copy link
Author

I think this belongs to wiki, as location of systemd files and XDG environment variables aren't really something this project decides blush Feel free to create a page on wiki though, it's fully editable by anyone!

The notification is a demo, and you'll see both in other closed issues and maybe on wiki that the preferred approach is to build your own notification mechanism - it's very easy!

Hi @maximbaz
Thank you for your nice comment !
I am currently crowded with work, so it's best if you can create the wiki page and I can review and do adjustments if needed
Keeping this open so it's done one day by myself or somebody :)

@williamdes
Copy link
Author

I should make an article on my blog 😄
Totally forgot about this issue.

FYI: I did open a MR to update the package on Alpine Linux.
See: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/59741

Are you aware that some platforms do not build ?

arch="all !armhf !armv7 !x86"  # fails to build

@williamdes
Copy link
Author

Edit: the new version seems to build on all arches 🎉
See: https://gitlab.alpinelinux.org/williamdes/aports/-/pipelines/210110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants