Sorry Jan I think that I'm causing some unnecesary confusion: On Thu, Nov 4, 2010 at 7:10 AM, Jan Stary <[email protected]> wrote: > On Nov 04 06:29:08, Abel Abraham Camarillo Ojeda wrote: >> On Thu, Nov 4, 2010 at 2:06 AM, Jan Stary <[email protected]> wrote: >> > On Nov 03 21:59:49, Abel Abraham Camarillo Ojeda wrote: >> >> I'm unsuccesfully trying to make this HP printer... to print... (this >> >> is a new printer >> >> I have already printed with windows XP, and on this OpenBSD box using >> >> foo2zjs >> >> instead of hpijs, but it only works via usb, not network...): >> > >> > So why don't you continue printing with foo2zjs? >> > >> >> foo2zjs works awesome with usb, but doesn't work with network (or I >> don't know how >> to configure it exactly, > > You are not even trying to print over the network; > you are using ":lp=/dev/ugen0.01:" as your device. > >> I'm going to put a sniffer on a windows >> machine when it's printing today and try to see what magic it does), > > If you find yourself in the need to "sniff" some traffic > to decipher some "magic" your printer is doing, then > you are doing something wrong. > >> anyway I bought this printer >> _just_ for the >> network printing (and the nasty HPlip page lied to me...). > > What HPlip page? The specification > www.shopping.hp.com/shopping/pdf/ce749a.pdf > says "host-based printing, HP PCL 5e" - read: > you will need to attach this to a computer that > will talk to me in PCL (not postscript, no).
This page I mean (on the HPlip site): http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_professional_p1606dn.html >> :lp=/dev/ugen0.01:\ >> :sd=/var/spool/output:\ >> :lf=/var/log/lpd-errs:\ >> :if=/usr/local/bin/foomatic-rip:\ >> :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\ >> :rp=raw:\ >> :sh: >> With that I got pretty printing... (only with usb). > > If you can get this to print locally, > why don't you just let your lpd listen to clients > on your network? > This printer got it's own LPD (as far as I know): $ nmap guten Starting Nmap 5.21 ( http://nmap.org ) at 2010-11-04 07:34 CST Nmap scan report for guten (172.16.0.15) Host is up (0.0016s latency). Not shown: 994 closed ports PORT STATE SERVICE 7/tcp open echo 80/tcp open http 515/tcp open printer 8080/tcp open http-proxy 8290/tcp open unknown 9100/tcp filtered jetdirect Nmap done: 1 IP address (1 host up) scanned in 1.50 seconds $ >> lp|Hp LaserJet p1606dn:\ >> :lp=:\ >> :sd=/var/spool/output:\ >> :lf=/var/log/lpd-errs:\ >> :if=/usr/local/bin/foomatic-rip:\ >> :af=/etc/foomatic/hp-laserjet_professional_p1606dn-foo2zjs.ppd:\ >> :rm=172.16.0.15:\ >> :rp=raw:\ >> :sh: >> >> With that I only got the plain text of a *.ps file out of the printer: >> >> %!PS-Adobe-3.0 >> % Produced by xpdf/pdftops 3.02 >> >> %% Creator: GPL Ghostscript... >> >> (with the same identation). >> >> The printing command is: >> >> $ lpr ~/xypic.ps; >> >> (Or any other *.ps file). > > This printer cannot speak postscript. > > Yeah, I know it cannot print postcript, the think is that there is _another_ unidentified problem with the foomatic-rip program, (or the a2ps filter) when you send via lpr a non-ps file, it fails to identify the format of the source file, fails to do conversion on it, and dies (by means of another error completely diferent). With foo2zjs (via usb) I'm able to $ lpr file.ps; If I send another file: $ echo helloworld | lpr ; Then foomatic-rip dies (for another reasons, that I'm not trying to identify right now, I'm trying to first get network printing on this thing). Another note: The printer is *not* supposed to be directly attached (via usb) to my OpenBSD box, that's why my LPD is not listening on any TCP socket. Thank you.
