From owner-freebsd-questions@FreeBSD.ORG Fri Mar 4 05:01:44 2005 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 AAB8116A4CF; Fri, 4 Mar 2005 05:01:44 +0000 (GMT) Received: from bsdnerds.org (pcp0011384308pcs.ebrnsw01.nj.comcast.net [69.248.83.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id A73EA43D5C; Fri, 4 Mar 2005 05:01:43 +0000 (GMT) (envelope-from owner-freebsd-newbies@freebsd.org) Received: by bsdnerds.org (Postfix, from userid 1001) id 6331D655A; Fri, 4 Mar 2005 00:01:45 -0500 (EST) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by bsdnerds.org (Postfix) with ESMTP id 272A7654D for ; Fri, 4 Mar 2005 00:01:31 -0500 (EST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 884D25767D; Fri, 4 Mar 2005 05:01:11 +0000 (GMT) (envelope-from owner-freebsd-newbies@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id DCF6416A4D1; Fri, 4 Mar 2005 05:01:10 +0000 (GMT) Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E52E316A4CE; Fri, 4 Mar 2005 05:01:05 +0000 (GMT) Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.4.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03EA243D60; Fri, 4 Mar 2005 05:01:05 +0000 (GMT) (envelope-from bsdnooby@optonline.net) Received: from [192.168.0.25] (ool-43532b7b.dyn.optonline.net [67.83.43.123]) by mta5.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0ICT00N1M9XR12@mta5.srv.hcvlny.cv.net>; Fri, 04 Mar 2005 00:01:03 -0500 (EST) Date: Fri, 04 Mar 2005 00:01:22 -0500 From: bsdnooby In-reply-to: <20050301173923.S26737@wonkity.com> To: freebsd-questions@freebsd.org Message-id: <4227EBA2.2090402@optonline.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0 (X11/20050226) References: <4223F97E.2090401@optonline.net> <20050301173923.S26737@wonkity.com> X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Sender: owner-freebsd-newbies@freebsd.org Errors-To: owner-freebsd-newbies@freebsd.org X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on bsdnerds.org X-Spam-Level: X-Spam-Status: No, hits=0.4 required=4.5 tests=AWL,DONT_DELETE autolearn=no version=2.64 cc: FreeBSD Newbies Subject: Re: 6 hours of trying to configure my printer - solved X-BeenThere: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2005 05:01:44 -0000 I got my printing working by installing "apsfilter" and by following some of the instructions in the (printed) "The FreeBSD Handbook 2ed". I am using FreeBSD 5.3, an HP940c Deskjet, parallel port connection, and the "lpr" method of printing (rather than the "CUPS" method). Initially I followed the instructions in the book, and was able to get some garbled output to come out of my printer. Then I installed apsfilter, which enabled some perfect printouts from Firefox. The apsfilter install created a new print queue that I had to tweak to make them compatible with the methodology I learned from the book. I never got the "text" and "postscript" filters documented in the book to work, but apsfilter works fine - so I'm using that. The sequence I followed is probably not ideal, but this is roughly what I did: 1. Make sure FreeBSD can see my printer: dmesg | grep lp lpt0: on ppbus0 lpt0: Interrupt-driven port lpt0: switched to polled standard mode 2. Enable printer in with: lptcontrol -p -d /dev/lpt0 3. Make sure printer is able to print: lptest > /dev/lpt0 4. Add enable command to /etc/rc.local ( I had to create /etc/rc.local, so I guessed I need to make it executable with: chmod 550 /etc/rc.local ) 5. Create printer spool directory mkdir /var/spool/lpd 6. Build apsfilter: cd /usr/ports/print/apsfilter make install clean rehash 7. Configure apsfilter: cd /usr/local/apsfilter ./SETUP 8. Make spool directory accessible by daemon group: chown daemon:daemon /var/spool/lpd/hp940 chmod 770 /var/spool/lpd/hp940 9. Add "ps" and "lp" aliases to the apsfilter-created entry in /etc/printcap: # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL ps|lp|hp940|ijs/DESKJET_940;r=300x300;q=medium;c=full;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/hp940:\ :lf=/var/spool/lpd/hp940/log:\ :af=/var/spool/lpd/hp940/acct:\ :mx#0:\ :sh: # APS1_END - don't delete this 10. Enable lpd daemon in /etc/rc.conf by adding: lpd_enable="YES" 11. Reboot 12. Manage print jobs list print job = "lpq -P hp940" remove print job = "lprm #" (#=jobnumber) cancel all jobs = "lprm -" I have tested Firefox and Abiword, the two programs I will be printing from - and they both seem to work when I print to the "default postscript" printer. Any suggestions or fixes to these instructions are encouraged. I am really new to Unix and FreeBSD, so please forgive any bad advice contained above. Some useful links: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-intro-setup.html http://www.defcon1.org/html/Networking_Articles/natdhowto-whisky/aps-filter/aps-filter.html http://www.defcon1.org/html/Networking_Articles/apsfilter/apsfilter.html http://www.freebsddiary.org/apsfilter.php thx! _______________________________________________ freebsd-newbies@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-newbies To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"