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
- /etc/cups/ppd
- wget ftp://10.1.10.4/CNADVC7055X1.PPD
- lpadmin -h localhost -p Canon7065 -E -v socket://10.1.10.23 -P /etc/cups/ppd/CNADVC7055X1.PPD
- 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 |