A dockerized printer application based on CUPS for Custom printers
389
A dockerized printer application based on CUPS for CustomĀ® printers
The following Custom printers are fully supported
I am currently working on this project for fully supporting Custom thermal printers. I will do soon all the required tests for making this printer app fully working with the following thermal printers.
The following Custom printers have not been tested yet
Using this printer application is pretty simple. Just follow the steps below in order to make it working on your system.
docker pull drcoccodrillus/custom-printer-app
You can start a working container using this docker-compose.yml
version: "3.8"
services:
custom-printer-app:
image: drcoccodrillus/custom-printer-app:latest
container_name: custom-printers
restart: always
devices:
- /dev:/dev
ports:
- "8631:631"
networks:
- printer-network
networks:
printer-network:
name: printer-network
driver: bridge
Connect your Custom printer to your machine
docker exec custom-printers discovery
docker exec custom-printers lpstat -t
docker exec custom-printers lp -d printer-name /printers/test.txt
Sometimes things simply go wrong. If you need to troubleshoot CUPS these are places you should look at:
/var/log/cups/access_log - Lists all cupsd http1.1 server activity/var/log/cups/error_log - Lists detailed information of the printing process/var/log/cups/page_log - Echoes a new entry each time a print is successful/var/spool/cups - Location where the scheduler stores job filesThe best way to get complete information from log files is to set LogLevel in /etc/cups/cupsd.conf as the following:
LogLevel debug
And then viewing the output from /var/log/cups/error_log like this:
tail -n 100 -f /var/log/cups/error_log
The /var/spool/cups location stores two types of files: control files starting with the letter "c" and data files starting with the letter "d". Control files are IPP messages based on the original IPP Print-Job or Create-Job messages, while data files are the original print files that were submitted for printing. There is one control file for every job known to the system and 0 or more data files for each job.
Control files are normally cleaned out after the 500th job is submitted, while data files are removed immediately after a job has successfully printed. Both behaviors can be configured.
Content type
Image
Digest
sha256:8397ba884ā¦
Size
249.5 MB
Last updated
about 3 years ago
docker pull drcoccodrillus/custom-printer-app