Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2005 01:11:01 -0800
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        <racerx@makeworld.com>, "Chuck Robey" <chuckr@chuckr.org>
Cc:        FreeBSD - Questions <freebsd-questions@freebsd.org>
Subject:   RE: HP LJ 1100 setup
Message-ID:  <LOBBIFDAGNMAMLGJJCKNMELMFAAA.tedm@toybox.placo.com>
In-Reply-To: <423508A8.30501@makeworld.com>

next in thread | previous in thread | raw e-mail | index | archive | help
owner-freebsd-questions@freebsd.org wrote:
> Chuck Robey wrote:
>> On Sun, 13 Mar 2005, Chris wrote:
>>
>>
>>> Any ideas on how to setup an HPLJ 1100 using either cups or lpd?
>>>
>>>
>>
>>
>> Try Andreas' GREAT printer port, print/apsfilter, which is one of
>> hte best things in ports.  How come it's so completly unknown?
>>
>> Heck, he even has a web site for it, www.apsfilter.org. Really, it's
>> THAT good!
>>
>
> Naaa - not with this one it don't. Nuffin but blank pages on every
> setup I try.

OK, according to the following:

http://www.cs.wisc.edu/~ghost/doc/printer.htm

Ghostscript supports the HP1100 directly.  So there's no need to deal
with the other printer drivers, which should make it easy for you.

Since you already installed apsfilter (which is unnecessary BTW) just
run the following:

gs -?

This will spew out a list of devices that your version of Ghostscript
has installed.  For example:

$ gs -?
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer
messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch
resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last
file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PDF
Default output device: x11
Available devices:
   bbox bit bitcmyk bitrgb bmp16 bmp16m bmp256 bmp32b bmpgray bmpmono
   bmpsep1 bmpsep8 ccr cgm24 cgm8 cgmmono cif dfaxhigh dfaxlow epswrite
   faxg3 faxg32d faxg4 ijs inferno jpeg jpeggray lj4dith ljet4 ljet4d
mgr4
   mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24 nullpage pam pbm pbmraw
   pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfwrite pgm pgmraw pgnm
   pgnmraw pkm pkmraw pksm pksmraw plan9bm png16 png16m png256 pngalpha
   pnggray pngmono pnm pnmraw ppm ppmraw psgray psmono psrgb pswrite
sgirgb
   stp sunhmono tiff12nc tiff24nc tiffcrle tiffg3 tiffg32d tiffg4 tifflzw
   tiffpack x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 x11gray2
   x11gray4 x11mono x11rg16x x11rg32x
Search path:
   . : /usr/local/share/ghostscript/7.07/lib :
   /usr/local/share/ghostscript/fonts
For more information, see /usr/local/share/ghostscript/7.07/doc/Use.htm.
Report bugs to bug-gs@ghostscript.com, using the form in Bug-form.htm.
$

Search the available devices for "ljet4"  If that driver is present your
good to go.  If not, then go to the ports into the ghostscript directory
and do a make deinstall, make clean, make install and then make sure to
select ljet4 from the list of devices.

Once you have that device there, assuming your Laserjet is plugged into
the parallel port, a commmand like:

gs -sDEVICE=ljet4 -sOutputFile=/dev/lpt0
/usr/local/share/ghostscript/7.07/exampl
es/colorcir.ps

should print the postscript example file of a color circle.  Assuming
that works
then it is pretty simple to setup a /etc/printcap entry for that.  Here's
an
example:

lp-hpps:\
        :sh:\

:lp=/dev/lpt0:sd=/var/spool/output/lp-hpps:lf=/var/log/lpd-errs:mx=0:\
        :of=/usr/local/bin/hppsfilter:rw:

cat /usr/local/bin/hppsfilter

#!/bin/sh
#
# Script that runs ghostscript for the HP
#
/usr/local/bin/gs -q -sDEVICE=ljet4  -sOutputFile=- -

You can also write this as an input file for lpd, that might work better
for you,
read the manual.

Note also that if your just going to be printing text only, then you just
need a
CR/LF filter, see:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/corp-net-guide/index.htm
l

specifically the section on setting up filters.

Ted



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