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>Checking System Installation with checkpc</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="Installation" href="installation.htm"> 12 <link rel="PREVIOUS" title= 13 "System and User Printcap, lpd.conf, and lpd.perms files " 14 href="requireconfig.htm"> 15 <link rel="NEXT" title="Compilation and Install" href= 16 "x962.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 "requireconfig.htm" accesskey="P">Prev</a></td> 32 33 <td width="80%" align="center" valign="bottom">Chapter 2. 34 Installation</td> 35 36 <td width="10%" align="right" valign="bottom"><a href= 37 "x962.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="AEN926">2.7. Checking System 45 Installation with <b class="APPLICATION">checkpc</b></a></h1> 46 47 <p>The <b class="APPLICATION">checkpc</b> program is used to 48 make sure that the spool directories and files used by <b 49 class="APPLICATION">LPRng</b> have the correct permissions 50 and are in place. By default, <b class= 51 "APPLICATION">checkpc</b> will check permissions and report 52 if there are any problems. You should run this as <var class= 53 "LITERAL">root</var>. For example:</p> 54 55 <div class="INFORMALEXAMPLE"> 56 <a name="AEN934"></a> 57<pre class="SCREEN"> 58 <samp class="PROMPT">h4: {2} #</samp> <kbd class= 59"USERINPUT">checkpc</kbd> 60 Warning - No configuration file '/etc/lpd.conf' 61 Warning - No lpd only printcap file found in '/etc/lpd_printcap' 62 Warning - ** cannot open '/var/run/lpd.printer' - 'Permission denied' 63 Warning - bad directory - /var/spool/lpd/lp 64 Warning - Printer 'lp' spool dir '/var/spool/lpd/lp' needs fixing 65</pre> 66 </div> 67 <br> 68 <br> 69 70 <p>In the above example, <b class="APPLICATION">checkpc</b> 71 has discovered that the <tt class="FILENAME">lpd.conf</tt> 72 file is missing. This is a serious problem and indicates that 73 the software may be incorrectly installed.</p> 74 75 <p>The <var class="LITERAL">lpd only printcap</var> message 76 is usually of concern to administrators who wish to use some 77 of <b class="APPLICATION">LPRng</b>'s more exotic 78 configuration options. It is possible to have separate <tt 79 class="FILENAME">printcap</tt> files for client and server 80 programs. This is useful when <tt class= 81 "FILENAME">printcap</tt> files get extremely large and cuts 82 down substantially on system management problems.</p> 83 84 <p>The <var class="LITERAL">permission denied</var> message 85 for <tt class="FILENAME">/var/run/lpd.printer</tt> is 86 serious, as the <b class="APPLICATION">lpd</b> server uses 87 this as a lock file.</p> 88 89 <p>The <var class="LITERAL">bad directory</var> message about 90 the spool directory is usually caused by wrong permissions or 91 a missing directory.</p> 92 93 <p>The <tt class="COMMAND">checkpc -f</tt> (fix) option 94 causes <b class="APPLICATION">checkpc</b> to take action to 95 rectify errors. The <tt class="COMMAND">checkpc -f -V</tt> 96 (verbose) option causes the fixup activity to be displayed a 97 well:</p> 98 99 <div class="INFORMALEXAMPLE"> 100 <a name="AEN956"></a> 101<pre class="SCREEN"> 102 <samp class="PROMPT">h4: {3} #</samp> <kbd class= 103"USERINPUT">checkpc -f -V</kbd> 104 Checking for configuration files '/etc/lpd.conf' 105 found '/usr/local/etc/lpd.conf', mod 0100644 106 Checking for printcap files '/etc/printcap' 107 found '/usr/local/etc/printcap', mod 0100644 108 Checking for lpd only printcap files '/etc/lpd_printcap' 109 DaemonUID 1, DaemonGID 1 110 Using Config file '/etc/lpd.conf' 111 LPD lockfile '/var/run/lpd.printer' 112 Checking directory: '/var/run' 113 directory '/var' 114 directory '/var/run' 115 checking '/var/run/lpd.printer' file 116 117 Checking printer 'lp' 118 Checking directory: '/var/spool/lp' 119 directory '/var' 120 directory '/var/spool' 121 directory '/var/spool/lp' 122 file 'control.lp', zero length file unchanged in 1 hours 123 file 'status.lp', zero length file unchanged in 1 hours 124 file 'status', zero length file unchanged in 1 hours 125 file 'log', zero length file unchanged in 1 hours 126 file 'acct', zero length file unchanged in 1 hours 127 checking 'control.lp' file 128 checking 'status.lp' file 129 checking 'status' file 130 cleaning 'status' file, 0K bytes: no truncation 131 checking 'log' file 132 cleaning 'log' file, 0K bytes: no truncation 133 checking 'acct' file 134 cleaning 'acct' file, 0K bytes: no truncation 135</pre> 136 </div> 137 <br> 138 <br> 139 140 <p><b class="APPLICATION">checkpc</b> will create the spool 141 directories and any missing files, and fix the permissions of 142 existing files.</p> 143 </div> 144 145 <div class="NAVFOOTER"> 146 <hr align="LEFT" width="100%"> 147 148 <table summary="Footer navigation table" width="100%" border= 149 "0" cellpadding="0" cellspacing="0"> 150 <tr> 151 <td width="33%" align="left" valign="top"><a href= 152 "requireconfig.htm" accesskey="P">Prev</a></td> 153 154 <td width="34%" align="center" valign="top"><a href= 155 "index.htm" accesskey="H">Home</a></td> 156 157 <td width="33%" align="right" valign="top"><a href= 158 "x962.htm" accesskey="N">Next</a></td> 159 </tr> 160 161 <tr> 162 <td width="33%" align="left" valign="top">System and User 163 Printcap, lpd.conf, and lpd.perms files</td> 164 165 <td width="34%" align="center" valign="top"><a href= 166 "installation.htm" accesskey="U">Up</a></td> 167 168 <td width="33%" align="right" valign="top">Compilation 169 and Install</td> 170 </tr> 171 </table> 172 </div> 173 </body> 174</html> 175 176