From owner-freebsd-questions@FreeBSD.ORG Wed Apr 22 14:36:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D2D010658CE for ; Wed, 22 Apr 2009 14:36:43 +0000 (UTC) (envelope-from weif@cjones.org) Received: from maxine.cjones.org (chris.static.mt.net [206.127.66.35]) by mx1.freebsd.org (Postfix) with ESMTP id 320528FC1C for ; Wed, 22 Apr 2009 14:36:43 +0000 (UTC) (envelope-from weif@cjones.org) Received: by maxine.cjones.org (Postfix, from userid 1003) id BE2F0A3E96; Wed, 22 Apr 2009 08:36:42 -0600 (MDT) From: Keith Seyffarth To: Jerry McAllister In-reply-to: <20090420152543.GA95954@gizmo.acns.msu.edu> (message from Jerry McAllister on Mon, 20 Apr 2009 11:25:43 -0400) References: <20090420145839.5D396A3DC7@maxine.cjones.org> <20090420152543.GA95954@gizmo.acns.msu.edu> Message-Id: <20090422143642.BE2F0A3E96@maxine.cjones.org> Date: Wed, 22 Apr 2009 08:36:42 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: Can you ACTUALLY print from FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: weif@weif.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 14:36:44 -0000 > What kind of printing do you need to do? For the moment there are two things: 1. Create .pdf files from HTML/XHTML documents viewed in Firefox or Opera 2. Print HTML/XHTML documents viewed in Firefox or Opera to a printer. > To send files to some either attached or network attached printer, > you just need to: > > set up an entry in /etc/printcap > for a printer named myprt, make something like: > > lp|myprt|HP OfficeJet 4110 N:\ > :lp=:rp=myprt:rm=myprt.prt.full.hostname:\ > :sh:mx#0:\ > :sd=/var/spool/myprt:\ > :lf=/var/log/printer.log: > (Of course, change myprt.prt.full.hostname to a real address) I have this: lp|OfficeJet:\ :lp=/dev/ulpt0:\ :af=/usr/local/share/ppd/HP//HP-OfficeJet_4110-hpijs.ppd.gz:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/print.hp:\ :lf=/var/log/print.hp.log:\ :sh: > create a spool directory for it in /var/spool > (eg for a printer named myprt in printcap, > create a /var/spool/myprt directory created directory /var/spool/print.hp > create an empty log file for it > touch /var/log/printer.log touched /var/log/print.hp.log > then enable lpd in /etc/rc.conf - lpd_enable="YES" added this > This sets up a 'standard' printer destination (named lp) > Then you can print using lpr(1) I can send files to the print spool this way, but then they just disappear from the print spool. There is no evidence of attempted communication with the printer, and certainly no printing going on. > Some utilities want to use cups and other heavy stuff, but > just for regular printing - of a file or from firefox or openoffice, etc > you don't need that. Never used OpenOffice...