On May 13 16:20:30, Duane A. Damiano wrote: > I'm new to OpenBSD. I recently installed 4.5. It seems to be working > well except for this CUPS printing problem. My printer is an HP DeskJet > connected to the parallel port. > > The CUPS driver is running. Here's a line from dmesg: > > lpt0 at isa0 port 0x378/4 irq 7 > > Here's the OpenBSD lpinfo output: > > # /usr/local/sbin/lpinfo -v > network socket > network http > network ipp > network lpd > direct usb:/dev/ulpt0 > direct usb:/dev/ulpt1 > # > > > When I boot Debian Lenny on this same computer, I see this: > > dada...@swing:~$ /usr/sbin/lpinfo -v > network socket > network beh > direct hpfax > direct hp > network http > network ipp > network lpd > direct parallel:/dev/lp0 > direct scsi > serial serial:/dev/ttyS0?baud=115200 > dada...@swing:~$ > > With Debian, I use "parallel:/dev/lp0" as the CUPS URI and printing > works fine. > > It seems like the OpenBSD lpinfo output should include a line like > "direct parallel:/dev/lpt0", but as you can see, it's not there. Can > someone tell me what's wrong here? Do I need to install some other > package?
The lpinfo output of the two CUPS installation suggests there is a difference between the two CUPS installations. Seeing 'direct hp' and 'direct hpfax' in one and not the other makes me guess that one of the CUPS installations has an additional package installed that allows it to talk to the HP printer in the http://en.wikipedia.org/wiki/HP_JetDirect protocol. To do that, you need the http://en.wikipedia.org/wiki/PostScript_Printer_Description files, which are provided via the print/foomatic* packages. (Obviously, postscript and lpd are not good enough for HP. They need to have a separate protocol for their printers.) Check the 'lpinfo -l' for your printer model, and if not found, a good hint could be to look at what the dependencies of the CUPS installation that _can_ see it, and install the analogous packages for the other CUPS instalation too. (For my HP Color LaserJet 260n, I needed the print/foo2zjs package providing share/foo2zjs/db/source/PPD/HP-Color_LaserJet_2600n.ppd.gz and the /usr/local/bin/foo2hp filter.) These PPD fiels and the corresponding filters do the real work of talking to the printer. CUPS is just an (overbloated, IMHO) administration around that (to call the right filter for the right printer etc). The same administration can be done by the standard lpd - the install message of foomatic-filters contains a working printcap example. Jan