-
Notifications
You must be signed in to change notification settings - Fork 376
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
Support for printer / cups sharing #73
Comments
An interesting idea to share printers with containers. I assume it will be better to use I am not familar with cups, but on a first glance it should be possible to access cups on host over network/IP. The container would only need package I will look at this, and maybe you can also find out possibilities to use cups. Is cups the default printer server on arch? |
I think so, see Arch Wiki CUPS. Yes, sharing via cups server should be easier than via USB/device. I've configured cups and printer on my host system. I've used |
I did a first try sharing cups socket with A bit confusing:
But it gives me:
That is nice as it shows me which socket to share. But it also may point to a network server and a port that x11docker may have to provide. The manpage does not mention that |
Confirmed 👍 using |
I've added a new option
|
Thanks a lot. Cups socket sharing works for me. 👍 |
Sometimes it is easier than it seems. :-) I thought it would be much more complicated. I also figured out how to configure cups to accept network connections. But I assume that will be a rare edge case. Though, it is supported, too. |
Would be nice if there is a flag to share the printer from host system. I've tried it by sharing of USB device but I guess the printer must be installed in Docker container. Do you have any idea if it is possible to share some directories/services like GPU/audio to be able to print documents e.g. from a Libre Office Docker container?
To determine the USB device (e.g.
04a9:10a5
) you have to find out the printer id withlsusb
(Arch Linux), then you can use this script to get all related devices. I guess hidraw is not needed for printer, but for other USB devices.Maybe this script can be simplified too.
The text was updated successfully, but these errors were encountered: