Comments (3)
Hey @wojciehm,
that is indeed a great use case! Let me try to help.
Yes you can configure your printer over the interface, but the configuration won't last and same goes for the uploaded PPD
. It's gone once the container restarts. So after you configure your printer, you need to get the configuration and add it through ENV (see https://github.com/DrPsychick/docker-cups-airprint#add-printer-through-env) or other means to the container when you start it the next time. (Hint: lpadmin -i ppd-file # Specify a PPD file for the printer)
To get your PPD
file into the container, I suggest mounting a directory which contains your PPD
files.
something like:
docker run -d --rm -e CUPS_WEBINTERFACE="yes" \
-v /my/ppd/directory:/etc/cups/ppd \
-e CUPS_REMOTE_ADMIN="yes" --hostname mycups \
-e CUPS_LPADMIN_PRINTER1="lpadmin -p "My PPD Printer" ... -i /etc/cups/ppd/myppdfile.ppd ..."
--name cups-setup drpsychick/airprint-bridge
The alternative approach is building your own docker image and including your PPD in it directly, as described here: https://github.com/DrPsychick/docker-cups-airprint#automated-through-files
I hope this helps!
from docker-cups-airprint.
Hey @wojciehm, did you get it to work with your custom PPD file?
from docker-cups-airprint.
Hey @wojciehm, I'll close this as there is no change required. I hope you got it to work.
from docker-cups-airprint.
Related Issues (20)
- update avahi service file for Location field HOT 4
- Work with IPVLAN ? HOT 6
- How should I set it up a virtual printer? HOT 1
- Update Ubuntu Version. HOT 3
- How can I add a printer shared through an Airport Express? HOT 2
- Dependency Dashboard
- Printers are not created on initial start/container setup, only on subsequent restarts HOT 6
- Slow to collect information about printer and a lot more after reboot. HOT 5
- Regarding #45 - color-supported not avaible breaks airprint-generate.py HOT 4
- Looking for MAINTAINERs HOT 5
- Switch to GitHub actions releases
- Work on homeassistant: portainer HOT 9
- http https version cups mismatch HOT 2
- "Bad Request" - Help configuring HOT 3
- broken pipe - cannot assign requested address HOT 9
- Would it be possible to include tea4cups? HOT 1
- Add possibility to install additional drivers (or to run custom init scripts) HOT 3
- Documentation Clarity HOT 1
- CUPS_USER_ADMIN / CUPS_USER_PASSWORD not working..Unable to login to the admin interface HOT 2
- Docker publish version tags for pinning HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-cups-airprint.