Go to file
Guillermo Bonet 526f04e0c7
gitea/printnatura/pipeline/head This commit looks good Details
Merge pull request 'refs #4550 Config volume fixes' (!4) from 4550-printersVolume into master
Reviewed-on: #4
2022-11-28 09:51:24 +00:00
sql refs #4550 Bugs fixed 2022-11-28 09:18:55 +01:00
.dockerignore first commit 2022-11-04 14:41:36 +01:00
.gitattributes changes 2022-11-07 14:12:08 +01:00
.gitignore first commit 2022-11-04 14:41:36 +01:00
Dockerfile refs #4550 Bugs fixed 2022-11-28 09:18:55 +01:00
Jenkinsfile refs #4550 Deployment: fix, cups credentials provided in deployment 2022-11-16 13:53:16 +01:00
README.md refs #4550 deleted excluded printers 2022-11-22 08:57:37 +01:00
config.yml refs #4550 deleted excluded printers 2022-11-22 08:57:37 +01:00
ctzcls-cups_1.1.0-0_amd64.deb refs #4550 changed OS (ubuntu→debian) and driver 2022-11-22 08:48:10 +01:00
cupsd.conf refs #4550 user admin allowed in cups 2022-11-17 14:00:01 +01:00
docker-compose.yml refs #4550 Config volume fixes 2022-11-28 10:49:06 +01:00
entrypoint.sh refs #4550 Bugs fixed 2022-11-28 09:18:55 +01:00
main.js changes 2022-11-10 18:25:21 +01:00
package-lock.json renamed to printnatura 2022-11-07 13:45:33 +01:00
package.json renamed to printnatura 2022-11-07 13:45:33 +01:00
print-server.js refs #4550 Bugs fixed 2022-11-28 09:18:55 +01: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

$ docker build -t printnatura .

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

debug: true
db:
  host: localhost
  port: 3306
  user: user
  password: password
  database: schema
salix:
  url: http://localhost:3000
  user: user
reconnectTimeout: 30
refreshRate: 1000

How to use

Exec

$ docker run --name printnatura -it --rm -v $PWD/config.local.yml:/printnatura/config.local.yml: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