From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076332421387.tru64-unix-managers.marc@archive.invalid> From: marco () gore ! afep ! cornell ! edu Date: Thu, 16 May 1996 12:58:34 +0000 To: tru64-unix-managers Subject: SUMMARY: Remote printing not off a server. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076332421387 Thanks to all that responded: robert.schuhl@ald-vt.de warren@atmos.washington.edu bjw@anpnt22.anp.ansto.gov.au ORIGINAL: >Dear Managers, > > I have an Apple LaserWriter 16/600 postscript printer on my network. It >is not connected to a workstation or server on the net; it has its own IP >address. Currently only Macs print to this printer. I would like to set up >remote printing from my DEC3000 and other workstations. The DEC manuals and the >OSF www site talks only about remote printers connected to a server. Thanks in >advance. SOLUTION: I knew about setting up the printcap with the printers IP address just like you would as if it was a server. I had the printcap file setup, the spooling directories and filters, and I also added the printer's IP address and name to the "hosts" file under /etc. Actually, someone else made these setups and they didn't seem to work. Any print commands (lpq, lpr) gave an error message, "can't obtain domanin name for tyler" or something like that. After posting the message and receiving the replies I decided to change the rm statment in printcap from using the IP address to using the printer's name: rm=tyler.afep.cornell.edu Afterwards I restarted the printer with the command: lpc restart all after that the printer worked. I do not know if the change in the "rm" statement made the difference or if the restart did something. I'm just happy it works now. I do want to include an email from Jerry Winegarden (jbw@oit.duke.edu). His sudgestion was very detailed and imformative. He also mentioned about spooling jobs from a Windows PC to a remote printer using the shareware program: WLPRS41. BTW Jerry, is there an equivalent program for DOS? Thanks alot for the info. ------- FROM JERRY WINEGARDEN: I'm from OIT/Tech Consulting at Duke Univ. We have several Apple 16/600's out in public clusters, dorms, and in our offices, too. They are GREAT!!! They are true multi-protocol, network printers, suporting postscript and PCL/5. (As opposed to the HP printers with the Jet Direct stuff --- they don't work with LPD (IP printing) with anything but HP-UX and SUN-OS (and Solaris) boxes!!!) To answer your question: you have to do two things: 1) configure the printer for IP printing 2) do the printer set up on your Alpha (or any UNIX box...) - in particular, get a printcap that works. 1) The easiest way to configure the printer is to go to a Mac, run the "Apple Printer Utility" which can now do more things than simply change the Appletalk name of a printer (the older "Apple Laserwriter Utility" could only do this). You can use it to configure it for IP. You will need a valid IP number for the printer, and you will probably want to have it registered with a name server (so you can refer to the printer by name and not just by IP number), although you can access it by IP number only, if it isn't registered yet :-) (All of this is actually mentioned in the manual that comes with the Apple 16/600 PS: "LaserWriter 16/600 PS: Setting Up, Connecting, and Using Your Printer". There is a section on configuring the printer using the Apple Printing Utility, and there is a section on configuring your UNIX box to use it! This manual actually tells the whole truth!!! Amazing! :-) You need to change the IP address, gateway address, and the netmask. The printer has to be selected first and opened. Then you can change stuff. You can also set the password for logging into the printer (you can actually telnet into the printer to change the IP info, but you need an IP number set first before you can do this. It will ask for a password before you can get in.) 2) You need to create the print queue (use lprsetup or do it by hand by creating the spool and error log directories, which you refer to in the printcap entry which you create. You will want to create TWO printer queues with two printcap entries for EACH printer: "text" and "raw". The "text" queue is for "text" files. The "raw" queue is for postscript (or hp's pcl5!) files. The 16/600 is actually set up to be able to use these two types (note the rp parameter in the printcap I'm including) The main deal is that you set the rm parameter to the IP number or name of the printer (which is it's own print server or the "r"emote "m"achine that the printer is connected to) and you set the rp parameter to either "text" or "raw" (since their is no need to specify which "r"emote "p"rinter that you want from the remote machine). I'm including two print cap entries for two different printers (both in a dorm at Duke) named "wmakerp1" and "wmakerp2", so there are four entries: "wmakerp1-text", "wmakerp1-raw", "wmakerp2-text", and "wmakerp2-raw" Enjoy! Also, we install the Windows Print Spooler (WLPRS41) on our students' PC's in the dorms and let them print to the printer, too. Same with those with LINUX on their PC's (the following print cap works for them too!) If you want the WLPRS41 package, you can find it all over the world via anonymous ftp (do an an archie search!). For instructions in how to install it, see my web page: http://www-jerry.oit.duke.edu/pc_info/pc_info.html Attached below is the /etc/printcap file: ***************************** cut here ******************************* # /etc/printcap # lpr/lpd UNIX printer configuration file - Wannamaker dorm printers # Written by: Jerry Winegarden, OIT/Technical Consulting, jbw@ac.duke.edu # # remove the # from the beginning of the line for one :sd=... and one :lf=... # line per printer definition below. If your printer spool files are in # /usr/spool/lpd then the example given should work almost as is. If not, # you will have to specify the full pathname of the file that you did setup. # # there are two entries for each printer - "text" and "raw" # the text printer is for plain ascii text files (an extra carriage return # will be appended to end of each line by the printer) # the "raw" printer definition is for postscript and PCL formatted files, # where the file will be passed on "raw" to the printer # # Except for the sd and lf lines in each printer defintion, you shouldn't # change anything else in the definitions below # # There are two different printers: P1 and P2 in Wannamaker # # p1text|wmakerp1-text|wannamaker_p1_text_files|[Apple_Laserwriter16/600PS]:\ :lp=:mx#0:rm=wmakerp1.oit.duke.edu:\ :rp=text:\ # :sd=your_spool_directory_path_name_for_p1text:\ # :sd=/usr/spool/lpd/p1text:\ # :lf=p1_printer_log_file_pathname # :lf=/usr/spool/lpd/p1textlog # p1raw|wmakerp1-raw|wannamaker_p1_raw_postscript_files|[Apple_Laserwriter16/600PS ]:\ :lp=:mx#0:rm=wmakerp1.oit.duke.edu:\ :rp=text:\ # :sd=your_spool_directory_path_name_for_p1raw:\ # :sd=/usr/spool/lpd/p1raw # :lf=p1_raw_printer_log_file_pathname # :lf=/usr/spool/lpd/p1rawlog # # p2text|wmakerp2-text|wannamaker_p2_text_files|[Apple_Laserwriter16/600PS]:\ :lp=:mx#0:rm=wmakerp2.oit.duke.edu:\ :rp=text:\ # :sd=your_spool_directory_path_name_for_p2text:\ # :sd=/usr/spool/lpd/p2text:\ # :lf=p2_printer_log_file_pathname # :lf=/usr/spool/lpd/p2textlog # p2raw|wmakerp2-raw|wannamaker_p2_raw_postscript_files|[Apple_Laserwriter16/600PS ]:\ :lp=:mx#0:rm=wmakerp1.oit.duke.edu:\ :rp=text:\ # :sd=your_spool_directory_path_name_for_p2raw:\ # :sd=/usr/spool/lpd/p2raw # :lf=p2_raw_printer_log_file_pathname # :lf=/usr/spool/lpd/p2rawlog # ------- End of Forwarded Message