Here goes the summary regarding the printcap support for a HP LaserJet 4Mp.
firstname.lastname@example.org (J. William Yu) said:
Here's my printcap entry for an HP4m. I'm not sure how much that will
Also - I have the same copy of Printcap City. Sorry I couldn't get
you a later one...
email@example.com (Dan Walsh) said:
This is a entry form our /etc/printcap file on a 4.1.3 SunOS machine.
The first entry is for single sided paper printing and the second is for
double sided paper.
hp4-u1n29|hp6|hp4_u1n29|Postscript & PCL HP U1P29 4Si MX:\
hp4-u1n29d|hp6d|hp4_u1n29d|Postscript & PCL HP U1P29 4Si MX(2 sided):\
firstname.lastname@example.org (Juergen Flosbach) said:
I havn't got a printcap entry for the HP 4MPlus. But I have the the entry for
HP 4M. I hope this will help you too.
----- Begin Included Message -----
> I just purchased and installed a HP4M laser printer on my Sun.
> I'm stoked - it works wonderfully! There seems to be a lot of net
> traffic about this combination, so I decided to post about the
> Of course, your mileage may vary - and if your a mighty Sun God
> sysadmin this message isn't for you. I'm not really a system administrator,
> but I play one at home...
> My system is a SS1 under 4.1.3 - the printer is driven through
> a serial port (ttyb). All of my examples relate to this configuration.
> 0. Unpack the printer, perform setup. Print all the neat diagnostic
> pages. Set the serial configuration for RS-232, XON/XOFF handshaking
> and 9600 baud.
> 1. Pick the serial port which will be used. Check /etc/ttytab to ensure
> that getty is disabled for that port.
> 2. Update /etc/printcap - here is my entry:
> These definitions are spelled out in the printcap manpage. In english,
> this says to use the ttyb serial port at 9600 baud, no parity, new lines
> are CR/LF and use XON/XOFF handshaking. Inhibit the banner page.
> Spool the jobs to /var/spool/lpd, and keep the status messages there too.
> 3. Ensure that lpd is started. My system starts lpd in /etc/rc
> 4. Halt the system. While under control of the monitor, type 'printenv'
> and check the serial configuration. Mine says:
> ttyb-mode 9600,8,n,1,-
> ttyb-rts-dtr-off true
> ttyb-ignore-cd true
> Of course, you can change these values w/'setenv'
> (I would not be surprised to learn that this step is completely
> superfluous and that only the printcap entry matters. The semester is
> over in 11 weeks, and I'll take a look then!)
> 5. Connect the RS-232 cable between the printer and your Sun.
> My HP4MP uses a DB-9 (female) and my SS1 uses a DB-25 (female).
> HP does not supply a cable, so plan accordingly! The connection
> is straight through (i.e. no null adapter required).
> 6. Boot the system. Use 'lpr' to send a small ASCII job to the printer.
> If you get garbage, or nothing - check the RS-232 parameters on the
> printer. Then check the printcap. Is lpd running? Check /var/adm/messages
> for clues. I did try to use hardware handshaking, but gave up after an
> attempt or two.
> 7. If your previous experiment works, try a PS file. I tried some quick
> examples w/TeX through dvips - they worked great!
>From Eric Havinga:
On an IPX running 4.1.3 we use this entry:
This is the hpfilter:
# Save the stdin under an arbitrary (unused) file descriptor so
# we don't lose the input before we need it
# Sleep time (in seconds) to wait for emulation timeout (Serial Comm)
# Parse off the command line for the login and host information
do case $1 in
-n*) USER=`echo $1 | sed "s/^..//"`
-h*) HOST=`echo $1 | sed "s/^..//"`
if test $# -gt 0
# Configuration dependent variables
# Test LOG for writability
if [ ! -w $LOG ]
echo "Can't open log file $LOG for writing." | mail root $USER
# Begin the log entry
echo `date` >> $LOG
echo "hpfilter: Beginning File Transfer" >> $LOG
# Recover the stdin file descriptor
# Communications option is serial or parallel, so all we have
# to do is put the data onto stdout. Then sleep until the comm
# timeout on the printer is reached, so no other jobs can be
# concatenated onto this one
( cat $SETUPFILE - $RESETFILE ) 2>> $LOG
# Log that we've finished, and exit happily
echo `date` >> $LOG
echo "hpfilter: File Transfer Complete" >> $LOG
echo >> $LOG
This is the resetfile:
And this the setup:
>From Mel :
#This entry uses the Sun transcript filters
# Luis F. Vallejo Support #
# Senior Support Engineer Polaris Service Inc. #
# Internet : email@example.com 257 Cedar Hill Street #
# Phone : 800-626-1661 Marlborough,MA 01752-3005 #
# U.S.A. #
----- End Included Message -----
Thanks everybody for the prompt help. I hope this summary helps other people.
.. Fernando Mariano Dias E-Mail: firstname.lastname@example.org ..
.. Silvac, Lda. Tel: (+351) 1 3951378 ..
.. Av. 24 de Julho, 6 - A Tel: (+351) 1 601369 ..
.. 1200 Lisboa, Portugal - Europe Fax: (+351) 1 601206 ..
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:06 CDT