From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Frank Chu-Cheong Newsgroups: gmane.os.tru64.managers Subject: Summary: printing to T64V4.0g from W2K Date: Fri, 10 Jan 2003 08:12:10 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <849E25EBEA25D311802E00508B4AB3065595A3@exchsvr.digi-data.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1042200611 18008 80.91.224.249 (10 Jan 2003 12:10:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2003 12:10:11 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18WxzB-0004gC-00 for ; Fri, 10 Jan 2003 13:10:05 +0100 Original-Received: (qmail 28817 invoked by uid 5); 10 Jan 2003 12:11:03 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 28808 invoked by uid 49493); 10 Jan 2003 12:11:03 -0000 Original-Received: from frank@digi-data.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-2.1/5.0):. Processed in 0.466928 secs); 10 Jan 2003 12:11:03 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 10 Jan 2003 12:11:02 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H8H00MHFZ6DUG@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 10 Jan 2003 07:11:02 -0500 (EST) Original-Received: from digi-data.com (ns.digi-data.com [209.94.197.193]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H8H0091QZ5ZRZ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 10 Jan 2003 07:10:50 -0500 (EST) Original-Received: from exchsvr.digi-data.com ([10.1.1.11]) by odin.digi-data.com with ESMTP id <119060>; Fri, 10 Jan 2003 08:11:46 -0400 Original-To: "Tru64-Unix-Managers \(E-mail\)" X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 Thread-Topic: Summary: printing to T64V4.0g from W2K Thread-Index: AcK4oYC7tF8xw2c2StukKbL8vNaJnQ== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: main.gmane.org gmane.os.tru64.managers:2919 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2919 Many thanks to the following especially Ernie LaBonte. Lucio Chiappetti suggested two courses of action depending on how I = wanted to see the printer. - If as a "Microsoft network" printer (like a printer attached to = another PC), use SAMBA. He also noted that "with SAMBA you have to pass = through the printcap of a Unix machine, even if the printer is a = network printer and not physically attached to a serial or parallel = port of the Unix machine " - or as a TCP-IP printer. In such case you have to install a printer = spooler on the PC. Again he noted "An advantage of the spooler is that = you can turn it on and off when you want. Another advantage is that in = this way you can print directly to a TCPIP network printer". Peter Stern and Rost,Werner both said the same thing:=20 enter the hostname or ip number of the W2k machine in the /etc/hosts.lpd = file. Pat O'Brien and Ernie LaBonte both noted: If you want to use Tru64 for = job queuing, configure a remote lpd printcap entry to the LaserJet 4000 = printer thus eliminating any potential print filter conflicts. Keep the = current printcap entry for local printing. Ernie LaBonte went into great detail: For Windows 2000 - add printer - local printer - Create new port LPR Port - Name/address of server providing lpd Tru64 UNIX system name remote print queue name - Select printer and finish the configuration On the UNIX side (sample printcap entry):=20 remote|lp8:\ :lf=3D/usr/adm/lperr_remote:\ :lp=3D:\ :rm=3Dprinter.com:\ :rp=3DRAW:\ :sd=3D/usr/spool/print/remote: The rp values are RAW and TEXT. When TEXT is used the printer will = provide simple text formatting. RAW is used to print the data without = any formatting by the printer. Windows 2000 has already formatted the = file and we don't want the printer to mess with it, so RAW is used.=20 He also provided some great trouble shooting hints: 1) Test the basic ability to connect and print. > echo "this is a test" | /usr/lbin/lpf | lpr -Plp7 Don't proceed until something prints. 2) Create a file called /etc/hosts.lpd containing an * character. This file might be required. The * wildcard is used to accept print requests from all systems. 3) Some printers are case sensitive so change the printcap from :rp=3Draw:\ to :rp=3DRAW:\ 4) When there isn't any printing activity enter > ps ax | grep lpd You should only see one /usr/lbin/lpd process. If you see more than one enter: > /sbin/init.d/lpd stop > /sbin/init.d/lpd start If you get to the point where the file prints followed by a page = containing User Host Class and Job information, add :sh:\ to the = printcap entry to disable the printer generated page. . Final Comments(my own): SAMBA does exactly what Lucio said it would. Printing failed When the ip address of the W2K machine was entered in = the /etc/hosts.lpd file, but was sucessful when the * wildcard was = used. This was true for both Tru64 V4.0G on an AS4000 and Tru64 V5.1A = on an ES40. Once again, many thanks. frank Problem Statement follows: I would like to send print jobs from a W2k machine to a printer = configured on a Alpha Server 4000 running T64 V4.0g The printcap entry for the printer in question is as follows: lp|lp0|0:\ :af=3D/usr/adm/lpacct:\ :if=3D/usr/lbin/pcfof +Chplj4000tn.pcf:\ :lf=3D/usr/adm/lperr:\ :lp=3D@hp/hp_printer:\ :mx#0:\ :of=3D/usr/lbin/pcfof +Chplj4000tn.pcf:\ :pl#66:\ :pw#0:\ :rw:\ :sd=3D/usr/spool/lpd:\ :xf=3D/usr/lbin/xf: I have played around with Windows trying to make this happen, but = without any luck. My question is: what do I have to do on the UNIX side to make this = happen? Additionally, any pointers to relevant documentation would be = appreciated. thanks. frank.