Show
Ignore:
Timestamp:
09/27/08 22:02:37 (16 years ago)
Author:
jerome
Message:

Removed unnecessary spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/docs/repykota.sgml

    r2844 r3413  
    44  <title id="repykota">Create print quota usage reports with repykota</title> 
    55  <para>Last modified on $Date$</para> 
    6    
     6 
    77  <para> 
    88    To account for print usage is good, however there must be a way to easily 
     
    1010    reports describing current usage for every user on every printer. 
    1111  </para> 
    12    
     12 
    1313  <sect1> 
    1414    <title>Command line based Print Quota reports</title> 
    15      
     15 
    1616    <para> 
    1717      PyKota features a quota report generator, named <command>repykota</command>, 
    1818      with which you can print the current state of the quota database. 
    1919    </para> 
    20      
     20 
    2121    <para> 
    2222      <command>repykota</command> behaves differently when it is launched by a 
    2323      <application>PyKota</application> administrator, compared to when it is launched by a normal user. 
    24     </para>   
    25      
     24    </para> 
     25 
    2626    <para> 
    27       In the first case, the print quota report will contain current account balance,  
     27      In the first case, the print quota report will contain current account balance, 
    2828      soft and hard limits, number of pages printed since last reset, total number 
    2929      of pages printed, total paid, for possibly all users or all groups, depending 
    3030      on command line options. 
    3131    </para> 
    32      
     32 
    3333    <para> 
    3434      In the second case, i.e. when <command>repykota</command> is launched by 
    35       a normal user, the user will only be allowed to see informations about himself or  
     35      a normal user, the user will only be allowed to see informations about himself or 
    3636      the groups he his a member of. 
    3737    </para> 
    38    
     38 
    3939    <para> 
    4040      Any user can limit the report to only one or more printers, by specifying the 
    41       <literal>-P</literal> or <literal>--printer</literal> command line option,  
     41      <literal>-P</literal> or <literal>--printer</literal> command line option, 
    4242      followed by one or more printer name or wildcard. If more than one printer name 
    4343      or wildcard is used, they must be separated by commas. 
    4444    </para> 
    45      
     45 
    4646    <para> 
    4747      Launching <command>repykota</command> with no arguments will generate 
    4848      a complete print quota report, depending on what you are allowed to see. 
    4949    </para> 
    50      
     50 
    5151    <para> 
    5252      Use the <literal>--help</literal> command line argument to learn what are 
    5353      the different command line options available. 
    5454    </para> 
    55      
     55 
    5656    <sect2> 
    5757      <title>Reference</title> 
     
    6666            <arg>-P <replaceable>printername</replaceable></arg> 
    6767            <arg>--printer <replaceable>printername</replaceable></arg> 
    68           </group>   
     68          </group> 
    6969          <group choice="opt"> 
    7070            <arg><replaceable>name1</replaceable></arg> 
     
    7272            <arg><replaceable>...</replaceable></arg> 
    7373            <arg><replaceable>nameN</replaceable></arg> 
    74           </group>   
     74          </group> 
    7575        </cmdsynopsis> 
    7676      </para> 
    7777    </sect2> 
    7878  </sect1> 
    79    
     79 
    8080  <sect1> 
    8181    <title>Web based Print Quota reports</title> 
    82      
     82 
    8383    <para> 
    8484      <application>PyKota</application> also features a CGI script to remotely access 
     
    8888      correctly. 
    8989    </para> 
    90      
     90 
    9191    <para> 
    9292      You may also want to copy the <acronym>CSS</acronym> stylesheets which are present in the 
     
    9595      a nicer web interface. 
    9696    </para> 
    97      
     97 
    9898    <para> 
    9999      You can find <command>printquota.cgi</command> in the <filename>pykota/cgi-bin</filename> 
    100100      directory. Here's how to install it, provided that your web server's <filename>cgi-bin</filename> 
    101101      directory is <filename>/usr/lib/cgi-bin</filename> : 
    102 <screen>       
     102<screen> 
    103103port50-2:/home/jerome/pykota$ cp cgi-bin/printquota.cgi /usr/lib/cgi-bin 
    104104port50-2:/home/jerome/pykota$ chmod 755 /usr/lib/cgi-bin/printquota.cgi 
     
    112112          must ensure that this user <emphasis>is not</emphasis> allowed to read <filename>~pykota/pykotadmin.conf</filename> 
    113113        </para> 
    114       </note>   
     114      </note> 
    115115    </para> 
    116      
     116 
    117117    <para> 
    118118      If you install the CGI script as described above, any user will be allowed to view the complete print 
     
    125125      then there's no restriction on what may appear on the print quota report. 
    126126    </para> 
    127      
     127 
    128128    <para> 
    129129      To automatically ask for an authentication dialog whenever the CGI script is accessed, you have to configure 
    130       your web server to do so. If your webserver is <ulink url="http://httpd.apache.org"><application>Apache</application></ulink>, then it's relatively easy. First you have to put  
     130      your web server to do so. If your webserver is <ulink url="http://httpd.apache.org"><application>Apache</application></ulink>, then it's relatively easy. First you have to put 
    131131      <command>printquota.cgi</command> in its own subdirectory below your web server's <filename>cgi-bin</filename> 
    132132      directory, for example in <filename>cgi-bin/PyKota/</filename>. Then use the <command>htpasswd</command> 
     
    140140      authentication mechanism. 
    141141    </para> 
    142      
     142 
    143143    <para> 
    144144      The detailed procedure to do all this is out of the scope of the present document, please refer to 
    145       <application>Apache</application>'s <ulink url="http://httpd.apache.org/docs-project/">documentation</ulink>  
     145      <application>Apache</application>'s <ulink url="http://httpd.apache.org/docs-project/">documentation</ulink> 
    146146      for all the gory details. 
    147147    </para>