Linux: Printers - Paiet/Tech-Journal-for-Everything GitHub Wiki

Managing Printers and Printing

  • CUPS - Common Unix Printing System
    • Developed by Apple
    • Configuring CUPS
    • Install CUPS:
      • yum install cups
      • chkconfig cups on
      • service cups start
    • Load the PPD for your printer
    • Test it out
      • lp -d Canon7065 ./file.txt
      • lpstat -p Canon7065 or lpstat -a (cancel Canon7065-#)
    • Define a default printer
      • LPDEST=printername
    • Working with CUPS

Example

|SysV Command|BSD Command|Description         |
|------------|-----------|--------------------|
|lp          | lpr       |Generate a print job|
|lpstat      | lpq       |View the print queue|
|cancel      |lprm       |Cancel a print job  |