% these are some notes about installing the "aster" and
% "ndaq" software on a laptop running linux.
%
% Version 0.0
% May 29, 2008
% SpB



Mon Sep 29 12:12:49 MDT 2008

Files needed are on russter2:

     5427200 May  4 15:01 /home/staff/sburns/aster_ndaq_code_070515.tar

this tar file contains two gzip'ed tar files that are the "aster" and
"ndaq" code, ie,

tar -tvf aster_ndaq_code_070515.tar | more

-rw------- sean/sean   2423468 2007-05-15 22:57:00 aster.tar.gz
-rw------- sean/sean   3001072 2007-05-15 22:10:00 ndaq.tar.gz

cd /data4/aster_ndaq_testing/
cp ~/aster_ndaq_code_070515.tar .
tar -xvf aster_ndaq_code_070515.tar

dir
total 10628
drwxr-xr-x  2 sburns  122    4096 Sep 29 12:12 ./
drwxrwxrwt 27 root   root    4096 Sep 29 12:11 ../
-rw-r--r--  1 sburns  122 5427200 May 20  2007 aster_ndaq_code_070515.tar
-rw-------  1 sburns  122 2423468 May 15  2007 aster.tar.gz
-rw-------  1 sburns  122 3001072 May 15  2007 ndaq.tar.gz

gunzip aster.tar.gz
/data4/aster_ndaq_testing[45]: tar -tvf aster.tar | more
drwxrwxr-x maclean/eol       0 2007-05-15 16:57:35 aster/
-rw-rw-r-- maclean/eol    3135 2004-12-15 11:47:51 aster/INSTALL
drwxrwxr-x maclean/eol       0 2007-05-15 16:57:16 aster/imakeconfig/
drwxrwxr-x maclean/eol       0 2007-05-15 16:57:16 aster/imakeconfig/imake/
-rw-rw-r-- maclean/eol     921 1998-06-07 18:39:09 aster/imakeconfig/imake/Imakefile
-rw-rw-r-- maclean/eol    1614 1998-06-07 18:40:05 aster/imakeconfig/imake/Makefile.ini
-rw-rw-r-- maclean/eol    9820 1998-06-07 18:40:37 aster/imakeconfig/imake/imake.man

 tar -xvf aster.tar

dir aster
total 60
drwxr-xr-x 12 sburns 122 4096 May 15  2007 ./
drwxr-xr-x  3 sburns 122 4096 Sep 29 12:14 ../
drwxr-xr-x  3 sburns 122 4096 May 15  2007 adm/
drwxr-xr-x  2 sburns 122 4096 May 15  2007 cal_files/
drwxr-xr-x  2 sburns 122 4096 May 15  2007 config/
drwxr-xr-x  3 sburns 122 4096 May 15  2007 doc/
drwxr-xr-x  5 sburns 122 4096 May 15  2007 imakeconfig/
-rw-r--r--  1 sburns 122 3301 Aug  6  1998 Imakefile
drwxr-xr-x  2 sburns 122 4096 May 15  2007 include/
-rw-r--r--  1 sburns 122 3135 Dec 15  2004 INSTALL
drwxr-xr-x  4 sburns 122 4096 May 15  2007 isff/
-rw-r--r--  1 sburns 122  749 Jun  9  1998 Makefile.ini
drwxr-xr-x  2 sburns 122 4096 May 15  2007 scripts/
drwxr-xr-x 27 sburns 122 4096 May 15  2007 src/
drwxr-xr-x  3 sburns 122 4096 May 15  2007 util/

make -f Makefile.ini Makefile

make World >& World.linux

 fgrep Err World.linux
make[4]: [clean] Error 2 (ignored)
make[4]: [clean] Error 1 (ignored)


