From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,72263a47ab9f926 X-Google-Attributes: gidfee84,public From: marc@ultrix6.cs.csubak.edu (Marc Thomas) Subject: Re: Setting up Printers in Degital Unix Date: 1998/04/02 Message-ID: <6fupn9$90$1@hades.csu.net>#1/1 X-Deja-AN: 340025690 References: <3521607D.4C4A7A9D@millikin.edu> To: Miles Galfer Organization: Cal. State Univ. Bakersfield Newsgroups: comp.unix.osf.osf1 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)