lpq:cannot open connection to `lp@localhost' - Connection refused
I have two printer installed on my Debian2.0 machine (the name of it say A):
local lp and remote p22 which is installed on other debian2.0 machine (say B).
When I print from machine A using p22 printer to printer on machine B
it seems work fine but after the printing is finished the lpq command
gives the following message:
cannot open connection to `lp@localhost' - Connection refused
and I cannot print on local printer.
lpc> start lp
gives the same message.
It seems that lpd is stopped but
lpd
gives no result.
Rebooting the machine starts lpd and again printing on remote printer
and then
Does anybody have some idea what is going wrong and how to
get the printers to work properly?
Jan
----------------
Part of my /etc/printcap on machine A
# Local printer hplj4mp :
lp|hplj4mp:\
:lp=/dev/lp1:\
:sd=/var/spool/lpd/hplj4mp:\
:mx#0:\
:lf=/var/spool/lpd/hpj4mp/lp-error.log:\
:sh:\
:sf:
# Remote printer hplj5p
p22|hplj5p:\
:lp=:\
:sd=/var/spool/lpd/p22:\
:lf=/var/spool/lpd/p22/p22-error.log:\
:rm=B.name1.waw.pl:\
:rp=lp:\
:mx#0:\
:sh:\
:sf:
----------------
an entry from /etc/hosts on machine B
ip_number_of_machine_A A.name1.waw.pl A
---------------
an entry from /etc/hosts.lpd on machine B
A
---------------
Reply to: