L-Store Usage Instructions

From ReddNet
Revision as of 10:46, 16 January 2008 by Managanj (talk | contribs) (New page: #Setting Up Lstore #Uploading/Downloading Files #[[L-Store Usage Instructions - Other Applicatio...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. Setting Up Lstore
  2. Uploading/Downloading Files
  3. Other Applications

Setting Up Lstore

  • Copy the Lstore client software from an existing location or email the lstore development group to obtain it.
  • Check to see if java v1.6 is in your PATH (if you get this output you're good):
 $ java -version
 java version "1.6.0_01"
 Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
 Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
  • Create a directory for lstore files:
 $ mkdir ~/lstore
  • Unzip the client tar file:
 $ tar -zxf lstore-client.tgz
  • set the ClassPath to include all the jar files in the new directory. If the setup_env file exists, edit it to appear this way (with appreopriate shell syntax), or create it if necessary:
 $ emacs setup_env
 setenv CLASSPATH /home/username/lstore/jar/accre-loci-1.0-1817.jar:/home/username/lstore\
 /jar/aspectjrt-1.5.2a.jar:/home/username/lstore/jar/aspectjtools-1.5.2a.jar:/home/username\
 /lstore/jar/client-1.0.jar:/home/username/lstore/jar/jargs-1.0.jar:/home/username/lstore\
 /jar/je-3.1.0.jar:/home/username/lstore/jar/log4j-1.2.12.jar:/home/username/lstore/jar\
 /server-1.0.jar:/home/username/lstore/jar/storcore-1.3.0.jar:/home/username/lstore/jar\
 /postgresql-8.2-504.jdbc3.jar

 alias lstcp java org.lstore.client.Lstcp
 setenv LSTORE_OPTIONS "--login-id lstore_root"
  • The CLASSPATH settings are one continuous line - the backslashes at the end of the line show a continuation to the line below (they should not be typed into the path).
  • The last two lines are used to make the command line input simpler: "lstcp" is the command alias and the login option is included automatically, you do not have to type it for every command.
  • Source the setup_env file, and the system is prepared to run commands:
 $ source setup_env
  • To set this permanently, add it to your login file (shown here for tcsh):
 $ emacs (or another editor) ~/.cshrc
 add:
 #source the setup file for lstore applications
 source ~/lstore/jar/setup_env

Proceed to Uploading/Downloading Files