Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 1995 17:22:56 +0100 (MET)
From:      Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
To:        tbrown@icon-stl.net
Cc:        questions@FreeBSD.org
Subject:   Re: Printing in FreeBSD
Message-ID:  <199512151622.RAA04088@gilberto.physik.rwth-aachen.de>
In-Reply-To: <Pine.BSF.3.91.951215084956.507A-100000@edison.icon-stl.net> from "Timothy Brown" at Dec 15, 95 08:50:47 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Okay.  Question on printing with FreeBSD, sans ghostscript.  The system
> is FreeBSD v2.1.0, i'm catting files to /dev/lpt0.  The files come out in 

Is there a peculiar reason why you don't use
lpd printing (/etc/printcap)?

Either you add a filter to /etc/printcap (apsfilter e.g. or a simple shell
script or C-program) ) or you send your printer
the sequence to make it understand the <lf> carriage control.

Here is a snippet that someone else grabbed drom usenet:
This issue is overdue to find reflection in the FAQ
if it isnt't yet.

------------------------------/etc/printcap-----------------------------------

#       @(#)printcap    5.3 (Berkeley) 6/30/90

#lp|local line printer:\
#       :lp=/dev/lp:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:

lp|LaserJet 4P Printer (Raw):\
        :lp=/dev/lpt0:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\
        :mx#0:ff=\033E\033&k2G:fo:sh:tr=\033E:

text|LJ4P w/ Unix2Dos Text Preprocess:\
        :lp=/dev/null:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\
        :of=/usr/local/bin/textlj:\
        :mx#0:sf:sh:

ps|LJ4P w/ Ghostscript PS->PCL Preprocess:\
        :lp=/dev/null:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\
        :of=/usr/local/bin/gslj:\
        :mx#0:sf:sh:

#text|LJ4P w/ Unix2Dos Text Preprocess:\
#       :lp=/dev/null:\
#       :if=/usr/rhh/bin/unix2dos:\
#       :rm=localhost:\
#       :rp=lp:

#ps|LJ4P w/ Ghostscript PS->PCL Preprocess:\
#       :lp=/dev/null:\
#       :if=/usr/local/bin/gslj:\
#       :rm=localhost:\
#       :rp=lp:



------------------------------/usr/local/bin/textlj----------------------------
#!/bin/sh

PRINTER=lp
PATH=/usr/bin:$PATH
export PRINTER PATH

unix2dos | lpr -h


--------------------------/usr/local/bin/gslj--------------------------------

#!/bin/sh

TMPDIR=/usr/tmp
PRINTER=lp
GSLIB=/usr/local/lib/ghostscript/fonts
PATH=/usr/local/bin:/usr/bin:$PATH

export TMPDIR PRINTER GSLIB PATH

#exec gs -q -sDEVICE=laserjet -r300 -dNOPAUSE -- gslp.ps $*
#exec gs -sDEVICE=ljet4 -dNOPAUSE gslp.ps - > /usr/rhh/out 2>&1
exec gs -q -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=\|lpr gslp.ps -

-- 
Gary Clark II   (N5VMF)     |          FreeBSD support and service  
gclarkii@FreeBSD.ORG        |     mail info@gbdata.com for information 
                     FreeBSD FAQ at ftp.FreeBSD.ORG in        
       ~pub/FreeBSD/FreeBSD-current/src/share/FAQ/Text/FreeBSD.FAQ





> UNIX format with the linefeeds all messed up.  How do I fix this?
> 
> Tim
> 

--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de



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