Install VistA p.4

PageFour Created Wednesday 22 October 2008


 * back to Nancy's Installation Method

8. You need to set up your environment. Nancy has included some small shell scripts for you and you will need to edit them to fit your situation. Looking first at env2. (She calls it env2 to distinguish it from the env files found in the SemiVivA downloads, so there will be no confusion). Here is the contents of the env2 included with this group of files. It includes a number of aliases for commands to make things easier. The line you may need to edit to match your installation is in bold type there.

Env2

9. Open the file /home/vista/.bashrc and add a line so env2 will run on login. The line is a period followed by a space and then home/vista/EHR/env2

./home/vista/EHR/env2


 * Put it near the end of the file so you can find it again. Here is the end of .bashrc :

//snip
 * 1) some more ls aliases
 * 2) alias ll='ls -l'
 * 3) alias la='ls -A'
 * 4) alias l='ls -CF'

. /home/vista/EHR/env2  <======= here is where the new line goes

if [ -f /etc/bash_completion ]; then . /etc/bash_completion [note the space after the .] fi
 * 1) enable programmable completion features (you don't need to enable
 * 2) this, if it's already enabled in /etc/bash.bashrc and /etc/profile
 * 3) sources /etc/bash.bashrc).


 * To accomplish this in vi, carefully do this:

vi .bashrc i [places you in "insert" mode] [enter] . /home/vista/EHR/env2 [type or paste the line into the file; note the space after the .] [enter] [esc] [exits "insert" mode] :wq [puts you in "command" mode, writes the file, and quits]
 * [scroll down to the location indicated above, placing the cursor on the blank line]

The aliases in env2 are helpful because if you start a new shell and log in as the user vista, you will be able to just type gtm or GTM and roll and scroll VistA using GT.M will start right up.

Install VistA p.5