From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 20:50:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4838137B401 for ; Sat, 2 Aug 2003 20:50:50 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABEA643F85 for ; Sat, 2 Aug 2003 20:50:49 -0700 (PDT) (envelope-from freebsduser@comcast.net) Received: from comcast.net (12-225-141-88.client.attbi.com[12.225.141.88](untrusted sender)) by comcast.net (rwcrmhc11) with SMTP id <2003080303504801300fvlj3e> (Authid: animotions); Sun, 3 Aug 2003 03:50:49 +0000 Message-ID: <3F2C8696.6070700@comcast.net> Date: Sat, 02 Aug 2003 20:50:46 -0700 From: K Anderson User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: duane@damiano.name References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Printing Trouble X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2003 03:50:50 -0000 Duane A. Damiano wrote: > I'm a Linux person trying out FreeBSD for the first time. > > I just installed 5.1. Most things work pretty well so far, but I can't > get the print system to work right. I can print plain text files, but I > can't print web pages or .ps files. > > My printer is a HP DeskJet 694C. I have a file called > /usr/local/libexec/if-ps, which is an exact copy of the one listed > (called ifhp) in the "FreeBSD Handbook." The only difference is that > I replaced "djet500" with "cdj670". (I tried other choices also.) > > When I try to print a web page or a .ps file, nothing happens. I know > that lpr is seeing my if-ps file because when I put "echo test" into it, > "test" gets printed. > > Here's what I see in /var/log/lpd-errs: > > Error: /invalidfileaccess in --.outputpage-- > Operand stack: > 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 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 > --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push > --nostringval-- 0 3 %oparray_pop --nostringval-- --nostringval-- > --nostringval-- --nostringval-- > Dictionary stack: > --dict:1059/1123(ro)(G)-- --dict:0/20(G)-- --dict:170/200(L)-- > Current allocation mode is local > Last OS error: 45 > GNU Ghostscript 7.06: Unrecoverable error, exit code 1 > Aug 2 14:40:18 swing lpd[606]: HP694C: job could not be printed > (cfA030swing.dad.org) > > > What's going on here? Is ghostscript not working? (GhostView seems > to work okay - except it won't print.) > > > I see that CUPS is on my system. But, I don't see any documentation > for it. On my Linux system, these two statements in my /etc/rc.local > take care of everything: > > /usr/sbin/cupsd > /usr/sbin/lpadmin -p DeskJet -E -v parallel:/dev/lp0 -m deskjet.ppd > > But, there's no lpadmin on my FreeBSD system. > > If someone could give me a simple CUPS solution, that would be fine > too. > > Duane > > --------------------------------------------------------- > Duane A. Damiano duane@damiano.name > P. O. Box 22429 Phone: 410-685-6221 > Baltimore MD 21203-4429 U.S.A. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Check to see if cups is up and running. Check to see if you have cups-lpr, cups, and cups-base installed. If not install the missing items. You'll need to replace freebsd's lp* binaries with cups's binaries (I think it tells you to do that too, or something like that) browse to localhost:631 and do administrative tasks of checking the printers to ensure they are listed. If not then do the install printer process. Oh, in your /etc/make.conf do a man on that and put in the option that tells BSD to not install/compile the lp* and thus accidently replacing them with cups's. That should get you going, hopefully.