This commit is contained in:
Guillermo Bonet 2022-11-10 19:33:59 +01:00
parent b516156e2b
commit cd8147de80
1 changed files with 13 additions and 11 deletions

View File

@ -8,12 +8,12 @@
## Installaton ## Installaton
Clone the repository Clone the repository
``` ```
git clone https://gitea.verdnatura.es/verdnatura/printnatura.git $ git clone https://gitea.verdnatura.es/verdnatura/printnatura.git
``` ```
Build Build
``` ```
docker build -t printnatura . $ docker build -t printnatura .
``` ```
Create file named "config.local.yml" and put your private configuration: Create file named "config.local.yml" and put your private configuration:
@ -29,6 +29,9 @@ salix:
url: http://localhost:3000 url: http://localhost:3000
user: user user: user
password: password password: password
methods:
login: method/login
logout: method/logout
reconnectTimeout: 30 reconnectTimeout: 30
refreshRate: 1000 refreshRate: 1000
``` ```
@ -36,12 +39,12 @@ refreshRate: 1000
Exec Exec
``` ```
docker run --name printnatura -it --rm -v $PWD/config.local.yml:/printnatura/config.local.yml:ro -p 80:631 printnatura $ docker run --name printnatura -it --rm -v $PWD/config.local.yml:/printnatura/config.local.yml:ro -p 80:631 printnatura
``` ```
Bash Bash
``` ```
docker exec -i -t printnatura bash $ docker exec -i -t printnatura bash
``` ```
Has a graphical web interface (cupsd.conf) Has a graphical web interface (cupsd.conf)
@ -50,29 +53,29 @@ Has a graphical web interface (cupsd.conf)
### Install printer ### Install printer
``` ```
lpadmin -p ${printername} -E -v socket://${ip-address} -m ${driver} $ lpadmin -p [<printer>] -E -v socket://[<ip>] -m [<driver>]
``` ```
### Print document ### Print document
``` ```
lp ${file} ${printername} $ lp [<file>] [<printer>]
``` ```
### Search driver ### Search driver
``` ```
lpinfo --make-and-model '${printer-model}' -m $ lpinfo --make-and-model '[<printer-model>]' -m
``` ```
### Show intalled printer ### Show intalled printer
``` ```
lpstat -p $ lpstat -p
``` ```
### Delete installed printer ### Delete installed printer
``` ```
lpadmin -x ${printername} $ lpadmin -x [<printer>]
``` ```
### More [here](https://www.cups.org/doc/man-lp.html) ### [More here](https://www.cups.org/doc/man-lp.html)
## Drivers: ## Drivers:
### ZEBRA ### ZEBRA
@ -100,5 +103,4 @@ lsb/local/godex/godex-zx420i.ppd
## Build With ## Build With
* [Git](https://git-scm.com/) * [Git](https://git-scm.com/)
* [Nodejs](https://nodejs.org/) * [Nodejs](https://nodejs.org/)
* [NodeGit](https://www.nodegit.org/)
* [Docker](https://www.docker.com/) * [Docker](https://www.docker.com/)