source: other-projects/gs3-webservices-java-client/trunk/docs/HowToFiles/3InstallingFedora.html

Last change on this file was 17856, checked in by ak19, 15 years ago

Minor correction.

  • Property svn:executable set to *
File size: 10.4 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3<html>
4<head>
5<title>Installing Fedora</title>
6</head>
7<body>
8<a href="index.html">Back to index page</a>
9
10<h1>Installing Fedora (2.2.1/3.0) and Fedora-related information</h1>
11
12<p>Here, we're following <a href="http://www.fedora.info/download/2.2.1/userdocs/distribution/installation.html">the official Fedora instructions for installing Fedora 2.2.1</a></p>
13
14<p>Installation instructions for other versions of Fedora are similar and can be found at:
15<ul>
16<li><a href="http://www.fedora-commons.org/documentation/2.2.2/userdocs/distribution/installation.html">Fedora 2.2.2</a></li>
17<li><a href="http://www.fedora-commons.org/documentation/3.0b1/userdocs/distribution/installation.html">Fedora 3.0</a></li>
18</ul>
19We've now tested Fedora 2.2.1 and Fedora 3.0 with the GS3 web services demo-client application, where Fedora 2.2.1 was installed on Linux and Fedora 3.0 on Windows.</p>
20
21
22<h2>Sections</h2>
23<ul>
24<li><a href="#A">A Preliminary Steps</a></li>
25<li><a href="#B">B Installing Fedora 2.2.1</a></li>
26<li><a href="#C">C How to run Fedora (and how to stop it)</a></li>
27<li><a href="#D">D Creating the custom Greenstone 3 pid prefix</a></li>
28<li><a href="#E">E Exporting Greenstone documents into Fedora's repository</a></li>
29<li><a href="#F">F Further Information</a></li>
30</ul>
31
32
33<h2><a name="A">A Preliminary Steps</a></h2>
34<ol>
35<li>You need Greenstone 3.<br />
36Since we will be working with Greenstone 3 documents stored in Fedora's repository as "Fedora Digital Objects", Greenstone 3 is needed for its functionality to convert GS3 documents into FedoraMETS format and put them into the Fedora repository.<br />
37(If you only want a walkthrough on installing Fedora, then you don't need Greenstone 3 of course and can skip the parts of this document relating to that.)</li>
38<li>Fedora 2.2.1 requires Java 5 (I used jdk1.5.0_10).<br />
39If you wish to compile it yourself, you will need Apache Ant 1.6.5 and put it on your PATH.</li>
40<li>Defining environment variables. See <a href="http://www.fedora.info/download/2.2.1/userdocs/distribution/installation.html#intro.env">the official instructions</a> for further details on this.
41
42<p>Let's assume that when you have downloaded Fedora 2.2.1 and extracted it (as you will in Section B below), the Fedora executable stuff will go into a folder called "fedora" whose location is /full/path/to/fedora. With that in mind, we need to set the following environment variables:
43<ul>
44<li>JAVA_HOME - set this to the path of your JDK folder</li>
45<li>FEDORA_HOME - set this to the full path to that "fedora" folder just mentioned</li>
46<li>CATALINA_HOME should be set to the /full/path/to/fedora/tomcat folder.</li>
47<li>The PATH variable must contain your JDK 1.5's bin folder, and the 2 bin folders of Fedora: /full/path/to/fedora/server/bin and /full/path/to/fedora/client/bin</li>
48<li>If you plan on compiling it all yourself, have the full paths to Apache Ant 1.6.5 and of your JDK's bin/javac on your PATH.</li>
49</ul>
50
51<p>If you're on <b>Linux</b>, you can set the environment variables by editing your ~/.profile file and then, after saving the edits, logging out or doing a "source ~/.profile" in the x-term.<br />
52For example:
53<pre>
54export JAVA_HOME=/opt/jdk1.5.0_10/
55export FEDORA_HOME=/my/path/to/fedora
56export CATALINA_HOME=$FEDORA_HOME/tomcat
57
58PATH=/opt/jdk1.5.0_10/bin:/opt/jdk1.5.0_10/bin/javac:/my/path/to/apache-ant-1.6.5:$FEDORA_HOME/server/bin:$FEDORA_HOME/client/bin:$PATH
59</pre>
60</p>
61
62<p>On <b>Windows</b>, adjustments to your PATH variable, and creation of new variables (like FEDORA_HOME, CATALINA_HOME, JAVA_HOME) are made by going to: <blockquote>Start > Control Panel > (Performance and Maintenance icon OR click on Switch to Classic View on the left >) System > Advanced tab. Press the Environment Variables button. Add <b>new</b> System Variables and <b>edit</b> the existing Path variable.</blockquote>
63Note that on Windows, you use the <b>;</b> sign to append new items to your path, and when referring to previously declared environment variables you have to surround them with <b>%</b> signs:
64E.g.
65<pre>PATH=&lt;whatever-was-on-your-path-before&gt;;%FEDORA_HOME%/server/bin</pre>
66</p>
67</li>
68</ol>
69
70<h2><a name="B">B Installing Fedora 2.2.1</a></h2>
71<ol>
72<li>Download Fedora 2.2.1 from <a href="http://www.fedora.info/download/">http://www.fedora.info/download/</a>.<br />
73(You could also try Fedora 2.2.2 and Fedora 3 which are available from <a href="http://www.fedora-commons.org/developers/index.php">the Fedora Commons main page</a>.)
74</li>
75<li>Extract it.
76</li>
77<li>Make sure you have the environment variables set as described in Preliminary Steps above.
78</li>
79</ol>
80
81If using Linux, then do the following from an x-term. If you're on Windows, do the same from a DOS prompt:
82<ol>
83<li>Move into the extracted directory (e.g. fedora-2.2.1-src/) and type:
84<pre>ant installer</pre>
85Then go into the dist folder of the extraction directory (e.g. fedora-2.2.1-src/dist/) and type:
86<pre>java -jar fedora-2.2.1-installer.jar</pre>
87</li>
88<li>This will run the command-line installer. Choose "quick" installation.
89</li>
90<li>Accept everything as given and set a password for your Fedora Administrator account whose default username is "fedoraAdmin".
91By accepting the defaults, the server will be set to run on localhost, port 8080 (with shutdown port 8005).<br />
92<b>Note:</b> if you have Greenstone 3 installed at port 8080 as well, then you should not be running both at the same time (they will conflict and probably neither will work). You will need to stop Greenstone 3 in order to run Fedora on the same port, and stop Fedora to run Greenstone 3 again on the same port. Alternatively, you can choose to <a href="http://wiki.greenstone.org/wiki/index.php/Walkthrough:_installing_Greenstone_3_from_SVN_source#Changing_the_port_number_where_tomcat_is_installed">change the port on which Greenstone 3 runs</a>.
93</li>
94</ol>
95
96<b>You will need to remember the following details of your installation:</b>
97<ul>
98<li>the username for your Fedora account (default would be: fedoraAdmin)</li>
99<li>the password for it (?)</li>
100<li>the host (default would be: localhost)</li>
101<li>the port number (default would be: 8080)</li>
102</ul>
103
104
105<h2><a name="C">C How to run Fedora (and how to stop it)</a></h2>
106<ol>
107<li>First <b>start</b> up fedora server by typing the following in xterm:
108<pre>$FEDORA_HOME/tomcat/bin/startup.sh</pre>
109or if you're on Windows:
110<pre>%FEDORA_HOME%\tomcat\bin\startup.bat</pre>
111
112<li>Point your browser to
113<pre>http://localhost:8080/fedora/</pre>
114(or
115<pre>http://HOST:PORT/fedora</pre>
116with whatever host and port you chose to install it on).</li>
117
118<li>An authorization dialogue will pop up, asking you to enter the username and password you chose upon installation.</li>
119</ol>
120
121If you ever want to <b>stop</b> the Fedora server, you will need to type in the X-term
122<pre>$FEDORA_HOME/tomcat/bin/shutdown.sh</pre>
123or if you're on Windows:
124<pre>%FEDORA_HOME%\tomcat\bin\shutdown.bat</pre>
125
126<h2><a name="D">D Creating the custom Greenstone 3 pid prefix</a></h2>
127In order to work with the Greenstone3 client application, you will need to create a custom pid prefix for Greenstone 3 in fedora, and call it "greenstone".<br />
128To do this, you will need to:
129
130<ol>
131<li>Shutdown the fedora server
132<pre>$FEDORA_HOME/tomcat/bin/shutdown.sh</pre>
133</li>
134<li>Open up fedora's configuration file in a text editor
135<pre>$FEDORA_HOME/server/config/fedora.fcfg</pre>
136</li>
137<li>Go down to where it says:
138<pre>&lt;param name="retainPIDs" value="demo test changeme fedora-bdef fedora-bmech tutorial"&gt;</pre>
139And append greenstone to the list of values, so you get something like:
140<pre>&lt;param name="retainPIDs" value="demo test changeme fedora-bdef fedora-bmech tutorial greenstone"&gt;</pre>
141</li>
142<li>Restart the fedora server
143<pre>$FEDORA_HOME/tomcat/bin/startup.sh</pre>
144</li>
145</ol>
146
147<p>Having made the change in the fedora config file, it will now recognise "greenstone" as a valid PID and allow you to create/ingest digital data objects with a pid where the prefix is "greenstone".<br />
148For more information, you may want to look at the <a href="http://www.fedora.info/release/1.1/userdocs/distribution/release-notes.html">Fedora Release Notes</a>:
149<blockquote>"PID generation has been activated. Upon ingestion, Fedora objects that pass validation are automatically assigned a unique persistent identifer or PID. The namespace prefix on the PID is determined by the namespace parameter in the fedora.cfg configuration file."</blockquote></p>
150
151
152<h2><a name="E">E Exporting Greenstone documents into Fedora's repository</a></h2>
153<p>There is nothing in our Fedora repository yet. We want to have Greenstone 3 documents exported into Fedora format stored here. This is what we need Greenstone 3 for. We will be using its functionality for converting Greenstone 3 docs into FedoraMETS and exporting them into Fedora.</p>
154Use the FLI&mdash;Fedora Librarian Interface&mdash;application to do this. Refer to the document <a href="8RunFedoraLibrarianInterface.html">Running FLI</a> for information on how to do this.
155
156
157<div style="display:none">
158<p>http://trac.greenstone.org/browser/gsdl/trunk/bin/script/g2f-buildcol.pl<br />
159http://trac.greenstone.org/browser/gsdl/trunk/bin/script/g2f-import.pl<br />
160Greenstone to Fedora scripts. Similar to import.pl and buildcol.pl, g2f-import.pl first converts documents into FedoraMETS and then g2f-buildcol.pl ingests them into a Fedora repository. Needs to have FEDORA_HOME set.</p>
161</div>
162
163
164<h2><a name="F">F Further Information</a></h2>
165<ul>
166<li>To run the Fedora-client application, you would type
167<pre>cd $FEDORA_HOME/client
168fedora-admin.sh
169</pre>
170</li>
171<li>The location of the <b>Fedora Basic Search Interface</b> ("REST interface" as it uses Fedora's URL-based web services) is
172<pre>http://HOST:PORT/fedora/search</pre>
173where HOST and PORT depend on what you chose when you installed it. E.g. http://localhost:8080/fedora/search<br />
174Note that the default search functionality that Fedora's own access web services (API-A) provide do not include full-text indexing and searching.
175</li>
176<li>To install <b>Fedora Generic Search</b>&mdash;which provides full-text indexing and search capabilities for content stored in a Fedora repository&mdash;see the document <a href="4InstallingFedoraGSearch.html">Installing Fedora Generic Search</a>.
177</li>
178</ul>
179
180</body>
181</html>
Note: See TracBrowser for help on using the repository browser.