Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2009 08:36:42 -0600 (MDT)
From:      Keith Seyffarth <weif@weif.net>
To:        Jerry McAllister <jerrymc@msu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can you ACTUALLY print from FreeBSD?
Message-ID:  <20090422143642.BE2F0A3E96@maxine.cjones.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

> 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...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090422143642.BE2F0A3E96>