Git Product home page Git Product logo

Comments (3)

DrPsychick avatar DrPsychick commented on June 10, 2024

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.

DrPsychick avatar DrPsychick commented on June 10, 2024

Hey @wojciehm, did you get it to work with your custom PPD file?

from docker-cups-airprint.

DrPsychick avatar DrPsychick commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.