connecting to a CUPS 1.3.7 from the lan and internet

Helge Blischke h.blischke at acm.org
Mon Sep 20 12:45:46 PDT 2010


crp wrote:

> On a pc running Fedora4 with cups-1.1.23-15.4 , I have printers setup that
> can accept lp submitted jobs from other pcs, including windows pc on the
> LAN and a UNIX machine that is not on the lan. I would like to get the
> same functionality going with CentOS5.5 and cups 1.3.7-18.el5 5.7
> 
> On the CentOS pc:
> . lpstat -p -d
> . printer 5si is idle. enabled since Tue 14 Sep 2010 03:30:34 PM PDT
> . printer Cups-PDF is idle. enabled since Thu 03 Jun 2010 09:42:49 AM PDT
> . printer PDF is idle. enabled since Tue 14 Sep 2010 03:30:34 PM PDT
> . printer TLR is idle. enabled since Tue 14 Sep 2010 10:45:35 AM PDT
> . printer Tek is idle. enabled since Tue 14 Sep 2010 03:30:34 PM PDT
> . no system default destination
> 
> and job submitting via lpr -P TDLR -H Centos sample.file
> works just great.
> 
> when I go to a windows pc on the lan I get the following:
> 
> R:\remitw>lpq -S fedora4 -P TLR -l
> . TLR is not ready
> . no entries
> 
> BUT the request to the CentOS does not work
> 
> R:\remitw>lpq -S Centos -P TLR -l
> . Error: No response from Centos.
> 
> and trying to lpr from a pc on the lan results in
> . Error: print server unreachable or specified printer does not exist.
> 
> I went throught the cupsd.conf on the CentOS, which was pretty sparse and
> tried manually adjusting it to try to match the Fedora version. When those
> didn't work I just copied over the whole file from Fedora -> CentOS but
> that still didn't get me working.
> 
> Each time I changed the cupsd.conf I also restarted the cupsd service.
> The firewall settings for ports 515 & 631 are the same on the Fedora and
> CentOS. There is no 'error activity' showing in the logs on the CentOS.
> 
> So I'm stumped. is there an "out-of-the-box" way to migrate the Fedora
> CUPS setup to CentOS ? If not, how do I setup the printers and cups so
> that pc's other than the machine itself can access the printers?

Obviously you use the lpd protocol for printing from the windows side. So, 
on your CentOS box, you need to properly configure the cups-lpd daemon.
You may copy over the repsective configuration data (xinetd stuff, I 
suppose) from the fedory box.

Helge





More information about the cups mailing list