home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 5847 < prev    next >
Encoding:
Text File  |  1992-08-26  |  11.5 KB  |  281 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!convex!constellation!aardvark.ucs.uoknor.edu!broe
  3. From: broe@aardvark.ucs.uoknor.edu (Bruce Roe)
  4. Subject: Re: Printing from Mac to Sun - NewsPrint 2.0
  5. Message-ID: <26AUG199207230463@aardvark.ucs.uoknor.edu>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: usenet@constellation.ecn.uoknor.edu (Nets)
  8. Organization: University of Oklahoma - University Computing Services
  9. References: <JC.92Aug24203720@albatross.bu.edu> <1992Aug26.024531.6476@cs.anu.edu.au>
  10. Date: Wed, 26 Aug 1992 12:23:00 GMT
  11. Lines: 268
  12.  
  13. In article <1992Aug26.024531.6476@cs.anu.edu.au>, steve@cs.anu.edu.au writes...
  14. >In article 92Aug24203720@albatross.bu.edu, jc@raven.bu.edu (James F. Cameron) writes:
  15. >>Question:  What is the best solution to print from the Mac to the
  16. >>           SparcPrinter?  What solutions are available in general?  
  17. >>
  18. >>           Basically, I simply want a user to choose "Print" and have
  19. >>           it sent over to the SparcPrinter without any other steps.
  20. >>           Since I am a complete novice when it comes to Macs, I am
  21. >>           asking the net for this info.
  22. >>
  23. >Use the lwsrv part of CAP.  CAP implements AppleTalk for Unix, and the lwsrv 
  24. >program will register a printer on the AppleTalk network, and feed print jobs
  25. >directed to it to a Unix printer.  Takes a bit of fiddling to configure it, but the
  26. >doco's all there.
  27.  
  28. Hi ya'll,
  29.     I had previously posted a question similar to the above and
  30. the following is a SUMMARY.   Hope this re-post is useful.
  31.   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  32.  \  Bruce A. Roe               Professor of Chemistry and Biochemistry /
  33.  /  University of Oklahoma     INTERNET: BROE@aardvark.ucs.uoknor.edu  \
  34.   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
  35.  
  36. ------------------  SUMMARY of installing CAP60 ----------------
  37. Question:
  38. ^^^^^^^^
  39. >I am trying to get a SPARCprinter (attached to a SPARCstation2)
  40. >to serve as a printer for AppleTalk and EtherNet connected Macs.
  41. >The reason is the SPARCstation supposidly can serve as a spooler
  42. >and the SPARCprinter is much newer than our antique AppleLaserWriter.
  43. >The SPARCstation2 is running Sun OS 4.1.1 and printer software 1.0.
  44. >
  45. >I've succeeded in getting CAP (Columbia AppleTalk Package) installed
  46. >and can see the SPARCprinter in the Mac Chooser.  However, when I
  47. >try to print a Mac file (created either with MSWord4.0, or EDIT)
  48. >even though I do get output, this output is a page of meaningless
  49. >letters and other symbols.
  50. >
  51. >It's my guess that the SPARCprinter is *not* recognizing and converting
  52. >the Mac PostScript to something the SPARCprinter can successfully deal
  53. >with.  At this point I'm clue-less as to where to look or what magic
  54. >incantation(s) to use.
  55. >
  56. >Has anyone out there is beautiful net-land gotten Mac file printed
  57. >through a SPARCstation/SPARCprinter?  If so, please clue me in.
  58. >
  59.  
  60. Answers:
  61. ^^^^^^^ 
  62. The first thing is getting CAP to compile, etc correctly.  For that
  63. the CAP documentation is rather straight forward and at least a
  64. molecular biologist like me could figure out.  The key here 
  65. for my situation here was to realize that I should say YES when
  66. prompted with the question regarding if I would use Native Ether Talk.
  67. If all this works then you should be able to see your printer from
  68. the Mac chooser.  If not, most likely the path given in CAP or LIB
  69. in start-cap-servers or one of the options for lwsrv was incorrect.
  70. As I said above, this was working at the time of my posting but I
  71. was getting garbage as a printout.  Read on if you are not of faint
  72. heart. BTW, you should be su for all this.
  73.  
  74. Then read the README file in the source file ../applications/lwsrv
  75. Sounds like something very logical to do but several responders
  76. to my question suggested this and I thank them since I didn't
  77. know which of the zillion README files contained the info I needed.
  78. However, read carefully as the info is very cryptic and you are
  79. not explicitly told to create a directory called "procsets". 
  80. So, one needs to do an mkdir for ${LIB}/procsets (where ${LIB} 
  81. is defined in start-cap-servers) as without this directory all
  82. is lost.
  83.  
  84. Once you've got this directory made and correctly pointed to
  85. in start-cap-servers, you're almost home free.  Run start-cap-servers,
  86. and print a test file from the Mac to the SPARCprinter.  Garbage
  87. will be printed but don't give up.  Go back an read the README
  88. file in ../applications/lwsrv because you now have to edit the
  89. file which now has appeared in the ${LIB}/procsets directory.
  90.  
  91. Editing is somewhat of a problem since you can't use vi and will
  92. have to use textedit (which if you're a Mac person ain't so bad).
  93. Delete the stuff as directed in the ../applications/lwsrv/README
  94. file and save the edited file.  If you've deleted the appropriate
  95. lines then all should be fine.  So go back to the Mac and try to
  96. print your test file again.  For me, at least, it worked just as
  97. it should and the output now was real text just as it was supposed
  98. to be.
  99.  
  100. Below is a copy of my start-cap-servers file with some comments
  101. in it.
  102.  
  103. ------------------ start-cap-servers -----------------------
  104. #!/bin/sh
  105.  
  106. #
  107. # start-cap-servers file
  108. # which is started from '/etc/rc.local' at boot time
  109. #
  110.  
  111. LOGd=/usr/tmp
  112. LOGf=/dev/null
  113. CAP=/usr/local/cap
  114. LIB=/usr/local/lib
  115.  
  116. LWARGS="-a ${LIB}/procsets -f ${LIB}/LWPlusFonts -A off "
  117.  
  118. #
  119. # Start UAB first if used,  uab is not used because during
  120. #                           the CAP compile, said yes when
  121. #                           asked if Native Ether Talk would
  122. #                 be used.
  123. #
  124. # /usr/local/cap/uab
  125. # sleep 10
  126.  
  127. #
  128. # Otherwise start aarpd first for Native EtherTalk
  129. #
  130.  
  131. ${CAP}/aarpd "le0" "chem"
  132.  
  133. # uncomment the next line for positive feedback during de-bugging
  134. # echo "aarp started"
  135. #
  136. # allow atis to startup before other CAP programs
  137. #
  138.  
  139. ${CAP}/atis
  140.  
  141. # uncomment the next line for positive feedback during de-bugging
  142. # echo "atis started"
  143. #
  144. # Make this 15 seconds or more if using aarpd because aarpd prints
  145. # out stuff to the screen which obscures the login prompt and looks
  146. # ugly.
  147. #
  148. sleep 25
  149.  
  150. ${CAP}/lwsrv -n "dna1sparcprinter" -p dna1sparc ${LWARGS} -T "quote8bit" -T
  151. "makenondscconformant" -l /usr/spool/dna1sparc/logfile
  152.  
  153. #
  154. #  End of start-cap-servers
  155. #   
  156. ------------------------------- cut here ---------------------------------
  157.  
  158. The following are the personal messages I received which set me going in
  159. the right direction.  Many thanks to all who responded. 
  160. ========================================================================
  161. From:   IN%"fty@bizarre.rtpnc.epa.gov"  "Frank Terhaar-Yonkers"
  162.  
  163. I've been doing it for a long time ...
  164. I start lwsrv with the following:
  165.  
  166. LWARGS="-T quote8bit -T makenondscconformant -a ${LIB}/procsets
  167.  -f ${LIB}/LW+Fonts"
  168. ${CAP}/lwsrv -l /usr/people/fty/lwsrv.log -n "Viz Lab SPARCprinter"
  169.  -p ps4 -h $}
  170.  
  171. You need to explore the "prepfix" command to process the postscript
  172. procsets sent from the Mac and store them in the  "-a" directory
  173. above.
  174.  
  175. cheers - Frank
  176. ========================================================================
  177. From:   IN%"brp@mlb.geomechanics.csiro.au"  "Bruce Perkins"
  178.  
  179. We have a Sparcprinter running via CAP.
  180. The program "lwsrv" which controls CAP printing to UNIX is invoked as:
  181.         #!/bin/sh
  182.         CAP=/usr/local/cap
  183.         LWARGS="-a ${CAP}/procsets -T crtolf -T makenondscconformant -h"
  184.         ${CAP}/lwsrv -n "Computer Lab" -p sparc -f ${CAP}/LWPlusFonts ${LWARGS}
  185.  
  186. The other thing needed is the Procset/AppleDict stuff. The README file
  187. in the source directory for lwsrv tells you how to modify the Procsets
  188. that are "captured" by lwsrv in "/usr/local/cap/procsets". As these contain
  189. "long" records with no CR you will have to use textedit rather than vi.
  190.  
  191. We have several Unix printers, NewsPrint and TranScript driven hooked up
  192. this way via CAP. We also use MAC LaserWriters from the Sun side routinely.
  193. Good luck,
  194.  
  195. *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
  196. | Bruce Perkins                         CSIRO Division of Geomechanics  |
  197. * brp@mlb.geomechanics.csiro.au         PO. Box 54 Mt. Waverley         *
  198. | Tel: (+61) 03 811 1233                Victoria, Australia, 3149       |
  199. *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
  200.  
  201. ========================================================================
  202. From:   IN%"pascoe%rocky.dnet@gte.com"
  203.  
  204. Make sure you're starting your lwsrv up like the following:
  205.  
  206. /usr/local/cap/lwsrv -T quote8bit -n "SCSD rocky Laser" -p ps -f
  207. /usr/local/cap/LWPlusFonts -a /usr/local/cap
  208.  
  209. Note that the above is all on one command line....
  210.  
  211. Good luck......
  212. --
  213. Dave Pascoe
  214. pascoe@rocky.gte.com    |    GTE Gov't. Systems/SCSD
  215. KM3T                    |    (617) 455-5704
  216. ========================================================================
  217. From:   IN%"mfg@castle.edinburgh.ac.uk"
  218.  
  219. You need to run the Mac output through a program called macps.  It adds
  220. a header which makes everything works.
  221.  
  222. This is from the macps documentation
  223.  
  224.         This is how Mac printing works.  When a Mac talks to a LaserWriter, it
  225.         asks if the LaserWriter has had a LaserPrep file downloaded to it.  A
  226.         LaserWriter that is first powered up, has no such LaserPrep file, and
  227.         so the Mac downloads it and makes the LaserPrep file resident in
  228.         memory.  Then the actual print file is sent to the LaserWriter.
  229.         Subsequent print requests need not download the LaserPrep file, unless
  230.         it is a different version.
  231.  
  232.         Since a LaserWriter connected to a Unix system usually does things
  233.         other than Mac printing, it is unwise to make LaserPrep files resident
  234.         in memory so that other PostScript jobs have less memory to work with.
  235.         What prepfix does is to modify a LaserPrep file so that, among other
  236.         things, it does not make itself resident in memory.  Thus, the
  237.         LaserPrep file must be downloaded for each Mac print job.  This is the
  238.         function of macps, to automatically append the appropriate LaserPrep
  239.         file.
  240.  
  241.  
  242. Macps should be available from most good ftp sites.
  243.                                                          _   _   _    _   _
  244. Michael Gordon - mfg@castle.ed.ac.uk OR ee.ed.ac.uk     | |_| |_| |__| |_| |
  245.                                                         | . . . .      . . |
  246. It's not an optical illusion, it just looks like one    |_________|~~|_____|
  247. ========================================================================
  248. From:   IN%"optigfx!jans@uunet.UU.NET"
  249. Bruce,
  250. I saved this a while back...hope it helps
  251. jans@optigfx.com
  252.  
  253.  
  254. Submitted-By: Ed Moy <edmoy@violet.berkeley.edu>
  255. Posting-Number: Volume 25, Issue 30
  256.  
  257. Archive-Name: macps
  258.  
  259. Macps is a Unix program that takes an uploaded PostScript file created
  260. on a Macintosh (by typing Command-F at the LaserWriter dialog box; see
  261. macps.1 for more details) and includes an appropriately modified
  262. LaserPrep file so that the result can be sent to a PostScript printer
  263. X>From Unix.  The LaserPrep file contains macros used by the PostScript
  264. generator on the Macintosh.
  265.  
  266. ..< i've deleted the shell archive file as 
  267.     1) it is rather large and 2) i did not need to use it
  268.     However, after studying the MacPS shell, it seems that
  269.     this is doing what I described above but from the Mac end.
  270.     I'll re-post the MacPS shell as a separate message for those
  271.     who what to take a look at it.>
  272.     
  273. Many Many Thanks again to those who responded.
  274. --bruce
  275.   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  276.  \  Bruce A. Roe               Professor of Chemistry and Biochemistry /
  277.  /  University of Oklahoma     INTERNET: BROE@aardvark.ucs.uoknor.edu  \
  278.   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  - - -
  279.