

#PACTIME SHOULD ALREADY BE INSTALLED AND SET UP

#0 : apt-get install python-httplib2

#1 run
./install.bash

#2 you will probably need to override pac_settings values - bonus time is not in change_settings.py gui in pactime yet

#not necessary anymore: rm  /var/www/groovix/pacrez/includes/settings.php  ; touch /var/www/groovix/pacrez/includes/settings.php; chmod 777 includes/settings.php

#NOW DO WEBCAL GUI SETUP 
# - go to: http:// ... /groovix/pacrez/
# - reload page (to test session counter)
# - set password: use staff password, put in again to login
# - next
# - give it the proper database name/user/password info for the gv user - not the mysql root user/password,  for example:  gxu_lapcat,  gxpw_password, gxdb_lapcat
# - enable database connection persistence? - yes
# - test settings
# - next
# - install database
# - next
# - create default admin account
	# set server url - ideally use internet name like groovix.lapcat.org, otherwise use server name like groovix-server and put an entry for that in all /etc/hosts files
# - save settings, then launch

chmod 744 /var/www/groovix/pacrez/includes/settings.php


browse to /pacrez/login.php to login as admin with password admin
settings -> User Manager -> Administrator Default - > Change Password - > Set Password (use staff password, not global root password)
    Add New User - > Username: staff First Name: libraryname LastName staff set password: staffpw   , Admin: YES

settings - system settings - settings - set timezone
settings - system settings - settings - set work hours to maximum hours library is open
 - save
settings - Public Calendar -  preferences - settings - set timezone
 - save preferences
settings - preferences - settings - set timezone
 - save preferences

views - manage views - add a view called "daily timebar - all"  - "view type"=day, global="yes", users="all" - add

#adding workstations
# scripted:
see /var/www/groovix/common/doc/ new_site_setup.checklist adding-new-site-scripts/
# manually:
settings - User Manager - NonUser Calendars - Add New NonUser Calendar - set "calendar id"="groovix label", use name like "site web 01" or "site childrens 2" - first name "site Childrens", last name 022 ,  admin="default administrator" , "is public calender"=no/yes? (probably no, yes would enable viewing of just that calendar at a specific url like: http://192.168.3.196/groovix/wctry2/nulogin.php?login=_NUC_express1  - might be useful in the future but don't need for now




views - manage views - add a view for the first site like "Default Location"  - "view type"=day, global="yes", users="Selected" and choose appropriate list of computer for that view

Settings - Preferences -  Modify Non-User Calendar Preferences - Public Access calendar - Preferred View - "Default Location" (or whatever the default view should be just in case we end up at it)

(now set default view for admin)
Settings - Preferences -  Preferred View - "Default Location"  (the month view would confuse them)

Logout
Login as user staff
Settings - Preferences -  Preferred View - "Default Location"  (the month view would confuse them)
Logout



########
get specific debs or add to sources: 
deb http://archive6.groovix.net/ubuntu precise main
need to install groovix-pacauth and
 set up /etc/groovix/pacauth.conf on the server for proper authentication
#chown www-data.www-data /etc/groovix/pacauth.conf ; # so pacrez can read it
chgrp www-data.www-data /etc/groovix/pacauth.conf ; # so pacrez can read it
vi /etc/groovix/pacauth.conf


#old# if 64-bit server use 32-bit groovix packages
#old# deb [arch=i386] http://archive5.groovix.net/ubuntu precise main


#install groovix-util and groovix-pacauth




#####
add to cron to log detailed availability info:
#log availability
#central-me
*  9-20 * * 1-4 root /root/bin/avail_checker.bash 21
*  9-17 * * 5   root /root/bin/avail_checker.bash 21
*  9-16 * * 6   root /root/bin/avail_checker.bash 21
* 12-15 * * 7   root /root/bin/avail_checker.bash 21

