Printing to HP LaserJet 4M and 4M+

Printing to HP LaserJet 4M and 4M+

Post by jef mosko » Thu, 23 Oct 1997 04:00:00



Howdy.

I'm interested in any experiences you might have had with printing to a
LaserJet 4M printer (serial connection) and/or a LaserJet 4M+ with a
JetDirect card (ethernet connection).

We currently keep a small, cowering, weak SunOS machine alive for the sole
purpose of allowing us to print to these two printers.

HP tech support was clueless (the person I spoke to asked "What's
FreeBSD?") and the text explaining Filters on the official FreeBSD page
was not designed for the average idiot (eg, me).

What I'm really interested in is a gander and your /etc/printcap, as well
as the filters you're using to Make It Go.

Our needs include printing regular text as well as PostScript files.
Anything else (printing .gifs directly, etc.) would be nice, but is not
necessary.

Thanks for your time.

Jeffrey Moskot
System Administrator

 
 
 

Printing to HP LaserJet 4M and 4M+

Post by J Wuns » Fri, 24 Oct 1997 04:00:00



> I'm interested in any experiences you might have had with printing to a
> LaserJet 4M printer (serial connection) and/or a LaserJet 4M+ with a
> JetDirect card (ethernet connection).

Well, the JetDirect is simple.  It's just like any other network
printer, use the rm= and rp= capabilities in /etc/printcap.  You can
probably take this part over from the SunOS machine directly.
Regarding rp=, JetDirects usually support two printer queue names:
RAW, meaning the byte stream will be shuffled 1:1 to the printer, and
TEXT, where LF's will be replaced by CR-LF's, so you can print plain
text files without getting a `staggered' output.

Quote:> What I'm really interested in is a gander and your /etc/printcap, as well
> as the filters you're using to Make It Go.

You need the same filters you did need on the Sun.  If there were no
filters on the Sun, you don't need any on FreeBSD.

Starting with FreeBSD 2.2R, we have abandoned the old bitwise serial
munging in /etc/printcap, and it has been replaced by the `ms'
capability which takes stty-style arguments.  So, for the serial
printer, you need something like

        :br#9600:ms=cs8,clocal,-parenb,-opost:

(I can't tell you much more, never having operated a serial printer
myself.)

--
cheers, J"org


Never trust an operating system you don't have sources for. ;-)

 
 
 

Printing to HP LaserJet 4M and 4M+

Post by jef mosko » Sat, 25 Oct 1997 04:00:00


On 23 Oct 1997, J Wunsch say:


> > I'm interested in any experiences you might have had with printing to a
> > LaserJet 4M printer (serial connection) and/or a LaserJet 4M+ with a
> > JetDirect card (ethernet connection).
> Well, the JetDirect is simple.  It's just like any other network
> printer, use the rm= and rp= capabilities in /etc/printcap.  You can
> probably take this part over from the SunOS machine directly.
> Regarding rp=, JetDirects usually support two printer queue names:
> RAW, meaning the byte stream will be shuffled 1:1 to the printer, and
> TEXT, where LF's will be replaced by CR-LF's, so you can print plain
> text files without getting a `staggered' output.

Something I should have mentioned in the original post: we want printing
to be reasonably seamless.  That is, I don't want a user to have to
understand that they need to print PostScript to one queue and text to
another.  I know this is a very basic concept, but I am dealing with very
basic users.  (And when it comes to this printer stuff, I'm pretty basic
myself, as you've probably noticed.)

Quote:> > What I'm really interested in is a gander and your /etc/printcap, as well
> > as the filters you're using to Make It Go.
> You need the same filters you did need on the Sun.  If there were no
> filters on the Sun, you don't need any on FreeBSD.

Here's how the JetDirect printer looked in SunOS's printcap, with names
changed to protect the innocent:

printer1:\
        :mx#0:lp=/var/spool/printers/printer1/.null:\
        :sd=/var/spool/printers/printer1:\
        :lf=/var/spool/printers/printer1/log:\
        :of=/usr/lib/hpnp/hplj.of.sh:\
        :if=/usr/lib/hpnp/hplj.if.sh:\
        :sh:

The JetAdmin software created this output, so don't ask me to explain
it...except I do know that those of and if files are SunOS specific and
don't work on FreeBSD.  To ask me exactly what they did is to reach the
boundary of my knowledge.

Quote:> Starting with FreeBSD 2.2R, we have abandoned the old bitwise serial
> munging in /etc/printcap, and it has been replaced by the `ms'
> capability which takes stty-style arguments.  So, for the serial
> printer, you need something like

>    :br#9600:ms=cs8,clocal,-parenb,-opost:

> (I can't tell you much more, never having operated a serial printer
> myself.)

(Just for kicks, here is the SunOS printcap entry for the serial
printer...)

# PostScript printer driven by TranScript software
# PostScript and TranScript are trademarks of Adobe Systems Incorporated
printer2:\
        :lp=/dev/ttya:sd=/var/spool/printers/printer2:\
        :lf=/var/spool/printers/printer2/log:af=/usr/adm/lw.acct:\
        :br#38400:rw:fc#0000374:fs#0000003:xc#0:xs#0040040:mx#0:sf:sb:\
        :if=/usr/tran/sparc/lib/psif:\
        :of=/usr/tran/sparc/lib/psof:gf=/usr/tran/sparc/lib/psgf:\
        :nf=/usr/tran/sparc/lib/psnf:tf=/usr/tran/sparc/lib/pstf:\
        :rf=/usr/tran/sparc/lib/psrf:vf=/usr/tran/sparc/lib/psvf:\
        :cf=/usr/tran/sparc/lib/pscf:df=/usr/tran/sparc/lib/psdf:\
        :sh:

Couldn't begin to tell you what all that tran stuff is about.  It was
installed years before I got here.

I am currently working with a filter that was suggested to me by a kind
net citizen that autoselects text or ps.  Haven't got it quite working
yet, but it looks very promising.

Thanks to everyone for all your help, but the brass ring still eludes me.

Jeffrey Moskot
System Administrator

 
 
 

Printing to HP LaserJet 4M and 4M+

Post by t.. » Sat, 25 Oct 1997 04:00:00



Quote:>Howdy.

>I'm interested in any experiences you might have had with printing to a
>LaserJet 4M printer (serial connection) and/or a LaserJet 4M+ with a
>JetDirect card (ethernet connection).

>We currently keep a small, cowering, weak SunOS machine alive for the sole
>purpose of allowing us to print to these two printers.

>HP tech support was clueless (the person I spoke to asked "What's
>FreeBSD?") and the text explaining Filters on the official FreeBSD page
>was not designed for the average idiot (eg, me).

What's pretty funny about this is that last year I worked for a company that
HP contracted to write their tech-support training documentation for - and
I used FreeBSD as the base for the BSD-printing examples in the training docs. :-)

You didn't say what the client machines that you were using that were originating
the print jobs are, nor what application programs on them were generating print
output.  This is kind of important to answer the question, sorry.

 
 
 

Printing to HP LaserJet 4M and 4M+

Post by Jim Flower » Sat, 25 Oct 1997 04:00:00




>Howdy.

>I'm interested in any experiences you might have had with printing to a
>LaserJet 4M printer (serial connection) and/or a LaserJet 4M+ with a
>JetDirect card (ethernet connection).

The HP 4M is pretty good with ps running with the standard filters in most
printcaps.  Use nenscript and groff for formatting. You can run it
simultaneously with a bidirectional parallel port, serial port and appletalk
port. Works even better with a jet direct card as you can hit it with your
unix, pc, and mac boxes without much thinking and few if any errors using
tcp/ip.

Does take some study and understanding, not just using someone's config
files.  Documentation is moderately poor.


 
 
 

1. Print X screen dump to HP LaserJet 4M How?


xwd | xwdtopnm | pnmtops | lpr

(Ain't Unix fun? :-)

You need `netpbm' installed, and an lpd that is capable of printing
PostScript.  If your printer doesn't do PostScript itself, you can use
Ghostscript as a filter.

--
J"org Wunsch                                              Unix support engineer

2. Block text extraction

3. Looking for HP LaserJet 4m PostScript print filter

4. Panic : Level 14 interrupt

5. groff setup for HP LaserJet 4m

6. what file are sound modules loaded in in rh 7.2?

7. HP LaserJet 4M Plus

8. Netscape Setup

9. Trouble Installing HP LaserJet 4M under SOLARIS 2.2

10. HP LaserJet 4m & Solaris 2.3 LP spooler

11. HP LaserJet 4M & Solaris 2.4 (problem)

12. HP Laserjet 4M+

13. HP LaserJet 4M on RedHat 5.1