The Docker image produced by this repo provides a docker container for CUPS configured to share an HP printer attached by USB.
# Build the container
./build.sh
# Run the container
./run.shRun docker exec -it cups passwd to set the root password (necessary for authenticating to the web interface).
Browse to https://<host_url>:631 and add the printer.
Add a printer with the following device URI:
ipp://<host_url>:631/printers/<your_printer_name>
Make sure that the PPD file used by any local cups instance (e.g. /etc/cups/ppd/<your_printer>.ppd) has the following line commented out:
*%cupsFilter: "application/vnd.cups-raster 0 hpcups"
The '%' character makes it a comment.
- Got to
Control Panel -> Hardware and Sound -> Devices and Printers - Right click and select
Add a printer - Select
Add a network, wireless or Bluetooth printer - Immediately select
The printer that I want isn't listed - Choose
Select a shared printer by nameand specifyhttp://<host_url>:631/printers/<your_printer_name> - Choose the appropriate driver.
- (Optional) Print a test page.