************************************************************
Installing MoJoe on Linux Scanner System from scratch
************************************************************
CUSTOMIZATION:

Before creating a new MoJoe installation on any scanner,
customize for all scanners here:
	cd /fmri2/fmri/ref_functions/mojoe_users
	cp -p -r generic generic.DATE
	cd generic
		edit disks.txt
		edit disks2.txt
		edit misc.txt
		edit userdisk.txt
		edit userlist

After transfer of MoJoe installation code to the scanner,
copy these from the  remote location to the scanner directory
mojoe/user_details with (see INSTALL Step 2 below):
	cd ~sdc/mojoe
	./mojoe_setup

In addition to copying these files to the local scanner mojoe
directory, within mojoe_setup, the user can select ESE11, 12,
or 14 to link Read_header to one of these:
	Read_header_ese11
	Read_header_ese12
	Read_header_ese14

Also, mojoe_setup will create a new link from mojoe/mojoe to:
	mojoe/gui/mojoe

since the program is now compiled in the separate gui subdirectory.

======================================================================
There is a potental problem if MoJoe has been copied and these are
no longer links within the mojoe directory (example ESE14):
	mojoe --> gui/mojoe
	Read_header --> Read_header_ese14

If so, then they should be removed by the user before running the
mojoe_setup script.  This is not done automatically by the program
to prevent unintended removal of the mojoe or Read_header directories.
======================================================================

Note that only the userlist is copied anew each time the
mojoe program is started.  The other files must be copied
with mojoe_setup since transferring all of them interactively
takes too long.

DISKS - this is the current list of accessible disks.
DISKS2 - DISKS with PC link translation field.

MISC - this contains the color setting and an optional startup note.
The new color (rose) is listed first and the old color (pink-purple)
is listed second.  The last one listed wins unless overridden by the
MOJOE_COLOR environment variable.

USERDISK - this is a new list that sets up a default disk per
user.  For someone like user plaurien, a different default from
the per user setting can be given per subdir if delineated with
colons.

USERLIST - this is the usual user list.  Now clinical is
allowed to have a choice of subdirectories, but this is
limited to only those specified, such as: fmri,pasl

************************************************************
************************************************************
INSTALL Step 1: create mojoe directory

cd ~sdc
mkdir mojoe (if it doesn't already exist)
cd mojoe
>>> if /export/home/sdc/mojoe already exists:
    mv log log.newname (to keep old logs)
    get rid of all but log.newname and CDRECORD
************************************************************
INSTALL Step 2: get src for all but CDRECORD

cd ~sdc/mojoe
ftp relito
cd /ansir2/WFU/distribution/mojoe/linux
binary
get mojoe3.1_src.tar.gz
quit

cd ~sdc/mojoe
gunzip < mojoe3.1_src.tar.gz | tar xvf -
rm -f mojoe3.1_src.tar.gz
./mojoe_setup  (see above for customization)
************************************************************
INSTALL Step 3:  get src for CDRECORD if not already present

ftp relito
cd /ansir2/WFU/distribution/mojoe/linux
binary
get linux_cdrecordsrc.tar.gz
quit

gunzip < linux_cdrecordsrc.tar.gz | tar xvf -
rm -f linux_cdrecordsrc.tar.gz
(Follow /export/home/sdc/mojoe/CDRECORD/README instructions)
************************************************************


************************************************************
TEST ONLY: install a separate mojoe directory for testing
NOTE -- CDRECORD code is fixed to run from ~sdc/mojoe only

(a) TEST CUSTOMIZE  
If testing new settings, create a generic.test directory:
	/fmri2/fmri/ref_functions/mojoe_users/generic.test

(b) TEST INSTALL
cd ~sdc
mkdir mojoetest
cd mojoetest

ftp relito
cd /ansir2/WFU/distribution/mojoe/linux
binary
get mojoe3.1_src.tar.gz
quit

cd ~sdc/mojoetest
gunzip < mojoe3.1_src.tar.gz | tar xvf -
rm -f mojoe3.1_src.tar.gz

(c) TEST EXECUTE
cd ~sdc/mojoetest
setenv MOJOE_DIR $PWD
setenv MOJOE_DETAILS generic.test
./mojoe_setup  (see above for customization)
./mojoe&
unsetenv MOJOE_DIR
unsetenv MOJOE_DETAILS

