Difference between revisions of "Installing CSS"

From GlueXWiki
Jump to: navigation, search
(Intro)
Line 1: Line 1:
 +
<br/>
 
== Intro ==
 
== Intro ==
* These are some notes on installing CSS on my personal notebook running 32-bit Ubuntu 10.04 LTS. From what I noticed installing on other distros of Linux should not be very  different, but the directory name may vary.
+
 
 +
* These are some notes on installing CSS on my personal notebook running 32-bit Ubuntu 10.04 LTS. Installing on other distros of Linux should not be very  different, but the directory name may vary.
 
* There are more than version of CSS suite which can be downloaded. Some of them configured in pretty sophisticated ways requiring different packages.  
 
* There are more than version of CSS suite which can be downloaded. Some of them configured in pretty sophisticated ways requiring different packages.  
 
* The simplest way to run CSS is to download either CSS Basic EPICS from SNS or CSS Island from DESY. These two versions easily connect to the EPICS PVs served through channel access.  
 
* The simplest way to run CSS is to download either CSS Basic EPICS from SNS or CSS Island from DESY. These two versions easily connect to the EPICS PVs served through channel access.  
  
 +
<br/>
 
== CSS Basic EPICS ==  
 
== CSS Basic EPICS ==  
  
 
* Download the zip-file from http://ics-web.sns.ornl.gov/css/products.html, copy it to the desired directory and unzip it.  
 
* Download the zip-file from http://ics-web.sns.ornl.gov/css/products.html, copy it to the desired directory and unzip it.  
 
* Go into the new directory and run the <i>css</i> executable.  
 
* Go into the new directory and run the <i>css</i> executable.  
I In CSS->Preferences=>CSS Core->EPICS configure CA address list, and restart CSS. After this CSS will connect to PVs served over CAs.  
+
* In CSS->Preferences->CSS Core->EPICS configure CA address list, and restart CSS. After this CSS will connect to PVs served over CAs.  
  
 +
<br/>
 
== CSS Island ==  
 
== CSS Island ==  
  
 
* Download the zip-file from http://css.desy.de/content/e413/e2597/index_eng.html, copy it to the desired directory and unzip it.  
 
* Download the zip-file from http://css.desy.de/content/e413/e2597/index_eng.html, copy it to the desired directory and unzip it.  
 
* Go into the new directory and run the <i>cssIskand</i> executable.  
 
* Go into the new directory and run the <i>cssIskand</i> executable.  
I In CSS->Preferences=>CSS Core->EPICS configure CA address list, and restart CSS. After this CSS will connect to PVs served over CAs.
+
* In CSS->Preferences->CSS Core->EPICS configure CA address list, and restart CSS. After this CSS will connect to PVs served over CAs.
 +
 
 +
<br/>
 +
== Some other packages that are not needed for a simple configuration ==
 +
 
  
 
=== Installing MySQL ===
 
=== Installing MySQL ===

Revision as of 18:06, 14 April 2011


Intro

  • These are some notes on installing CSS on my personal notebook running 32-bit Ubuntu 10.04 LTS. Installing on other distros of Linux should not be very different, but the directory name may vary.
  • There are more than version of CSS suite which can be downloaded. Some of them configured in pretty sophisticated ways requiring different packages.
  • The simplest way to run CSS is to download either CSS Basic EPICS from SNS or CSS Island from DESY. These two versions easily connect to the EPICS PVs served through channel access.


CSS Basic EPICS

  • Download the zip-file from http://ics-web.sns.ornl.gov/css/products.html, copy it to the desired directory and unzip it.
  • Go into the new directory and run the css executable.
  • In CSS->Preferences->CSS Core->EPICS configure CA address list, and restart CSS. After this CSS will connect to PVs served over CAs.


CSS Island

  • Download the zip-file from http://css.desy.de/content/e413/e2597/index_eng.html, copy it to the desired directory and unzip it.
  • Go into the new directory and run the cssIskand executable.
  • In CSS->Preferences->CSS Core->EPICS configure CA address list, and restart CSS. After this CSS will connect to PVs served over CAs.


Some other packages that are not needed for a simple configuration

Installing MySQL

  • Install mysql-server package from the distribution repository.
  • If there is a need to reset the MySQL root password, do as follows:
sudo /etc/init.d/mysql stop
sudo mysqld --skip-grant-tables &
mysql -u root mysql
UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
  • After changing the MySQL password restart MySQL server


Installing LDAP

I followed the instruction from the various web sites, mainly from http://ubuntuforums.org/showthread.php?p=8161118, https://lists.ubuntu.com/archives/ubuntu-server/2009-August/003182.html 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 {}
  • As an example 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 openjdk, although I did have sun-java6 as well.



Installing ChannelFinder