home *** CD-ROM | disk | FTP | other *** search
- P S F I N S T A L L A T I O N
- =================================
-
- The following installation process should work with various forms
- of unix using lpr/lpd and with System V r3 unix lp/lpsched
- spoolers. The documented spooler installation process is not
- compatible for System V r4: the printer spool scripts must be
- manually installed (and possibly modified).
-
- If spooler support is installed, any file sent to the spooler
- is examined: if the file is already in postscript form, then
- the file is simply copied to the printer without any re-processing.
- Only unprocessed text files will be filtered into postscript form.
- As a result, 'any' file may be passed to the spooler for correct
- processing. (If postscript sources is to be printed, the "-z"
- option must be used for force the printing.)
-
- INSTALLATION
- ^^^^^^^^^^^^
- 1. Edit the Makefile, changing the various configuration parameters.
- The general install steps are:
-
- make all
- make printer
- make scripts
- make install
- make installman (or installcat or installdoc)
-
- If nroff is not available, pre-formatted man pages are in
- /man/*.doc.
-
- 2. Build the binaries with:
-
- make all
-
- 3. Select a printer:
-
- make printer
-
- If your printer is not specified, select the nearest
- approximation and/or read the "Install.def" file.
-
- "make printer" can be run any number of times. It simply copies
- your selected printer definition from the ./defs directory
- to file "psfprint.def" in the current directory and generates
- an associated "psizes.ps".
-
- If you are using a serial printer and using lp/lpsched, examine
- the "stty" command to set port characteristics in psfunix.LP
- (which is the prototype for the printer model "psf" when used
- with lp/lpsched).
-
- 4. Make shell scripts:
-
- Some man systems may require additional options before the shell
- script "psfman" can successfully process man pages through the
- psf filters system. Examine and modify the file "psfman.SH" for
- additional man options needed. On some systems, you man
- need to specify the full path to the "man" programme and/or
- force the option "-Tlp".
-
- Now build the shell scripts.
-
- make scripts
-
- (NOTE: script psfdouble is created as an example of setting
- up a double sided print script, however is not
- installed by any install process.)
-
- 5. Iff nroff is available, make nroff'd man pages. The resulting
- *.doc files are written to the man/ directory.
-
- make doc
-
- If nroff is not available, pre-formatted documentation is
- provided in various *.doc files. These may be moved to
- the catman or man directories with "make installdoc". The
- target directory for the preformatted pages is set in the
- makefile (MANDIR).
-
- 6. A "user" installation copies only those modules that are
- necessary for command line use. It does not copy spooler support
- binaries and scripts.
-
- A "user" installation is complete after (as root):
-
- make installuser
-
- 7. A "full" installation copies all necessary spooler support
- as well as user binaries and scripts to the target directories.
- As root:
-
- make install
-
- 8. Install man pages if desired. Depending upon the type of system
- being used, select from the following:
-
- make installman Install unformatted pages into the man
- directory. This assumes that a complete
- man system is available with nroff.
-
- make installcat Install formatted man pages into the
- catman directory. Nroff must be available
- to format the text.
-
- make installdoc Install pre-formatted man pages into
- the catman (or selected man) directory.
- This copies various *.doc files into
- the catman directory: nroff is not needed.
-
- make doc Build .doc formatted files from .1
- unformatted man page with nroff.
-
- 9. Three versions of psf are compiled by "make all":
-
- psf is normally used at the command line.
- If the input is already in postscript, then it is
- re-processed. I.e. you can print a postscript
- programme. Input is accepted from stdin or from
- file names.
-
- psffilter is used by the lp/lpsched spooling system.
- It accepts input only on stdin and arguments
- passed with the "-o" option. If the input is
- already in postscript, the input is simply copied
- to stdout (the printer). If the -v option
- is used, postscript sources may be printed.
-
- psflpd is used by the lpr/lpd spooling system. It
- accepts input only on stdin and cannot accept any
- run-time arguments, not even those passed by lpd.
- If the input is already in postscript, it is
- simply copied to stdout (the printer). If
- the -v option is used, postscript sources
- may be printed.
-
- Printcap entries should use this binary or links
- to this binary. If psflpd is executed with
- different names, then different default page
- conditions apply (see Install.lpd).
-
- Only the appropriate binary versions are copied with "make install".
-
-
- CONFIGURE PRINTER (for lp/lpsched on SysV R3)
- ^^^^^^^^^^^^^^^^^
- The printer model defined for psf is copied during the install
- process to:
-
- /usr/spool/lp/model/psf
-
- Printer installation is usually be done with lpadmin. If you
- install the printer with lpadmin, be sure to specify the
- "-m psf" option to select the psf printer model. E.g.:
-
- /usr/lib/lpadmin -p printer -v /dev/lp -m psf -o nobanner
-
- If you are using Interactive Unix 2.2, the you might wish
- to use "sysadm lpmgmt". This can be done if you first
- inform sysadm that psf exists:
-
-
- edit /usr/admin/menu/packagemgmt/lpmgmt/lpsetup
- - to have psf as a
- valid printer choice.
-
- sysadm lpmgmt - add psf printer
-
- /usr/lib/lpadmin -d printer - set default printer
-
- enable printer.
-
-
- CONFIGURE PRINTER (for lpr/lpd)
- ^^^^^^^^^^^^^^^^^
- After "make install" is completed, the printcap must be
- configured. See "Install.lpd" for suggestions.
-
-
- CONFIGURE PRINTER (for use with lp/lpsched over UUCP)
- ^^^^^^^^^^^^^^^^^
- A sample printer model "nlsdumb" is provided if you wish to use
- remote printing over uucp (either by serial line or over the
- tcp/ip+TLI interface). It must be manually installed if it is
- needed.
-
-
- MAN PAGES
- ^^^^^^^^^
- The man pages are all the man/*.1 files. These may be formatted
- with nroff or cawf. Pre-formatted man pages are man/*.doc.
-
-
- AFTER INSTALLATION
- ^^^^^^^^^^^^^^^^^^
- 0. Print the man pages:
-
- psfnroff -man *.1
-
- 1. Verify that the imageable area of your printer actually
- corresponds to the printer definition that you selected during
- the install process. Send the postscript file "psizes.ps" (or
- getsizes.ps) to the line printer by some method:
-
- lp psizes.ps
- -or-
- cat getsizes.ps > /dev/lp
-
- This programme prints the actual imageable area for each page
- size known to your printer.
-
- The printed imageable area (the last 4 numbers of each page
- type) should match the corresponding numbers in psfprint.def. If
- they do not, edit psfprint.def to use the printed numbers. (Even
- Adobe information does not necessarily reflect the real nature
- of your printer. My own Nec LC890 had a different letter
- imageable area than indicated by the original .ppd file from
- Adobe...).
-
- Read "Install.def" if the editing process in not transparent!
-
- Copy the new psfprint.def file to it's target location as
- set with "DEFFILE" in the Makefile.
-
- 2. Edit the file "Testfile" with sed (as below). This file is an
- example of how escape seqeuences can be imbedded in a text file
- to allow direct font control within a text editor (See psf.1 for
- details).
-
- The "Testfile" should contain many ^E characters (octal \005).
- Since mail system may change the ^E character into the text
- string "005" You will have to edit the testfile and replace all
- "005" strings with true ctrl-E character.
-
- One easy way to correct this is with sed (Bourne shell only??)
-
- sed 's@005@<CTRL-E>@g' Testfile > example
- +------+
- actually type the CTRL-E character
- to generate the octal charcter \005
-
- After editing, do the following:
-
- psf example | lp
-
- to see how font control can work in a text file.
-
-
- LP OPTIONS (for lp/lpsched)
- ^^^^^^^^^^
- The provided printer model (/usr/spool/lp/model/psf and it's
- associated prototype file psfunix.LP) allows the use of the "-o"
- to pass options to psf. Two additional non-standard banner page
- options may be passed to the printer script:
-
- banner = print banner page
- nobanner = do not print banner page
-
- For example:
-
- lp -o"nobanner -4xh" my.text.file
- lp -o"banner" another.file
-
- The psf printer model examines the printer configuration file
- in:
-
- /usr/spool/lp/admins/lp/printers
- /<printer name>/configuration
-
- to determine if banners are required. The first line of this
- script normally contains one of the following (and can be set by
- lpadmin):
-
- Banner: on:Always
- Banner: on
-
- An additional option is recognized (and cannot be set by
- lpadmin: it must be manually edited into the configuration
- file):
-
- Banner: off
-
- "Banner: on:Always" forces banners to be printed, even if the
- user specified "nobanner".
-
- "Banner: on" prints a banner page unless the user specifies
- "nobanner". If "nobanner" is provided, then the banner is not
- printed.
-
- "Banner: off" will not print the banner page unless the user
- provides "banner", in which case the banner page is printed.
-
-
- MULTIPLE PRINTERS
- ^^^^^^^^^^^^^^^^^
- If multiple different postscript printers are used with psf,
- then either separate versions of psf and friends must be
- constructed or the "-u alt.def" option of psf and psffilter
- should be used. In any case, each back end printer script used
- by lpsched, psnroff or psmbox must reference the appropriate
- version of psf or have the -u option set.
-
- See Install.lpd for considerations when using lpr/lpd.
-
- Some provisions are in the Makefile to allow changes to the
- target directories or the use of different binary programme
- names.
-
- PSF notes.
- ^^^^^^^^^^
- The printer definitions in defs/* are derived from the Adobe
- ".ppd" files. These are available from the Adobe file server via
- email. The .ppd files describe each know printer characteristics
- - but are not always perfectly accurate.
-
- The programme "table" is used to translate the ".ppd" files into
- ".def" printer definition files used by psf. Documentation for
- "table" is not provided - other than the comments in "table.c"
- and a brief comment in Install.def.
-
- -------------------
- Tony Field
- (tony@ajfcal.cuc.ab.ca)
-