piektdiena, 2012. gada 2. novembris

Melnraksts - pykota


Melnraksts - liekam WINBIND/PYKOTA/CUPS

apt-get install winbind
apt-get install krb5-config krb5-user
scp -r root@druka:/etc/krb5.conf /etc/
scp -r root@druka:/etc/cups /etc/
scp -r root@druka:/etc/samba /etc/
net ads join -S vaserv -U admin_vea
vim /etc/nsswitch.conf
/etc/init.d/winbind restart




apt-get install subversion
cd /usr/local/src/
svn co http://svn.pykota.com/pykota/trunk pykota
cd pykota
/* # python -V
Python 2.7.3 */
python checkdeps.py
apt-get install python-pygresql python-jaxml python-reportlab python-imaging pkpgcounter python-pam
cd /usr/local/src
svn co http://svn.pykota.com/pkipplib/trunk pkipplib
cd pkipplib/
python setup.py install
cd /usr/local/src/pykota
python checkdeps.py
python setup.py install -v -f | tee -a install.log

adduser --system --group --home /etc/pykota --gecos PyKota pykota
cp /usr/local/share/pykota/cupspykota /usr/lib/cups/backend/cupspykota
cp /usr/local/share/pykota/conf/pykota.conf.sample /etc/pykota/pykota.conf
cp /usr/local/share/pykota/conf/pykotadmin.conf.sample /etc/pykota/pykotadmin.conf
chmod 644 /etc/pykota/pykota.conf
chmod 640 /etc/pykota/pykotadmin.conf
chown pykota.pykota /etc/pykota/pykota.conf /etc/pykota/pykotadmin.conf


/*
[global]
Debug: Yes
config_charset : UTF-8
storagebackend: pgstorage
storageserver: stende
storagename: XXX
storageuser : XXX
storageuserpw : XXX
storagecaching: No
disablehistory: No
logger: system
logourl : http://www.pykota.com/pykota.png
logolink : http://www.pykota.com/
smtpserver: localhost
maildomain: venta.lv
usernamecase: lower
privacy : no
onbackenderror : nocharge
keepfiles : no
accounter: software()
skipinitialwait : no
preaccounter: software()
onaccountererror: stop
admin: John Doe
adminmail: root@localhost
mailto : both
balancezero: -0.5
gracedelay : 7
poorman : 1.0
poorwarn : Your Print Quota account balance is low.
 Soon you'll not be allowed to print anymore.
softwarn: Your Print Quota Soft Limit is reached.
 This means that you may still be allowed to print for some
 time, but you must contact your administrator to purchase
 more print quota.
hardwarn: Your Print Quota Hard Limit is reached.
 This means that you are not allowed to print anymore.
 Please contact your administrator at root@localhost
 as soon as possible to solve the problem.
policy: external(/usr/local/bin/pkusers --add --limitby balance --skipexisting  %(username)s > /dev/null &&  /usr/local/bin/edpykota --add --skipexisting -n %(username)s)
maxdenybanners: 0
enforcement : strict
trustjobsize : yes
denyduplicates : no
duplicatesdelay : 0
noprintingmaxdelay : 60
statusstabilizationloops : 5
statusstabilizationdelay : 4.0
snmperrormask : 0x4FCC
*/