From cd8147de8056f6b4036954ea27612c30750d908b Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 10 Nov 2022 19:33:59 +0100 Subject: [PATCH] README --- README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index aaf8bfd..c97e544 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,12 @@ ## Installaton Clone the repository ``` -git clone https://gitea.verdnatura.es/verdnatura/printnatura.git +$ git clone https://gitea.verdnatura.es/verdnatura/printnatura.git ``` Build ``` -docker build -t printnatura . +$ docker build -t printnatura . ``` Create file named "config.local.yml" and put your private configuration: @@ -29,6 +29,9 @@ salix: url: http://localhost:3000 user: user password: password + methods: + login: method/login + logout: method/logout reconnectTimeout: 30 refreshRate: 1000 ``` @@ -36,12 +39,12 @@ refreshRate: 1000 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 ``` -docker exec -i -t printnatura bash +$ docker exec -i -t printnatura bash ``` Has a graphical web interface (cupsd.conf) @@ -50,29 +53,29 @@ Has a graphical web interface (cupsd.conf) ### Install printer ``` -lpadmin -p ${printername} -E -v socket://${ip-address} -m ${driver} +$ lpadmin -p [] -E -v socket://[] -m [] ``` ### Print document ``` -lp ${file} ${printername} +$ lp [] [] ``` ### Search driver ``` -lpinfo --make-and-model '${printer-model}' -m +$ lpinfo --make-and-model '[]' -m ``` ### Show intalled printer ``` -lpstat -p +$ lpstat -p ``` ### Delete installed printer ``` -lpadmin -x ${printername} +$ lpadmin -x [] ``` -### More [here](https://www.cups.org/doc/man-lp.html) +### [More here](https://www.cups.org/doc/man-lp.html) ## Drivers: ### ZEBRA @@ -100,5 +103,4 @@ lsb/local/godex/godex-zx420i.ppd ## Build With * [Git](https://git-scm.com/) * [Nodejs](https://nodejs.org/) -* [NodeGit](https://www.nodegit.org/) * [Docker](https://www.docker.com/) \ No newline at end of file