Difference between revisions of "Koha/Post-Installation"

From Libopedia
Jump to navigation Jump to search
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
===Step 1 - Setup automated tasks using the cron daemon===
+
==Step 1 - Setup email delivery==
See: https://github.com/Koha-Community/Koha/blob/master/misc/cronjobs/crontab.example
 
 
 
Add the above to "koha" user crontab. Change all instances of "__KOHA_USER__" to "koha".
 
 
 
===Step 2 - Enable system backup and monitor===
 
*With the packages installation, the '''koha-run-backups''' command is available. See below for help.
 
<pre>
 
/usr/sbin/koha-run-backups - performs backups of the koha installations on the system
 
 
 
This allows automation of backing up the koha data and configuration to the
 
filesystem. It will keep the past so many backups, discarding older ones.
 
 
 
Options:
 
    --output:  the directory that the resulting files will be placed into.
 
                (default: /var/spool/koha)
 
    --days:    the number of days to keep backups around for
 
                (default: 2)
 
 
 
Note: backups produced using this tool can be restored using `koha-restore'.
 
</pre>
 
*So we add this command to a root crontab but first we need to create a destination folder for the backup.
 
sudo mkdir /var/backup
 
*Create a folder for "library" instance created during installation.
 
sudo mkdir /var/backup/library
 
*Setup the root crontab by adding the following:
 
@daily /usr/sbin/koha-run-backups --output /var/backup/library --days 2
 
 
 
====Help====
 
*http://wiki.lib.sun.ac.za/index.php/SUNScholar/Disaster_Recovery/Backups/Client_Setup
 
*http://wiki.lib.sun.ac.za/index.php/SUNScholar/Disaster_Recovery/Backups/Server_Setup
 
*http://wiki.lib.sun.ac.za/index.php/SUNScholar/Disaster_Recovery/System_Monitor
 
 
 
Also see: https://github.com/Koha-Community/Koha/blob/master/misc/cronjobs/backup.sh
 
 
 
===Step 3 - Setup system email delivery===
 
 
*Install mail delivery agent
 
*Install mail delivery agent
 
  sudo apt-get install postfix
 
  sudo apt-get install postfix
Line 55: Line 20:
  
 
You can check the log at '''/var/log/mail.log''' for more info of delivery.
 
You can check the log at '''/var/log/mail.log''' for more info of delivery.
====Help====
+
===Help===
 
*https://help.ubuntu.com/community/Postfix
 
*https://help.ubuntu.com/community/Postfix
 +
 +
===Tips===
 +
*https://github.com/colinsc/koha/blob/master/misc/maintenance/borrowers-force-messaging-defaults
 +
 +
==Step 2 - Setup custom website style==
 +
*Select the "ccsr" theme using the '''opacthemes''' parameter in the admin interface.
 +
*Setup the '''opacsmallimage''' in the admin interface.
 +
*See the highlighted red boxes in the screenshot below for customisable areas of the OPAC web interface.
 +
 +
[[File:Koha.png]]
 +
 +
*The following folder contains the CCS files to style the OPAC client depending on which theme you selected.
 +
/usr/share/koha/opac/htdocs/opac-tmpl
 +
*The following folder contains the CCS files to style the admin interface.
 +
/usr/share/koha/intranet/htdocs/intranet-tmpl
 +
===Help===
 +
*http://wiki.lib.sun.ac.za/images/5/56/OPAC-Customization.pdf
 +
*http://libill.hartford.edu/koha/development/index.asp
 +
*http://manual.koha-community.org/3.4/en/impopac.html
 +
*http://wiki.koha-community.org/wiki/Customising_Notices_and_Slips
 +
*http://wiki.koha-community.org/wiki/Receipt_Printing_Fonts
 +
----
 +
* http://learnlayout.com
 +
* http://www.csstutorial.net
 +
* http://www.echoecho.com/css.htm
 +
* http://htmldog.com
 +
* http://htmlhelp.com/reference/css
 +
* http://www.fontsquirrel.com
 +
* http://validator.w3.org
 +
* http://jigsaw.w3.org/css-validator
 +
 +
==Step 3 - Enable LDAP user ID and authentication==
 +
To do.
 +
===Help===
 +
*http://perldoc.koha-community.org/C4/Auth_with_ldap.html
 +
*http://kohablog.wordpress.com/category/koha/ldap
 +
*http://bywatersolutions.com/2012/07/09/koha-ldap
 +
*http://www.slideshare.net/ohiocore/koha-integration-ldap
 +
 +
==Step 4 - Enable Plugins==
 +
See: http://kohageek.blogspot.com/2013/09/how-to-setup-plugin-system-in-koha.html
 +
 +
Below is a brief procedure on how to add a "plugins" preference to Koha. Remember, with the packages installation method, these paths must be modified to point to your instance of Koha.
 +
 +
*To enable Koha plugins, the system preference '''UseKohaPlugins''' must be enabled.
 +
*Create the directory '''/var/lib/koha/plugins'''
 +
*Add the following lines to your '''koha-conf.xml''' file
 +
<pre>
 +
      <pluginsdir>/var/lib/koha/plugins</pluginsdir>
 +
      <enable_plugins>1</enable_plugins>"
 +
</pre>
 +
*Add the following line to your '''koha-httpd.conf''' file
 +
Alias /plugin/ "/var/lib/koha/plugins/"
 +
*Restart your webserver
 +
*Access the plugins system from the "More" pulldown
 +
*Upload the example plugin file provided here.
  
 
  '''[[Koha|Return to Koha wiki page]]'''
 
  '''[[Koha|Return to Koha wiki page]]'''

Latest revision as of 13:48, 30 September 2013

Step 1 - Setup email delivery

  • Install mail delivery agent
sudo apt-get install postfix

When asked for type of configuration, select Internet with smarthost. The smarthost is your campus email server, for example at Stellenbosch University that server is: mail.sun.ac.za

  • Deliver koha user email to designated recipients
sudo nano /etc/aliases

See example below. Replace the example email addresses with your email addresses.

# Added by installer for initial user
root:	me@my.edu
koha:   me@my.edu, you@my.edu

After saving the file, run the following command.

sudo newaliases

Enable command line email utils

sudo apt-get install mailx

Send a test email to yourself, by typing and pressing enter.

mail -s "Test from KOHA server" root, me@my.edu

Type in some content for the email, then press CTL+d to deliver the email.

You can check the log at /var/log/mail.log for more info of delivery.

Help

Tips

Step 2 - Setup custom website style

  • Select the "ccsr" theme using the opacthemes parameter in the admin interface.
  • Setup the opacsmallimage in the admin interface.
  • See the highlighted red boxes in the screenshot below for customisable areas of the OPAC web interface.

Koha.png

  • The following folder contains the CCS files to style the OPAC client depending on which theme you selected.
/usr/share/koha/opac/htdocs/opac-tmpl
  • The following folder contains the CCS files to style the admin interface.
/usr/share/koha/intranet/htdocs/intranet-tmpl

Help


Step 3 - Enable LDAP user ID and authentication

To do.

Help

Step 4 - Enable Plugins

See: http://kohageek.blogspot.com/2013/09/how-to-setup-plugin-system-in-koha.html

Below is a brief procedure on how to add a "plugins" preference to Koha. Remember, with the packages installation method, these paths must be modified to point to your instance of Koha.

  • To enable Koha plugins, the system preference UseKohaPlugins must be enabled.
  • Create the directory /var/lib/koha/plugins
  • Add the following lines to your koha-conf.xml file
      <pluginsdir>/var/lib/koha/plugins</pluginsdir>
      <enable_plugins>1</enable_plugins>"
  • Add the following line to your koha-httpd.conf file
Alias /plugin/ "/var/lib/koha/plugins/"
  • Restart your webserver
  • Access the plugins system from the "More" pulldown
  • Upload the example plugin file provided here.
Return to Koha wiki page