[2593] | 1 | # $Id$ |
---|
| 2 | |
---|
| 3 | PyKota - Print Quotas for CUPS and LPRng |
---|
| 4 | |
---|
[2622] | 5 | (c) 2003, 2004, 2005, 2006 Jerome Alet <alet@librelogiciel.com> |
---|
[2593] | 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | (at your option) any later version. |
---|
| 10 | |
---|
| 11 | This program is distributed in the hope that it will be useful, |
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | GNU General Public License for more details. |
---|
| 15 | |
---|
| 16 | You should have received a copy of the GNU General Public License |
---|
| 17 | along with this program; if not, write to the Free Software |
---|
| 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 19 | |
---|
[2603] | 20 | =================================================================== |
---|
[2593] | 21 | |
---|
| 22 | Documentation : |
---|
| 23 | --------------- |
---|
| 24 | |
---|
| 25 | pykota.sqlite : |
---|
| 26 | |
---|
| 27 | This file can be used to create an empty SQLite3 database |
---|
| 28 | for use with PyKota, in the case you don't want to use |
---|
| 29 | either LDAP or PostgreSQL. |
---|
| 30 | |
---|
| 31 | NB : an SQLite3 database can't be shared between several |
---|
| 32 | PyKota managed print servers, contrarily to LDAP or |
---|
| 33 | PostgreSQL. |
---|
| 34 | |
---|
| 35 | HowTo : |
---|
| 36 | |
---|
| 37 | - Install SQLite v3.2.7 or higher, and its development files, |
---|
| 38 | for example on my Debian box : |
---|
| 39 | |
---|
| 40 | # apt-get install sqlite3 libsqlite3-dev |
---|
[2595] | 41 | |
---|
| 42 | You can also download SQLite from http://www.sqlite.org |
---|
[2593] | 43 | |
---|
| 44 | - Download and install PySQLite v2.0.5 or higher from : |
---|
| 45 | |
---|
[2603] | 46 | http://www.pysqlite.org |
---|
[2593] | 47 | |
---|
| 48 | Install it this way : |
---|
| 49 | |
---|
| 50 | # tar -zxf pysqlite-2.0.5.tar.gz |
---|
| 51 | # cd pysqlite-2.0.5 |
---|
| 52 | # python setup.py install |
---|
| 53 | |
---|
| 54 | - Create an SQLite3 database for PyKota : |
---|
| 55 | |
---|
[2594] | 56 | # sqlite3 ~pykota/pykota.db <pykota.sqlite |
---|
| 57 | # chown pykota.pykota ~pykota/pykota.db |
---|
| 58 | # chmod 660 ~pykota/pykota.db |
---|
| 59 | # chown pykota.pykota ~pykota (seems to be necessary) |
---|
[2593] | 60 | |
---|
| 61 | NB : adapt the permissions so that the user your printing |
---|
| 62 | system runs as (e.g. user 'lp') can read and write |
---|
| 63 | to the /etc/pykota/pykota.db file. |
---|
| 64 | |
---|
| 65 | - In pykotadmin.conf, just comment out all the lines |
---|
| 66 | |
---|
| 67 | - In pykota.conf, set : |
---|
| 68 | |
---|
| 69 | storagebackend : sqlitestorage |
---|
| 70 | storagename : /etc/pykota/pykota.db |
---|
| 71 | |
---|
| 72 | And comment out all other directives which name begins with 'storage'. |
---|
| 73 | NB : feel free to use a different path to store pykota.db, and |
---|
| 74 | adapt your configuration files accordingly. |
---|
| 75 | |
---|
| 76 | Your PyKota setup is now ready to be used with an SQLite3 database. |
---|
| 77 | |
---|
| 78 | Please report bugs to : alet@librelogiciel.com |
---|
| 79 | |
---|
| 80 | =================================================================== |
---|