olbat / dockerfiles

A collection of Dockerfiles
https://hub.docker.com/u/olbat/
GNU General Public License v3.0
134 stars 73 forks source link

cupsd /in unraid6.8.2,docker with HP lap1007.have this err "Waiting for printer to become available" #67

Closed wjcroom closed 2 years ago

wjcroom commented 2 years ago

in unraid .i hava to add --privileged="true" ,to let cupsd docker find the usb printer docker run -d -p 631:631 --privileged="true" -v /var/run/dbus:/var/run/dbus --name cupsd olbat/cupsd then everytime I print test page ,or send print work. the printer status alway is "Waiting for printer to become available" how would I to let it print .?

wjcroom commented 2 years ago

https://www.linuxquestions.org/questions/slackware-14/waiting-for-printer-to-become-available-4175652261/ i am trying the issue

olbat commented 2 years ago

Please have a look at the troubleshooting section of the README file and reach out to the relevant support channels.

wjcroom commented 2 years ago

ok I guess this model driver didnt work

wjcroom commented 2 years ago

finally ,I get   HP LaserJet P1007 Foomatic/foo2xqx (recommended) (grayscale, 2-sided printing)  driver work . by  https://github.com/inveneo/hub-linux-ubuntu/tree/master/install/overlay/usr/share/foo2zjs/firmware cat /usr/share/foo2zjs/firmware/sihp1005.dl >/dev/usb/lp0

The [foo2zjs] driver for hp printers maybe wrong.

becausce it can not upload fireware to device. there are not rule file and img. in the docker image. so i am try this https://askubuntu.com/questions/1345155/how-to-install-foo2zjs-tar-gz-when-website-doesnt-work

and I run make install make install-hotplug step by step https://www.jianshu.com/p/c7f2388eb851 and finaly , not hotplug .

I must manuly run . /etc/hotplug/usb/hpljP1007 /etc/hotplug/usb/hpljP1007: foo2zjs: loading HP LaserJet P1007 firmware /usr/share/foo2xqx/firmware/sihpP1005.dl to /dev/usb/lp0 ... root@tank:/# /etc/hotplug/usb/hpljP1007: foo2zjs: ... download successful.