Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zix99/virtual-cups-printer
Virtual cupsd printer that will expose a postscript printer via avahi and output anything printed to it to a pdf
https://github.com/zix99/virtual-cups-printer
Last synced: about 1 month ago
JSON representation
Virtual cupsd printer that will expose a postscript printer via avahi and output anything printed to it to a pdf
- Host: GitHub
- URL: https://github.com/zix99/virtual-cups-printer
- Owner: zix99
- Created: 2023-05-05T00:29:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-14T15:30:09.000Z (12 months ago)
- Last Synced: 2024-01-14T20:59:03.377Z (12 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cups/paperless-printer Docker Container
This docker file will create a virtual printer in cupsd that will output to `/mnt/output`. This will allow printing
from a network postcript printer that will output a pdf to a volume or mount. You can change the output path in `cups-pdf.conf`One possible use of this is in conjunection with a [paperless-ngx](https://github.com/paperless-ngx/paperless-ngx) consume directory
to read pdf's.## Install
See `docker-compose.yml` for example. Names and targets can be parameterized via variables
The http/print server will listen on port `631`. The default username/password is print/print, and can be changed in the `Dockerfile`
## Avahi (Optional, but recommended)
In order to make the printer discoverable, avahi needs to be set up. For it to work correctly on the network, it should share the network space
with its own IP. The easiest way to do this is to assign it a static IP in non-dhcp space via `macvlan`.## Macvlan
Docker-compose setup, for example in `192.168.0.0/24` space.
```yaml
network:
vlan:
driver: macvlan
driver_opts:
parent: eth0 #Update as necessary
ipam:
config:
- subnet: "192.168.0.0/24"
ip_range: "192.168.0.200/32"
gateway: "192.168.0.1"
```