<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">
    <title>Setting Up The Test Version Spool Queues</title>
    <meta name="GENERATOR" content=
    "Modular DocBook HTML Stylesheet Version 1.7">
    <link rel="HOME" title=" LPRng Reference Manual" href=
    "index.htm">
    <link rel="UP" title="Testing and Diagnostic Facilities" href=
    "testing.htm">
    <link rel="PREVIOUS" title="Testing and Diagnostic Facilities"
    href="testing.htm">
    <link rel="NEXT" title="Running the Test Version Software"
    href="x11798.htm">
  </head>

  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
  "#0000FF" vlink="#840084" alink="#0000FF">
    <div class="NAVHEADER">
      <table summary="Header navigation table" width="100%" border=
      "0" cellpadding="0" cellspacing="0">
        <tr>
          <th colspan="3" align="center">LPRng Reference Manual: 24
          Sep 2004 (For LPRng-3.8.28)</th>
        </tr>

        <tr>
          <td width="10%" align="left" valign="bottom"><a href=
          "testing.htm" accesskey="P">Prev</a></td>

          <td width="80%" align="center" valign="bottom">Appendix
          C. Testing and Diagnostic Facilities</td>

          <td width="10%" align="right" valign="bottom"><a href=
          "x11798.htm" accesskey="N">Next</a></td>
        </tr>
      </table>
      <hr align="LEFT" width="100%">
    </div>

    <div class="SECT1">
      <h1 class="SECT1"><a name="AEN11770">C.2. Setting Up The Test
      Version Spool Queues</a></h1>

      <p>The <b class="APPLICATION">LPRng</b> <acronym class=
      "ACRONYM">TESTSUPPORT</acronym> directory contains a set of
      shell scripts and files that need to be installed in the
      appropriate directory. The following steps are used.</p>

      <ol type="1">
        <li>
          <p>First, you need to set up your <acronym class=
          "ACRONYM">HOST</acronym> environment variable to the
          fully qualified domain name of your host and your
          <acronym class="ACRONYM">USER</acronym> environment
          variable to your user name. This is done in order to get
          values to put into the Test Version configuration
          files.</p>
        </li>

        <li>
          <p>In the <acronym class="ACRONYM">TESTSUPPORT</acronym>
          directory, edit the <var class="LITERAL">Makefile</var>,
          and specify the location of the <var class="LITERAL">Test
          Version</var> spool queues. The default location is <tt
          class="FILENAME">/tmp</tt>; since on most systems these
          files are deleted or are available to everybody, a more
          secure location should most likely be used. <span class=
          "emphasis"><i class="EMPHASIS">DO NOT USE THE RAW
          TESTFILE DIRECTORY</i></span>. These files need to be
          copied and placed in another directory.</p>
        </li>

        <li>
          <p>The <var class="LITERAL">LPD_CONF</var> environment
          variable should be set to the location of the installed
          <tt class="FILENAME">lpd.conf</tt> file.</p>
        </li>

        <li>
          <p>In the <acronym class="ACRONYM">TESTSUPPORT</acronym>
          directory, run <var class="LITERAL">make</var>. This will
          copy and install the necessary files.</p>
        </li>
      </ol>
      <br>
      <br>

      <p>Example:</p>

      <div class="INFORMALEXAMPLE">
        <a name="AEN11796"></a>
<pre class="SCREEN">
      CSH:
        setenv HOST {fully qualified domain name};
        setenv USER `whoami`
        setenv LPD_CONF /tmp/LPD/lpd.conf
        set path=( /tmp/LPD $path )
        unsetenv PRINTER
       Example:
          setenv HOST h4.private
          setenv USER papowell
          setenv LPD_CONF /tmp/LPD/lpd.conf
          set path=( /tmp/LPD $path )
          unsetenv PRINTER
      Bourne Shell:
        HOST={fully qualified domain name}; export HOST;
        USER='whoami'; export USER
        LPD_CONF=/tmp/LPD/lpd.conf.$HOST; export LPD_CONF
        PATH=/tmp/LPD:$PATH; export PATH
        PRINTER=; export PRINTER
       Example:
          HOST=h4.private; export HOST
          USER=papowell; export USER
          LPD_CONF=/tmp/LPD/lpd.conf.$HOST; export LPD_CONF
          PATH=/tmp/LPD:$PATH; export PATH
          PRINTER=; export PRINTER
      cd TESTSUPPORT
      make
</pre>
      </div>
      <br>
      <br>
    </div>

    <div class="NAVFOOTER">
      <hr align="LEFT" width="100%">

      <table summary="Footer navigation table" width="100%" border=
      "0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="33%" align="left" valign="top"><a href=
          "testing.htm" accesskey="P">Prev</a></td>

          <td width="34%" align="center" valign="top"><a href=
          "index.htm" accesskey="H">Home</a></td>

          <td width="33%" align="right" valign="top"><a href=
          "x11798.htm" accesskey="N">Next</a></td>
        </tr>

        <tr>
          <td width="33%" align="left" valign="top">Testing and
          Diagnostic Facilities</td>

          <td width="34%" align="center" valign="top"><a href=
          "testing.htm" accesskey="U">Up</a></td>

          <td width="33%" align="right" valign="top">Running the
          Test Version Software</td>
        </tr>
      </table>
    </div>
  </body>
</html>



syntax highlighted by Code2HTML, v. 0.9.1