Skip to content

How to administer shell

Mark A. Greenslade edited this page May 25, 2016 · 44 revisions

Installing

Pre-requisites
Ensure that the git client is installed upon your system.

Step 1: Download source code from GitHub

cd /opt  
git clone https://github.com/Prodiguer/hermes-shell.git hermes

Step 2: Activate shell

source /opt/hermes/activate

Note - You are advised to add this to your bash profile file ($HOME/.bash_profile):

Step 3: Install stack

hermes-stack-install

Step 4: Install environment variables

hermes-stack-install-environment-vars

This will create a file containing environment variables:
   $HOME/.hermes

The environment variables are pushed into the main HERMES config file:
   /opt/hermes/ops/config/hermes.json

You should add the following lines to your $HOME/.bash_profile file:

# --------------------------------------------------------------------
# HERMES server settings
# --------------------------------------------------------------------
# HERMES: server environment vars
source $HOME/.hermes

# HERMES: server aliases
source $HERMES_HOME/activate

# HERMES: server python path
export PYTHONPATH=$PYTHONPATH:$HERMES_HOME/repos/hermes-server 

Updating

To update only the source code then:

hermes-stack-update-source

To update the source code and virtual environment(s) then:

hermes-stack-update

Uninstalling

To uninstall the full stack including virtual environment(s) then:

hermes-stack-uninstall

Clone this wiki locally