Cups inner working question.
Kurt Pfeifle
kurt.pfeifle at infotec.com
Mon Apr 23 05:40:48 PDT 2007
> I use lpr to print. I've configured /etc/cups/client.conf
> ServerName mycups.server.domainname
If the "lpr" you use to print is the same-named client print command that is part of CUPS this should work already out of the box (provided the name resolution works for "mycups.server.domainname").
> But i still doesn't understand how i can print from a client even
> if the cups's scheduler is not running on that client machine.
The client print commands ("lp" or "lpr") can pick up the CUPS server via various means:
(1) an environment variable ("CUPS_SERVER=mycups.server.domain")
(2) or the "ServerName" directive in the /etc/cups/client.conf file
(3) or, user specific, "ServerName" in the ~/.cups/client.conf file
(4) or from the commandline "-h" parameter:
"lp -h mycups.server.domain -d printername"
"lpr -h mycups.server.domain -P printername"
IIRC, (4) has precedence over (3), which has precedence over (2), which has over (1).
Important: if the "lpr" command you use is *not* the CUPS-provided one, you must set up the CUPS server to receive jobs from traditional LPR/LPD clients. This is achieved by using the CUPS mini-lpd daemon. See "man cups-lpd".
--
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH - A RICOH Company .......... Stuttgart/Germany
(currently killing time in a KL Internet Cafe, waiting for a bus to SG)
;-)
More information about the cups
mailing list