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

feat: Automate HPLIP driver and plugin installation #726

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FoxxMD
Copy link

@FoxxMD FoxxMD commented Apr 29, 2024

  • Removes HPLIP docker stage in favor of installation at run time based on ENV (HP_AIO)
  • Automates downloading and installing matching HPLIP binary plugin based on libsane-hpaio installed version using ENV (HP_PLUGIN)

Closes #701 #724

This abides by the "no additional backends in docker" intention because it does not install anything unless the user explicitly sets either HP_AIO or HP_PLUGIN envs.

  • Use HP_AIO=true to install only libsane-hpaio dependency at container start
  • Use HP_PLUGIN=true to install libsane-hpaio and HPLIP binary plugin at container start

The scripts also check for install status of the dependency and plugin so they will only run if not already installed.

Additionally, the script that installs the plugin, hplip.sh, is distribution agnostic so it can be used in any local install of scanservjs as long as the OS has the equivalent hpaio driver installed (which also installs hp-plugin).

A docker image is built with these changes at foxxmd/scanservjs:latest

* Removes HPLIP docker stage in favor of installation at run time based on ENV (HP_AIO)
* Automates downloading and installing matching HPLIP binary plugin based on libsane-hpaio installed version using ENV (HP_PLUGIN)

sbs20#701 sbs20#724
@ameer1234567890
Copy link

Could you build an image for arm64. My amd64 machine is currently broken (motherboard fried due to lightening).

@FoxxMD
Copy link
Author

FoxxMD commented Apr 30, 2024

@ameer1234567890 i haven't tested the arm build but it is now published on foxxmd/scanservjs:latest

@ameer1234567890
Copy link

Sorry, I was wrong. It should be arm, not arm64

@FoxxMD
Copy link
Author

FoxxMD commented Apr 30, 2024

@ameer1234567890 ok, ive published arm/v7 (same as scanservjs) now.

@ameer1234567890
Copy link

I tested it and my HP scanner is detected perfectly. However, unlike the original scanservjs docker image, my Canon scanner is not detected now.

@JakobLichterfeld
Copy link

JakobLichterfeld commented Sep 28, 2024

Successfully tested with hpaio:/usb/Deskjet_F2400_series and -e HP_PLUGIN=true. Only docker version which is succesfull.

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

Successfully merging this pull request may close these issues.

hplip scanner not found
3 participants