L-Store Usage Instructions: Difference between revisions

From ReddNet
Jump to navigation Jump to search
No edit summary
 
Line 5: Line 5:
== Setting Up Lstore ==
== Setting Up Lstore ==


*Copy the Lstore client software from an existing location or email the lstore development group to obtain it.
*Copy the lstcp.jar file from the [http://www.lstore.org/pwiki/pmwiki.php?n=Docs.CLI-ClientIntro Lstore website].
**Visit the [http://www.accre.vanderbilt.edu/support/contact/staff.php ACCRE Staff Directory] and email Larry Dawson, Santiago de Ledesma, or Kelly McCauley for help.   
**Visit the [http://www.accre.vanderbilt.edu/support/contact/staff.php ACCRE Staff Directory] and email Larry Dawson, Santiago de Ledesma, or Kelly McCauley for help.   
**A good reference for setup and examples is [http://www.lstore.org/pwiki/pmwiki.php?n=Docs.CLI-ClientIntro Lstore Command Line Client Intro]
**A good reference for setup and examples is [http://www.lstore.org/pwiki/pmwiki.php?n=Docs.CLI-ClientIntro Lstore Command Line Client Intro]
Line 15: Line 15:
*Create a directory for lstore files:
*Create a directory for lstore files:
<pre> $ mkdir ~/lstore</pre>
<pre> $ mkdir ~/lstore</pre>
*Unzip the client tar file:
*If a lstore_env file exists, edit it to appear this way (with appreopriate shell syntax), or create it:
<pre> $ tar -zxf lstore-client.tgz</pre>
*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:
<pre> $ emacs setup_env
<pre> $ emacs setup_env
  setenv CLASSPATH /home/username/lstore/jar/accre-loci-1.0-1817.jar:/home/username/lstore\
  alias lstcp "java -cp ~/lstore/lstcp.jar org.lstore.client.AutomatedLstcp --login-id lstore_root --password changeme"</pre>
/jar/aspectjrt-1.5.2a.jar:/home/username/lstore/jar/aspectjtools-1.5.2a.jar:/home/username\
*This alias automatically enters the username and password so that lstcp commands can be used in other programs.
/lstore/jar/client-1.0.jar:/home/username/lstore/jar/jargs-1.0.jar:/home/username/lstore\
*Source the lstore_env file, and the system is prepared to run commands:
/jar/je-3.1.0.jar:/home/username/lstore/jar/log4j-1.2.12.jar:/home/username/lstore/jar\
<pre> $ source lstore_env</pre>
/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"</pre>
*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:
<pre> $ source setup_env</pre>
*To set this permanently, add it to your login file (shown here for tcsh):
*To set this permanently, add it to your login file (shown here for tcsh):
<pre> $ emacs (or another editor) ~/.cshrc
<pre> $ emacs (or another editor) ~/.cshrc
  add:
  add:
  #source the setup file for lstore applications
  #source the setup file for lstore applications
  source ~/lstore/jar/setup_env</pre>
  source ~/lstore/lstore_env</pre>


<span style="font-size:130%">'''Proceed to [[L-Store Usage Instructions - Uploading/Downloading Files|Uploading/Downloading Files]]'''</span>
<span style="font-size:130%">'''Proceed to [[L-Store Usage Instructions - Uploading/Downloading Files|Uploading/Downloading Files]]'''</span>

Latest revision as of 09:17, 6 August 2008

  1. Setting Up Lstore
  2. Uploading/Downloading Files
  3. Other Applications

Setting Up Lstore

 $ 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
  • If a lstore_env file exists, edit it to appear this way (with appreopriate shell syntax), or create it:
 $ emacs setup_env
 alias lstcp "java -cp ~/lstore/lstcp.jar org.lstore.client.AutomatedLstcp --login-id lstore_root --password changeme"
  • This alias automatically enters the username and password so that lstcp commands can be used in other programs.
  • Source the lstore_env file, and the system is prepared to run commands:
 $ source lstore_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/lstore_env

Proceed to Uploading/Downloading Files