Wednesday, December 5, 2012

Printing using the CUPS

CUPS(common unix printing system)
For setting the printer using the command prompt:

1. copy the ppd file of the printer driver to the target. (like Hewlett-Packard-hp-LaserJet-4250.ppd)                     
2. Run (lpadmin -p laserjet -v socket://ip_address_of_printer -P printer_ppd_filename_with_path)
         (example : lpadmin -p laserjet -v socket://10.1.8.20 -P Hewlett-Packard-hp-LaserJet-4250.ppd)
3. Run (cupsaccept laserjet)
4. Run (cupsenable laserjet)
5. Run (lpoptions -d laserjet)
6. Run lpq command (for checking the status of printer)
7. Run lpstat -d (for checking the default printer )




[SOMETHING]-FILEFORMAT
        |
        |   [something]tops
        V
   APPLICATION/POSTSCRIPT
        |
        |   pstops
        V
   APPLICATION/VND.CUPS-POSTSCRIPT-----------+
                                             |
                    +------------------------v------------------------------+
                    |                                                       |
                    |       Ghostscript at work....                         |
                    |          (= a "postscript interpreter")               |
                    |                                                       |
                    | * * * * * * * * * * * * * * * * * * * * * * * * * * * |
                    |                        *                              |
                    |  run with commandline  *                              |
                    |  parameter             *                              |
                    |       "-sDEVICE=cups"  *                              |
                    |                        *                              |
                    |  called by pstoraster  *   run with commandline       |
                    | (CUPS standard filter) *   parameter                  |
                    |                        *        "-sDEVICE=[s.th.]"    |
                    +------------------v-----+                              |
                                       |     |                              |
   APPLICATION/VND.CUPS-RASTER <-------+     |                              |
        |                                    |   called by foomatic-rip     |
        |  rasterto[something]               | (openprinting.org extension)|
        |   (= "raster driver")              |                              |
        |                                    +----------------v-------------+
        |                                                     |
   SOMETHING-DEVICE-SPECIFIC <--------------------------------+
        |
        V
       backend

refer:
http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/cupsdocumentation

No comments:

Post a Comment

Qualcomm Short Term

  113 is the SL. 1st Target by mid July.

Total Pageviews