File: requireconfig.htm

package info (click to toggle)
lprng 3.8.10-1.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 13,076 kB
  • ctags: 4,348
  • sloc: ansic: 35,394; sh: 10,756; perl: 2,210; makefile: 1,046
file content (148 lines) | stat: -rw-r--r-- 5,963 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">
    <title>System and User Printcap, lpd.conf, and lpd.perms
    files</title>
    <meta name="GENERATOR" content=
    "Modular DocBook HTML Stylesheet Version 1.71 ">
    <link rel="HOME" title=" LPRng-HOWTO" href="index.htm">
    <link rel="UP" title="Installation" href="installation.htm">
    <link rel="PREVIOUS" title="Configuration" href="x484.htm">
    <link rel="NEXT" title=
    "Checking System Installation with checkpc" href="x885.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-HOWTO: 1 Apr 2002
          (For LPRng-3.8.10)</th>
        </tr>

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

          <td width="80%" align="center" valign="bottom">Chapter 2.
          Installation</td>

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

    <div class="SECT1">
      <h1 class="SECT1"><a name="REQUIRECONFIG">2.6. System and
      User Printcap, lpd.conf, and lpd.perms files</a></h1>

      <p>The system <tt class="FILENAME">printcap</tt> file
      contains the definitions of the print queues used by <b
      class="APPLICATION">LPRng</b>, and is located in the
      directory specified by the configuration <tt class=
      "LITERAL">${sysconfdir}</tt> value. For a complete
      description of the <tt class="FILENAME">printcap</tt> file
      see <a href="printcapref.htm">Printcap Database</a>. If your
      system does not have an existing <tt class=
      "FILENAME">printcap</tt> file then a <i class=
      "EMPHASIS">dummy</i> file similar to the following is
      installed by default:</p>

      <div class="INFORMALEXAMPLE">
        <a name="AEN852"></a>
<pre class="SCREEN">
    # dummy printcap file
    lp:cm=Dummy Printcap Entry:
     :lp=/dev/null
     :sd=/var/spool/lpd/%P
</pre>
      </div>
      <br>
      <br>

      <p>In addition to the system <tt class=
      "FILENAME">printcap</tt> file, each user can have a <tt
      class="LITERAL">${HOME}/.printcap</tt> which contains
      printcap entries as well. The the user <tt class=
      "FILENAME">printcap</tt> file is in effect appended to the
      system printcap file, and values in the user printcap file
      override the system printcap file. However, in order to allow
      users to specify a default printer after reading the printcap
      file information the entries are sorted so that printcap
      entries defined by users come first.</p>

      <p>The <tt class="FILENAME">lpd.conf</tt> is located in the
      <tt class="LITERAL">${sysconfdir}</tt> directory and provides
      configuration settings for both the <b class=
      "APPLICATION">LPRng</b> client and server programs. For a
      complete description of the <tt class=
      "FILENAME">lpd.conf</tt> file see <a href=
      "configfile.htm">Configuration File, Defaults and
      Overrides</a>. During installation the <tt class=
      "FILENAME">${sysconfdir}/lpd.conf.template</tt> is created
      with the default <b class="APPLICATION">LPRng</b> information
      and if there is not an existing <tt class=
      "FILENAME">${sysconfdir}/lpd.conf</tt> file is copied to
      it.</p>

      <p>The <tt class="FILENAME">lpd.perms</tt> is located in the
      <tt class="LITERAL">${sysconfdir}</tt> directory and is only
      by <b class="APPLICATION">lpd</b> to determine user
      permissions for printing activities. For a complete
      description of the <tt class="FILENAME">lpd.perms</tt> file
      see <a href="permsref.htm">Permissions and Authentication</a>
      for details. During installation the <tt class=
      "FILENAME">lpd.perms.template</tt> file is installed in the
      <tt class="FILENAME">${sysconfdir}/lpd.perms.template</tt>
      and if there is not an existing <tt class=
      "FILENAME">lpd.perms</tt> file is copied to it.</p>

      <p>By default, the <b class="APPLICATION">LPRng</b> client
      programs <b class="APPLICATION">lpr</b>, <b class=
      "APPLICATION">lpq</b>, <b class="APPLICATION">lprm</b>, and
      <b class="APPLICATION">lprc</b> will require a <tt class=
      "FILENAME">lpd.conf</tt> and <tt class=
      "FILENAME">printcap</tt> file to be installed on the local
      host. You can relax this requirement by setting using the <tt
      class="LITERAL">--disable-require_configfile</tt>
      configuration option. You can also create empty files to
      satisfy the program requirements.</p>
    </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=
          "x484.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=
          "x885.htm" accesskey="N">Next</a></td>
        </tr>

        <tr>
          <td width="33%" align="left" valign="top">
          Configuration</td>

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

          <td width="33%" align="right" valign="top">Checking
          System Installation with <b class=
          "APPLICATION">checkpc</b></td>
        </tr>
      </table>
    </div>
  </body>
</html>