CUPS Tips PDF
Sunday, 01 June 2008
CUPS stand for Common UNIX Print System, and is a modular printing system for UNIX and UNIX like operating systems like Linux. CUPS service can be used with great success as a Print Server. CUPS consist of a print spooler and scheduler, a filter and a backend system.

Here are some very useful CUPS tips.

Tip 1. Enable a printer
-----------------------------

# lpadmin -p printer_name -E

Most recent version of cups have two commands to enable/disable printing, cupsenable anb cupsdisable:

# cupsenable printer_name
# cupsdisable printer_name


Tip 2. When printing with CUPS change lp and lpd binaries with binaries provided by CUPS
------------------------------------------------------------------------------------------------------------------------
When trying to use lp, binary from /usr/bin/lp will be found instead CUPS's lp, so you'll get an error. To solv the problem rename FreeBSD base lp and lpr binaries and create links to CUPS's binaries. 

# mv /usr/bin/lp /usr/bin/lp.old
# mv /usr/bin/lpr /usr/bin/lpr.old
# ln -s /usr/local/bin/lp /usr/bin/lp
# ln -s /usr/local/bin/lpr /usr/bin/lpr

From time to time if you cvsup and buildworld you will have to recreate the links. To solve this problem, edit /etc/make.conf and add the following line:

NO_LPR = true

Also adding CUPS_OVERWRITE_BASE=yes might be solve this problem (if you are using cups-lpr), and will be no need to create those symlinks.

 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?