Go to file
Guillermo Bonet ec798d6363
gitea/printnatura/pipeline/head This commit looks good Details
Version increased
2024-09-09 08:39:40 +02:00
sql refs #4550 Changed updates 2023-01-16 07:20:17 +01:00
.dockerignore first commit 2022-11-04 14:41:36 +01:00
.gitattributes changes 2022-11-07 14:12:08 +01:00
.gitignore refs #4550 Solved bugs 2022-12-15 15:04:36 +01:00
.npmrc refs #5467 Node actualizado a la 18.x 2023-03-28 07:56:58 +02:00
Dockerfile refactor: feat #7295 Driver upgrade 2024-06-04 15:02:13 +02:00
Jenkinsfile refactor: feat #7441 Fix 2024-05-31 11:32:49 +02:00
README.md Merge branch '5368-tryErrors' 2023-04-26 13:49:51 +02:00
config.yml refs #5368 Minor changes 2023-04-26 13:43:47 +02:00
ctzcls-cups_1.1.0-2_amd64.deb refactor: feat #7295 Driver upgrade 2024-06-04 15:02:13 +02:00
cupsd.conf refs #4550 user admin allowed in cups 2022-11-17 14:00:01 +01:00
docker-compose.yml refactor: feat #7295 Fix docker-compose 2024-06-05 07:44:38 +02:00
entrypoint.sh refs #4550 Bugs fixed 2022-11-28 09:18:55 +01:00
main.js refs @4550 concurrency, logging improved, fixes, code clean, refactor 2022-12-23 21:09:07 +01:00
package-lock.json refs #5467 Node actualizado a la 18.x 2023-03-28 07:56:58 +02:00
package.json Version increased 2024-09-09 08:39:40 +02:00
print-server.js refs #5368 Added new code errors to retry conn 2024-09-09 08:38:13 +02:00

README.md

PrintNatura (Print Server)

This project is used to print pdf, it acts as a print server.

Requeriments

  • Git
  • Docker

Installaton

Clone the repository

> git clone https://gitea.verdnatura.es/verdnatura/printnatura.git

Build

> $CUPS_PASSWORD = 1234
> docker build --build-arg CUPS_PASSWORD -t printnatura .

Create file named "config.local.yml" and put your private configuration:

debug: false
log: true
dryPrint: false
keepFile: false
serverId: null
concurrency: 4
reconnectTimeout: 10
refreshRate: 1000
tmpDir: /dev/shm/printnatura
retryAttempts: 3
retryTimeout: 1000
db:
  host: localhost
  port: 3306
  user: user
  password: password
  database: schema
salix:
  url: http://localhost:3000
  user: user
  password: password

How to use

Exec

> docker run --name printnatura -it --rm -v $PWD/config.local.yml:/printnatura/config.local.yml:ro -v $PWD/cupsd.conf:/etc/cups/cupsd.conf:ro -p 80:631 printnatura

Bash

> docker exec -i -t printnatura bash

Has a graphical web interface (cupsd.conf)

Commands

Install printer

$ lpadmin -p [<printer>] -E -v socket://[<ip>] -m [<driver>]

Print document

$ lp [<file>] [<printer>]

Search driver

$ lpinfo --make-and-model '[<printer-model>]' -m

Show intalled printers

$ lpstat -p

Delete installed printer

$ lpadmin -x [<printer>]

More here

Drivers:

ZEBRA

Generic driver

Example:

drv:///sample.drv/zebra.ppd

RICOH

Each printer has its own driver

Example:

gutenprint.5.3://ricoh-mp_c2011/expert

GODEX

Installed by the Dockerfile (GoDEXdriver-1.1.6.tar.gz)

Example:

lsb/local/godex/godex-zx420i.ppd

Build With