Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Setting up Printers in Degital Unix
@ 1998-03-31  5:00 Miles Galfer
  1998-04-01  5:00 ` Eric E. Dors
  1998-04-02  5:00 ` Marc Thomas
  0 siblings, 2 replies; 3+ messages in thread
From: Miles Galfer @ 1998-03-31  5:00 UTC (permalink / raw)



We have a new digital system and we are trying to setup printing.  Our
site has lots of HP Jet Direct Cards and I would like to find a way to
print directly to them via a jet admin or just ip number.  Any
suggestions would be great

Miles
galfer@millikin.edu




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting up Printers in Degital Unix
  1998-03-31  5:00 Setting up Printers in Degital Unix Miles Galfer
@ 1998-04-01  5:00 ` Eric E. Dors
  1998-04-02  5:00 ` Marc Thomas
  1 sibling, 0 replies; 3+ messages in thread
From: Eric E. Dors @ 1998-04-01  5:00 UTC (permalink / raw)




Here is a sample /etc/printcap file which prints a few of our HP
printers with Jet Direct cards.  I think that the CDE setup tool can
also be used to build printcap files.  If you don't use the setup tool
you may have to manually create the directories for the lf and sd
fields.  The Jet Direct card has two queue names "raw" and "text".
See your HP printer manual for a description of the differences.  We
have had our current JetDirect printers for about 2 years, when we got
them the firmware was buggy.  I suggest checking out the HP website
for the latest firmware upgrades.

		hope this helps,

			Eric


# HP LaserJet 5M PostScript Printer 
lp0|0|lp|PostScript:\
	:lf=/usr/adm/lp0err:\
	:lp=:\
	:rm=printer.ip.number:\
	:rp=text:\
	:sd=/usr/spool/lpd0:
raw:\
	:lf=/usr/adm/lp0err:\
	:lp=:\
	:rm=printer.ip.number:\
	:rp=raw:\
	:sd=/usr/spool/lpd0:

# HP 1600CM Color PostScript Printer 
lp1|1|:Color:\
	:lf=/usr/adm/lp1err:\
	:lp=:\
	:rm=color.printer.ip.number:\
	:rp=text:\
	:sd=/usr/spool/lpd1:

Miles Galfer <galfer@millikin.edu> writes:

> We have a new digital system and we are trying to setup printing.  Our
> site has lots of HP Jet Direct Cards and I would like to find a way to
> print directly to them via a jet admin or just ip number.  Any
> suggestions would be great
> 
> Miles
> galfer@millikin.edu
> 

-- 

============================================================================
| Eric E. Dors           |    Internet:dors@gamma.physics.uiowa.edu        |
============================================================================



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting up Printers in Degital Unix
  1998-03-31  5:00 Setting up Printers in Degital Unix Miles Galfer
  1998-04-01  5:00 ` Eric E. Dors
@ 1998-04-02  5:00 ` Marc Thomas
  1 sibling, 0 replies; 3+ messages in thread
From: Marc Thomas @ 1998-04-02  5:00 UTC (permalink / raw)
  To: Miles Galfer




	You first need to assign ip-addresses to the HP printers and
make sure tcp/ip is activated.  This can be done 

	1. from the front panel,
	2. with HP's JetAdmin Utility (but I believe that this is
	   only available for Windows 95/NT or SUN Solaris),
	3. or via the bootpd on your Unix server.

Actually, HP printers often arrive with a default address of
192.0.0.192 (info.iana.net) but you DON'T want to leave it this way.

	As root, on the machine which is your nameserver, enter the 
hostname ip-address pair in /etc/hosts, say it is:

--- /etc/hosts -----------------------------------------------------

#
# HP printers with JetDirect
#
199.199.1.1	print_01

...

--------------------------------------------------------------------

Change directory to /etc/namedb and run

make hosts

this will update the cache and push the zone transfers to the
secondary(ies). 

	Most JetDirect cards support only TWO printer queues:
"raw" and "text". If /etc/printcap doesn't yet exist I would
run "/usr/sbin/lprsetup" first. I would then edit /etc/printcap 
and make entries for text jobs (ascii) and binary jobs (postscript/pcl) 
roughly as follows (the CAPs versions are for casedead PC's and MAC's):

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

#
# remote printers (for ps,pcl,text) which run lpd
#
ps_jobs|PS_JOBS|HP LaserJet 5M :\
	:lp=:\
	:rm=print_01:rp=raw:lf=/usr/adm/lperr:\
	:sd=/var/spool/remotelpr01_ps:
pcl_jobs|PCL_JOBS|HP LaserJet 5M :\
	:lp=:\
	:rm=print_01:rp=raw:lf=/usr/adm/lperr:\
	:sd=/var/spool/remotelpr01_pcl:
text_jobs|TEXT_JOBS|HP LaserJet 5M :\
	:lp=:\
	:rm=print_01:rp=text:lf=/usr/adm/lperr:\
	:sd=/var/spool/remotelpr01_text:

...

--------------------------------------------------------------------

You can do "man printcap" and see other options you may want to
add to the /etc/printcap entries (for example "mx#5000:" to limit
the maximum file size).

You also need to make the spooling directories (/var/spool/remote*)
and they MUST be daemon owned (NOT root owned), e.g.

cd /var/spool
mkdir remotelpr01_ps
chown daemon remotelpr01_ps
chgrp daemon remotelpr01_ps

	I would then try a short ascii file (even /etc/printcap)
then a postscript file, via

lpr -Ptext_jobs /etc/printcap
lpr -Pps_jobs [any postscript file]

to see if they print ok. If nothing happens see if the jobs are
staying in the queue, via

lpq -Ptext_jobs
lpq -Pps_jobs

Otherwise, error messages should be in /usr/adm/lperr.


			Marc Thomas
			marc@AVOID.THE.SPAM.ultrix6.cs.csubak.edu
			(remove 3 words)




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-04-02  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-31  5:00 Setting up Printers in Degital Unix Miles Galfer
1998-04-01  5:00 ` Eric E. Dors
1998-04-02  5:00 ` Marc Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox