CUPS useful commands

to add a MFC-8220 printer to CUPS v1.1.20 connected to a linksys print server via commandline:

#/usr/sbin/lpadmin -p xxxbrotherA -m BR8220_2_GPL.ppd -v lpd://192.168.xxx.5/P1 -E
***replace “xxx” with appropriate subnet
***get the PPD from openprinting.org http://openprinting.org/foomatic-db/db/source/PPD/Brother/BR8220_2_GPL.ppd

to list all currently installed printers:

# lpstat -v

to list all supported models:

# lpinfo -m

to test a PPD file for validity and compatility:

# cupstestppd /path/to/ppd

Leave a Reply