Installing Fedora Commons Repository

| 3 Comments
First install MySQL Server and create a database to use with Fedora:


x-134-84-44-46:bin birage$ ./mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.1.44 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE fedora3 default charset utf8;
Query OK, 1 row affected (0.02 sec)

mysql> GRANT ALL ON fedora3.* TO adminFedora@localhost IDENTIFIED BY 'adminFedora';
Query OK, 0 rows affected (0.02 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

Now Proceed with your Fedora installation:

Download fedora binary and extract fcrepo-installer-3.4.jar
and from the terminal run the command from the directory > java -jar fcrepo-installer-3.4.jar

***********************
Fedora Installation
***********************

To install Fedora, please answer the following questions.
Enter CANCEL at any time to abort the installation.
Detailed installation instructions are available online:

http://www.fedora-commons.org/confluence/display/FCR30/

Installation type
-----------
The 'quick' install is designed to get you up and running with Fedora
as quickly and easily as possible. It will install Tomcat and an
embedded version of the Derby database. SSL support and XACML policy
enforcement will be disabled.
For more options, including the choice of hostname, ports, security,
and databases, select 'custom'.
To install only the Fedora client software, enter 'client'.

Options : quick, custom, client

Enter a value ==> custom

Fedora home directory
--------------
This is the base directory for Fedora scripts, configuration files, etc.
Enter the full path where you want to install these files.

Enter a value [default is /home/fedora/installfedora] ==> /Users/birage/fedora

Fedora administrator password
-------------------
Enter the password to use for the Fedora administrator (fedoraAdmin) account.

Enter a value ==> fedoraAdmin

Fedora server host
------------
The host Fedora will be running on.
If a hostname (e.g. www.example.com) is supplied, a lookup will be
performed and the IP address of the host (not the host name) will be used
in the default Fedora XACML policies.

Enter a value [default is localhost] ==>

Fedora application server context
----------------------
The application server context Fedora will be running in.
If 'fedora' (default) is supplied, the resulting context path
will be http://www.example.com/fedora
It must be ensured that the configured application server context
matches this path if explicitly configured.

Enter a value [default is fedora] ==>

Authentication requirement for API-A
------------------------
Fedora's management (API-M) interface always requires user authentication.
Require user authentication for Fedora's access (API-A) interface?

Options : true, false

Enter a value [default is false] ==> true

SSL availability
-----------
Should Fedora be available via SSL? Note: this does not preclude
regular HTTP access; it just indicates that it should be possible for
Fedora to be accessed over SSL.

Options : true, false

Enter a value [default is true] ==> false

SSL required for API-A
---------------
Should API-A be accessible exclusively via SSL? If true, requests
to access API-A URLs will be automatically redirected to the secure port.

Options : true, false

Enter a value [default is false] ==>

Servlet engine
---------
Which servlet engine will Fedora be running in?
Enter 'included' to use the bundled Tomcat 6.0.20 server.
To use your own, existing installation of Tomcat, enter 'existingTomcat'.
Enter 'other' to use a different servlet container.

Options : included, existingTomcat, other

Enter a value [default is included] ==> existingTomcat

Tomcat home directory
--------------
Please provide the full path to your existing Tomcat installation, or
the path where you plan to install the bundled Tomcat.

Enter a value [default is home/fedora/installfedora/tomcat] ==> /Users/birage/fedora/tomcat

Tomcat HTTP port
-----------
Which HTTP port (non-SSL) should Tomcat listen on? This can be changed
later in Tomcat's server.xml file.

Enter a value [default is 8080] ==>

Tomcat shutdown port
-------------
Which port should Tomcat use for shutting down? Make sure this doesn't
conflict with an existing service. This can be changed later in Tomcat's
server.xml file.

Enter a value [default is 8005] ==>

Tomcat Secure HTTP port
---------------
Which port (SSL) should Tomcat listen on? This can be changed
later in Tomcat's server.xml file.

Enter a value [default is 8443] ==>

Database
-----
Please select the database you will be using with
Fedora. The supported databases are Derby, McKoi, MySQL, Oracle and Postgres.
If you do not have a database ready for use by Fedora or would prefer to
use the embedded version of Derby bundled with Fedora, enter 'included'.

Options : derby, mckoi, mysql, oracle, postgresql, included

Enter a value ==> mysql

MySQL JDBC driver
-----------------
You may either use the included JDBC driver or your own copy.
Enter 'included' to use the included JDBC driver, or, enter the location
(full path) of the driver.

Enter a value [default is included] ==>

Database username
-----------------
Enter the database username Fedora will use to connect to the Fedora database.

Enter a value ==> root

Database password
-----------------
Enter the database password Fedora will use to connect to the Fedora database.

Enter a value ==> fedoraAdmin

JDBC URL
--------
Please enter the JDBC URL.

Enter a value [default is jdbc:mysql://localhost/fedora3?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true] ==>

JDBC DriverClass
----------------
Please enter the JDBC driver class.

Enter a value [default is com.mysql.jdbc.Driver] ==>

Validating database connection...Successfully connected to MySQL
OK

Enable FeSL AuthN
-----------------
Enable FeSL Authentication? To continue to use Fedora's legacy
authentication, enter "false" below. Please note that Fedora's legacy
authentication is expected to be phased out in a subsequent release.
For more information, see: http://fedora-commons.org/confluence/x/h4Ov

Enter a value [default is true] ==> false

Enable FeSL AuthZ (Experimental Feature)
----------------------------------------
Enable FeSL Authorization? This is an experimental replacement for Fedora's
legacy authorization module, and is still under development.
Production repositories should NOT enable this, but we invite you to try it
out and give us feedback.
For more information, see: http://fedora-commons.org/confluence/x/h4Ov

Enter a value [default is false] ==>

Policy enforcement enabled
--------------------------
Should XACML policy enforcement be enabled? Note: This will put a set of
default security policies in play for your Fedora server.

Options : true, false

Enter a value [default is true] ==>

Low Level Storage
-----------------
Which low-level (file) storage plugin do you want to use?
We recommend akubra-fs for new installs. If you are upgrading Fedora from
version 3.3 or below, you should use legacy-fs for compatibility with your
existing storage. Other plugins are also available, but they must be
configured after installation. For more information, please see
https://wiki.duraspace.org/x/Voqv

Options : akubra-fs, legacy-fs

Enter a value [default is akubra-fs] ==>

Enable Resource Index
---------------------
Enable the Resource Index?

Options : true, false

Enter a value [default is false] ==> true

Enable Messaging
----------------
Enable Messaging? Messaging sends notifications of API-M events via JMS.

Options : true, false

Enter a value [default is false] ==>

Deploy local services and demos
-------------------------------
Several sample back-end services are included with this distribution.
These are required if you want to use the demonstration objects.
If you'd like these to be automatically deployed, enter 'true'.
Otherwise, the installer will put the files in your FEDORA_HOME/install
directory in case you want to deploy them later.

Options : true, false

Enter a value [default is true] ==> true

Preparing FEDORA_HOME...
Configuring fedora.fcfg
Installing beSecurity
Will not overwrite existing /Users/birage/fedora/tomcat/conf/server.xml.
Wrote example server.xml to:
/Users/birage/fedora/install/server.xml
Preparing fedora.war...
Processing web.xml
Deploying fedora.war...
Deploying fop.war...
Deploying imagemanip.war...
Deploying saxon.war...
Deploying fedora-demo.war...
Installation complete.

----------------------------------------------------------------------
Before starting Fedora, please ensure that any required environment
variables are correctly defined
(e.g. FEDORA_HOME, JAVA_HOME, JAVA_OPTS, CATALINA_HOME).
For more information, please consult the Installation & Configuration
Guide in the online documentation.
----------------------------------------------------------------------

x-134-84-44-155:~ birage$ echo $PATH
/Users/birage/Fedora/server/bin:/usr/bin:/bin:/usr/local/mysql/bin:
x-134-84-44-155:~ birage$ export FEDORA_HOME="/Users/birage/fedora"
x-134-84-44-155:~ birage$ echo $FEDORA_HOME
/Users/birage/fedora

3 Comments

Nice post. Love your blog

Ive got look through your other useful article and i like to thank you for the useful data that youve got shared. Congrats!

Thanks for all of the information. On a side notice, how do you cope with all the spam you get on your weblog? My new weblog is getting destroyed by random spammers and I have been spending a variety of time and vitality deleting feedback its simply not funny. . I get so drained preventing spam that I feed I ought to cease running a blog entirely.

Leave a comment

About this Entry

This page contains a single entry by gauli002 published on October 21, 2010 12:02 PM.

Installing Apache Solr Drupal Module on Tomcat was the previous entry in this blog.

Installing Islandora module is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.