Thursday, October 11, 2007

Installing Java JDK 1.6 on CentOS 5.0

The first step in the processs of installing an Open-Xchange server is to install a working Java JDK and JRE. This is a relatively easy process in CentOS 5.0.

1. Follow this link and select which version of the JDK to install. At the time of this writting the most current version is JDK 1.6 Update 3.

2. Accept (if we so desire) the licencing agreement and proceed to download the "Linux RPM in self-extracting file". Save this to your home directory.

3. From the command line, excecute the following:

chmod +x jdk-6u1-linux-i586-rpm.bin
./jdk-6u1-linux-i586-rpm.bin


4. Accept the next licencing agreement to extract the Java rpm. Then execute the following:

rpm -Uvh jdk-6u3-linux-i586.rpm

5. Once the RPM is installed we must still confirm that we are using the correct version of Java. To do so, excute the following.

/usr/sbin/alternatives --config java

the following will be displayed
There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.6.0-sun/bin/java

Enter to keep the current selection[+], or type selection number: 2
If "2" is not selected, then select it.

And there it is. We now have the latest version of Java installed and selected.

P.S.
Next posting will be on installing ant and other base components of the system.
External links
- CentOS Java

Wednesday, October 10, 2007

Open-Xchange on CentOS 5.0

Hello,

The purpose of this blog is to document the step by step procedure for installing Open-Xchange and all its required components on a CentOS 5.0 system. The system to be used is an AMD Athelon X2 4600 with CentOS 5.0 x86_64. These instructions will not take i686 architecture into account. Since there should be no proprietary software involved the procedure should be no different for a 32bit system. Every package installed will exist for both the i386 and x86_64 architectures.

The project is to be undertaken to supplement the Open-Xchange install documentation which is currently for Ubuntu(and debian systems) .

This documentation will include as much detail as possible in terms of a step by step install.

The following assumptions will be made:
-CentOS 5.0 is installed and up to date
-Installer is moderately familiar with the command line (or at least copy/paste)
-Installer has an understanding of Redhat style repositories and the yum tool.

The install process should mirror the install process described here. Please remember that this is a work in progress and that I'm learning and doing these steps as we go along and will publish a complete installation guide once a server is up and working. If people know of similar guides please let me know as this is not intended to be a selfish project but a learning project and would value any input I could get.

Thanks
Ben

P.S.
Next Posting will be about installing java the CentOS way.
External links

-Installing Open-Xchange
-CentOS 5.0