I am transferring a virtual printer setup from my development machine, where it works, to a custom jail running on a different host. The printcap file has been set identically to that of the first system. When I test the virtual printer then spool files are created in the appropriate /var/spool/lpd/X directory. But they are not sent to the actual printer. I am trying to find out why.
Both systems have
The
The contents of
And the remote hostname resolves correctly:
[root@sshpipe-2 ~]# ping np4172.hamilton.harte-lyne.ca
PING np4172.hamilton.harte-lyne.ca (192.168.216.52): 56 data bytes
64 bytes from 192.168.216.52: icmp_seq=0 ttl=253 time=20.823 ms
64 bytes from 192.168.216.52: icmp_seq=1 ttl=253 time=0.526 ms
64 bytes from 192.168.216.52: icmp_seq=2 ttl=253 time=0.507 ms
^C
[/CODE]
And
When I restart the printer I get:
I would like to discover which bits of this I have missed or misconfigured. Why does
Both systems have
cups
installed. I am aware of the difference between /usr/bin/lp*
and /usr/local/bin/lp*
. That said, the lp
command used on the first host is the same as that used on the second:
Code:
root@vhost01:~ # which lp
/usr/bin/lp
root@sshpipe-2:~ # which lp
/usr/bin/lp
The
lpq
utility shows the jobs but claims that no lpd daemon is running.
Code:
lpq -a
np4172:
Warning: no daemon present
Rank Owner Job Files Total Size
1st hp3000 0 (standard input) 242979 bytes
2nd root 1 ...00sshpipe-2.hamilton.harte-lyne.ca 242979 bytes
which lpd
/usr/sbin/lpd
ps -auwwx | grep lpd
root 22980 0.0 0.0 11184 2368 - SsJ 15:57 0:00.00 /usr/sbin/lpd
The contents of
/etc/printcap
include this (do not do this - put everything on one line) :
Code:
np4172|Lexmark MS711dn:sd=/var/spool/lpd/np4172:\
lf=/var/log/lpd_errors:\
rm=np4172.hamilton.harte-lyne.ca:\
rp=printers/np4172.hamilton.harte-lyne.ca:sh:
And the remote hostname resolves correctly:
[root@sshpipe-2 ~]# ping np4172.hamilton.harte-lyne.ca
PING np4172.hamilton.harte-lyne.ca (192.168.216.52): 56 data bytes
64 bytes from 192.168.216.52: icmp_seq=0 ttl=253 time=20.823 ms
64 bytes from 192.168.216.52: icmp_seq=1 ttl=253 time=0.526 ms
64 bytes from 192.168.216.52: icmp_seq=2 ttl=253 time=0.507 ms
^C
[/CODE]
And
lpc status all
shows this:
Code:
[root@sshpipe-2 ~]# lpc status all
lp:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
np4174:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
np4173:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
np4172:
queuing is enabled
printing is enabled
2 entries in spool area
printer idle
When I restart the printer I get:
Code:
[root@sshpipe-2 ~]# lpc restart np4172
np4172:
no daemon to abort
printing enabled
daemon restarted
I would like to discover which bits of this I have missed or misconfigured. Why does
lpc
not find the lpd
daemon; and why are the print jobs stalled in the queue?