• 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>System and User Printcap, lpd.conf, and lpd.perms
7    files</title>
8    <meta name="GENERATOR" content=
9    "Modular DocBook HTML Stylesheet Version 1.7">
10    <link rel="HOME" title=" LPRng Reference Manual" href=
11    "index.htm">
12    <link rel="UP" title="Installation" href="installation.htm">
13    <link rel="PREVIOUS" title="Configuration" href="x485.htm">
14    <link rel="NEXT" title=
15    "Checking System Installation with checkpc" href="x926.htm">
16  </head>
17
18  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
19  "#0000FF" vlink="#840084" alink="#0000FF">
20    <div class="NAVHEADER">
21      <table summary="Header navigation table" width="100%" border=
22      "0" cellpadding="0" cellspacing="0">
23        <tr>
24          <th colspan="3" align="center">LPRng Reference Manual: 5
25          Sep 2003 (For LPRng-3.8.22)</th>
26        </tr>
27
28        <tr>
29          <td width="10%" align="left" valign="bottom"><a href=
30          "x485.htm" accesskey="P">Prev</a></td>
31
32          <td width="80%" align="center" valign="bottom">Chapter 2.
33          Installation</td>
34
35          <td width="10%" align="right" valign="bottom"><a href=
36          "x926.htm" accesskey="N">Next</a></td>
37        </tr>
38      </table>
39      <hr align="LEFT" width="100%">
40    </div>
41
42    <div class="SECT1">
43      <h1 class="SECT1"><a name="REQUIRECONFIG">2.6. System and
44      User Printcap, lpd.conf, and lpd.perms files</a></h1>
45
46      <p>The system <tt class="FILENAME">printcap</tt> file
47      contains the definitions of the print queues used by <b
48      class="APPLICATION">LPRng</b>, and is located in the
49      directory specified by the configuration <var class=
50      "LITERAL">${sysconfdir}</var> value. For a complete
51      description of the <tt class="FILENAME">printcap</tt> file
52      see <a href="printcapref.htm">Printcap Database</a>. If your
53      system does not have an existing <tt class=
54      "FILENAME">printcap</tt> file then a <span class=
55      "emphasis"><i class="EMPHASIS">dummy</i></span> file similar
56      to the following is installed by default:</p>
57
58      <div class="INFORMALEXAMPLE">
59        <a name="AEN893"></a>
60<pre class="SCREEN">
61    # dummy printcap file
62    lp:cm=Dummy Printcap Entry:
63     :lp=/dev/null
64     :sd=/var/spool/lpd/%P
65</pre>
66      </div>
67      <br>
68      <br>
69
70      <p>In addition to the system <tt class=
71      "FILENAME">printcap</tt> file, each user can have a <var
72      class="LITERAL">${HOME}/.printcap</var> which contains
73      printcap entries as well. The the user <tt class=
74      "FILENAME">printcap</tt> file is in effect appended to the
75      system printcap file, and values in the user printcap file
76      override the system printcap file. However, in order to allow
77      users to specify a default printer after reading the printcap
78      file information the entries are sorted so that printcap
79      entries defined by users come first.</p>
80
81      <p>The <tt class="FILENAME">lpd.conf</tt> is located in the
82      <var class="LITERAL">${sysconfdir}</var> directory and
83      provides configuration settings for both the <b class=
84      "APPLICATION">LPRng</b> client and server programs. For a
85      complete description of the <tt class=
86      "FILENAME">lpd.conf</tt> file see <a href=
87      "configfile.htm">Configuration File, Defaults and
88      Overrides</a>. During installation the <tt class=
89      "FILENAME">${sysconfdir}/lpd.conf.template</tt> is created
90      with the default <b class="APPLICATION">LPRng</b> information
91      and if there is not an existing <tt class=
92      "FILENAME">${sysconfdir}/lpd.conf</tt> file is copied to
93      it.</p>
94
95      <p>The <tt class="FILENAME">lpd.perms</tt> is located in the
96      <var class="LITERAL">${sysconfdir}</var> directory and is
97      only by <b class="APPLICATION">lpd</b> to determine user
98      permissions for printing activities. For a complete
99      description of the <tt class="FILENAME">lpd.perms</tt> file
100      see <a href="permsref.htm">Permissions and Authentication</a>
101      for details. During installation the <tt class=
102      "FILENAME">lpd.perms.template</tt> file is installed in the
103      <tt class="FILENAME">${sysconfdir}/lpd.perms.template</tt>
104      and if there is not an existing <tt class=
105      "FILENAME">lpd.perms</tt> file is copied to it.</p>
106
107      <p>By default, the <b class="APPLICATION">LPRng</b> client
108      programs <b class="APPLICATION">lpr</b>, <b class=
109      "APPLICATION">lpq</b>, <b class="APPLICATION">lprm</b>, and
110      <b class="APPLICATION">lprc</b> will require a <tt class=
111      "FILENAME">lpd.conf</tt> and <tt class=
112      "FILENAME">printcap</tt> file to be installed on the local
113      host. You can relax this requirement by setting using the
114      <var class="LITERAL">--disable-require_configfile</var>
115      configuration option. You can also create empty files to
116      satisfy the program requirements.</p>
117    </div>
118
119    <div class="NAVFOOTER">
120      <hr align="LEFT" width="100%">
121
122      <table summary="Footer navigation table" width="100%" border=
123      "0" cellpadding="0" cellspacing="0">
124        <tr>
125          <td width="33%" align="left" valign="top"><a href=
126          "x485.htm" accesskey="P">Prev</a></td>
127
128          <td width="34%" align="center" valign="top"><a href=
129          "index.htm" accesskey="H">Home</a></td>
130
131          <td width="33%" align="right" valign="top"><a href=
132          "x926.htm" accesskey="N">Next</a></td>
133        </tr>
134
135        <tr>
136          <td width="33%" align="left" valign="top">
137          Configuration</td>
138
139          <td width="34%" align="center" valign="top"><a href=
140          "installation.htm" accesskey="U">Up</a></td>
141
142          <td width="33%" align="right" valign="top">Checking
143          System Installation with <b class=
144          "APPLICATION">checkpc</b></td>
145        </tr>
146      </table>
147    </div>
148  </body>
149</html>
150
151