Go to file
Guillermo Bonet 85baf93a75 added README 2022-11-07 11:33:26 +01:00
sql first commit 2022-11-04 14:41:36 +01:00
.dockerignore first commit 2022-11-04 14:41:36 +01:00
.gitignore first commit 2022-11-04 14:41:36 +01:00
Dockerfile deleted tmp in Dockerfile 2022-11-07 08:46:11 +01:00
GoDEXdriver-1.1.6.tar.gz first commit 2022-11-04 14:41:36 +01:00
README.md added README 2022-11-07 11:33:26 +01:00
config.yml bug fixes 2022-11-04 14:53:18 +01:00
cupsd.conf first commit 2022-11-04 14:41:36 +01:00
entrypoint.sh first commit 2022-11-04 14:41:36 +01:00
main.js first commit 2022-11-04 14:41:36 +01:00
package-lock.json first commit 2022-11-04 14:41:36 +01:00
package.json first commit 2022-11-04 14:41:36 +01:00
print-server.js fixes 2022-11-07 10:24:16 +01:00

README.md

PrintNatura (Print Server)

Requeriments

  • Git
  • Docker

Installaton

Clone the repository

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

Build

docker build -t printserver .

How to use

Exec

docker run --name printserver -it --rm -v $PWD/config.local.yml:/pdf-print-server/config.local.yml:ro -p 80:631 printserver

Bash

docker exec -i -t printserver bash

Has a graphical web interface (cupsd.conf)

Commands

Install printer

lpadmin -p ${printername} -E -v socket://${ip-address} -m ${driver}

Print document

lp ${file} ${printername}

Search driver

lpinfo --make-and-model '${printer-model}' -m

Show intalled printer

lpstat -p

Delete installed printer

lpadmin -x ${printername}

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