Closed zacs closed 6 months ago
Interesting. I haven't messed with USB much. That forbidden error is likely caused by the wheel group missing in the config. Can you try running this command in the container, then restart and test?
sed -i '/^SystemGroup/ s/$/ wheel/' /etc/cups/cups-files.conf
Ah that command worked great to get lpinfo
working, thanks!
Is there any way to enable debug logging just so I can putz around and try to troubleshoot the USB printer? I assumed that your inclusion brlaser
in the Dockerfile apk installs it would just work but can try to troubleshoot.
Ah, answering my own question, but putting here for posterity. Even though the docker-compose.yml
has privileged: true
, you have to also explicitly add the device as well. So adding:
devices:
- '/dev/usb/lp0:/dev/usb/lp0'
to the compose file got me going. Appreciate the fast reply!
Awesome. That was going to be my next suggestion. Enjoy!
I have a vanilla Ubuntu 22 server with Docker on it, and am using this image to try and connect my printer. CUPS works fine (admin interface, etc) and I'm using pretty much exactly the
docker-compose.yaml
from this repo. However, CUPS doesn't detect my Brother HL-L2300D printer. The USB device is available within the container, but no dice.Inside the container:
On the host:
When I try to run
lpinfo
I am denied:I also installed the
brlaser
package on the host machine in hopes that that would solve things, but got no dice. Any ideas or info on how I can enable logging to see what's happening? I'm new to CUPS so it's possible I'm missing something very basic when trying to add the printer.