dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

Unable to set shared printer option using sockets

Open EDKarlsson opened this issue 11 months ago • 0 comments

I'm trying to connect to a Zebra printer connected through sockets.

When I set the printer option to share the printer the configuration does not seem to be set after adding it.

This is the printer.conf

<Printer test>
PrinterId 1
UUID urn:uuid:f425aba8-9821-3453-63be-b95cc9dd2215
Info test
Location test
MakeModel Zebra ZPL Label Printer
DeviceURI socket://172.21.104.106
State Idle
StateTime 1737662837
ConfigTime 1737662838
Type 36932
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

This is the server settings

Server Settings:
 Share printers connected to this system
         Allow printing from the Internet
 Allow remote administration
 Allow users to cancel any job (not just their own)
 Preserve job history
        Maximum jobs (0 for no limit): 500
        Retain Metadata: Yes
        Retain Documents: Yes
 Save debugging information for troubleshooting
        Max log file size: 0

I am able to set it to shared if I exec into the container and use lpadmin -o printer-is-shared=true -p test

EDKarlsson avatar Jan 23 '25 20:01 EDKarlsson