CUPS Printing Problem
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? Duane
Re: CUPS Printing Problem
On Wed, 13 May 2009 16:20:30 -0700 "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. Might just be me, but I hate CUPS. Try foomatic-rip together with the appropriate PPD and set up your /etc/printcap. Here's mine for a hp LaserJet 1010 $ cat /etc/printcap lp|LaserJet:\ :lp=/dev/ulpt0:\ :af=/etc/foomatic/HP-LaserJet_1010-hpijs.ppd:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/output:\ :lf=/var/log/lpd-errs:\ :sh: Just my 0.2 EUR.
Re: CUPS Printing Problem
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
Re: CUPS Printing Problem
Dear list members, i have an USB HP P2055dn laser printer. I have it running on Windows and OpenSolaris (with solaris it worked by itself, i just boot openSolaris ant it was there fully funcional). I would like to have it working with openbsd, is it possible? Thank in advance. PS: i have no ideia how OpenSolaris got it working, it just did it. On Thu, May 14, 2009 at 7:42 AM, Jan Stary wrote: > 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
Re: CUPS Printing Problem
On Thu, May 14, 2009 at 02:22:22PM -0300, Friedrich Locke wrote: > Dear list members, > > i have an USB HP P2055dn laser printer. I have it running on Windows > and OpenSolaris (with solaris it worked by itself, i just boot > openSolaris ant it was there fully funcional). > > I would like to have it working with openbsd, is it possible? > > Thank in advance. openprinting.org has lots of info about using printers with open source, free, libre, whatever-you-want-to-call-it software. go there and look up your printer. unless it tells you to use some vendor supplied binary (rare), whatever it says to use is probably available in ports/ packages. -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Re: CUPS Printing Problem
What setup you tried yet? 2009/5/14 Friedrich Locke : > Dear list members, > > i have an USB HP P2055dn laser printer. I have it running on Windows > and OpenSolaris (with solaris it worked by itself, i just boot > openSolaris ant it was there fully funcional). > > I would like to have it working with openbsd, is it possible? > > Thank in advance. > > PS: i have no ideia how OpenSolaris got it working, it just did it. > > On Thu, May 14, 2009 at 7:42 AM, Jan Stary wrote: >> On May 13 16:20:30, Duane A. Damiano wrote: >>> I'm new to OpenBSD. B I recently installed 4.5. B It seems to be working >>> well except for this CUPS printing problem. B My printer is an HP DeskJet >>> connected to the parallel port. >>> >>> The CUPS driver is running. B 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. B Can >>> someone tell me what's wrong here? B 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. >> >> B B B B Jan > > -- http://www.openbsd.org/lyrics.html
Re: CUPS Printing Problem
On Thu, 14 May 2009, TomC!E! BodE>C!r wrote: > >>> The CUPS driver is running. B 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 > >>> # Does it help if you 'chmod 666 /dev/lpt*' ? -- Antoine
Re: CUPS Printing Problem
or forget CUPS and do it the simple way: http://erdelynet.com/tech/openbsd/using-foo2zjs-with-openbsd-lpd/ -- Darrin Chandler| Phoenix BSD User Group | MetaBUG dwchand...@stilyagin.com | http://phxbug.org/ | http://metabug.org/ http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation
Re: CUPS Printing Problem
On Thu, May 14, 2009 at 12:41:16PM -0700, Darrin Chandler wrote: > or forget CUPS and do it the simple way: > http://erdelynet.com/tech/openbsd/using-foo2zjs-with-openbsd-lpd/ looks to me like most deskjets (which the OP has) use hpijs/hplip, pcl3 or gutenprint. not foo2zjs. actually, it looks like *no* deskjets are supported by foo2zjs. how do I know that? install the foomatic-db-engine package and use `foomatic-ppdfile -P DeskJet'. or look on openprinting.org. "forget CUPS" is good advice though ;) -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Re: CUPS Printing Problem
On Thu, May 14, 2009 at 08:19:38PM +, Jacob Meuser wrote: > On Thu, May 14, 2009 at 12:41:16PM -0700, Darrin Chandler wrote: > > or forget CUPS and do it the simple way: > > http://erdelynet.com/tech/openbsd/using-foo2zjs-with-openbsd-lpd/ > > looks to me like most deskjets (which the OP has) use hpijs/hplip, > pcl3 or gutenprint. not foo2zjs. actually, it looks like *no* > deskjets are supported by foo2zjs. > > how do I know that? install the foomatic-db-engine package and use > `foomatic-ppdfile -P DeskJet'. > > or look on openprinting.org. > > "forget CUPS" is good advice though ;) My old page (http://stilyagin.com/darrin/blog/2007/05/16/2200/) used hpijs, and that worked great for me. -- Darrin Chandler| Phoenix BSD User Group | MetaBUG dwchand...@stilyagin.com | http://phxbug.org/ | http://metabug.org/ http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation
Re: HP Color LaserJet 2600n (was: CUPS Printing Problem)
On May 14 03:19:13, Thomas Pfaff wrote: > On Wed, 13 May 2009 16:20:30 -0700 > "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. > > Might just be me, but I hate CUPS. Everybody in the world hates CUPS, including babies born today. People lay awake nights wondering "geez, why would anyone use such a piece of software". > Try foomatic-rip together with > the appropriate PPD and set up your /etc/printcap. > > Here's mine for > a hp LaserJet 1010 > >$ cat /etc/printcap >lp|LaserJet:\ > :lp=/dev/ulpt0:\ > :af=/etc/foomatic/HP-LaserJet_1010-hpijs.ppd:\ > :if=/usr/local/bin/foomatic-rip:\ > :sd=/var/spool/output:\ > :lf=/var/log/lpd-errs:\ > :sh: For the archives: to print on HP Color LaserJet 2600n, the appropriate PPD files live in the print/foo2zjs package. A working printcap ( after copying /usr/local/share/foo2zjs/db/source/PPD/HP-Color_LaserJet_2600n.ppd.gz to /etc/foomatic/HPLaserjet2600n.ppd ): lp|HP Color laserJet 2600n:\ :lp=/dev/ulpt0:\ :af=/etc/foomatic/HPLaserjet2600n.ppd:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/output:\ :lf=/var/log/lpd-errs:\ :sh: Jan