Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2010 08:50:12 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Bill Tillman <btillman99@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Printing via USB Port
Message-ID:  <alpine.BSF.2.00.1002260812340.12954@wonkity.com>
In-Reply-To: <215246.61770.qm@web36501.mail.mud.yahoo.com>
References:  <215246.61770.qm@web36501.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Feb 2010, Bill Tillman wrote:

> This printer worked fine when I was using lpd and a parallel port. 
> Also the apsfilter port is broken which makes it more difficult for a 
> novice like me to get the correct setting for it with lpr method. So I 
> was really looking forward to getting cupsd working this time round.

The original lpd will work with USB printers.  This will give you a 
PostScript printer as the default "lp".  (Following is collected from 
several systems, please pardon if something was left out.)

/etc/printcap:
lp:\
 	:lp=/dev/ulpt0:\
 	:sh:\
 	:mx#0:\
 	:sd=/var/spool/lpd/lp:\
 	:if=/usr/local/libexec/ps2pcl:\
 	:lf=/var/log/lpd-errs:

Create the spool directory:

   % mkdir /var/spool/lpd/lp
   % chmod 770 /var/spool/lpd/lp

Create the PostScript to PCL filter (Brother HL2040 only understands 
PCL):

   % echo "/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- -" > /usr/local/libexec/ps2pcl
   % chmod +x /usr/local/libexec/ps2pcl

Add lpd_enable="YES" in /etc/rc.conf, and start it manually this time 
with just
   % lpd

More detail:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-intro-setup.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html

  -Warren Block * Rapid City, South Dakota USA



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