Discussion:
CUPS experts?
Paul Goyette
2014-06-28 13:15:26 UTC
Permalink
I've recently installed cups, and having some difficulty getting it to
work. (I'm pretty sure I'm doing something wrong, but I haven't any
clue on where to look...)

I have manually started cupsd (since there doesn't seem to be any
/etc/rc.d file), and I've also stopped lpd. I used the web admin
interface to add my printer, which shows up in /etc/printcap as

lp|HP DeskJet 6940 series:rm=screamer.whooppee.com:rp=lp:

The pritner admin page shows

Description: HP DeskJet 6940 series
Location:
Driver: HP DeskJet 6940 Foomatic/hpijs (recommended)
(color, 2-sided printing)
Connection: socket://192.168.2.253
Defaults: job-sheets=none, none media=na_letter_8.5x11in
sides=one-sided

I tried to print a document from LibreOffice4, and it appears to submit
the job correctly. Cups seems to acknowledge the job:

...
lp-2 Unknown Withheld 150k Unknown completed at
Sat Jun 28 05:20:13 2014
lp-1 Unknown Withheld 150k Unknown completed at
Sat Jun 28 05:13:11 2014

Yet, nothing is printed on the printer, and a tcpdump shows only an
occassional ipp broadcast 30-second intervals), and a brief snmp
exchange (IP addresses manually editted here for brevity):

server.60709 > printer.snmp:
{ SNMPv1 { GetRequest(28) R=1 25.3.2.1.3.1 } }
printer.snmp > server.60709:
{ SNMPv1 { GetResponse(51) R=1 25.3.2.1.3.1="Deskjet 6940 series" } }
server.60709 > printer.snmp:
{ SNMPv1 { GetNextRequest(27) R=1 43.12.1.1.4 } }
printer.snmp > server.60709:
{ SNMPv1 { GetResponse(34) R=1 43.13.4.1.2.1.1=7 } }
server.60709 > printer.snmp:
{ SNMPv1 { GetRequest(28) R=1 25.3.5.1.2.1 } }
printer.snmp > server.60709:
{ SNMPv1 { GetResponse(33) R=1 25.3.5.1.2.1=00 } }
server.60709 > printer.snmp:
{ SNMPv1 { GetRequest(29) R=1 43.10.2.1.4.1.1 } }
printer.snmp > server.60709:
{ SNMPv1 { GetResponse(35) R=1 43.10.2.1.4.1.1=3307 } }

There is no traffic to the printer socket (port 9100), and nothing
prints.

FWIW, the same results are obtained if using the Cups admin page to
print a TestPage to the printer. A job is created, and is displayed as
Completed yet nothing gets sent to the printer.

Any suggestions?


-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
Brandon Vincent
2014-06-28 14:13:38 UTC
Permalink
Driver: HP DeskJet 6940 Foomatic/hpijs (recommended)
(color, 2-sided printing)
Paul,

Can you try switching to the hpcups driver rather than the hpijs one?

Brandon Vincent
Paul Goyette
2014-06-28 14:26:51 UTC
Permalink
Post by Brandon Vincent
Driver: HP DeskJet 6940 Foomatic/hpijs (recommended)
(color, 2-sided printing)
Paul,
Can you try switching to the hpcups driver rather than the hpijs one?
I have installed all of the foomatic filter packages:

# pkg_info -a
foomatic-filters-3.0.2nb10 Spooler-independent PostScript printing filter
foomatic-filters-cups-3.0.2nb2 Foomatic support for CUPS
foomatic-ppds-20070207 Foomatic PPDs collection
foomatic-ppds-cups-20070207nb1 Foomatic PPD collection for CUPS servers

But I don't seem to have any hpcups driver:

# find /usr/pkg/share/foomatic/ -name '*cup*' | wc
0 0 0
#




-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
Brandon Vincent
2014-06-28 14:41:41 UTC
Permalink
Post by Paul Goyette
# find /usr/pkg/share/foomatic/ -name '*cup*' | wc
0 0 0
#
You need to install print/hplip to obtain the drivers from HP Linux
Imaging and Printing.

Brandon Vincent
Eric Schnoebelen
2014-06-29 13:27:39 UTC
Permalink
Paul Goyette writes:
- I've recently installed cups, and having some difficulty getting it to
- work. (I'm pretty sure I'm doing something wrong, but I haven't any
- clue on where to look...)
-
- I have manually started cupsd (since there doesn't seem to be any
- /etc/rc.d file), and I've also stopped lpd.

Unless you've got PKG_RCD_SCRIPTS set, the rc.d scripts with the
package install into /usr/pkgsrc/share/examples/rc.d. Look for
the rc.d script for cups (and other packages) there. (since I
never remember to set PKG_RCD_SCRIPTS, I end up installing them
manually.)

- I used the web admin
- interface to add my printer, which shows up in /etc/printcap as
-
- lp|HP DeskJet 6940 series:rm=screamer.whooppee.com:rp=lp:
-
- The pritner admin page shows
-
- Description: HP DeskJet 6940 series
- Location:
- Driver: HP DeskJet 6940 Foomatic/hpijs (recommended)
- (color, 2-sided printing)
- Connection: socket://192.168.2.253
- Defaults: job-sheets=none, none media=na_letter_8.5x11in
- sides=one-sided

[...]

- There is no traffic to the printer socket (port 9100), and nothing
- prints.

What happens when you try to send something directly to port
9100?

Have verified that the printer doesn't support either IPP or
LPD directly? If it supports either of those, I would recommend
using those protocols over the TCP stream at port 9100.

--
Eric Schnoebelen ***@cirr.com http://www.cirr.com
Worry is like a rocking chair: It gives you something to do,
but doesn't get you anywhere.
Brandon Vincent
2014-06-29 15:38:20 UTC
Permalink
Post by Eric Schnoebelen
What happens when you try to send something directly to port
9100?
It looks like I forgot to mail the list directly when I helped Paul.

He got the printer working. It was a combination of missing CUPS
filters and the outdated IJS driver. Installing print/hpijs fixed
that.
Post by Eric Schnoebelen
Have verified that the printer doesn't support either IPP or
LPD directly? If it supports either of those, I would recommend
using those protocols over the TCP stream at port 9100.
For what its worth, the CUPS project in their documentation recommend
AppSocket/JetDirect (9100/TCP) over LPD and IPP. I too was somewhat
shocked to learn this.

Brandon Vincent

Loading...