Fedora Commons 2.2.1 on Red Hat Enterprise Linux 3

Under Construction
This page was recently moved from the archive and is being reconstructed to fit the new Fedora Commons Wiki. Most new installations are using updated versions of Fedora and RHEL. Help would be appreciated in updating this article.

Installing Fedora Server 3.0 Beta 1

Prerequisite: Mysql 5.0 must be installed

Setting up the Database

mysql -u root -p

enter password:

CREATE DATABASE fedora30;
GRANT ALL ON fedora30.* TO fedoraAdmin@localhost IDENTIFIED BY 'fedoraAdmin';
GRANT ALL ON fedora30.* TO fedoraAdmin@localhost IDENTIFIED BY 'fedoraAdmin'; # without the '*' you may not be able to access the application remotely but not sure
ALTER DATABASE fedora30 DEFAULT CHARACTER SET utf8;
ALTER DATABASE fedora30 DEFAULT COLLATE utf8_bin;

To Set mysql to run as a system daemon

sudo ntsysv

put check mark by msyql by hitting space bar

Click [FEDINFO:TAB] key to get to "OK"

Click [FEDINFO:ENTER]

Set up JDK for fedora

cp jdk-1_5_0_14-linux-i586.bin /usr/java
sudo chmod o+x jdk-1_5_0_14-linux-i586.bin
sudo ./jdk-1_5_0_14-linux-i586.bin

  1. environment variables for fedora --> added to /etc/profile
  1. added for Fedora Repository Server
    alias ll='ls --color=auto -alh'
    alias vi='vim'
    FEDORA_HOME=/var/opt/fedora
    JAVA_HOME=/usr/java/jdk1.5.0_14
    CLASSPATH=$JAVA_HOME/jre/lib
    CATALINA_HOME=$FEDORA_HOME/tomcat
    JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStore=$FEDORA_HOME/server/truststore"
    JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStorePassword=tomcat"
    JAVA_OPTS="$JAVA_OPTS -Xmx64m"
    export FEDORA_HOME JAVA_HOME CLASSPATH CATALINA_HOME JAVA_OPTS
    PATH=$PATH:$FEDORA_HOME/server/bin:$FEDORA_HOME/client/bin:$FEDORA_HOME:$JAVA_HOME/bin:/bin:/usr/bin:/sbin:/usr/sbin

Note: I am using the option -Xmx64m for Java because I am using an OpenVZ virtual private server. Java 5 does not run very well within a virtual private server unless you constrain the amount of memory it can grab.

Installing fedora

mkdir /var/opt/fedora
download the fedora installer

http://downloads.sourceforge.net/fedora-commons/fedora-3.0b1-installer.jar

java -Xms64m -Xmx64m -jar fedora-3.01b-installer.jar

fedora installer settings

custom install

/var/opt/fedora
admin password: fedoraAdmin (user name is fedoraAdmin)
localhost
Authentication for API-A: false
SSL Availability: false
servlet engine: included
tomcat home directory: /var/opt/fedora/tomcat
8080
8005
XACML Policy Enforcement Enabled: false
Enable Resource Index: true
Enable REST API: true
database: mysql
jdbc driver: included
database username: fedoraAdmin
database password: fedoraAdmin
JDBC URL: -->

jdbc:mysql://localhost/fedora30?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true

jdbc driver: accept default
deploy local services and demos: true

Start up Fedora

sudo /var/opt/fedora/tomcat/bin/startup.sh

You should see the following output:

Using CATALINA_BASE: /var/opt/fedora/tomcat
Using CATALINA_HOME: /var/opt/fedora/tomcat
Using CATALINA_TMPDIR: /var/opt/fedora/tomcat/temp
Using JRE_HOME: /usr/java/jdk1.5.0_14

Now test that fedora is up and running

open http://www.oledev.org:8080 in a browser

Should show you the Apache Tomcat start page

How to Shutdown Fedora

sudo /var/opt/fedora/tomcat/bin/shutdown.sh

How to Install the Fedora Administrator on your personal laptop

Install the Client on a separate machine, can install on MacOSX, Linux. Haven't tried w/ Windows. Should work

You need to have Java 1.5 installed to get the client tools to work

create directory /var/opt/fedora

mkdir /var/opt/fedora

sudo java -jar fedora-3.01b-installer.jar

Choose a "client" install

Set the install directory: /var/opt/fedora

You're Done!

Set path to Java 1.5 if not already an environment variable

Ingest demonstration objects

sudo /var/opt/fedora/client/bin/fedora-ingest-demos.sh www.oledev.org 8080 fedoraAdmin fedoraAdmin http

Access fedora using the Fedora Administrator Tool

sudo /var/opt/fedora/client/bin/fedora-admin.sh

Supply values

localhost:8080
fedoraAdmin
fedoraAdmin
http

Go to Tools -> Search Repository, and click the Search button to see the demo objects

Labels

install install Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.