Personal tools

LabResources:FedoraInstall

From Adapt

Revision as of 20:53, 11 September 2008 by Scsong (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Fedora Installation on fedoravm01

Host Config

  • external 8g disk mounted as /export/fedora
  • fedora install in /export/fedora/fedora-2.1.1
  • local copy of jdk 1.5 in /opt/jdk1.5.0_07
  • running as account naraapp
[naraapp@fedoravm01 fedora]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vol00-rootfs
                       9450288   7108772   1861468  80% /
/dev/sda1               101086      9335     86532  10% /boot
/dev/mapper/vol00-cache
                        285599      2062    268792   1% /cache
none                    257816         0    257816   0% /dev/shm
/dev/mapper/vol00-tmp
                       1161104     34284   1067840   4% /tmp
/dev/mapper/fedora-fedora
                       8252856    360056   7473576   5% /export/fedora

Fedora Install

Please see the fedora install docs for more information. In the .cshrc for the naraapp account, you will need to set JAVA_HOME and PATH to include java.

Install fedora

[naraapp@fedoravm01 fedora]$ tar -xzpf fedora-2.1.1-server.tar.gz 
[naraapp@fedoravm01 fedora]$ tar -xzpf fedora-2.1.1-client.tar.gz 
[naraapp@fedoravm01 fedora]$ tar -xzpf fedora-2.1.1-src.tar.gz 
[naraapp@fedoravm01 fedora]$ ls
fedora-2.1.1  fedora-2.1.1-client.tar.gz  fedora-2.1.1-server.tar.gz  fedora-2.1.1-src  fedora-2.1.1-src.tar.gz  lost+found
[naraapp@fedoravm01 fedora]$ setenv JAVA_HOME /opt/jdk1.5.0_07
[naraapp@fedoravm01 fedora]$ setenv PATH setenv PATH ${JAVA_HOME}/bin:/opt/apache-ant-1.6.5/bin:$PATH
[naraapp@fedoravm01 fedora]$ setenv FEDORA_HOME /export/fedora/fedora-2.1.1
[naraapp@fedoravm01 fedora]$ setenv PATH ${FEDORA_HOME}/server/bin:${FEDORA_HOME}/client/bin:$PATH
[naraapp@fedoravm01 fedora]$ mckoi-init fedora naraapp-account-password
Initializing McKoi DB... 

Mckoi SQL Database ( 1.0.3 )
Copyright (C) 2000 - 2004 Diehl and Associates, Inc.  All rights reserved.
Use: -h for help.

  Mckoi SQL Database comes with ABSOLUTELY NO WARRANTY.
  This is free software, and you are welcome to redistribute it
  under certain conditions.  See LICENSE.txt for details of the
  GPL License.
[naraapp@fedoravm01 fedora]$ fedora-setup ssl-authenticate-apim

Applying 
        /export/fedora/fedora-2.1.1/server/fedora-internal-use/config/fedora-secure-apim.properties
Wrote
        /export/fedora/fedora-2.1.1/server/config/fedora.fcfg

Copying
   FROM: /export/fedora/fedora-2.1.1/server/fedora-internal-use/config/beSecurity-secure-apim.xml
     TO: /export/fedora/fedora-2.1.1/server/config/beSecurity.xml
Copying
   FROM: /export/fedora/fedora-2.1.1/server/jakarta-tomcat-5.0.28/webapps/fedora/WEB-INF/web-secure-apim.xml
     TO: /export/fedora/fedora-2.1.1/server/jakarta-tomcat-5.0.28/webapps/fedora/WEB-INF/web.xml

Fedora security setup complete!
Configuration files in play are:
   fedora-secure-apim.properties
   beSecurity-secure-apim.xml
   web-secure-apim.xml

Configure Fedora

Edit $FEDORA_HOME/server/config/fedora.fcfg

The following items were changed from default:

  • name="fedoraServerHost" value="fedoravm01.umiacs.umd.edu"
  • name="REPOSITORY-POLICIES-DIRECTORY" value="/export/fedora/fedora-2.1.1/data/fedora-xacml-policies/repository-policies"
  • name="SURROGATE-POLICIES-DIRECTORY" value="/export/fedora/fedora-2.1.1/data/fedora-xacml-policies/surrogate-policies"
  • name="REPOSITORY-POLICY-GUITOOL-POLICIES-DIRECTORY" value="/export/fedora/fedora-2.1.1/data/fedora-xacml-policies/repository-policies-generated-by-policyguitool"

Additional setup for the above policy directories

[naraapp@fedoravm01 fedora]$ cd fedora-2.1.1
[naraapp@fedoravm01 fedora-2.1.1]$ mkdir data
[naraapp@fedoravm01 fedora-2.1.1]$ mkdir -p fedora-xacml-policies/repository-policies
[naraapp@fedoravm01 fedora-2.1.1]$ mkdir -p fedora-xacml-policies/surrogate-policies
[naraapp@fedoravm01 fedora-2.1.1]$ mkdir -p fedora-xacml-policies/repository-policies-generated-by-policyguitool

In the database section for =localMcKoiPool= set the connection parameters:

  • name="dbUsername" value="fedora"
  • name="dbPassword" value="naraapp_pwd"
  • name="pidNamespace" value="fedoravm01"
  • name="repositoryDomainName" value="umiacs.umd.edu"

Startup

1. Start db mckoi-star

[naraapp@fedoravm01 fedora]$ mckoi-start
Starting McKoi DB...
[naraapp@fedoravm01 fedora]$ 
Mckoi SQL Database ( 1.0.3 )
Copyright (C) 2000 - 2004 Diehl and Associates, Inc.  All rights reserved.
Use: -h for help.

  Mckoi SQL Database comes with ABSOLUTELY NO WARRANTY.
  This is free software, and you are welcome to redistribute it
  under certain conditions.  See LICENSE.txt for details of the
  GPL License.

TCP JDBC Server (multi_threaded) on port: 9157.
Boot time: 998ms.

2. Start Fedora fedora-start mckoi

[naraapp@fedoravm01 fedora]$ fedora-start mckoi
Starting the Fedora server...
Using server profile: mckoi
nohup: appending output to `nohup.out'
2006-08-09 13:12:59PM EDT - Waiting for startup to begin
2006-08-09 13:13:07PM EDT - Starting Fedora Server instance
2006-08-09 13:13:07PM EDT - Initializing Server
2006-08-09 13:13:08PM EDT - Fedora Version: 2.1.1
2006-08-09 13:13:08PM EDT - Fedora Build: 1
2006-08-09 13:13:08PM EDT - Server Host Name: fedoravm01.umiacs.umd.edu
2006-08-09 13:13:08PM EDT - Server Port: 8080
2006-08-09 13:13:08PM EDT - Debugging: OFF
2006-08-09 13:13:08PM EDT - Initializing Modules
2006-08-09 13:13:09PM EDT - Post-Initializing Modules
2006-08-09 13:13:09PM EDT - Initializing XACML Authorization Module
2006-08-09 13:13:15PM EDT - Started
Finished.  To stop server, use fedora-stop.

Running Fedora

Run admin

[naraapp@fedoravm01 ~]$ fedora-admin localhost 8080 fedoraAdmin fedoraAdmin
Starting Fedora Administrative Client...

Ingest Demos

[naraapp@fedoravm01 ~]$ fedora-ingest-demos localhost 8080 fedoraAdmin fedoraAdmin http
Starting Fedora DemoIngester...
Ingesting Demonstration Objects...
Ingesting all FedoraBDefObjects in /export/fedora/fedora-2.1.1/client/demo/foxml/local-server-demos
Ingesting from file /export/fedora/fedora-2.1.1/client/demo/foxml/local-server-demos/document-transform-demo/bdef_demo_12.xml
Ingesting from file /export/fedora/fedora-2.1.1/
...
...
SUCCESS: All 12 objects were ingested.

A detailed log is at /export/fedora/fedora-2.1.1/client/logs/ingest-from-dir-1155144353001.xml
Finished.