From owner-freebsd-questions Fri Jan 4 12:52:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by hub.freebsd.org (Postfix) with ESMTP id 5359437B41A for ; Fri, 4 Jan 2002 12:52:30 -0800 (PST) Received: from [195.20.224.204] (helo=mrvdom00.kundenserver.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 16MbKH-0002yt-00; Fri, 4 Jan 2002 21:52:29 +0100 Received: from pd9017280.dip.t-dialin.net ([217.1.114.128]) by mrvdom00.kundenserver.de with esmtp (Exim 2.12 #2) id 16MbKF-0007yd-00; Fri, 4 Jan 2002 21:52:27 +0100 Date: Fri, 4 Jan 2002 21:52:38 +0000 (GMT) From: Peter Ulrich Kruppa X-X-Sender: To: Simon Siemonsma Cc: Subject: Re: Does lpt0 work under FreeBSD? In-Reply-To: <200201042038.VAA20815@smtp.hccnet.nl> Message-ID: <20020104214956.N78259-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG All my (parallel-port-) Deskjets have worked very well with /usr/ports/print/apsfilter For more information have a look at www.apsfilter.org Regards, Uli. On Fri, 4 Jan 2002, Simon Siemonsma wrote: > Searching through the cups mailing list at http://www.cups.org/newsgroups.php > (cups.general newsgroup and searching for FreeBSD) I got the following > information: > "Nonsense, under FreeBSD there are *no* parallel port options. > > Unless you want to print through a serial port CUPS is useless as a print > > service." > > Is this true? > I can't believe it, but it would explain why I don't get CUPS working and why > I get the error stdout broken in my errorlog. > > If true can someone tell me what alternatives I have to make my printer > working, I don't want to buy a new one, and sure not one for my serial port. > When not true can someone tell me what the probem is and how to solve it. > > I want to make use of CUPS, cupsomatic (as described at linuxprinting.org) > and pnm2ppa (to support my HP DeskJet 710c) > > I use the method as described at linuxprinting.org where I make the following > adjustments to the cupsomatic file: > my $enscriptcommand = "enscript" << does it may need some parameters>> > my $myecho = 'cupsecho' > my $debug=1 > I removed the # at the line starting with #$ENV{'PATH"}=.... > > I installed pnm2ppa from the ports. > > my ppd line contains the following indentifiing line: > *NickName: "HP DeskJet 710C, Foomatic + pnm2ppa" > > When installing enscript-a4 from the ports it said that the spooler was set > to lpr. Is this maybe part of the problem? I have no clue how to change it > and to what! > > Below is the content of the debug file. > I see the following problems: > Perl is making some problems about locales. Don't what it is, but I don't > expect it to be the problem. > cat: stdout: Broken pipe this sounds like the serious trouble for me. > > Further I placed a small script in the /bin file with the name cupsecho to > ensure cupsomatic would use the sh echo, instead of the csh or FreeBSD echo, > wich support the -e option. > #!/bin/sh > echo * > > > Simon Siemonsma > > > > Cupsomatic backend version $Revision: 1.12 $ running... called with > arguments: '8','root','Test Page','1','' > ppd=/usr/local/etc/cups/ppd/HP_DeskJet_710C.ppd Default for option > PrinterModel is DJ710C > Default for option pnmFormat is PixMap > Default for option BottomMargin is 150 > Default for option TopMargin is 10 > Default for option YOffset is 50 Default for option PrintingMode is > ColorNormal > Default for option Blackness is 2 > Default for option XOffset is 160 > Default for option RightMargin is 10 Default for option > DisableColorCorrection is 0 > Default for option Unidirectional is 0 > Default for option LeftMargin is 10 > Default for option PageSize is Letter > Seaerching job for option settings ... > Found: %%BeginFeature: pnmFormat PixMap Option: pnmFormat=PixMap --> Setting > option Found: %%BeginFeature: DisableColorCorrection False Option: > DisableColorCorrection=False --> Setting option Found: %%BeginFeature: > Unidirectional False Option: Unidirectional=False --> Setting option Found: > %%BeginFeature: PrintingMode ColorNormal Option: PrintingMode=ColorNormal --> > Setting option > Found: %%BeginFeature: PageSize Letter Option: PageSize=Letter --> Option > will be set by PostScript interpreter > options: -> option pnmFormat is PixMap Final value for option BottomMargin is 150 > Final value for option TopMargin is 10 > Final value for option YOffset is 50 Final value for option PrintingMode is > ColorNormal > Final value for option Blackness is 2 > Final value for option XOffset is 160 Final value for option RightMargin is > 10 Final value for option DisableColorCorrection is 0 Final value for option > Unidirectional is 0 > Final value for option LeftMargin is 10 Final value for option PageSize is > Letter /usr/local/libexec/cups/filter/cupsomatic: prepended: > gs PID pid2=788 gs command: gs -sDEVICE=ppmraw -q -dNOPAUSE -dSAFER -dBATCH > -r600 -sOutputFile=- - | pnm2ppa -v 710 -f /etc/pnm2ppa.conf --eco -F > /etc/pnm2ppa.gamma_normal -B 2 -t 10 -b 150 -l 10 -r 10 -x 160 -y 50 -i - -o > perl: warning: Setting locale failed. perl: warning: Please check that your > locale settings: > LC_ALL = (unset), > LANG = "en" are supported and installed on your system. perl: warning: > Falling back to the standard locale ("C"). foomatic-gswrapper: gs > '-sDEVICE=ppmraw' '-dNOPAUSE' '-dSAFER' '-dBATCH' '-r600' '-sOutputFile=|cat > >&3' '-' 3>&1 1>&2 > GNU Ghostscript 6.52 (2001-10-20) Copyright (C) 2001 artofcode LLC, Benicia, > CA. All rights reserved. This software comes with NO WARRANTY: see the file > COPYING for details. Loading NimbusSanL-Bold font from > /usr/local/share/ghostscript/fonts/n019004l.pfb... 1952656 582877 1642520 > 352580 0 done. Loading NimbusSanL-Regu font from > /usr/local/share/ghostscript/fonts/n019003l.pfb... 2012944 631528 1642520 > 353164 0 done. Loading NimbusRomNo9L-Regu font from > /usr/local/share/ghostscript/fonts/n021003l.pfb... 2073232 689521 1642520 > 353758 0 done. Loading NimbusSanL-BoldItal font from > /usr/local/share/ghostscript/fonts/n019024l.pfb... 2113424 742661 1662616 > 361507 0 done. > cat: stdout: Broken pipe > Error: /ioerror in --.outputpage- > Operand stack: 416.5 308.0 306.0 748.0 306.0 55.0 51.0 1 true > Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- > --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- > --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop > .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push > --nostringval-- 7 3 %oparray_pop --nostringval-- --nostringval-- > --nostringval-- --nostringval- > Dictionary stack: --dict:989/1476(ro)(G)-- --dict:0/20(G)-- --dict:87/200(L)- > Current allocation mode is local > Last OS error: 32 GNU Ghostscript 6.52: Unrecoverable error, exit code 1 > PAGE: 1 1 Couldn't exec foomatic-gswrapper -sDEVICE=ppmraw -q -dNOPAUSE > -dSAFER -dBATCH -r600 -sOutputFile=- - | pnm2ppa -v 710 -f /etc/pnm2ppa.conf > --eco -F /etc/pnm2ppa.gamma_normal -B 2 -t 10 -b 150 -l 10 -r 10 -x 160 -y 50 > -i - -o - at /usr/local/libexec/cups/filter/cupsomatic line 877. tail process > done writing data to *main::STDOUT > KID4 finished > Main process finished > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > #==================================# # Peter Ulrich Kruppa # # Wuppertal - Germany # # www.pukruppa.de - www.2000d.de # #==================================# To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message