Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

scriptarguments/optionspurpose
list_keplers.sh

-help (shows options)

-all (shows all Kepler versions)

list available keplers
install_kepler.sh

target_dir src_kepler description

target_dir: chosen directory name inside $KEPLER_DIR
src_kepler: name of Kepler version (as given by list_keplers.sh)
description: chosen descriptive text (in quotes)

installs local or central keplers
list_my_keplers.sh lists keplers that are already installed in your home location
switch_to_kepler.sh

kepler_name

kepler_name: name of the installed Kepler (as given by list_my_keplers.sh)

changes current working version of Kepler

Sample installation session

Make sure $KEPLER_DIR points to location where Keplers will be installed

Code Block
languagebash
linenumberstrue
setenv KEPLER_DIR $ITMWORK/my_keplers

List all available Keplers

Code Block
languagebash
linenumberstrue
# You can use list_keplers.sh to do so
 
<g2michal@s34 ~>list_keplers.sh -all
List of available Kepler installations

Local installations
- local (default)
Version based on Kepler 2.4
- 2.4/R3_RC/local
Version based on Kepler 2.5
- 2.4/R3_RC/local

Central installations
- central (default)
- rc
Version based on Kepler 2.4
- 2.4/R3_RC_ETS/central
- 2.4/R3_RC/central
Version based on Kepler 2.5
- 2.5/R3_RC/central

Install Kepler that contains all ETS actors - using central installation

Code Block
languagebash
linenumberstrue
# I will use following command
# install_kepler.sh my_R3_RC_ETS 2.4/R3_RC_ETS/central 'This is my first installation at Marconi'
# my_R3_RC_ETS - is the name of directory where Kepler will be stored
# 2.4/R3_RC_ETS/central - points to installation I am interested in
# 'This is my first installation at Marconi' - this is just a description that can make it easier
#   to choose between installations later on
 
<g2michal@s34 ~>install_kepler.sh my_R3_RC_ETS 2.4/R3_RC_ETS/central 'This is my first installation at Marconi'
Using location at: /afs/eufus.eu/user/g/g2michal/kepler_dir
Linking common ...
~/kepler_dir/my_R3_RC_ETS/kepler ~
~
Linking gui ...
~/kepler_dir/my_R3_RC_ETS/kepler ~
~
Linking kepler-tasks ...
Linking build-area ...
Linking build-area/target ...
Copying kepler.sh ...
Creating itm subdirectory structure ...
Linking directories ...
  build-area
  settings
  target
  itm
  resources
  kar
  src
  cpp
  itm
  eu
  itm
  target
  classes
  eu
  itm
  lib64
  python
  kepler-tasks-2.4
  lib
  jar
  common-2.4
  configs
  ptolemy
  configs
  kepler
  ontologies
  gui-2.4
  resources
  configurations
Creating info file
Creating Kepler related directories
Kepler was installed inside /afs/eufus.eu/user/g/g2michal/kepler_dir/my_R3_RC_ETS

After Kepler is installed, you can list all of your personal installations

Code Block
languagebash
linenumberstrue
# you can do this using list_my_kepler.sh script
 
<g2michal@s34 ~>list_my_keplers.sh
Using location at: /afs/eufus.eu/user/g/g2michal/kepler_dir
Following kepler installations are ready for use
selected   type       name - 'description'

 [ ]    [Central ]    my_R3_RC_ETS - 'This is my first installation at Marconi'


To use one of these, type

switch_to_kepler.sh [name]

You can switch between your own installations

Code Block
languagebash
linenumberstrue
# in order to switch between installations you have to run
# switch_to_kepler.sh script
<g2michal@s34 ~>switch_to_kepler.sh my_R3_RC_ETS
Using location at: /afs/eufus.eu/user/g/g2michal/kepler_dir
Removing old links                                    [ OK ]
Linking new kepler: my_R3_RC_ETS                      [ OK ]
 
# after switching between Kepler, you can easily check which
# installation is currently used. All you have to do is to 
# run list_my_keplers.sh again
# note "[X]" next to Kepler installation being currently used
 
<g2michal@s34 ~>list_my_keplers.sh
Using location at: /afs/eufus.eu/user/g/g2michal/kepler_dir
Following kepler installations are ready for use
selected   type       name - 'description'

 [x]    [Central ]    my_R3_RC_ETS - 'This is my first installation at Marconi'


To use one of these, type

switch_to_kepler.sh [name]

You are ready to run Kepler

Code Block
languagebash
linenumberstrue
# make sure to set TOKAMAK name before running Kepler
 
# in case of tcsh, make sure to run
source $ITMSCRIPTDIR/ITMv2 test 
kepler.sh
 
# if you prefer bash, use this one
source $ITMSCRIPTDIR/ITMv2.sh jet 
kepler.sh