From owner-freebsd-questions Fri Jan 4 12:39:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by hub.freebsd.org (Postfix) with ESMTP id 4CC2937B41E for ; Fri, 4 Jan 2002 12:39:00 -0800 (PST) Received: from there by smtp.hccnet.nl via fia168-94.dsl.hccnet.nl [62.251.94.168] with SMTP for id VAA20815 (8.8.8/1.13); Fri, 4 Jan 2002 21:38:57 +0100 (MET) Message-Id: <200201042038.VAA20815@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Simon Siemonsma To: freebsd-questions@freebsd.org Subject: Does lpt0 work under FreeBSD? Date: Fri, 4 Jan 2002 21:44:02 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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: ->&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