/data4/aster_ndaq_testing/aster[114]: tail World.linux
install in src/gps done
make[3]: Leaving directory `/data4/aster_ndaq_testing/aster/src/gps'
install in src done
make[2]: Leaving directory `/data4/aster_ndaq_testing/aster/src'
make[1]: Leaving directory `/data4/aster_ndaq_testing/aster'

Mon Sep 29 14:40:35 MDT 2008

Full build of Release 1 of ASTER




i re-wrote over the files that are in /usr/local/cuff/!!  duh!

fgrep cuff World.linux 
gcc -o makedepend -O2 -ansi  -DNO_ASM      include.o main.o parse.o pr.o cppsetup.o ifparser.o  -L/usr/local/cuff/aster/lib/Linuxi686     
gcc -o imake -O2 -ansi  -DNO_ASM      imake.o  -L/usr/local/cuff/aster/lib/Linuxi686     
install -c -s  imake /usr/local/cuff/aster/bin/Linuxi686/imake
install -c -s  makedepend /usr/local/cuff/aster/bin/Linuxi686/makedepend
install -c -m 0664 libnetcdf.a /usr/local/cuff/aster/lib/Linuxi686
ranlib  /usr/local/cuff/aster/lib/Linuxi686/libnetcdf.a
install -c -m 0664 libnetcdf_c++.a /usr/local/cuff/aster/lib/Linuxi686
ranlib  /usr/local/cuff/aster/lib/Linuxi686/libnetcdf_c++.a
install -c -s  ncgen /usr/local/cuff/aster/bin/Linuxi686/ncgen
install -c -s  ncdump /usr/local/cuff/aster/bin/Linuxi686/ncdump
install -c -m 0664 libisff.a /usr/local/cuff/aster/lib/Linuxi686
ranlib  /usr/local/cuff/aster/lib/Linuxi686/libisff.a
g++ -o nc_server -g     -L../../../usrlib nc_server.o nc_server_rpc_procs.o nc_server_rpc_svc.o -lisff -L/usr/local/cuff/aster/lib/Linuxi686 -lnetcdf_c++ -lnetcdf -L/usr/local/cuff/aster/lib/Linuxi686     
install -c -s  nc_server /usr/local/cuff/aster/bin/Linuxi686/nc_server
etc, etc....





===============================emails with Gordon:


----------------------------------
To: Gordon Maclean <maclean@ucar.edu>
cc: sean.burns@Colorado.EDU, jeffrey.beauregard@Colorado.EDU
Subject: Re: shutting down aster 
Date: Fri, 16 May 2008 11:29:43 -0600
From: Sean Burns <Sean.Burns@Colorado.EDU>


Hey Gordon,

fyi---we changed the cr21x program and started spitting out hi-rate
data (rather than 1-hz data) into the "duck" laptop...now the data
files are being properly created and the data system keeps on running
without shutting down, ie, data files look like:

-r--r--r-- 1 root cuff   32334 May  7 22:07 duck080508.033602
-r--r--r-- 1 root cuff   32334 May  8 09:14 duck080508.144218
-r--r--r-- 1 root cuff  968796 May 15 16:18 duck080515.195233
-r--r--r-- 1 root cuff  670344 May 15 18:06 duck080515.222126
-r--r--r-- 1 root cuff 3264612 May 16 02:06 duck080516.000000
-r--r--r-- 1 root cuff 3264612 May 16 10:06 duck080516.080000
-r--r--r-- 1 root cuff  524288 May 16 11:21 duck080516.160000

i guess you built your code with the intention of collecting TONS of
data....and if you don't spit out enough data then your code is not
happy about it...and decides you are not worthy of collecting a few
measly data points?!?.... ;-)

anyway, i think this will work fine for us...thanks much for your help
in getting this setup....


					SpB.


----------------------------------
Date: Thu, 08 May 2008 09:12:11 -0600
From: Gordon Maclean <maclean@ucar.edu>
To: Sean Burns <Sean.Burns@colorado.edu>
Subject: Re: shutting down aster


Notice that those connection refused errors are being reported by
covar and archive.  They are a result of the fact that ingest is shutting
down.

Ingest is shutting down because for some reason it stops getting data
(the select timeouts).  Yes perhaps it is a buffer size issue - the
buffers are so big that nothing gets sent in 5 minutes.

I'll have to look at the code.

Gordon

----------------------------------
To: Gordon Maclean <maclean@ucar.edu>
cc: sean.burns@Colorado.EDU
Subject: Re: shutting down aster 
Date: Thu, 08 May 2008 09:02:48 -0600
From: Sean Burns <Sean.Burns@Colorado.EDU>


Hi Gordon,

thanks for your reply---it seems to be working, but for some reason it
is not collecting the data continuously...is the laptop going to
sleep??  the data files are:

-r--r--r-- 1 root cuff 32334 May  7 13:23 duck080507.185157
-r--r--r-- 1 root cuff 32334 May  7 15:20 duck080507.204833
-r--r--r-- 1 root cuff 32334 May  7 16:01 duck080507.212936
-r--r--r-- 1 root cuff 32334 May  7 22:07 duck080508.033602

so they seem to reach a limit (32.334 kB) and then stop.  which is
about 20 minutes worth of data, ie:

data_stats < /usr/local/aster/projects/NIWOT/raw_data/all/duck080507.212936
Opened: <stdin>
chan   #points     start time            end time     delta time    freq 
200        951    21:29:36.858    21:45:26.841        949.983    1.000


from the logs i see:

May  8 06:46:10 duck ingest(duck)[5728]: duck port 36049: getsockopt SO_SNDBUF=50424
May  8 06:46:10 duck ingest(duck)[5728]: duck STREAM socket connected to duck:36049, 2 active connections
May  8 12:46:10 duck covar[5744]: Connected to ingest duck@duck, port=36049
May  8 06:51:10 duck ingest(duck)[5728]: duck select timeout 300 sec
May  8 06:56:10 duck ingest(duck)[5728]: duck select timeout 300 sec
May  8 07:01:10 duck ingest(duck)[5728]: duck select timeout 900 sec. Ingest stopping
May  8 07:01:10 duck ingest(duck)[5728]: duck duck.47601 socket closed, 2 active connections
May  8 07:01:10 duck ingest(duck)[5728]: duck duck.36049 socket closed, 1 active connections
May  8 07:01:10 duck ingest(duck)[5728]: duck shutting down
May  8 13:01:10 duck archive(duck)[5739]: EOFException: duck@duck: RawDataInput::openNextFile: : duck@duck
May  8 13:01:10 duck archive(duck)[5739]: archiving stopped for duck
May  8 07:01:10 duck ingest[2243]: duck ingest [5728] has exited/stopped, exit value:1, signal:none(0)
May  8 13:01:10 duck archive(duck)[5739]: duck ingest: RPC: Remote system error - Connection refused 
May  8 13:01:10 duck covar[5744]: duck ingest: RPC: Remote system error - Connection refused 
May  8 13:01:10 duck nc_server[2241]: Closing Connection, Id=0, heap=3145728
May  8 13:01:10 duck covar[5744]: Closed nc_server connection on server=localhost, Id=0
May  8 13:01:10 duck covar[5744]: Disconnected from nc_server
May  8 13:01:10 duck covar[5744]: covar error: EOFException: all inputs: getSample: 

i see those "connection refused" errors by ingest....is this some
issue with buffer sizes or process priorities??  (since we are doing
both processes on one machine??)...if this is something obvious to you
please let me know (sorry to take up your time with this)...

yesterday, after it started working, i rebooted the laptop to make
sure everything was running "cleanly"...also, it seems like it starts
working when i log in to it...for example, i just noticed that it
created a new file,

 dir /usr/local/aster/projects/NIWOT/raw_data/all/
total 188
drwxr-xr-x 2 cuff cuff  4096 May  8 08:59 .
drwxr-xr-x 3 cuff cuff  4096 May  6 14:43 ..
-r--r--r-- 1 root cuff    34 May  7 12:51 duck080507.183448
-r--r--r-- 1 root cuff 32334 May  7 13:23 duck080507.185157
-r--r--r-- 1 root cuff 32334 May  7 15:20 duck080507.204833
-r--r--r-- 1 root cuff 32334 May  7 16:01 duck080507.212936
-r--r--r-- 1 root cuff 32334 May  7 22:07 duck080508.033602
-r--r--r-- 1 root cuff 16384 May  8 08:59 duck080508.144218

and the file from 22:07 is when i logged in last night to check on
it...


					SpB.


----------------------------------
Date: Thu, 08 May 2008 08:33:33 -0600
From: Gordon Maclean <maclean@ucar.edu>
To: Sean Burns <Sean.Burns@colorado.edu>
Subject: Re: shutting down aster


Cool.  After making changes to sio_converters, channel_config, etc
I think you have to restart ingest in addition to restarting the duck.
Perhaps that was the issue - you were just restarting the duck
previously?

Gordon

----------------------------------
To: maclean@ucar.edu
cc: sean.burns@Colorado.EDU
Subject: Re: shutting down aster 
Date: Wed, 07 May 2008 14:58:02 -0600
From: Sean Burns <Sean.Burns@Colorado.EDU>


hey Gordon,

thanks for the info...it seems there is still something a bit funky
about "channel_config" and the formattting...i think I can tell
what the format looks like by doing rserial, ie:

 rserial duck 200
 *** use ^d or ^c to terminate rserial
 send socket open to duck
 01+0110.  02+13.27  03+11.44  04+1491.  05-19.10  06+293.4  07+6999.  08+0.000 \r\n
 01+0110.  02+13.27  03+11.43  04+1492.  05-19.03  06+293.4  07+6999.  08+0.000 \r\n
 01+0110.  02+13.26  03+11.43  04+1492.  05-19.03  06+293.4  07+6999.  08+0.000 \r\n

based on this i went to /usr/local/aster/config/ and added the
following entry to "sio_converters"

camp_21x_7    7       "%*d%*f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f"

and "sio_msg_formats",

camp_21x_7    0x0a    none    20      ascii   none    20      none

what it shows in "sio_converters" is:

---------------------
#
camp_21x_7      7       "%*d%*f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f"
camp_21x_8      8       "%*d%*f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f"
# 
# Campbell 21x format, integer id followed by float value
# toss all ids with %*d.  toss first two values with %*f.
# parse 9 values
cr21x_9         9       "%*d%*f%*d%*f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f%*d%f"
# ncar conditional sampler, sonic - sign Uunits Ufrac Tunits Tfrac status
---------------------

so, i'm basically copying the format for "camp_21x_8"...where i
believe the first %*f value gets tossed away (though i could not find
exactly where this is specified)...and then for the ops files,
channel_config is:

  duck    iv1624   0    200     0  on  obsolete  9600.8.8.1      camp_21x_7         # for cr21x logger (ascii)

and prep is:

  s=duck:200 c=serial_float("V","degC","","","","","")
          d=(Vlog,Tpanel,junk1,junk2,junk3,junk4,junk5)
          r=1 m=(5:14,-20:30,-1:1,-1:1,-1:1,-1:1,-1:1)

at this point i have hit a wall and will need to go up there and
modify the program on the logger...probably switch it to binary output
and use one of the formats that is already pre-defined...

actually, it seems like it just re-set itself and started
working....though i didn't do anything (recently)...but it
started creating a new data, ie:

-r--r--r-- 1 root cuff    34 May  7 12:51 duck080507.183448
-r--r--r-- 1 root cuff 32334 May  7 13:23 duck080507.185157

and now i see:

data_stats < ../raw_data/all/duck080507.185157 
Opened: <stdin>
chan   #points     start time            end time     delta time    freq 
200        951    18:51:57.654    19:07:46.634        948.980    1.001

maybe the long delay was how i restarted everything after making
changes to the ops files (i used "ndaqrestart duck")...anyway, now
i can definitely see the data, ie:

 prep -D Vlog,Tpanel -f -B "2008 05 07 18:55:00" E "2008 05 07 19:10:00" | more
 Set OPS period: OPS=ops1
 Opened: /usr/local/aster/projects/NIWOT/raw_data/all/duck080507.185157
 prep EOF
 18:55:00.650      13.29     10.84
 18:55:01.650      13.29     10.84
 18:55:02.650      13.28     10.84
 18:55:03.650      13.27     10.84
 18:55:04.650      13.26     10.84
 18:55:05.650      13.26     10.84
 18:55:06.650      13.25     10.84
 18:55:07.650      13.25     10.84
 18:55:08.650      13.24     10.84
 18:55:09.650      13.24     10.84
 18:55:10.650      13.39     10.84
 18:55:11.650      13.37     10.84
 18:55:12.650      13.35     10.84
 18:55:13.650      13.34     10.84
 18:55:14.650      13.33     10.84
 18:55:15.650      13.32     10.84
 18:55:16.650      13.31     10.84

so, we are in business...

thanks for your help!

						SpB.



----------------------------------
Date: Wed, 07 May 2008 12:25:26 -0600
From: Gordon Maclean <maclean@ucar.edu>
To: sean <sean@ucar.edu>
Subject: shutting down aster


To turn off the aster boot script:

chkconfig --level 2345 aster off


----------------------------------
Date: Wed, 07 May 2008 12:20:52 -0600
From: Gordon Maclean <maclean@ucar.edu>
To: sean <sean@ucar.edu>
Subject: chkconfig


To setup the links

chkconfig --add aster
chkconfig --add ndaq

To list what runlevels the scripts will run at:

chkconfig --list aster
chkconfig --list ndaq





----------------------------------
To: maclean@ucar.edu
cc: sean.burns@Colorado.EDU
Subject: update to aster code...
Date: Tue, 06 May 2008 17:17:30 -0600
From: Sean Burns <Sean.Burns@Colorado.EDU>


hey gordon,

the make rootinstall fixed the prev problem.

i'm getting a bit closer...if i do "check_aster" i get:


 check_aster
Tue May  6 17:07:23 MDT 2008

            ------------- Environment -------------
PROJECT = NIWOT, OPS=ops1

            ------------- Server tasks -------------
host            user   pid    start exectime process
duck        root     10601 16:43 ? 00:00:00 adamserver
duck        cuff     11401 16:55 ? 00:00:00 nc_server

            ------------- Ingest tasks -------------
host            user   pid    start exectime process
duck        root     11812 17:05 ? 00:00:00 ingest

            ------------- Archive tasks -------------
host            user   pid    start exectime process

            -------------- Covar calcs --------------
host            user   pid    start exectime process

            -------------- X processes --------------
host            user   pid    start exectime process

            -------------- Ingest Statistics ----------
duck: RPC: Unable to receive; errno = Connection refused
 
            -------------- Living adams  --------------
duck
 
 
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      10760452   3873916   6331120  38% /
/dev/mapper/VolGroup00-LogVol00
                      10760452   3873916   6331120  38% /
            -----------------------------------------
Tue May  6 17:07:23 MDT 2008



and i get the following in the log:

more $ASTER/log/archive_duck.log 
duck@duck: can't connect to ingestor

there seems to be some kind of connection problem with the
ingestor..what i see is:

May  6 17:05:35 duck ingest[11812]: ingest started, listening on 8000 
May  6 17:06:29 duck ingest(duck)[11889]: duck beginning connection on port 38353, stnNumber=10
May  6 17:06:29 duck ingest(duck)[11889]: duck rpc services started, rpc prog#536870938, stnNumber=10
May  6 17:06:30 duck ingest(duck)[11889]: ingestor EOFException: socket to duck: RawDataInput::openNextFile: 
May  6 17:06:30 duck ingest(duck)[11889]: duck shutting down
May  6 17:06:30 duck ingest[11812]: duck ingest [11889] has exited/stopped, exit value:1, signal:none(0)
May  6 23:06:34 duck archive(duck)[11903]: duck ingest: RPC: Remote system error - Connection refused 
May  6 23:06:39 duck nc_server[11401]: Cpened Connection, Id=1, heap=3145728
May  6 23:06:39 duck covar[11912]: Opened nc_server connection on server localhost, Id=1, writeTimeout=20, otherTimeout=100, batchPeriod=300 secs
May  6 23:06:39 duck covar[11912]: Connected to nc_server: connectionId = 1
May  6 23:06:39 duck covar[11912]: duck ingest: RPC: Remote system error - Connection refused 
May  6 23:06:49 duck archive(duck)[11925]: duck ingest: RPC: Remote system error - Connection refused 
May  6 23:06:54 duck nc_server[11401]: Cpened Connection, Id=2, heap=3145728
May  6 23:06:54 duck covar[11931]: Opened nc_server connection on server localhost, Id=2, writeTimeout=20, otherTimeout=100, batchPeriod=300 secs
May  6 23:06:54 duck covar[11931]: Connected to nc_server: connectionId = 2
May  6 23:06:54 duck covar[11931]: duck ingest: RPC: Remote system error - Connection refused 
May  6 17:07:30 duck ingest(duck)[12005]: duck beginning connection on port 46102, stnNumber=10
May  6 17:07:30 duck ingest(duck)[12005]: duck rpc services started, rpc prog#536870938, stnNumber=10
May  6 17:07:31 duck ingest(duck)[12005]: ingestor EOFException: socket to duck: RawDataInput::openNextFile: 
May  6 17:07:31 duck ingest(duck)[12005]: duck shutting down
May  6 17:07:31 duck ingest[11812]: duck ingest [12005] has exited/stopped, exit value:1, signal:none(0)
May  6 23:07:35 duck archive(duck)[12019]: duck ingest: RPC: Remote system error - Connection refused 
May  6 23:07:40 duck nc_server[11401]: Cpened Connection, Id=3, heap=3145728

ingest.conf looks like:

more ingest.conf

 #
 # $Log: ingest.conf,v $
 # Revision 1.1  2002/08/07 23:29:01  maclean
 # initial checkin
 #
 #
 # flow control:
 # RTS: input flow control, remote system should suspend output when RTS is low
 # CTS: output flow control, suspend output when remote system lowers CTS
 # RTSCTS: both
 # none: wing it
 # stn server    port            baud    parity  data    stop    flow    modem/local
 # tram      aster    /dev/ttyS0 115200  none    8       1       RTSCTS  local
 duck      duck    socket


anyway, there is still something wrong...

i will play around with this some more later...

thanks,

					SpB.


----------------------------------
Date: Tue, 06 May 2008 15:46:19 -0600
From: Gordon Maclean <maclean@ucar.edu>
To: Sean Burns <Sean.Burns@Colorado.EDU>
Subject: Re: rtrun...


You can ignore that warning.  The makedepend program is very old
and doesn't know how to find the new C++ header files, like iostream.

I think I know the problem.  rtrun is one program that needs to be
installed from the root account.  Hopefully there is some
info in the install readme about the "make rootinstall"?

As I remember, after logging in as root, cd to the directory w
where you did the make World, and do:

export ASTER=/usr/local/whereever
make rootinstall

Gordon


----------------------------------
To: maclean@ucar.edu
cc: sean.burns@Colorado.EDU
Subject: iostream...
Date: Tue, 06 May 2008 15:37:24 -0600
From: Sean Burns <Sean.Burns@Colorado.EDU>


gordon,

i think "iostream" might be the problem...lots of errors in
World.linux like:

../../imakeconfig/makedepend/makedepend: warning:  gps_adam.cxx, line 147: cannot find include file "iostream"
        not in /usr/include/iostream
        not in /usr/include/c++/3.2.2/iostream
        not in ../../h/iostream
        not in /usr/local/lib/gcc-include/iostream
        not in /usr/include/iostream
        not in /usr/lib/gcc/i386-redhat-linux/4.1.1/include/iostream


when i do:   find /usr/include/c++/4.1.1/. | grep iostream

i get:

/usr/include/c++/4.1.1/./iostream
/usr/include/c++/4.1.1/./backward/iostream.h

it looks like maybe it's not looking in this "4.1.1" directory
for iostream??


					SpB.


----------------------------------
To: maclean@ucar.edu
cc: sean.burns@Colorado.EDU
Subject: rtrun...
Date: Tue, 06 May 2008 15:33:22 -0600
From: Sean Burns <Sean.Burns@Colorado.EDU>


Gordon,

when i tried to do "check_aster" it gave me the following error:

 Tue May  6 15:25:34 MDT 2008
 ***** adamserver is not responding on duck ******
 ***** adamserver is not responding on duck ******
 ***** adamserver is not responding on duck ******
 ***** adamserver is not responding on duck ******
 ***** adamserver is not responding on duck ******
 ***** restarting adamserver on duck ******
 rtrun: Command not found.

i checked for "rtrun" with:

find /usr/local/aster/bin/. | grep rtrun

when i looked on russter2 this file is:

 which rtrun
 /usr/local/cuff/aster/bin/Linuxi686/rtrun

so i did:

 fgrep rtrun /usr/local/aster/World.linux 

 rm -f rtrun
 ../../imakeconfig/makedepend/makedepend -I/usr/lib/gcc-lib/1-redhat-linux/egcs-2.91.66/include -I/usr/include/g++-3 --   -I../../h  -Dlinux -D__i386__ -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE  -DFUNCPROTO=15 -DNARROWPROTO    -- Ingest.cxx Ingestor.cxx DataConnection.cxx ingest_rpc_procs.cxx ingest_rpc_svc.c ingest_control.cxx ingest.cxx rtrun.cxx file_ingest.cxx 


and on our new laptop this same check gives:

 fgrep rtrun /usr/local/aster/World.linux 
 rm -f rtrun
 ../../imakeconfig/makedepend/makedepend -I/usr/include -I/usr/include/c++/3.2.2 --   -I../../h  -Dlinux -D__i386__ -D_POSIX_SOURCE                              -D_BSD_SOURCE -D_GNU_SOURCE  -DFUNCPROTO=15 -DNARROWPROTO    -- Ingest.cxx Ingestor.cxx DataConnection.cxx ingest_rpc_procs.cxx ingest_rpc_svc.c ingest_control.cxx ingest.cxx rtrun.cxx file_ingest.cxx
 ../../imakeconfig/makedepend/makedepend: warning:  rtrun.cxx, line 67: cannot find include file "iostream"

does this "warning" matter?  it seems that it did not compile the
"rtrun" properly??

if you have any ideas about this please let me know...i'll call you
again in a few minutes...

thanks,

				SpB.





===============================Install Linux/Fedora:

i have some notes in:  ~sburns/install_fedora_dell_latitude400.txt

1. try to mimick the quacker for everything (ie, create "cuff" as the
user account, same root password, etc).

2. Tools needed to build and install aster software:
	gcc/g++		a recent version
	bison		from GNU too
	make,lex,rpcgen
		       
   make sure these are in your path.  the easiest way to do this
   is with "which"...ie:

 which g++
 /usr/bin/g++

 which bison
 /usr/bin/bison

 etc...

 as long as you load all the tools for software development with
 fedora i think you will get all these things...	
	
3. for some reason emacs was not installed on the dell inspiron 7500
(see if anything happens when you type "which emacs")...if this
happens i have the emacs rpm to install it...the rpms are on russter2
as:

   1694343 May  2 13:33 /home/staff/sburns/emacs-21.4-17.i386.rpm
  11091398 May  2 13:24 /home/staff/sburns/emacs-common-21.4-17.i386.rpm

to find out more about rpm type, "man rpm" or search on google.

basically, to install emacs you become root and do:

  rpm -ivh  emacs-21.4-17.i386.rpm

you should see something like:

warning: emacs-21.4-17.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:emacs                  ########################################### [100%]

do the same with:

 rpm -ivh  emacs-common-21.4-17.i386.rpm
 warning: emacs-common-21.4-17.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
 Preparing...                ########################################### [100%]
   1:emacs-common           ########################################### [100%]

----------------------------------------------------------------------
-- to set the HOSTNAME...note, need to be careful about this since it

could cause you to lose connectivity with the internet...and/or you
could screw up some other system on the 10.0.0.X network if you use
the same IP address they are using!!

look at the files on duck (10.0.0.8) for info about this...but the
important files are "/etc/sysconfig/network" and "/etc/hosts":

more  /etc/sysconfig/network.orig
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain

more  /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=duck


 more /etc/hosts.orig 
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1     localhost.localdomain   localhost

more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1               duck localhost.localdomain    localhost
10.0.0.4          russter2


----------------------------------------------------------------------
look at the .cshrc file which is on 10.0.0.8....and change
from using the "bash" shell to using "tcsh" shell (google this
for info about changing the default shell).



===============================Install "ndaq":

0. login as "cuff" and do most things as cuff unless specified otherwise.

1. become root, 

    cd /usr/local/
    mkdir ndaq
    chown cuff ndaq
    [exit as root]

2. get the ndaq code, ie, "ndaq.tar.gz" and put it in
   /usr/local/ndaq/  then do,

   gunzip ndaq.tar.gz
   tar -xvf ndaq.tar

3. now compile the ndaq code with:

  cd /usr/local/ndaq/build/x86
  ./configit.sh
  make
  make install

4. if all goes well i think the files are put into,

   /usr/local/ndaq/bin/

check this on the inspiron in the trailer (10.0.0.8) after jia
re-boots it...you should see all the normal stuff there, "ndaqstop",
"ndaqrestart", etc...

5. make a log for dumping ndaq info (do this as root):

 [root@duck cuff]# cd  /var/log/
 mkdir local
 [root@duck log]# cd local/
 [root@duck local]# touch cuff.log

6. there are some scripts for running the ndaq code (ndaq.sh).

mimic what is on 10.0.0.8, ie:

  /usr/local/ndaq/ndaq.sh



===============================Install "aster":

The aster directory can be placed anywhere on the system.  We will put
it in:

   /usr/local/aster/

The installed software resides entirely within the aster directory.

0. login as "cuff" and do most things as cuff unless specified otherwise.
   as with the ndaq code setup the directory beforehand...ie:

    [become root.] 

    cd /usr/local/
    mkdir aster
    chown cuff aster

    [exit as root.]

also need to setup the "projects" directory...ie,
"/usr/local/aster/projects/NIWOT/" 
take what is on 10.0.0.8.


To Install:

1. Choose where to put the ASTER tree, for example /usr/local:

   cd /usr/local

2. Un-tar the distribution:
  
   gunzip -c aster.tar.gz | tar xf -
	
3. Set the ASTER environment variable to the location of the aster directory.
   For example, if the aster directory is on /usr/local/aster:

   setenv ASTER /usr/local/aster     % if you are using tcsh
  
4. cd $ASTER
4.5 You may have to make changes to imakeconfig/cf/site.def, depending
   on what version of gcc you have and where gcc is installed:

    #define CplusplusDependIncludes -I/usr/local/include/g++-3
    #define DependFlags -DSVR4 -Dsun -I/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include
    #define LdPostLib -R/usr/local/gnu/lib

5. make -f Makefile.ini Makefile
6. make World >& World.linux
   Look over log file

    check for errors by doing:

     fgrep Err World.linux  | more

    you can also do a "tail" on "World.linux" and if
    it shows:

    tail World.linux 

    install in src/gps done
    make[3]: Leaving directory `/usr/local/aster/src/gps'
    install in src done
    make[2]: Leaving directory `/usr/local/aster/src'
    make[1]: Leaving directory `/usr/local/aster'

    Sun May  4 15:19:25 MDT 2008

    Full build of Release 1 of ASTER

  then this means it all might have worked!

7. make install

8. Install ingest and serial_ingest as suid-to-root programs.

   Become root, then
	ASTER=/usr/local/aster
	export ASTER
	PATH=$PATH:/usr/ccs/bin
	export PATH
	cd $ASTER/src/ingest
	make rootinstall

9. Set names of config and ingest server to whatever host will be
   running adamserver and ingest (usually the same host).

   cd $ASTER
   cat > default_config_server
   aster
   ctrl^d

   cd $ASTER
   cat > default_ingest_server
   aster
   ctrl^d

10. To configure a user's account (currently only the csh or tcsh shells
   are supported), add the following to their .login:

	setenv ASTER /usr/local/aster
	setenv PROJECT XXXXX
	source $ASTER/scripts/aster.login

    Add the following to their .cshrc:
	setenv ASTER ...
	source $ASTER/scripts/aster.cshrc

    Have the user logout and login, then do "which prep" to see
    if things are setup properly.

11. As root, copy $ASTER/adm/etc/init.d/aster to /etc/init.d.
    Change the userid if necessary. Create a link to /etc/rc3.d:

    cd /etc/rc3.d
    ln -s /etc/init.d/aster S80aster

12. As root, edit /etc/syslog.conf, adding lines from
	$ASTER/adm/etc/syslog.conf
    Create any necessary syslog files, as mentioned in 
	$ASTER/adm/etc/syslog.conf
    Send a HUP to syslog:  kill -HUP `cat /etc/syslog.pid`

13. If you are using VxWorks ADAMs, create $ASTER/config/hosts,
    adding any addresses and names that the ADAMS will need -
    usually this can be an empty file.  If not, it is in the format
    of /etc/hosts.

14. Create log directory:
    mkdir $ASTER/log

