CUPS first-timer

Chris Aitken aitken-BwLjziHGQLusTnJN9+BGXg at public.gmane.org
Thu Jan 22 13:42:03 UTC 2004


Paul Mora wrote:

> On Mon, 2004-01-19 at 11:53, Chris Aitken wrote:
>
> > Status Information:
> > sending job 'lsf-bi+AKbBUZKZeoWH0uzbU5w at public.gmane.org+827' to hp at localhost
> > connecting to 'localhost', attempt 1
> > cannot open connection to localhost - No such  file or directory
> > Make sure  the remotee host supports  the LPD protocol
> > abnd acceptsconnections from this host and from non-privileged (<1023)
> > ports.
> >
> > Description:
> > Location: lp0
> > Printer state: idle, accepting jobs
> > Device URI: parallel:/dev/lp0
> >
> > Any ideas. Seems to be tryign to print over a network, yet the CUPS test
> > happily prints to the printer port.
>
> Hi Chris.
>
> I don't know what distro you're using, so some of what I'm about to say
> may or may not work as specified.  I'm basing this on Red Hat Linux 9,
> which is what I've used CUPS on.
>
> 1. Make sure CUPS is running.

OK. I got it running with

/sbin/service cups start

> If you've made changes to the config,
> make sure you restart the CUPS daemon.  This can usually be done with a
> "service cups restart" or "killall -HUP cupsd" or something like that.

OK - I used killall -HUP cupsd

>
> 2. Red Hat systems allow you to have both LPRng and CUPS installed at
> the same time, but only one running.

Yeah - I chose LPRng (default) - I thought it was one of two CUPS - why would
CUPS cinfiguration offer LPRng when it is not CUPS?

> Both have been packaged to use the
> "alternatives" utility to switch links for the binaries to the
> appropriate package.  From your above output, it looks like your lpr
> command is pointing to the one for LPRng, not the one for CUPS.
>
> To see which one you're pointing to, run "alternatives --display
> print".

bash: alternatives: command not found

> The first couple of lines should say something like:
>
>    print - status is auto.
>     link currently points to /usr/bin/lpr.cups

[root-5jgDBJOV2nY at public.gmane.org lsf]# /usr/sbin/alternatives --display print
print - status is manual.
 link currently points to /usr/bin/lpr.LPRng

>
> If the link is pointing to /usr/bin/lpr.LPRng, then switch it over using
> the command: "alternatives --set print /usr/bin/lpr.cups"

OK.

/usr/sbin/alternatives --set print /usr/bin/lpr.cups

>
> Also, turn off LPRng and disable it with:
>   service lpd stop

OK.

[root-5jgDBJOV2nY at public.gmane.org lsf]# /sbin/service lpd stop
Stopping lpd:                                              [FAILED]


>
>   chkconfig lpd off

[root-5jgDBJOV2nY at public.gmane.org lsf]# /sbin/chkconfig lpd off
[root-5jgDBJOV2nY at public.gmane.org lsf]#

>
> 3. Even though you're printing to a local printer, CUPS still prints via
> the "network" through localhost.  The CUPS service uses the Internet
> Printing Protocol (IPP) which is very closely based on HTTP.  Make sure
> you don't have any iptables rules that block stuff to loopback.
>
> 4. Some other print commands that may be on your system are "qtcups" and
> "kprinter"; both of them emulate the print dialog box in Windows.
>
> That's all I can come up with right now... see if that works.

It did. I'm printing with CUPS! Thank you. I'll keep hard and soft copies of
this email. Printed with CUPS, of course.

: )

Chris
linux is easy once you know how to do it (TM)

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list