sbs20 / scanservjs

SANE scanner nodejs web ui
https://sbs20.github.io/scanservjs/
GNU General Public License v2.0
766 stars 145 forks source link

feat: Automate HPLIP driver and plugin installation #726

Open FoxxMD opened 6 months ago

FoxxMD commented 6 months ago

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.

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

ameer1234567890 commented 6 months ago

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

FoxxMD commented 6 months ago

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

ameer1234567890 commented 6 months ago

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

FoxxMD commented 6 months ago

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

ameer1234567890 commented 6 months ago

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 commented 1 month ago

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