[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LPRng config



Tom Allison, 2003-Apr-07 21:30 -0400:
> OK, I'm kind of starting out new on this LPRng.
> 
> I ran into a quick wall and can't see anything around it.
> 
> Here's my printcap file:
> 
> 
> # from LPRng
> 
> .common:
>         :sd=/var/spool/lpd/%P
>         :sh:mx=0:mc=0
>         :db=2
> 
> 
> lp:tc=.common:lp=192.168.0.100%9100

Okay, looks like your printer is at this address and listening on tcp
port 9100.

> ##############################################
> 
> Here's my error
> 
>  Status Information:
>  sending job 'tallison@penguin+631' to lp@localhost
>  connecting to 'localhost', attempt 1
>  cannot open connection to localhost - Connection refused
> Make sure the remote host supports the LPD protocol

It appears that your print server host is not running the printer
listening port you specify above as 9100.

The default printer port is tcp:515, so you'll need to make sure the
printer server is listening on the port your sending to, 9100.

> 
> ###############################################
> 
> I'm really not sure that this is right.  I don't have a local host printer, 
> but I do have a localhost server, 'pidof lpd' shows something valid.

Right.  Lprng on your localhost will send your print jobs to
192.168.0.100:9100.  That host should be running a print server, such
as lprng, that listens on tcp:9100.  You should take a close look at
that host.

> There's not packets going out to the printer

Right, if the initial tcp connection to port 9100 fails, as it is, the
print job will not start.

> There's nothing in syslog or lpr.log.

There won't be.  Nothing happend.  If the localhost lprng can't
connect, it'll just die with the error you see.

> 
> ii  lprng                    3.8.10-1                 lpr/lpd printer 
> spooling system
> ii  lprng-doc                3.8.10-1                 lpr/lpd printer 
> spooling system (documentation)
> 
> help?

I hope this does...jc

-- 
Jeff Coppock		Systems Engineer
Diggin' Debian		Admin and User



Reply to: