> tar zxvf csearchdb3abcdghijkmab.tar.gz > tar zxvf csearchdb2nz.tar.gz > tar zxvf nmrccssdb2.tar.gzThis will create three directories: csearchdb3abcdghijkmab, csearchdb2nz and nmrccssdb2. The name of the nmrccssdb2 directory may vary. You may want to rename the nmrccssdb2 to bin.
> mv nmrccssdb2 bin
> cd > cd bin > ./mclicenseinfoand sent all the output to mike@modgraph.co.uk and jeff@modgraph.co.uk. We will then send you a license file.
Make a directory for the license
> cd > pwd /home/george > mkdir licenseYou also need to add some environment variables: First find out which shell you are running. To do this type:
> cat /etc/passwdor contact your linux support.
> cd > gvim .cshrc
# CShell setenv NMRSOAPDIR /home/george/nmrpredict/bin setenv DY_LICENSEDIR /home/george/license setenv PCM_DIR /home/george/nmrpredict/bin setenv NMRTEMPDIR /home/george/nmrpredict/tmp setenv CSEARCHDIR1 /home/george/nmrpredict/csearchdb3abcdghijkmab setenv CSEARCHDIR2 /home/george/nmrpredict/csearchdb2nz setenv NMRUSDATABASE /home/george/nmrpredict/nmr1hdatabase and optionally: setenv NMRDBARCHIVE /home/george/nmrpredict/csdb2archive setenv NMRCONNECTFILE /home/george/nmrpredict/connect setenv NMRCHARGEARCHIVE /home/george/nmrpredict/chargearchive setenv NMRCHARGEGSEFFILE /home/george/nmrpredict/chargearchive/gseferrors.txt You must set LD_LIBRARY_PATH to $NMRSOAPDIRfor 64-bit versions.or if you run bash, edit the file .bashrc
> cd > gvim .bashrc
# Bourne (Again) Shell export NMRSOAPDIR=/home/george/nmrpredict/bin export DY_LICENSEDIR=/home/george/license export PCM_DIR=/home/george/nmrpredict/bin export NMRTEMPDIR=/home/george/nmrpredict/tmp export CSEARCHDIR1=/home/george/nmrpredict/csearchdb3abcdghijkmab export CSEARCHDIR2=/home/george/nmrpredict/csearchdb2nz export NMRUSDATABASE=/home/george/nmrpredict/nmr1hdatabase and optionally: export NMRDBARCHIVE=/home/george/nmrpredict/csdb2archive export NMRCONNECTFILE=/home/george/nmrpredict/connect export NMRCHARGEARCHIVE=/home/george/nmrpredict/chargearchive export NMRCHARGEGSEFFILE=/home/george/nmrpredict/chargearchive/gseferrors.txtThe above symbols are intended to provide placeholders. Please modify these symbols (george) to reflect the path to your installation.
> mkdir $NMRDBARCHIVE > mkdir $NMRCHARGEARCHIVE
> cd bin > ./nmrccssc2It should reply that it is listening on port 9300.
#!/bin/sh ls -al > logfile 2>&1 & ./nmrccssc2 >> logfile 2>&1 &Place this in a file in your bin directory. You may need to change the name of the server to reflect your installation. You can also use this approach to start the server when the system boots. Your system people will be able to help with this.
An alternative is to use 'contab'. The @reboot option specifies a commands to run every time the machine is rebooted. The script to run should set any environment which is necessary. The crontab -e command open an editor to the crontab. This should be carried out when logged in as the NMRServer user.
> crontab -e @reboot /home/mike/nmrpredict/src-40900/bin/servercron.shNow close the editor.
> cat /home/mike/nmrpredict/src-40900/bin/servercron.sh #!/bin/sh export NMRSOAPDIR=/home/mike/nmrpredict/src-40900/bin export NMRTEMPDIR=/home/mike/nmrpredict/src-40900/tmp export NMRUSDATABASE=/home/mike/nmrpredict/src-40900/nmrusdatabase export NMRUSERFILE=/home/mike/nmrpredict/nmrusers export NMRUSERDATABASE=/home/mike/nmrpredict/src-40900/nmruserdatabase export CSEARCHDIR1=/home/mike/nmrpredict/src-40900/csearchdb3abcdghijkmab export CSEARCHDIR2=/home/mike/nmrpredict/src-40900/csearchdb2nz/ export NMRCONNECTFILE=/home/mike/nmrpredict/connections export NMRDLLLICENSEDIR=/home/mike/nmrpredict/src-40900/nmrdlllicensedir export DY_LICENSEDIR=/home/mike/license cd /home/mike/nmrpredict/src-40900/bin ls -al >> logfile 2>&1 & ./nmrccssc2 >> logfile >&1 &
HKEY_CURRENT_USER\Software\Modgraph\NMRPredictIt will also attempt to create a folder for temporary daya and saved predictions in 'My Documents'. If this should fail, you will have to modify the registry key and create the folder manually. If you cannot use 'regedit' then open nmrccssc and choose Menu ... Options ... Path Setup and reset the NMR Data path.