annotate src/site/markdown/install-digilib.md @ 12:9189ba27fcf8 default tip

merge
author casties
date Fri, 06 Sep 2013 11:06:00 +0200
parents fa5a64d04471
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
1 # Installing digilib
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
2
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
3 To run digilib you need:
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
4
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
5 * [Java](http://www.java.com/) (1.6 or higher)
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
6 * a Servlet Container like [Tomcat](http://tomcat.apache.org/) (version 7 or
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
7 higher) or [Jetty](http://www.eclipse.org/jetty/) (version 8 or higher)
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
8 * the digilib web application as a WAR file or application directory
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
9
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
10 ## Run the Servlet Container
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
11
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
12 Install and run the Servlet Container of your choice:
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
13 [Tomcat](http://tomcat.apache.org/tomcat-7.0-doc/setup.html) or
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
14 [Jetty](http://wiki.eclipse.org/Jetty/Howto/Run_Jetty).
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
15
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
16 When it runs you should be able to access the start page on
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
17 <http://localhost:8080/>
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
18
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
19 ## Install a digilib WAR file
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
20
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
21 1. Download a digilib WAR file of a recent digilib release from the
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
22 BerliOS [Download page](http://developer.berlios.de/project/showfiles.php?group_id=251)
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
23 or the latest digilib build from the
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
24 [daily build page](http://digilib.berlios.de/downloads/daily-build/).
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
25 2. Rename the WAR file to `digilib.war`.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
26 3. Deploy the WAR file, i.e. drop it into the `webapps` directory of your
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
27 Servlet Container.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
28 4. Restart your Servlet Container (this may not be necessary).
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
29 5. Access your digilib instance at <http://localhost:8080/digilib/digilib.html>.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
30
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
31 You will now be able to see the sample images provided with the digilib
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
32 installation.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
33
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
34 If you want to use digilib to show your own images you have to change the
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
35 configuration file [digilib-config.xml](digilib-config.html) **inside** the
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
36 web application. This is hard to do with a WAR file so its better to
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
37 deploy digilib as a web application directory.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
38
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
39 ## Install digilib as a web application directory
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
40
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
41 Unpack the WAR file into a directory called `digilib` using
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
42 an unzip tool or the `jar -xf` Java command.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
43
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
44 Alternatively you can look into the `webapps` directory of your Servlet
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
45 Container (when its not running) to see if it created an unpacked web
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
46 application directory called `digilib`.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
47
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
48 Alternatively you can build your own version of digilib as documented
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
49 [here](build-maven.html).
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
50
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
51 Then:
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
52
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
53 1. Make sure that your Servlet Container is not running and remove any
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
54 `digilib.war` files from the `webapps` directory.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
55 2. Copy your `digilib` directory into the `webapps` directory of the
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
56 Servlet Container.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
57 3. Edit the `digilib-config.xml` file in the `WEB-INF` subdirectory of the
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
58 `digilib` directory and adjust the `basedir-list` parameter to point to
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
59 the directory with your image files [according to the
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
60 documentation](digilib-config.html). If there is no file `digilib-config.xml`
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
61 you can either create a new file or rename the sample file
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
62 `digilib-config.xml.template` to `digilib-config.xml` and edit it.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
63 4. Start your Servlet Container.
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
64 5. Access your digilib instance at <http://localhost:8080/digilib/digilib.html>
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
65
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
66 You can now view your own images in digilib by providing the directory and file
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
67 name as the `fn` parameter to `digilib.html`, e.g. if your file is called
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
68 `flower.jpg` and it is in a subdirectory of the base directory called
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
69 `digilib-test` you can now access the URL
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
70
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
71 <http://localhost:8080/digilib/digilib.html?fn=digilib-test/flower>
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
72
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
73 Read more about the layout of image files and directories
fa5a64d04471 more docu for website.
casties
parents:
diff changeset
74 [here](image-directories.html).