• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/LPRng/DOCS/LPRng-Reference-Multipart/
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3<html>
4  <head>
5    <meta name="generator" content="HTML Tidy, see www.w3.org">
6    <title>Setting Up The Test Version Spool Queues</title>
7    <meta name="GENERATOR" content=
8    "Modular DocBook HTML Stylesheet Version 1.7">
9    <link rel="HOME" title=" LPRng Reference Manual" href=
10    "index.htm">
11    <link rel="UP" title="Testing and Diagnostic Facilities" href=
12    "testing.htm">
13    <link rel="PREVIOUS" title="Testing and Diagnostic Facilities"
14    href="testing.htm">
15    <link rel="NEXT" title="Running the Test Version Software"
16    href="x11691.htm">
17  </head>
18
19  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
20  "#0000FF" vlink="#840084" alink="#0000FF">
21    <div class="NAVHEADER">
22      <table summary="Header navigation table" width="100%" border=
23      "0" cellpadding="0" cellspacing="0">
24        <tr>
25          <th colspan="3" align="center">LPRng Reference Manual: 5
26          Sep 2003 (For LPRng-3.8.22)</th>
27        </tr>
28
29        <tr>
30          <td width="10%" align="left" valign="bottom"><a href=
31          "testing.htm" accesskey="P">Prev</a></td>
32
33          <td width="80%" align="center" valign="bottom">Appendix
34          C. Testing and Diagnostic Facilities</td>
35
36          <td width="10%" align="right" valign="bottom"><a href=
37          "x11691.htm" accesskey="N">Next</a></td>
38        </tr>
39      </table>
40      <hr align="LEFT" width="100%">
41    </div>
42
43    <div class="SECT1">
44      <h1 class="SECT1"><a name="AEN11663">C.2. Setting Up The Test
45      Version Spool Queues</a></h1>
46
47      <p>The <b class="APPLICATION">LPRng</b> <acronym class=
48      "ACRONYM">TESTSUPPORT</acronym> directory contains a set of
49      shell scripts and files that need to be installed in the
50      appropriate directory. The following steps are used.</p>
51
52      <ol type="1">
53        <li>
54          <p>First, you need to set up your <acronym class=
55          "ACRONYM">HOST</acronym> environment variable to the
56          fully qualified domain name of your host and your
57          <acronym class="ACRONYM">USER</acronym> environment
58          variable to your user name. This is done in order to get
59          values to put into the Test Version configuration
60          files.</p>
61        </li>
62
63        <li>
64          <p>In the <acronym class="ACRONYM">TESTSUPPORT</acronym>
65          directory, edit the <var class="LITERAL">Makefile</var>,
66          and specify the location of the <var class="LITERAL">Test
67          Version</var> spool queues. The default location is <tt
68          class="FILENAME">/tmp</tt>; since on most systems these
69          files are deleted or are available to everybody, a more
70          secure location should most likely be used. <span class=
71          "emphasis"><i class="EMPHASIS">DO NOT USE THE RAW
72          TESTFILE DIRECTORY</i></span>. These files need to be
73          copied and placed in another directory.</p>
74        </li>
75
76        <li>
77          <p>The <var class="LITERAL">LPD_CONF</var> environment
78          variable should be set to the location of the installed
79          <tt class="FILENAME">lpd.conf</tt> file.</p>
80        </li>
81
82        <li>
83          <p>In the <acronym class="ACRONYM">TESTSUPPORT</acronym>
84          directory, run <var class="LITERAL">make</var>. This will
85          copy and install the necessary files.</p>
86        </li>
87      </ol>
88      <br>
89      <br>
90
91      <p>Example:</p>
92
93      <div class="INFORMALEXAMPLE">
94        <a name="AEN11689"></a>
95<pre class="SCREEN">
96      CSH:
97        setenv HOST {fully qualified domain name};
98        setenv USER `whoami`
99        setenv LPD_CONF /tmp/LPD/lpd.conf
100        set path=( /tmp/LPD $path )
101        unsetenv PRINTER
102       Example:
103          setenv HOST h4.private
104          setenv USER papowell
105          setenv LPD_CONF /tmp/LPD/lpd.conf
106          set path=( /tmp/LPD $path )
107          unsetenv PRINTER
108      Bourne Shell:
109        HOST={fully qualified domain name}; export HOST;
110        USER='whoami'; export USER
111        LPD_CONF=/tmp/LPD/lpd.conf.$HOST; export LPD_CONF
112        PATH=/tmp/LPD:$PATH; export PATH
113        PRINTER=; export PRINTER
114       Example:
115          HOST=h4.private; export HOST
116          USER=papowell; export USER
117          LPD_CONF=/tmp/LPD/lpd.conf.$HOST; export LPD_CONF
118          PATH=/tmp/LPD:$PATH; export PATH
119          PRINTER=; export PRINTER
120      cd TESTSUPPORT
121      make
122</pre>
123      </div>
124      <br>
125      <br>
126    </div>
127
128    <div class="NAVFOOTER">
129      <hr align="LEFT" width="100%">
130
131      <table summary="Footer navigation table" width="100%" border=
132      "0" cellpadding="0" cellspacing="0">
133        <tr>
134          <td width="33%" align="left" valign="top"><a href=
135          "testing.htm" accesskey="P">Prev</a></td>
136
137          <td width="34%" align="center" valign="top"><a href=
138          "index.htm" accesskey="H">Home</a></td>
139
140          <td width="33%" align="right" valign="top"><a href=
141          "x11691.htm" accesskey="N">Next</a></td>
142        </tr>
143
144        <tr>
145          <td width="33%" align="left" valign="top">Testing and
146          Diagnostic Facilities</td>
147
148          <td width="34%" align="center" valign="top"><a href=
149          "testing.htm" accesskey="U">Up</a></td>
150
151          <td width="33%" align="right" valign="top">Running the
152          Test Version Software</td>
153        </tr>
154      </table>
155    </div>
156  </body>
157</html>
158
159