From owner-freebsd-questions@FreeBSD.ORG Fri Mar 4 05:40:17 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 9AE3C16A4CE; Fri, 4 Mar 2005 05:40:17 +0000 (GMT) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02E5A43D2D; Fri, 4 Mar 2005 05:40:17 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) j245eJb36001; Thu, 3 Mar 2005 21:40:20 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "bsdnooby" , Date: Thu, 3 Mar 2005 21:40:14 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <4227EBA2.2090402@optonline.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Importance: Normal cc: FreeBSD Newbies Subject: RE: 6 hours of trying to configure my printer - solved 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: Fri, 04 Mar 2005 05:40:17 -0000 Hi bsdnobody, Looks great to me! apsfilter is a really nice filter program, allowing duplexing, multiple pages per page, etc. Of course, you actually don't need to run it. The real grunt work in your scenario is being done by ghostscript, which is converting the incoming postscript that apsfilter is massaging, into the language that HP Deskjets understand. Using Ghostscript in this way works great if Ghostscript happens to support your printer model (which it does) Ghostscript tends to support a lot of HP deskjet models. The apsfilter port installed ghostscript for you. For people that don't have a model of printer supported by Ghostscript, you can configure Ghostscript to pump out "ijs" format, then pump this into the program ijsgimpprint which puts it into gimp-print. Gimpprint http://gimp-print.sourceforge.net/ has support for a whole lot more printers. Ted > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of bsdnooby > Sent: Thursday, March 03, 2005 9:01 PM > To: freebsd-questions@freebsd.org > Cc: FreeBSD Newbies > Subject: Re: 6 hours of trying to configure my printer - solved > > > > 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/print ing-intro-setup.html http://www.defcon1.org/html/Networking_Articles/natdhowto-whisky/aps-filt er/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" _______________________________________________ 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"