A dockerized printer application based on CUPS for Sanei printers
260
A dockerized printer application based on CUPS for SaneiĀ® printers
The following Sanei printers are fully supported
The following Sanei 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:
sanei-printer-app:
build: .
image: drcoccodrillus/sanei-printer-app:latest
container_name: sanei-printers
restart: unless-stopped
devices:
- /dev:/dev
ports:
- "8631:631"
networks:
- printer-network
networks:
printer-network:
name: printer-network
driver: bridge
Connect your Sanei printer to your machine
docker exec sanei-printers discovery
docker exec sanei-printers lpstat -t
docker exec sanei-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:c1ed8c136ā¦
Size
249.1 MB
Last updated
over 3 years ago
docker pull drcoccodrillus/sanei-printer-app