Changeset 1600 for pykota/trunk/README
- Timestamp:
- 07/16/04 14:22:47 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/README
r1580 r1600 25 25 FROM THIS FILE, PYKOTA CAN'T BE USED ANYMORE WITH LPRNG. 26 26 27 SUPPORT FOR LPRNG SHOULD BE RE-ADDED SOON WHEN A HUGE REWRITE 28 OF SOME PARTS OF PYKOTA WILL HAVE TAKEN PLACE 27 LPRNG SUPPORT IS CURRENTLY BEING REWRITTEN, AND YOU CAN 28 ALREADY PLAY WITH IT, BUT DON'T USE IT IN PRODUCTION UNTIL 29 THIS NOTE IS REMOVED. 29 30 30 31 ==================================================================== … … 47 48 - Supports both CUPS and LPRng as the printing system. 48 49 49 NB : LPRng support is currently being rewritten, so50 LPRng is actually not supported in latest CVS versions.51 52 50 Databases : 53 51 … … 174 172 counter. 175 173 176 With CUPS, this is done both at the beginning and at the end of a174 This is done both at the beginning and at the end of a 177 175 print job. The counters difference is then immediately used to 178 176 decrease the user's account balance or increase his quota usage. 179 180 With LPRng, this is done just before the beginning of a job, and used181 this to modify the *preceding* user's quota. So you're always late182 of one print job, but this is generally ok.183 177 184 178 - The 'software' method consists in delegating the computation of the … … 186 180 The command can read the job's data from its standard input and MUST 187 181 output the job's size on its standard output. Changes to the user 188 account are reported immediately, both with CUPS and LPRng. 189 190 PyKota is known to work fine with HP Laserjet 2100 and 2200, and 191 Apple LaserWriter 16/600 PS, both with CUPS and LPRng, under 192 Debian GNU/Linux (Sarge and Sid) operating systems. It should work 193 fine with most network printers. 182 account are reported immediately. 183 184 PyKota is known to work fine with most laser printers, either with 185 software accounting, or with hardware accounting if the printer 186 supports this. 194 187 195 188 ============================================================ … … 237 230 238 231 Other architectures may be supported as well in the future, check 239 on Psyco's website.232 this on Psyco's website. 240 233 241 234 Installing Psyco is not mandatory, but it will speedup PCL5 parsing … … 244 237 is already optimal. For PCL5 this is a completely different matter, 245 238 and if you install Psyco you will never regret it ! 246 Same remark applies for PCL6 (aka PCLXL) but performance improvement247 is yet to be fully tested (it is very high anyway).239 Same remark applies for PCL6 (aka PCLXL) : the parser is completely 240 different, but the performance gain with Psyco is impressive. 248 241 249 242 You may also benefit from having the following tools installed to … … 268 261 the Print Server. The PostgreSQL client libraries' version must 269 262 match the PostgreSQL version used on the Quota Storage Server. 270 BEWARE : under Debian Sarge, as of March 15th 2004, there's a271 problem with python2.2-pygresql and python-2.3-pygresql, so please272 install python2.1-pygresql and use Python 2.1 to install and run273 PyKota. This is not a bug in PyKota, and this should be fixed274 by Debian in a few days I hope.275 263 276 264 or … … 307 295 308 296 Go to the initscripts subdirectory of PyKota's sources, and choose 309 the appropriate storage backend for your configuration. Read 297 the appropriate storage backend for your configuration. Read carefully 310 298 the associated README file and execute the initialization script 311 299 to create an empty PyKota Storage. Upgrade scripts may be … … 314 302 Copy the conf/pykota.conf.sample and conf/pykotadmin.conf.sample 315 303 sample configuration files to /etc/pykota/pykota.conf and 316 /etc/pykota/pykotadmin.conf . The installation script tries to do317 this for you if needed and you agreed to this action . You need to318 adapt these files to your own needs. Especially you have to create304 /etc/pykota/pykotadmin.conf (the installation script tries to do 305 this for you if needed and you agreed to this action). You need to 306 adapt these files to your own needs. Especially you may have to create 319 307 sections named after your own printers, and change the 320 308 administrator's email address which by default is root@localhost. … … 342 330 $ /etc/init.d/cupsys restart 343 331 332 or : 333 334 $ /etc/rc.d/init.d/cupsysrestart 335 336 or any similar command depending on your operating system. 337 344 338 For new printers : 345 339 … … 358 352 359 353 Now double check /etc/pykota/pykota.conf 360 This file should contain a section named after the 354 355 You should manually create a section named after the 361 356 printer you've just added, unless you have set 362 357 all options globally. 358 363 359 The new pkhint command can help you with correct settings 364 360 for your printers, but don't rely on it because it is still 365 incomplete. 361 experimental work. To use pkhint, you have to feed it with 362 CUPS' printers.conf file this way : 363 364 $ pkhint </etc/cups/printers.conf 365 366 pkhint will try to tell you what is the best accounting 367 method for each printer and will print some lines you'll 368 just have to copy&paste in the appropriate sections in 369 /etc/pykota/pykota.conf 366 370 367 371 That's all. … … 399 403 400 404 Save the file and restart CUPS. 405 406 Here too, you may find it interesting to use the pkhint command as 407 described above to help with manual configuration of the file 408 /etc/pykota/pykota.conf 401 409 402 410 - LPRng Printing System : 403 411 404 For now LPRng support in PyKota is deactivated. Please be patient. 412 For each printer on which you want to use PyKota : 413 414 Modify the printer's entry in /etc/printcap : you have to add 415 the three following lines : 416 417 :ac=true:\ 418 :as=/usr/share/pykota/lprngpykota:\ 419 :ae=/usr/share/pykota/lprngpykota:\ 420 421 This will tell LPRng to activate accounting, and use the lprngpykota 422 accounting filter both at the start and at the end of printing. 423 424 When all modifications are done, just save the /etc/printcap file and 425 restart LPRng : 426 427 $ /etc/init.d/lprng restart 428 429 or : 430 431 $ /etc/rc.d/init.d/lprng restart 432 433 or any similar command depending on your operating system. 434 435 NB : the pkhint command can't be used with LPRng for now, so you 436 have to modify /etc/pykota/pykota.conf carefully. The comments 437 in this file will help you. 405 438 406 439 Now you can begin to populate the PyKota's database with printers, … … 489 522 http://cgi.librelogiciel.com/mailman/listinfo/pykota 490 523 524 The mailing list is the preferred way to obtain support, because 525 all members can help and can also benefit from the solutions 526 proposed by other members. 527 528 Posts by non-members are usually rejected. 529 530 The mailing list language is english and only english. 531 491 532 IRC : 492 533 ----- … … 496 537 /server irc.freenode.net 497 538 /join #pykota 539 540 Preferred language on this channel is english, but french 541 is also accepted. Try to avoid exposing complex problems 542 in french because english speaking people on the channel 543 wouldn't benefit from the solutions. 544 545 PyKota's main author is known as 'tamere' on IRC. 498 546 499 547 ============================================================