On 10/12/11 10:03 AM, Pascal Stumpf wrote:
I have two printers on the local network (laser and lexmark) and I want
to use lpd(8) to print on them. It seems to me that lpd is having some
sort of local problem (it does not even create lock and status files in
the spool directories, and both lpr and lpq do not see the daemon). But
some info first:
/etc/printcap:
# $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $
#lp|local line printer:\
# :lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
#rp|remote line printer:\
# :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
lexmark|Lexmark:\
:sh:lp=:rm=lexmark:\
:sd=/var/spool/output/lexmark:\
:lf=/var/log/lpd-errs:
laser|Laser:\
:sh:lp=:rm=laser:rp=raw:\
:sd=/var/spool/output/laser:\
:lf=/var/log/lpd-errs:
Just checking: the values for 'rm=' are expected to be hostnames.
Are 'lexmark' and 'laser' the actual hostnames which match the IP
address of the two printesr you want to print to? What happens if
you type 'host lexmark' and 'host laser'?
Also, I *think* you need to set 'rp=' on that entry for the lexmark
printer. It might be that lpd on OpenBSD uses a default value of
'rp=lp', but I always prefer to explicitly set a value for that.
You have the value set for the 'laser' print queue, but not for
the 'lexmark' queue.
--
Garance Alistair Drosehn = [email protected]
Senior Systems Programmer or [email protected]
Rensselaer Polytechnic Institute; Troy, NY; USA