- Timestamp:
- 02/12/04 23:43:58 (21 years ago)
- Location:
- pykota/trunk
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/conf/pykota.conf.sample
r1337 r1345 241 241 # or more simply : 242 242 # 243 # mailto: external(/usr/ bin/mailandpopup.sh %(username)s %(printername)s "%(email)s" "%(message)s" 2>&1 >/dev/null)243 # mailto: external(/usr/share/pykota/mailandpopup.sh %(username)s %(printername)s "%(email)s" "%(message)s" 2>&1 >/dev/null) 244 244 # 245 245 # NB : The mailandpopup.sh shell script is now included in PyKota … … 327 327 # pagecount.ps file from untested/netatalk into /etc or any 328 328 # appropriate location) 329 # requester: external(/usr/ bin/papwaitprinter.sh "MyPrinter:LaserWriter@*" && /usr/bin/pap -p "MyPrinter:LaserWriter@*" /etc/pagecount.ps 2>/dev/null | grep -v status | grep -v Connect |tail -1)329 # requester: external(/usr/share/pykota/papwaitprinter.sh "MyPrinter:LaserWriter@*" && /usr/bin/pap -p "MyPrinter:LaserWriter@*" /usr/share/pykota/pagecount.ps 2>/dev/null | /bin/grep -v status | /bin/grep -v Connect | /usr/bin/tail -1) 330 330 # 331 331 # An example for parallel printers like the HP Laserjet 5MP : 332 332 # 333 # requester: external(/bin/cat /usr/share/pykota/ untested/pjl/pagecount.pjl >/dev/lp0 && /usr/bin/head -2 </dev/lp0 | /usr/bin/tail -1)333 # requester: external(/bin/cat /usr/share/pykota/pagecount.pjl >/dev/lp0 && /usr/bin/head -2 </dev/lp0 | /usr/bin/tail -1) 334 334 # 335 335 # … … 360 360 # server on port 9100 : 361 361 # 362 # requester: external(/bin/nc -w 2 %(printer)s 9100 < pagecount.pjl | /usr/bin/tail -2)362 # requester: external(/bin/nc -w 2 %(printer)s 9100 </usr/share/pykota/pagecount.pjl | /usr/bin/tail -2) 363 363 # 364 364 # … … 366 366 # the same as above, but should work on more printers : 367 367 # 368 # requester: external(/usr/ bin/pagecount.pl %(printer)s 9100)368 # requester: external(/usr/share/pykota/pagecount.pl %(printer)s 9100) 369 369 # 370 370 # … … 376 376 # not yet finished (not all pages are printed, but the complete job is in 377 377 # the printer) 378 requester: external(/usr/ bin/waitprinter.sh %(printer)s && /usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ")378 requester: external(/usr/share/pykota/waitprinter.sh %(printer)s && /usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 379 379 380 380 # Default policy for inexistant users (e.g. root) -
pykota/trunk/NEWS
r1338 r1345 24 24 - 1.18alpha4 : 25 25 26 - Applied some of the modifications suggested by 27 Peter Hawkins, for better Debian integration. 28 Most notably cupspykota, pykota, and the shell 29 scripts are now installed into /usr/share/pykota 30 instead of into /usr/bin 31 BEWARE : double check that your symbolic link 32 to cupspykota is correct, and that your pykota.conf 33 file use correct path for the shell scripts like 34 waitprinter.sh and al. 35 26 36 - pkhint command added, to help in configuring correct 27 37 accounting method for PyKota. -
pykota/trunk/README
r1299 r1345 305 305 306 306 $ cd /usr/lib/cups/backend 307 $ ln -s /usr/ bin/cupspykota cupspykota307 $ ln -s /usr/share/pykota/cupspykota cupspykota 308 308 309 309 Restart CUPS so that the new backend can be detected. … … 344 344 line to remove is of the form : 345 345 346 *cupsFilter: "application/vnd.cups-postscript 0 /usr/bin/pykota" 346 *cupsFilter: "application/vnd.cups-postscript 0 /usr/share/pykota/pykota" 347 348 This means that each time the pstops filter will be executed, it will 349 pass the job's data through the pykota filter which is present in 350 /usr/share/pykota 347 351 348 352 Don't touch anything else, especially any other *cupsFilter line. … … 359 363 360 364 DeviceURI cupspykota:socket://myprinter.domain.com:9100 365 366 or : 367 368 DeviceURI cupspykota://socket://myprinter.domain.com:9100 361 369 362 370 Save the file and restart CUPS. … … 367 375 368 376 :achk=true 369 :as=|/usr/ bin/pykota377 :as=|/usr/share/pykota/pykota 370 378 371 379 For each printer on which you want to use print accounting. … … 379 387 380 388 Add printers and users to the quota system and set their quota values : 389 390 Starting from version 1.18alpha2, the preferred command to manage 391 printers is named pkprinters 392 393 $ pkprinters --help 394 395 will tell you how to create, manage or delete printers and 396 printers groups. 381 397 382 398 $ edpykota --add -P hp2100 -S 40 -H 50 user1 ... userN … … 427 443 428 444 Quota reports are also available remotely by using the CGI script 429 printquota.cgi provided in the cgi-bin/ subdirectory. 445 printquota.cgi provided in the cgi-bin/ subdirectory. You can 446 also use the CSS stylesheet present in the stylesheets/ subdirectory 447 and put it at your web server's DocumentRoot. 430 448 431 449 For different security concerns, please give a look at the SECURITY -
pykota/trunk/setup.py
r1338 r1345 24 24 # 25 25 # $Log$ 26 # Revision 1.35 2004/02/12 22:43:58 jalet 27 # Better integration in Debian and more LSB compliance, thanks to 28 # Peter Hawkins. 29 # 26 30 # Revision 1.34 2004/02/07 13:45:51 jalet 27 31 # Preliminary work on the pkhint command … … 379 383 data_files.append((directory, manpages)) 380 384 385 directory = os.sep.join(["share", "pykota"]) 386 data_files.append((directory, ["bin/cupspykota", "bin/pykota", "bin/waitprinter.sh", "bin/papwaitprinter.sh", "bin/mailandpopup.sh", "contributed/pagecount.pl", "untested/pjl/pagecount.pjl", "untested/pjl/status.pjl", "untested/netatalk/netatalk.sh", "untested/netatalk/pagecount.ps"])) 387 381 388 setup(name = "pykota", version = __version__, 382 389 license = "GNU GPL", … … 386 393 url = "http://www.librelogiciel.com/software/", 387 394 packages = [ "pykota", "pykota.storages", "pykota.requesters", "pykota.loggers", "pykota.accounters", "pykota.reporters" ], 388 scripts = [ "bin/ cupspykota", "bin/pykota", "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters", "bin/pkhint", "bin/waitprinter.sh", "bin/papwaitprinter.sh", "bin/mailandpopup.sh", "contributed/pagecount.pl" ],395 scripts = [ "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters", "bin/pkhint" ], 389 396 data_files = data_files) 390 397