Version 5 (modified by dee, 10 years ago)

--

Creating the GENI-ORCA CentOS Development Platform

The development platform used by the GENI-ORCA platforn is CentOS 5.2, which is a growing Enterprise Open Source Linux Distribution. Below is documented the steps we used to create our development machines. Based on these steps other platforms such as Ubuntu could be configured with minor modifications to the procedure. However, only the CentOS platform is documented step by step as a development platform example.

CentOS Installation

Configuring Partitions

Here is the current partition layout for our development boxes' primary volumes. The partitions are managed by LVM, which allows us to expand them as needed. From experience, making '/' at 10GB will probably eliminate any need to modify partitions at a later time.

  • '/': 5GB
  • '/home': 100GB
  • '/var/': 10GB
  • '/opt': 10GB

Choosing Packages

Using the default packages from the installer should be sufficient. Double check that the Java 1.5.x package is being installed.

Configuring yum

Configuring the yum package manager is worth the effort. The easiest way to do this is to go to the JPackage website and get the URL for the template repository file. Install the file in the /etc/yum.repos.d directory and edit it to set the version of JPackage needed (5.0 in our case). Also enable the RHEL repository while leaving the generic repository enabled. Here are the steps we used logged in as root:

cd /etc/yum.repos.d

wget http://www.jpackage.org/jpackage17.repo

edit the jpackage17.repo file replacing the release=1.7 text with release=5.0. Also the entry under for jpackage-rhel should have enabled=0 replaced with enabled=1. The final relevant entries should look like:

[jpackage-generic]
name=JPackage (free), generic
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=1

...

[jpackage-rhel]
name=JPackage (free) for Red Hat Enterprise Linux $releasever
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=redhat-el-$releasever&type=free&release=5.0
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=1

yum install jpackage* - This will upgrade ant.

yum install maven* - Installs maven 2.0.7, we'll upgrade maven later.

alternatives --config java - Choose the jre-1.5.0-sun version of java.

In a scratch directory retrieve the 2.0.10 version of maven wget http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.0.10-bin.tar.gz

Extract the contents tar xvfz apache-maven-2.0.10-bin.tar.gz