Changeset 1186 for pykota/trunk/README
- Timestamp:
- 11/15/03 15:26:45 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/README
r1185 r1186 161 161 - The 'querying' method consists in querying the printer (via SNMP 162 162 or Netatalk or any other method of your choice) for its total pages 163 counter, just before the beginning of a job, and use this to modify 164 the *preceding* user's quota. So you're always late of one print job, 165 but this is generally ok, especially because a check is also done to 166 see if the current user is allowed or not to print. 163 counter. 164 165 With CUPS, this is done both at the beginning and at the end of a 166 print job. The counters difference is then immediately used to 167 decrease the user's account balance or increase his quota usage. 168 169 With LPRng, this is done just before the beginning of a job, and used 170 this to modify the *preceding* user's quota. So you're always late 171 of one print job, but this is generally ok, especially because a 172 check is also done to see if the current user is allowed or not to 173 print. 167 174 168 175 - The 'external' method consists in delegating the computation of the 169 176 job's size in number of pages to any external command of your choice. 170 177 The command can read the job's data from its standard input and MUST 171 output the job's size on its standard output. 178 output the job's size on its standard output. Changes to the user 179 account are reported immediately, both with CUPS and LPRng. 172 180 173 181 - The 'stupid' method consists in counting the 'showpage' PostSript 174 182 statements in the job. THIS IS UNRELIABLE, but can serve as an 175 183 example if you plan to write your own accounting method for 176 integration into PyKota. 184 integration into PyKota. It basically works like the 'external' 185 method, but does the computation internally. 177 186 178 187 PyKota is known to work fine with HP Laserjet 2100 and 2200, and … … 189 198 ============= 190 199 191 WARNING : 192 ========= 193 194 If you run a PyKota version lower than 1.03, you definitely have to 195 upgrade you Quota Storage Database. Please read the documentation 196 included in the initscripts subdirectory first ! 197 200 NB : 201 ==== 202 198 203 Users of MacOS-X may find the following tutorial useful : 199 204 … … 219 224 if you plan to use OpenLDAP as the Quota Storage backend. 220 225 226 You may also benefit from having the following tools installed to 227 deal with some printers : 228 229 - npadmin 230 - netcat 231 - ghostscript 232 221 233 You need to have the following tools installed on the Quota Storage 222 234 Server : … … 272 284 provided as well. 273 285 274 Copy the conf/pykota.conf.sample and conf/pykotadmin.conf.sample 286 Copy the conf/pykota.conf.sample and conf/pykotadmin.conf.sample 275 287 sample configuration files to /etc/pykota/pykota.conf and 276 /etc/pykota/pykotadmin.conf. The installation script tries to do this 277 for you if needed and you agreed to this action. 278 You need to adapt these files to your own needs. 279 Especially you have to create sections named after your own 280 printers, and change the administrator's email address. 288 /etc/pykota/pykotadmin.conf. The installation script tries to do 289 this for you if needed and you agreed to this action. You need to 290 adapt these files to your own needs. Especially you have to create 291 sections named after your own printers, and change the 292 administrator's email address which by default is root@localhost. 293 Read and try to understand these two very well commented files, 294 so that you'll encounter less problems later. 295 Also be sure to double check that commands to query printers 296 for their internal page counter work from the command line 297 before using them in PyKota's configuration. 298 299 The rest of the installation depends on your printing system : 281 300 282 301 - CUPS Printing System : … … 309 328 Configure your printer as usual. 310 329 330 Now double check /etc/pykota/pykota.conf 331 This file should contain a section named after the 332 printer you've just added. 333 311 334 That's all. 312 335 313 336 For existing printers : 314 337 315 If you had already installed PyKota, then remove316 th e *cupsFilter lines in your PPD files for each317 printer already managed printers. Each line to318 remove is of the form :338 If you had already installed a version of PyKota earlier 339 than 1.16alpha7, then remove the *cupsFilter lines in your 340 PPD files for each printer already managed printers. Each 341 line to remove is of the form : 319 342 320 343 *cupsFilter: "application/vnd.cups-postscript 0 /usr/bin/pykota" 321 344 322 345 Don't touch anything else, especially any other *cupsFilter line. 323 Then save each of these files and restart CUPS.346 Then save each of these files. 324 347 325 348 Then, the easiest is to directly modify the DeviceURI lines … … 344 367 345 368 For each printer on which you want to use print accounting. 369 370 And then save the file and restart LPRng : 371 372 $ /etc/init.d/lprng restart 373 374 Now you can begin to populate the PyKota's database with printers, 375 users and groups : 346 376 347 377 Add printers and users to the quota system and set their quota values :