Saturday, March 20, 2010

Sun Directory Server 7 - Installation Review

I'm losing my job soon as a Consultant providing Professional Service for Sun Directory Server Implementation.

The Sun Directory Server 7 Installation has become so easy that my customers can do it themselves. :)

Below is the step-by-step instruction for non-root install of Sun Directory Server 7 on Oracle Enterprise Linux 5.4:

Platform: Oracle Enterprise Linux 5.4
JDK: 1.6.18 32-bit (Note: 64-bit JDK does not work with Glassfish!!)
Application Server: GlassFish Server Open Source Edition 2.1.1

As ROOT user:

[root@localhost /]# ./jdk-6u18-linux-i586-rpm.bin

Java(TM) SE Development Kit 6 successfully installed into /usr/java/jdk1.6.0_18.

As AZLABS user:

[azlabs@localhost ~]$ gunzip DSEE.7.0.Linux-X86-64-zip.tar.gz
[azlabs@localhost ~]$ tar -xvf DSEE.7.0.Linux-X86-64-zip.tar
[azlabs@localhost ~]$ cd DSEE_ZIP_Distribution/
[azlabs@localhost DSEE_ZIP_Distribution]$ unzip -d /home/azlabs

[azlabs@localhost]$ cd /home/azlabs/dsee7/bin
[azlabs@localhost bin]$ ./dsccsetup war-file-create
Created /home/azlabs/dsee7/var/dscc7.war

[azlabs@localhost bin]$ ./dsccsetup ads-create
[azlabs@localhost bin]$ ./dsccsetup cacao-reg

[azlabs@localhost bin]$ ./dsadm create -p 1389 -P 1636 /home/azlabs/dsee7/var/dsInst
[azlabs@localhost bin]$ ./dsadm start /home/azlabs/dsee7/var/dsInst

[azlabs@localhost glassfish]$ export JAVA_HOME=/usr/java/jdk1.6.0_18
[azlabs@localhost glassfish]$ export PATH=/usr/java/jdk1.6.0_18/bin:$PATH
[azlabs@localhost glassfish]$ ./sges-2_1_1-linux-ml.bin

Installation Directory [/home/azlabs/SUNWappserver] {"<" goes back, "!"
exits}: /home/azlabs/gf
Please provide the path to a Java 2 SDK 5.0 or greater. [/usr/java/jdk1.6.0
_18] {"<" goes back, "!" exits}

Supply the admin user's password and override any of the other initial
configuration settings as necessary.

Admin User [admin] {"<" goes back, "!" exits}:
Admin User's Password (8 chars minimum):
Re-enter Password:
Do you want to store admin user name and password in .asadminpass file in
user's home directory [yes] {"<" goes back, "!" exits}?
Admin Port [4848] {"<" goes back, "!" exits}:
HTTP Port [8080] {"<" goes back, "!" exits}:
HTTPS Port [8181] {"<" goes back, "!" exits}:

Please choose installation options.

Do you want to enable Updatecenter client [yes] {"<" goes back, "!" exits}? no
Do you want to upgrade from previous Application Server version [no] {"<"
goes back, "!" exits}?

Installation Successful.

[azlabs@localhost config]$ vi /home/azlabs/gf/domains/domain1/config/server.policy

--> Add to end of file

// Permissions for Directory Service Control Center
grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/dscc7/-"

[azlabs@localhost glassfish]$ /home/azlabs/gf/bin/asadmin start-domain domain1
[azlabs@localhost ~]$ cp /home/azlabs/dsee7/var/dscc7.war /home/azlabs/gf/domains/domain1/autodeploy/

We're done!
  • Directory Server binary installed;
  • DSCC registry initialized;
  • Cacao Agent registered;
  • Directory Server instance created;
  • DSCC deployed on Glassfish application server

Yes, so simple. No joke.

No comments:

Post a Comment