Workbook on Digital Private Papers > Installing - Fedora 2.1
Installing - Fedora 2.1
Acquiring the software and documentation
Download: the Fedora 2.1 software from http://www.fedora.info/download
The following screenshot shows us acquiring one of the rpms to be installed:
Download the Fedora Server binary distribution
Download the Fedora Client binary distribution
If you want to verify the downloaded distributions prior to using them you can also download their associated MD5 files.
Right Click on the MD5 links
Choose the same download location as the distributions. The Paradigm project will write these files to removable media for installation on our dark archive servers which have no direct access to the internet.
Before you progress to the installation, we would advise that you acquire a copy of the Fedora Installation Instructions and read them thoroughly.
Performing the installation via the command line
Our downloads have been put on a DVD in a directory called download this directory will be found in the mount directory /media/dvdrecorder/. We are installing Fedora in /usr/local - so we move to that directory and extract the distributions there.
tar xzf /media/dvdrecorder/download/fedora-2.1-server.tar.gz
tar xzf /media/dvdrecorder/download/fedora-2.1-client.tar.gz
tar xzf /media/dvdrecorder/download/fedora-2.1-src.tar.gz
Change the permissions of the files in the server/bin and client/bin directories so that we can execute them:
chmod 755 /usr/local/fedora-2.1/server/bin/*
chmod 755 /usr/local/fedora-2.1/client/bin/*
and create an alias 'fedora' for 'fedora-2.1' to make it easier to perform future upgrades:
ln -s fedora-2.1 fedora
Prepare the global environment variables by creating the file /etc/profile.d/fedora.sh :
Enter the following lines:
Add the global environment variables to our current shell (note: don't omit the "dot ." at the beginning of the command):
Check that the executable path has been set:
Create the directory root for storage of Fedora repository objects, datastreams, resource index and logs:
mkdir -p /var/data/fedora/logs
Pre-creating a MySQL database instance for Fedora
We need to pre-create the Fedora Mysql database which Fedora will populate when first initialised.
mysql-config /usr root "" fedoraAdmin fedoraAdmin fedora21 true
Press enter when prompted for a password or supply a valid dba password if one has already been set.
The result will should be this:
You can remove the creation script now, or later if you prefer to examine it first.
Type localhost/phpMyAdmin into the location bar of a browser to check that the empty Fedora database has been created:
Configuring the Fedora Server
1: Run the Fedora Setup Utility to establish your base security settings!
Before starting for the first time, the Fedora Setup Utility (fedora-setup) must be run to select a base security configuration . Once fedora-setup has been run you can then customise the generated configuration files as needed.
In Fedora 2.1, you can choose from four different security configurations. Consult the Securing Your Repository Guide for a description of security configuration options. To create a configuration equivalent to that present in Fedora 2.0 (no SSL, API-M authentication, open API-A) select the "no-ssl-authenticate-apim" option as demonstrated below. You can change to more secure configurations at any time by rerunning the Fedora Setup Utility.
2: Customise settings in the Fedora Server Configuration File (fedora.fcfg).
The Fedora server configuration file contains:
- global parameters for the Fedora server
- configuration parameters for each server module
- configuration parameters for each persistent data store of the Fedora server
We need to edit the configuration file, so ask the console to open the file using the Kate editor:
The opened configuration file should look something like this:
You will need to modify the value of some of these parameters to suit your installation. The following is a list of parameters changed in Paradigm's base installation together with the values substituted and the line no. at which they can be found in the configuration file.
Line Parameter Value
demo test paradigmfedora-bdef fedora-bmech tutorial
Paradigm Personal Papers Repository
firstname.lastname@example.org email@example.com firstname.lastname@example.org
3: Start Fedora Service.
We can now start Fedora by keying the following in the console:
Verify that the Fedora MySQL database has been initialised with the Fedora tables by keying localhost/phpMyAdmin into the location bar of a browser:
4: Testing Fedora Services.
To test the Fedora Admin GUI client, open a console and type:
This will launch the client:
In our configuration we changed the server port from 8080 to 8085, so at login we must reflect this by substituting 8080 for 8085 in the 'Fedora Server' field. If you didn't change the default username and password in the fedora.fcfg file, both of these will be fedoraAdmin.