home *** CD-ROM | disk | FTP | other *** search
- P S F I N S T A L L A T I O N (AT&T Unix 3.2.2)
- =================================
-
- If you are using Xenix 2.3.x, you should be reading the file
-
- Readme.Xenix
-
- If yow wish to do a manual installation, read the file:
-
- Readme.Install
-
- The installation script "Install.unix" and Makefile are correctly
- configured install psf correctly on AT&T Unix 3.2.2 (System V/386) by
- default. The script builds a printer model, updates the model
- directory, and (optionally) adds a printer definition to the FACE
- printer database.
-
- The psf scripts and binaries (by default) are placed in
- /usr/local/bin. If this directory does not exist, it should be
- created. If you wish to use a different directory for the psf
- binaries and scripts, edit the Makefile to reflect the desired
- BINDIR.
-
- Now build the binaries with "make all".
-
- If your printer is not specified in the ./defs/*.def files (i.e. when
- you run your install process and the "list of available printers"
- does not specify your particular printer), then select the nearest
- approximation or read the "Readme.Install" file (in particular, point
- 4) to help you set up a printer definition for your printer.
-
- If you are using a serial printer, examine the "stty" command to set
- port characteristics in psfunix.LP (which is the prototype for the
- printer model "psf")
-
- Iff FACE is installed (AT&T Unix 3.2.2), the installation script
- "Install.unix" can add a printer description into the printer
- database file to describe a postscript printer. The data base
- file is:
- /usr/vmsys/admin/PS/PORTSET/database
-
- If you DO wish to have this file update, use the -f option on the
- Install.unix script. This allows the use FACE for most of the printer
- installation.
-
- Without the -f option, the database is not updated.
-
- AT&T Unix users will also have to use lpadmin to select the
- postscript printer model (FACE does not allow selection of
- the printer model).
-
-
- PSF is installed (as root) with the command:
-
- # Install.unix [-f]
-
- where: -f = add Postscript-PSF printer type to the FACE database
- (AT&T Unix 3.2.2 only) This should NOT be specified
- if lpadmin is to be used for printer installation.
-
-
-
- 1. SELECT PRINTER TYPE
- ^^^^^^^^^^^^^^^^^^^^^^
- Root priviliges are probably necessary to allow the creation of
- various files. The installation options are presented:
-
- 1. Select printer type, make printer model files
- 2. Move psf binaries and scripts to $BINDIR
- 3. Move psf files to $SPOOLDIR
- 4. Install man pages in $MANDIR
- 5. Print man pages
- 6. Remove psf software and files from binary and spool directories
-
- ===> Select an option or enter q to quit: 1
-
- First select option 1: to select the postscript printer. After
- configuration, the various psf files remain in the current directory
- and are NOT copied to any of the binary or spooling files.
-
- The printer type list is presented as follows:
-
- SELECT PRINTER TYPE
-
- 1: Apple LaserWriter v23.0 2: Apple LaserWriter Plus v38.0
- 3: Apple LaserWriter Plus v42.2 4: AST TurboLaser/PS v47.0
- 5: Agfa-Compugraphic 9400P v49.3 6: Dataproducts LZR-2665 v47.0
- 7: Dataproducts LZR 1260 v47.0 8: IBM 4216-020 v47.0
- 9: IBM 4216-030 v50.5 10: Linotronic 100 v38.0
- 11: Linotronic 100 v42.5 12: Linotronic 200 v47.1
- 13: Linotronic 200 v49.3 14: Linotronic 300 v47.0
- 15: Linotronic 300 v47.1 16: Linotronic 300 v49.3
- 17: Linotronic 500 v49.3 18: Apple LaserWriter II NT v47.0
- 19: Apple LaserWriter II NTX v47.0 20: NEC LC-890 v47.0 (corrected)
- 21: NEC LC-890 v47.0 22: QMS-PS 810 v47.0
- 23: QMS-PS 800 v46.1 24: QMS-PS 800 Plus v46.1
- 25: QMS ColorScript 100 v49.3 26: Qume ScripTEN v47.0
- 27: Schlumberger 5232 Color PostScript Printer v50.3
- 28: TI OmniLaser 2108 v45.0 29: TI Omnilaser 2115 v47.0
- 30: Varityper 4200B-P v49.3 31: Varityper 4300P v49.3
- 32: Varityper VT-600P v48.0 33: Varityper VT-600W v48.0
- ==> Select printer by number (q = quit, r = refresh display):
-
- After the printer type is selected, you are asked to specify the
- default paper size that psf will assume unless otherwise instructed:
-
- Select default page size:
- 1: Letter
- 2: Legal
- 3: A4
- 4: B5
- ==> Select page size by number (q = quit, r = refresh display):
-
- (The list of page sizes is dependent upon the selected printer type.
- As a result, the list may differ from the above sample)
-
-
- 2. BINARY/SCRIPT INSTALLATION
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Install the scripts and binaries in the target directory with option 2:
-
- 1. Select printer type, make printer model files
- 2. Move psf binaries and scripts to $BINDIR
- 3. Move psf files to $SPOOLDIR
- 4. Install man pages in $MANDIR
- 5. Print man pages
- 6. Remove psf software and files from binary and spool directories
-
- ===> Select an option or enter q to quit: 2
-
- By default, the destination binary and script directory is
- /usr/local/bin. Another directory (such as /usr/lbin/bin, etc) may be
- used. The only requirement is that the various users of PSF are
- pathed to the specified directory.
-
- Install PSF Binaries and
- scripts in which directory [/usr/local/bin]?
-
- The various binaries, scripts and printer defintion files are then
- copied to the appropriate target directories. LP model and printer
- scripts are not copied.
-
-
- 3. INSTALL LP SPOOLER SCRIPTS
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- If you intend to use psf as part of the lp back-end spooling system,
- then install the lp spooler scripts.
-
- If you do NOT wish to install the lp back-end, then you may quit the
- installation process. The psf filters are manually activated (refer
- to the psf documentation file psf.1 and Readme.Install).
-
- If various printer spooling directories and files are correctly set
- up, the psf model and interface files may be installed in the spool
- directory by selecting option 3:
-
- 1. Select printer type, make printer model files
- 2. Move psf binaries and scripts to $BINDIR
- 3. Move psf files to $SPOOLDIR
- 4. Install man pages in $MANDIR
- 5. Print man pages
- 6. Remove psf software and files from binary and spool directories
-
- ===> Select an option or enter q to quit: 3
-
- After the spooler scripts are installed, activate the printer. If you
- are using AT&T unix 3.2, you will probably use FACE (if installed) or
- LPADMIN to complete the printer installation.
-
- Read the notes in "Configure Printer" below.
-
-
- CONFIGURE PRINTER
- ^^^^^^^^^^^^^^^^^
- The printer model that must be used to print with psf is
- automatically created by Install.unix in file:
-
- /usr/spool/lp/model/psf
-
- Printer installation may be done with either lpadmin or with FACE. 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 install with FACE, you should configure the "Postscript-PSF"
- printer. Subsequently, modify the printer model to "psf" since FACE
- cannot select a printer model other than "standard". I.e., use
- lpadmin with a command similar to:
-
- /usr/lib/lpadmin -p printer -m psf -o nobanner
-
-
- 4. PRINTING MAN PAGES
- ^^^^^^^^^^^^^^^^^^^^^
- Optionally, you can continue with the installation if the man pages
- by selecting options 4/5 from:
-
- 1. Select printer type, make printer model files
- 2. Move psf binaries and scripts to $BINDIR
- 3. Move psf files to $SPOOLDIR
- 4. Install man pages in $MANDIR
- 5. Print man pages
- 6. Remove psf software and files from binary and spool directories
-
- ===> Select an option or enter q to quit:
-
- If your system has on-line man pages then the man-page installation
- (option 4) may be used.
-
- The man pages may be printed on the postscript printer by selection
- of option 5. The installation script prints the man-pages from the
- pre-formatted *.doc files if /usr/man directory cannot be found.
-
-
-
- AFTER INSTALLATION
- ^^^^^^^^^^^^^^^^^^
- 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:
-
- 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 (spooler) OPTIONS
- ^^^^^^^^^^^^^^^^^^^^
- 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 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 cannt 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.
-
-
- PSF notes.
- ^^^^^^^^^^
- The printer definitions in ~psf/defs are derived from the Adobe
- ".ppd" files. These are available from the Adobe file server via
- email. The programme "table" is used to translate the ".ppd" files
- into ".def" printer definition files used by psf.
-
- If the user's printer is not in the list of available printers, a
- suitable .def definition must be manually constructed (see file
- "sample.def" as a guide).
-
-
- PROBLEMS:
-
- The adobe .ppd files not not necessarily describe the "true"
- printable area of the printers. For example, the printable area of a
- NEC LC890 printer is different than described in the nec_470.ppd
- file. I do not know which .ppd files are "accurate" or "inaccurate"!
- See the Readme.Install file (in particular, point 4).
-