Re: lpq:cannot open connection to `lp@localhost' - Connection refused

1999-05-14 Thread Johann Spies at Johann
I recently had a similar problem although I have only one printer.  For a
reason I could not determine, the lp-module of the kernel got lost and I
had to put it back by modconf (could also have used insmod). 

Johann

On Thu, 13 May 1999, Jan Krupa wrote:



 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 [EMAIL PROTECTED]' - 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
 
 ---
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

 --
| Johann Spies Windsorlaan 19  |
| [EMAIL PROTECTED]3201 Pietermaritzburg |
| Tel/Faks Nr. +27 331-46-1310 Suid-Afrika (South Africa)  |
 --

 Watch ye and pray, lest ye enter into temptation. The 
  spirit truly is ready, but the flesh is weak.  
   Mark 14:38 


lpq:cannot open connection to `lp@localhost' - Connection refused

1999-05-13 Thread Jan Krupa

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 [EMAIL PROTECTED]' - 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

---