Difference between revisions of "Installing CSS"

From GlueXWiki
Jump to: navigation, search
(Installing LDAP)
Line 1: Line 1:
 
== Installing LDAP ==
 
== Installing LDAP ==
  
I followed the instruction from the various web sites, mainly from http://ubuntuforums.org/showthread.php?p=8161118 and http://ubuntuforums.org/showthread.php?t=1054966. I set the LDAP password directly modifying <i>/etc/ldap/slapd.d/cn=config/olcDatabase={0}config.ldif</i> file setting <b>olcRootPW: </b> key.  
+
I followed the instruction from the various web sites, mainly from http://ubuntuforums.org/showthread.php?p=8161118 and http://ubuntuforums.org/showthread.php?t=1054966. I set the LDAP password directly modifying <i>/etc/ldap/slapd.d/cn=config/olcDatabase={0}config.ldif</i> file setting <b>olcRootPW: </b> key. I had a hard time figuring out how to change the LDAP password or access config database without password.  
 
* Install LDAP server <pre>sudo apt-get install slapd ldap-utils</pre>
 
* Install LDAP server <pre>sudo apt-get install slapd ldap-utils</pre>
 
* Run the following command to add all the LDAP schemas in the slapd package to your cn=config (by default only core is added):<pre>ls /etc/ldap/schema/*.ldif | xargs -I {} sudo ldapadd -Y EXTERNAL -H ldapi:/// -f {}</pre>
 
* Run the following command to add all the LDAP schemas in the slapd package to your cn=config (by default only core is added):<pre>ls /etc/ldap/schema/*.ldif | xargs -I {} sudo ldapadd -Y EXTERNAL -H ldapi:/// -f {}</pre>
Line 10: Line 10:
  
  
== Installing GlassFish  
+
== Installing GlassFish ==
  
* Follow the instructions from http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-301-on-ubuntu to install GlassFish on Ubuntu.
+
* Follow the instructions from http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-301-on-ubuntu to download install GlassFish on Ubuntu.
 +
* I skipped the part on security part dealing with iptables, probably it can be configured later. You will be able to start (and stop) GlassFish using <pre>/home/glassfish/bin/asadmin start-domain domain1</pre>
 +
* I also did not uninstall open-jdk, although I did have sun-java6 as well.  
  
  

Revision as of 22:44, 13 April 2011

Installing LDAP

I followed the instruction from the various web sites, mainly from http://ubuntuforums.org/showthread.php?p=8161118 and http://ubuntuforums.org/showthread.php?t=1054966. I set the LDAP password directly modifying /etc/ldap/slapd.d/cn=config/olcDatabase={0}config.ldif file setting olcRootPW: key. I had a hard time figuring out how to change the LDAP password or access config database without password.

  • Install LDAP server
    sudo apt-get install slapd ldap-utils
  • Run the following command to add all the LDAP schemas in the slapd package to your cn=config (by default only core is added):
    ls /etc/ldap/schema/*.ldif | xargs -I {} sudo ldapadd -Y EXTERNAL -H ldapi:/// -f {}
  • Create a database the LDAP server. Note that Karmic uses the EXTERNAL SASL binding to communicate with the LDAP server. There is no admin user or password here:
    sudo ldapadd -Y EXTERNAL -H ldapi:/// -f db.ldif
  • Add people to database we just created. Since we have created our own access control lists for the dc=home,dc=local database, we must change the binding method (i.e. auth with the admin user and password). Add the data for the directory via the following command:
    sudo ldapadd -x -D cn=admin,dc=home,dc=local -w admin -f people.ldif
  • Check to see if you can read the database:
    ldapsearch -x -b dc=home,dc=local


Installing GlassFish

  • Follow the instructions from http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-301-on-ubuntu to download install GlassFish on Ubuntu.
  • I skipped the part on security part dealing with iptables, probably it can be configured later. You will be able to start (and stop) GlassFish using
    /home/glassfish/bin/asadmin start-domain domain1
  • I also did not uninstall open-jdk, although I did have sun-java6 as well.


Installing ChannelFinder