home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2351 / INSTALL next >
Encoding:
Text File  |  1990-12-28  |  2.7 KB  |  88 lines

  1. You will need to edit the Makefile. The comments should make it clear
  2. what needs changing. Do a make; then do a make install as root.
  3.  
  4. You need to decide what baud rate you are going to use. If you have a
  5. very old Laserwriter (not a plus), you will have to use 9600;
  6. otherwise you should be able to use 38400.
  7.  
  8. You need to add an entry in /etc/printcap.  Here's the entry I use:
  9.  
  10. lp|ps:\
  11.     :br#38400:lp=/dev/ttya:mx#0:sf:sh:rw:\
  12.     :fc#0177777:fs#003:ms=-isig,igncr,cstopb,-echok:\
  13.     :af=/usr/adm/psacct:lf=/usr/adm/pslog:sd=/usr/spool/pslpd:\
  14.     :if=/usr/local/lib/psif:
  15.  
  16. This entry would be appropriate if you were using /dev/ttya and a baud
  17. rate of 38400.  You need to create the spool directory
  18. (/usr/spool/pslpd), the accounting file (/usr/adm/psacct), and the log
  19. file (/usr/adm/pslog).  The spool directory and the accounting file
  20. should be owned by daemon, the log file by root. You can use other
  21. names if you want.  I believe the `ms' capabability is a Sun
  22. extension, so if you're not using a Sun you'll have to remove it.
  23.  
  24. You can add easily add other filters. For example, suppose you
  25. want to add a filter for dvi files. Then add an entry to /etc/printcap:
  26.  
  27.   :df=/usr/local/lib/psdf:
  28.  
  29. Then create a shell script /usr/local/lib/psdf
  30.  
  31. #!/bin/sh
  32. /usr/local/bin/dvitops | /usr/local/lib/lprps $*
  33.  
  34. Replace `/usr/local/bin/dvitops' by the name of your favourite dvi to
  35. ps program (it must be able to read from the standard input). Then you
  36. can print dvi files with `lpr -d'.
  37.  
  38. You must also set the printer's communication parameters. Make sure
  39. you have an entry like this in /etc/remote:
  40.  
  41.   ttya:dv=/dev/ttya:br#1200:el=^D:
  42.  
  43. Set the switch on your printer to position labelled 1200 or 0. Then 
  44.  
  45.   tip ttya
  46.  
  47. (*)Now carefully type
  48.  
  49.   executive
  50.  
  51. and then RETURN. The printer will not echo this while you are typing.
  52. If you typed it correctly, the printer will print a banner and a
  53. prompt.  If you get an error message from the printer, type CTRL-D and
  54. try again.  If you don't get any response at all, you probably have a
  55. cable problem. Then type
  56.  
  57.   serverdict begin 0 exitserver
  58.  
  59. and RETURN. The printer should say something like
  60.  
  61.   %%[ exitserver: permanent state may be changed ]%%
  62.  
  63. Then type
  64.  
  65.   statusdict begin 25 38400 3 setsccbatch end
  66.  
  67. and RETURN. The printer will not echo this. If you get an error message,
  68. type CTRL-D and go back to (*). Otherwise type CTRL-D.
  69.  
  70. Now check to see that this worked. Type
  71.  
  72.   executive 
  73.  
  74. again. Then
  75.  
  76.   statusdict begin 25 sccbatch end = = 
  77.  
  78. The printer should say
  79.  
  80.   3
  81.   38400
  82.  
  83. If it does, type CTRL-D, exit tip, and set the switch on the printer
  84. back to the position labelled 9600 or 1.  If not, type CTRL-D and try
  85. again from (*).
  86.  
  87. $Header: /usr/jjc/lprps/RCS/INSTALL,v 1.4 90/12/18 11:33:19 jjc Rel $
  88.