root / pykota / trunk / README @ 720

Revision 716, 4.1 kB (checked in by jalet, 22 years ago)

Documentation change wrt edpykota command line options

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# $Id$
2
3PyKota - Print Quota for CUPS
4
5(c) 2003 Jerome Alet <alet@librelogiciel.com>
6You're welcome to redistribute this software under the
7terms of the GNU General Public Licence version 2.0
8or, at your option, any higher version.
9
10You can read the complete GNU GPL in the file COPYING
11which should come along with this software, or visit
12the Free Software Foundation's WEB site http://www.fsf.org
13
14============================================================
15
16PyKota is a complete Print Quota system for the Common Unix Printing
17System (aka CUPS), which works by directly querying the printers
18for the number of pages they have printed.
19
20Current or planned features are :
21
22        - Easy installation.
23       
24        - Per printer User and Group quotas. Currently Group
25          quotas are only at skeleton stage.
26       
27        - Centralized configurable storage : currently
28          only a PostgreSQL database backend is supported,
29          but at least LDAP and MySQL are planned.
30         
31        - Automated mailing of warning or error messages to 
32          users and print administrator when print quota is
33          exceeded.
34         
35        - Configurable printer querying methods. Currently
36          only SNMP method is supported.
37
38Look at the documentation in the docs subdirectory to learn
39more.
40
41============================================================
42
43INSTALLATION:
44=============
45
46Prerequisite :
47--------------
48   
49  You need to have the following tools installed on the CUPS Server :
50 
51    - CUPS
52    - Python
53    - eGenix' mxDateTime Python extension
54    - PostgreSQL's PygreSQL Python extension and the PostgreSQL client
55      libraries.
56    - SNMP tools (specifically the snmpget command)
57   
58  You need to have the following tools installed on the Quota Storage 
59  Server :
60 
61    - PostgreSQL
62   
63  PygreSQL and the PostgreSQL client libraries's versions on the CUPS
64  Server must match the PostgreSQL version used on the Quota Storage
65  Server.
66 
67  Of course the CUPS Server and the Quota Storage Server can be the 
68  very same machine.
69 
70  This list of prerequisite software may change in the future, when
71  PyKota will support more functionnalities you will be given
72  alternatives.
73 
74Then :   
75------
76 
77Download the latest PyKota version from :
78
79        http://www.librelogiciel.com/software/
80
81Extract it and install it on the CUPS Server :
82
83        gzip -d pykota-x.xx.tar.gz | tar -xf -
84
85        where x.xx is PyKota's latest version number.
86
87Go to PyKota's directory :
88
89        cd pykota-x.xx
90
91Just type :
92
93        python setup.py install
94
95You may need to be logged in with sufficient privileges (e.g. root)
96
97Go to the initscripts subdirectory of PyKota's sources, and choose
98the appropriate storage backend for your configuration. Read
99the associated README file and execute the initialization script
100to create an empty PyKota Storage.
101
102Copy the conf/pykota.conf.sample sample configuration file to
103CUPS' configuration directory, usually /etc/cups, under the
104name pykota.conf, and adapt this file to your own needs and
105configuration.
106
107Modify the PPD files for each printer on which you want to manage
108print quotas, for example /etc/cups/ppd/lp.ppd :
109
110--- Add the line below exactly as-is somewhere near the top ---
111*cupsFilter:  "application/vnd.cups-postscript 0 /usr/bin/pykota"
112--- Add the line above exactly as-is somewhere near the top  ---
113
114Modify the path to pykota if needed, unfortunately you have to
115supply the correct absolute path here due to CUPS internals, or
116put the pykota executable into /usr/lib/cups/filter instead of
117into /usr/bin.
118
119Do this in each ppd file present in this directory if you want
120to enable quota on every printer.
121         
122Add printers and users to the quota system and set their quota values :
123
124        $ edpykota -P printer -S softlimit -H hardlimit user1 ... userN
125
126Restart CUPS, for example under Debian GNU/Linux systems :         
127
128        $ /etc/init.d/cupsys restart
129       
130Your users now should be able to print but not exceed their
131printing quota.
132
133============================================================
134
135Please e-mail bugs to: alet@librelogiciel.com (Jerome Alet)
Note: See TracBrowser for help on using the browser.