Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: marc@ultrix6.cs.csubak.edu (Marc Thomas)
To: Miles Galfer <galfer@millikin.edu>
Subject: Re: Setting up Printers in Degital Unix
Date: 1998/04/02	[thread overview]
Message-ID: <6fupn9$90$1@hades.csu.net> (raw)
In-Reply-To: 3521607D.4C4A7A9D@millikin.edu




	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)




      parent reply	other threads:[~1998-04-02  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
read-only archive

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