Article Title	 	: printing setup
Creation Date		: 06/29/95
Message ID		: CGLNHQ
Last Update		: 
Expiration Rules	: unknown
Location		: NCD-Articles/NCDware
=================================================================

Here is a very simple way to print from an ncdterm 
to a host's print queue.

   /etc/inetd.conf - Add the following line:
   ---------------

ncdlpd  stream  tcp     nowait  nobody  /usr/ucb/lpr    lpr -Pbldg5 -Jscreenprt

   o "nobody" is the user (login) name lpr will run under.  This will also be
      the name that will appear as the user (login) name on the banner page.

   o /usr/ucb/lpr is the path to your lpr command (sometimes /usr/bin/lpr)

   o -P on the end is -P<your printer name>.  Can be a remote printer.

   o -J is the name that will go on the bannerpage as the filename
      (only 9 characters fit on our bannerpage). If not specified, this
      will be "stdin".


   /etc/services - Add the following line:
   -------------

ncdlpd          5600/tcp                        # ncdterm connection to lpr

   The default port used for ncdterm is 87 but this
   service is spoken for (by link) so I used port 5600.
   The port need not be in the privleged range (BSD:0-1024,
   ATT:1-255).


   Signal inetd - find inetd's pid and "kill -HUP <inetd's pid>"
   ------------


   .Xdefaults - The following resources for ncdterm work:
   ----------

   NCDterm.printerHost:            138.43.160.11:5600
   NCDterm.printerTimeout:         15
   NCDterm.printerFormFeed:        True


   o The IP address for printerHost is the host's IP

