% here are attempts to install the ndaq code on the dell inspiron 7500
%
% this file is:  ~sburns/install_ndaq_dell_inspiron7500.txt


--------------------Tue Aug  5 09:35:20 MDT 2008

Notes on setting up the inspiron 7500 laptop to replace the quacker.

IMPORTANT: to go from running ndaq only, to running both ndaq and
aster use "/sbin/chkconfig".

The idea is to setup a few directories so that the laptop can be run
with both ndaq/aster running as a stand-alone data-collection
system...and it can also run ndaq with russter2 running aster (as the
quacker/russter2 system is currently setup).  And to make switching back
and forth between these settings as painless as possible.

-------Networking stuff (note, be careful when changing the network
settings so as not to interfere with quacker, assuming the quacker is
up and running).

when running "stand-alone" i was calling this laptop, "duck".  

I believe the only thing that needs to be changed is
"/etc/sysconfig/network" and "/etc/hosts".

on quacker:
===========
[cuff@quacker ~]$ date
Mon Aug  4 08:23:30 MDT 2008
[cuff@quacker ~]$ uname -a
Linux quacker 2.4.22 #2 Wed Nov 19 14:01:28 MST 2003 i686 unknown


[cuff@quacker ~]$ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               quacker localhost localhost.localdomain quacker.localdomain
10.0.0.4                russter

more  /proc/sys/kernel/hostname
quacker

more  /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=quacker


on quacker2/duck 
================

i made the following changes:

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

** after making changes, and a reboot of "duck", found:

 more  /proc/sys/kernel/hostname 
 duck

 uname -a
 Linux duck 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686 i686 i386 GNU/Linux

basically, if you can ping/ssh to other stuff on the 10.0.0.X network
then your network settings are probably ok.

-----------

We'll start with setting things up to be a ndaq system connected
to russter2 (this is basically a replacement for the quacker).

---1. Make sure that the aster software does not start on
boot-up....do this with:

chkconfig --level 2345 aster off

then you can do:

 /sbin/chkconfig --list aster
aster           0:off   1:off   2:on    3:on    4:on    5:on    6:off

 /sbin/chkconfig --list ndaq
ndaq            0:off   1:off   2:on    3:on    4:on    5:on    6:off

once you turn "off" the aster stuff (as root) you will get:

[root@duck local]# /sbin/chkconfig --list aster
aster           0:off   1:off   2:off   3:off   4:off   5:off   6:off

---2. go to /usr/local and check on the "ndaq" directories.  these are:

drwxr-xr-x  7 cuff users      4096 May  7 12:18 ndaq              % "active" version of ndaq.
drwxr-xr-x  7 root root       4096 Nov  7  2007 ndaq_orig         % after compiling ndaq code
drwxr-xr-x  7 cuff cuff       4096 Aug  5 10:09 ndaq_quacker      % for quacker replacement
drwxr-xr-x  7 cuff cuff       4096 May  7 12:18 ndaq_stand_alone  % in trailer with 4-port edgeport

if you want to use this laptop as the quacker replacement then do:

 mv ndaq ndaq_old
 cp -r ndaq_quacker ndaq

And then you should have all the necessary settings, etc and it should
be ready to go.  theoretically, this should be all you need.  On
bootup, it would be a good idea to make sure the EDGEPORT is being
recognized...


---3. running as a stand along ndaq/aster data-collection system.

For running as a stand-alone system use the following:

chkconfig --add aster
chkconfig --add ndaq

note, that the "aster" tree cannot be taken directly off of russter2
since the OS's differ.  So we need to use the aster tree/software that
was compiled on the inspiron7500 and then setup the ops files to
correspond to what is on russter2.  So, the files added to the
inspiron7500 are:

 cd /usr/local/aster/projects/

drwxr-xr-x 12 cuff cuff     4096 May  6 15:25 NIWOT
-rw-rw-r--  1 cuff cuff 73297920 Aug  4 10:58 NIWOT_ops_all_080804.tar
drwxrwxr-x 62 cuff cuff     4096 Nov 28  2007 NIWOT_russter2
drwxr-xr-x 12 cuff cuff     4096 May  6 15:25 NIWOT_trailer    % these are the ops for 
                                                                 running with cr21x in trailer.
du -sk NIWOT*
211180  NIWOT
71660   NIWOT_ops_all_080804.tar
81280   NIWOT_russter2
211180  NIWOT_trailer

an important directory may be:

dir NIWOT/scripts/
total 200
drwxr-xr-x  2 cuff cuff 4096 May  6 15:59 .
drwxr-xr-x 12 cuff cuff 4096 May  6 15:25 ..
-rwxr-xr-x  1 cuff cuff  102 May  6 14:43 archive_duck
-rwxr-xr-x  1 cuff cuff  107 Sep 14  1998 archive_duck~
-rwxr-xr-x  1 cuff cuff  107 Sep 14  1998 archive_quacker
-rwxr-xr-x  1 cuff cuff   26 Sep 14  1998 check_aster
-rwxr-xr-x  1 cuff cuff 1776 Oct 23  1998 cockpit
-rwxr-xr-x  1 cuff cuff  365 May  6 14:45 covar_duck
-rwxr-xr-x  1 cuff cuff  368 Jun 18  2004 covar_duck~
-rwxr-xr-x  1 cuff cuff  368 Jun 18  2004 covar_quacker
-rwxr-xr-x  1 cuff cuff  417 Jul  8  2007 covar_redo
-rwxr-xr-x  1 cuff cuff  417 Jul  8  2007 covar_redo~
-rwxr-xr-x  1 cuff cuff  603 Jan  4  2004 covar_redo%
-rwxr-xr-x  1 cuff cuff  603 Apr 22  2003 covar_redo_old
-rwxr-xr-x  1 cuff cuff  417 Jul 14  2004 covar_redo_old2
-rwxr-xr-x  1 cuff cuff  416 Nov 15  2005 covar_redo_old3
-rwxr-xr-x  1 cuff cuff  417 Jan  6  2006 covar_redo_old4
-rwxr-xr-x  1 cuff cuff  695 May  6 15:57 duck.up
-rwxr-xr-x  1 cuff cuff  689 May  6 14:45 duck.up~
-rwxr-xr-x  1 cuff cuff  689 May  6 14:45 duck.up.orig
-rwxr-xr-x  1 cuff cuff  911 May  6 15:59 init.d_ndaq
-rwxr-xr-x  1 cuff cuff  905 May  6 15:20 init.d_ndaq~
-rwxr-xr-x  1 cuff cuff  375 May  6 15:22 ndaq.sh
-rwxr-xr-x  1 cuff cuff  375 Jul 20  2007 ndaq.sh~
-rwxr-xr-x  1 cuff cuff  701 Jun 18  2004 quacker.up

I'm not sure how we will deal with these (and/or what
type of mods will need to made to them)....

I did the following:

 cd /usr/local/aster/projects/NIWOT
 mv ops1 ops1_standalone
 cp -r ../NIWOT_russter2/ops1 /usr/local/aster/projects/NIWOT

this should put the correct "ops1" files into the NIWOT directory.

what should we call this laptop, quacker??  (or does it matter?)...the
name of the raw data file is defined in:

 more ops1/archive_config

 ie:

 ## August 23, 2007, SpB.
 quacker 0,2,200,201,202,203,204,205,206,207,216 "all/nwt%y%m%d.%H%M%S"

and the other important thing is to have things correct in
"ingest.conf", ie:

 more ops1_standalone//ingest.conf

 #
 # $Log: ingest.conf,v $
 # Revision 1.1  2002/08/07 23:29:01  maclean
 # initial checkin
 #
 #
 duck      duck    socket


so, as long as these things are correct maybe everything else will
fall into line?!?

note, i put:

/usr/local/isff/aster/projects/NIWOT/ops1_standalone/

on russter2 for future reference.



----------------from the file,
                ~sean/install_notes_adamaster_from_ibm_thinkpad.txt
                (from sept 2003):

# as root
cd /usr/local
mkdir cuff
chown sburns:sburns cuff
chmod g+ws cuff

# as sburns

cd /usr/local/cuff

setenv CVS_RSH ssh
setenv CVSROOT :ext:sean@linus.atd.ucar.edu:/code/cvs

cvs co aster/INSTALL aster/Imakefile aster/Makefile.ini aster/cal_files aster/config aster/imakeconfig aster/include aster/isff aster/scripts aster/src

# add these lines to $HOME/.login
        setenv ISFF /usr/local/cuff
        setenv ASTER $ISFF/aster
        source $ASTER/scripts/aster.login

        setenv CVS_RSH ssh
        setenv CVS_ROOT :ext:sean@linus.atd.ucar.edu:/code/cvs

# add these lines to $HOME/.cshrc
        if (! $?ISFF ) source ~/.login
        source $ASTER/scripts/aster.cshrc

#
source $HOME/.cshrc
cd $ASTER

more INSTALL

make -f Makefile.ini Makefile
make World |& tee World.linux

# become root
su -
export ASTER=/usr/local/cuff/aster
cd $ASTER/src/ingest
make rootinstall
exit

# Quacker code (tar'd files from quacker)
cd /usr/local/cuff
mkdir quacker
cd quacker
tar xzf adam_030924.tar.gz
cd adam
make clean
make



--------------------Fri May 30 07:59:25 MDT 2008

* for some reason ingest is not up and running....tried doing:

 /etc/init.d/aster stop
Stopping aster processes: covar archive ingest nc_server adamserver

then,

ndaqstatus duck
*** System Status *********************************************************
Start time:   Fri May 30 08:03:23 2008
Restart time: Fri May 30 08:03:23 2008
                       Socket  Socket    Max    Min
  Time  Sample    Lost  Write    Temp Socket Socket Socket Buffered   Total Archive
  Diff    Rate Samples Errors Unavail  Write  Write   Rate  Samples Samples  BadTTs
  msec     #/s       #      #       #  bytes  bytes byte/s        #       #       #
     0       0       0      0       0      0999999999      0        0       1       0
***************************************************************************

*** A2D Status ****************************
A2D    Total    5min   Total   User
      Sample  Missed  Missed Intrpt
        Rate Samples Samples   Rate
         #/s       #       #    #/s
           0       0       0      0

    A2D Sample
channel   Rate MinV MaxV  VRes
      #    #/s    V    V    uV
*******************************************

*** Serial Port Status ****************************************************************************
port                           flow   Msg Sep Msg  read sampl  min  max readerrs writerrs overflow
name         chan   baud p/d/s cntl   Sep Loc Len  /sec  /sec read read 5min cum 5min cum 5min cum
/dev/ttyUSB2  200   9600 n/8/1 none \0x0a EOM   0     0     0    0    0   0    0   0    0   0    0
***************************************************************************************************

check_aster
Fri May 30 08:05:17 MDT 2008

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

            ------------- Server tasks -------------
host            user   pid    start exectime process
duck        cuff      6212 08:01 ? 00:00:00 adamserver
duck        cuff      6214 08:01 ? 00:00:00 nc_server

            ------------- Ingest tasks -------------
host            user   pid    start exectime process
duck        root      2354 May29 ? 00:00:00 ingest
duck        root      6451 08:03 ? 00:00:00 duck 

            ------------- Archive tasks -------------
host            user   pid    start exectime process
duck        root      6466 08:03 ? 00:00:00 archive duck .

            -------------- Covar calcs --------------
host            user   pid    start exectime process
duck        root      6471 08:03 ? 00:00:00 covar -S -a duck

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

            -------------- Ingest Statistics ----------
station     port                    status   up since   sample/sec serialErrs
duck        36132                   open   May 30 08:03      0.00         0
 
            -------------- Living adams  --------------
duck
 
 
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      10760452   3957048   6247988  39% /
/dev/mapper/VolGroup00-LogVol00
                      10760452   3957048   6247988  39% /
            -----------------------------------------
Fri May 30 08:05:18 MDT 2008





-------------------------------------------------------------
/usr/local/aster/projects/NIWOT/ops1[56]: rserial duck 200
*** use ^d or ^c to terminate rserial
send socket open to duck
01+0110.  02+13.32  03+10.66  04+1494.  05-19.10  06+293.8  07+6999.  08+0.000 \r\n
01+0110.  02+13.31  03+10.66  04+1494.  05-19.10  06+293.8  07+6999.  08+0.000 \r\n
01+0110.  02+13.30  03+10.66  04+1494.  05-19.03  06+293.8  07+6999.  08+0.000 \r\n
01+0110.  02+13.29  03+10.66  04+1494.  05-19.03  06+293.8  07+6999.  08+0.000 \r\n
01+0110.  02+13.28  03+10.67  04+1495.  05-19.03  06+294.0  07+6999.  08+0.000 \r\n
01+0110.  02+13.28  03+10.66  04+1495.  05-18.96  06+294.0  07+6999.  08+0.000 \r\n

on quacker/russter2 ucb logger is:

(channel_config)
quacker            iv1624  0       202     0       on      obsolete        9600.8.8.1      cr10_9

rserial quacker 202
*** use ^d or ^c to terminate rserial
send socket open to quacker
098\0xffffffff\r\n
1,3060,.267,.198,9.8928,4991,2.208,.688,24.18,.191,.095\0xffffffff\r\n
1,3060,.277,.2,9.7877,4991.3,2.207,.688,24.18,.191,.093\0xffffffff\r\n
1,3060,.233,.196,9.6826,4990.7,2.207,.688,24.18,.191,.09\0xffffffff\r\n
1,3060,.221,.191,9.5775,4991.7,2.208,.688,24.18,.191,.103\0xffffffff\r\n
1,3060,.234,.191,9.4724,4990.7,2.207,.688,24.18,.191,.095\0xffffffff\r\n


=================== Using mini-com ==========================
(make sure to stop ndaq if you want to access this channel!).

minicom ttyUSB2

more  /etc/minirc.ttyUSB2
# Machine-generated file - use "minicom -s" to change parameters.
pr port             /dev/ttyUSB2
pu baudrate         9600
pu bits             8
pu parity           N
pu stopbits         1
pu minit            
pu mreset           
pu mhangup          
pu mdialcan         
pu rtscts           No 


% use this for full login as root:
su - 

------------------------------------------------

some additional steps to do to get things setup correctly:

============1. Modify /etc/inittab =====================================

Modify /etc/inittab so it doesn't start Xwindows...modify the line:

id:5:initdefault:

to be:

id:3:initdefault:



more /etc/inittab 
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.  
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:5:once:/etc/X11/prefdm -nodaemon

============2. make a log file for dumping ndaq info =====================================


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


============3. check protections on USB devices =====================================

% how to setup the protections for the USB devices.

 /usr/local/ndaq[76]: ls -lag /dev/ttyUSB0 
 crw-rw---- 1 uucp 188, 0 May  7 11:14 /dev/ttyUSB0

this will not work....need it to be:

 ls -lag /dev/ttyUSB0
 crw-rw-rw- 1 uucp 188, 0 May  7 12:12 /dev/ttyUSB0

make permanent change:

 cd /etc/udev/rules.d/

original file:

 fgrep USB 50-udev.rules
KERNEL=="tts/USB[0-9]*",        NAME="%k", GROUP="uucp", MODE="0660"
KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", SYMLINK+="pilot", GROUP="uucp", MODE="0660"
KERNEL=="ttyUSB*", SYSFS{product}=="palmOne Handheld*", SYMLINK+="pilot", GROUP="uucp", MODE="0660"
KERNEL=="ttyUSB*", SYSFS{product}=="Handspring Visor*", SYMLINK+="pilot", GROUP="uucp", MODE="0660"

make the "tty" line look like:

KERNEL=="tty",                  NAME="%k", GROUP="tty", MODE="0666", OPTIONS="last_rule"

( tried using "99-aster.rules", but this did not work ):
[root@duck rules.d]# more 99-aster.rules 
KERNEL=="tty[A-Z]*",            NAME="%k", GROUP="uucp", MODE="0666"


============4. Can try running ndaq by hand for errors =============================

running ndaq by hand:

 ndaq -e -c channels.txt -s duck duck
socket to duck port 8000: getSendBufferSize()=50424
RawSampleBuffer(id=3086850960,Non-RT,prior=0,joinable,cancel=deferred) run...
SensorPortHandler(id=3076361104,Non-RT,prior=0,joinable,cancel=deferred) run...
Opening: /dev/ttyUSB0
IOException in main: IOException: /dev/ttyUSB0: open: Permission denied


============5. edit /etc/syslog.conf to output logstuff ================================

diff /etc/syslog.conf /etc/syslog.conf~ 
27,30d26
< 
< # CUFF syslog messages
< local4.debug                                                  /dev/console
< local4.debug                                                  /var/log/local/cuff.log

(note, the above spaces should be "tabs", not only spaces)

also, i called this "cuff.log" since that is what is on the quacker...

kill -HUP syslog...and this will restart...in /var/log/messages you
should see something like:

May  7 11:45:39 duck syslogd 1.4.1: restart.


============6. link stuff to /etc/rc.d/rc3.d ================================

lrwxrwxrwx  1 root root   15 May  7 11:42 S99aster -> ../init.d/aster
lrwxrwxrwx  1 root root   14 May  7 12:17 S99ndaq -> ../init.d/ndaq

(do this as root)

cd /etc/rc3.d/
ln -s /etc/init.d/aster S99aster
ln -s /etc/init.d/ndaq S99ndaq


============7. make sure things get called correctly in the init.d stuff  ===================

/etc/rc.d/init.d[136]: dirg :
drwxr-xr-x  2 root root  4096 May  7 12:17 .
drwxr-xr-x 10 root root  4096 Nov  8 14:19 ..
-rwxr-xr-x  1 root root   773 May  7 12:04 aster
-rwxr-xr-x  1 root root   780 May  6 16:36 aster~
-rwxrwxrwx  1 root root   716 May  6 16:08 ndaq

diff aster aster~ 
21c21
<   su - $auser -c "source .login; rtrun -r 10 adamserver; rtrun -n -5 nc_server; ingest"
---
>   su - $auser -c "source .bash_profile; rtrun -r 10 adamserver; rtrun -n -5 nc_server; ingest"

also, add a link 


----------------
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

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

To turn off the aster boot script:

chkconfig --level 2345 aster off


[root@duck ndaq]# /sbin/chkconfig --list aster
aster           0:off   1:off   2:on    3:on    4:on    5:on    6:off

[root@duck ndaq]# /sbin/chkconfig --list ndaq
ndaq            0:off   1:off   2:on    3:on    4:on    5:on    6:off





edgeport seen on reboot:   fgrep Edge /var/log/messages.1 

May  2 15:03:02 duck kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Edgeport TI 1 port adapter
May  2 15:03:02 duck kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Edgeport TI 2 port adapter
May  2 15:03:02 duck kernel: io_ti 1-1.1:1.0: Edgeport TI 2 port adapter converter detected
May  2 15:03:02 duck kernel: usb 1-1.1: Edgeport TI 2 port adapter converter now attached to ttyUSB0
May  2 15:03:02 duck kernel: usb 1-1.1: Edgeport TI 2 port adapter converter now attached to ttyUSB1
May  2 15:03:02 duck kernel: io_ti 1-1.2:1.0: Edgeport TI 2 port adapter converter detected
May  2 15:03:02 duck kernel: usb 1-1.2: Edgeport TI 2 port adapter converter now attached to ttyUSB2
May  2 15:03:02 duck kernel: usb 1-1.2: Edgeport TI 2 port adapter converter now attached to ttyUSB3
May  2 15:03:02 duck kernel: drivers/usb/serial/io_ti.c: Edgeport USB Serial Driver v0.7


NOW, using the new aster code from jieluns laptop (see below), i
did:

** here is what i did to try and install aster on quacker2:

1. get aster code from russter2...move to 10.0.0.8 (quacker2),

2. mv to /usr/local and then do (note, do this as "cuff"):

  tar -xvf russter2_aster_backup_080502.tar 

  [note, i needed to create the aster directory as root, and chown aster]

3. add,

export ASTER=/usr/local/aster  to bashrc
or,
setenv ASTER /usr/local/aster  to cshrc

4. cd $ASTER

5. check imakeconfig/cf/site.def 
   (may have to make changes depending on the form of gcc installed)

6. make -f Makefile.ini Makefile

7. make World >& World.linux

 - check World.linux logfile, ie:

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

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


--it looks like it worked??

make install
installing in ./imakeconfig...
make[1]: Entering directory `/usr/local/aster/imakeconfig'
installing in imakeconfig/imake...
make[2]: Entering directory `/usr/local/aster/imakeconfig/imake'
install -c -s  imake /usr/local/aster/bin/Linuxi686/imake
install in imakeconfig/imake done
make[2]: Leaving directory `/usr/local/aster/imakeconfig/imake'
installing in imakeconfig/makedepend...
make[2]: Entering directory `/usr/local/aster/imakeconfig/makedepend'
install -c -s  makedepend /usr/local/aster/bin/Linuxi686/makedepend
install in imakeconfig/makedepend done
make[2]: Leaving directory `/usr/local/aster/imakeconfig/makedepend'
installing in imakeconfig/cf...
make[2]: Entering directory `/usr/local/aster/imakeconfig/cf'
install in imakeconfig/cf done
make[2]: Leaving directory `/usr/local/aster/imakeconfig/cf'


[root@duck init.d]# ls /usr/local/aster/adm/etc/init.d/aster 
/usr/local/aster/adm/etc/init.d/aster
[root@duck init.d]# cp /usr/local/aster/adm/etc/init.d/aster .
[root@duck init.d]# cd /etc/rc3.d/
[root@duck rc3.d]# ln -s /etc/init.d/aster  S99aster
[root@duck rc3.d]# ls -lag | grep aster
lrwxrwxrwx  1 root   17 May  6 16:34 S99aster -> /etc/init.d/aster




----------------------------

I found the version of aster that we used for jieluns
laptop...it's:

-rw-r--r--    1 sburns   aster     5427200 May 20  2007 aster_ndaq_code_070515.tar

(and i ftp'ed this up to russter2 and the duck).


notes from putting ndaq/aster on jieluns laptop (this
is from May 18, 2007):

Friday, May 18th, 2007 Visit:
-----------------------------

* for building ndaq (on jieluns old dell) do:

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

* also, to change the bootup on a dual boot linux system modify
  /etc/grub.conf

* when we tried to build aster it was missing the "rfid.c" file (which
  was something related to something steve oncley was doing?).







------------------------------------------
Fri May  2 13:16:56 MDT 2008

** here is what i did to try and install aster on quacker2:

1. get aster code from russter2...move to 10.0.0.8 (quacker2),

2. mv to /usr/local and then do (note, do this as "cuff"):

  tar -xvf russter2_aster_backup_080502.tar 

  [note, i needed to create the aster directory as root, and chown aster]

3. add,

export ASTER=/usr/local/aster  to bashrc
or,
setenv ASTER /usr/local/aster  to cshrc

4. cd $ASTER

5. check imakeconfig/cf/site.def 
   (may have to make changes depending on the form of gcc installed)

6. make -f Makefile.ini Makefile

7. make World >& World.linux

 - check World.linux logfile, ie:

8. make install

9. Install ingest and serial_ingest as suid-to-root programs.
   Become root, then
        ASTER=/usr/local/aster
        export ASTER
        cd $ASTER/src/ingest
        make rootinstall

10. become "cuff" again:

   cd $ASTER
   cat > default_config_server
   duck
   ctrl^d

   cd $ASTER
   cat > default_ingest_server
   duck
   ctrl^d


tail /var/log/messages
May  4 04:03:05 duck syslogd 1.4.1: restart.
May  6 21:57:17 duck archive(duck)[9682]: gethostbyname(duck): cannot find address
May  6 21:57:17 duck archive(duck)[9682]: duck ingest: RPC: Unknown host 



-----------------networking stuff:

on quacker:

more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=quacker

on quacker2, i changed this from:

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

note, on the quacker in /etc/hosts this is:

127.0.0.1               quacker localhost localhost.localdomain quacker.localdomain

** then did a reboot of the duck and found:

 more  /proc/sys/kernel/hostname 
 duck

 uname -a
 Linux duck 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686 i686 i386 GNU/Linux







** below is some stuff (emacs) added to the redhat installation on dell inspiron 7500:

it looks like we have fedora6 on the inspiron:

rpm -qip emacs-common-21.4-17.i386.rpm
warning: emacs-common-21.4-17.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Name        : emacs-common                 Relocations: (not relocatable)
Version     : 21.4                              Vendor: Red Hat, Inc.
Release     : 17                            Build Date: Thu 03 Aug 2006 01:04:51 PM MDT
Install Date: (not installed)               Build Host: ls20-bc2-14.build.redhat.com
Group       : Applications/Editors          Source RPM: emacs-21.4-17.src.rpm
Size        : 32654813                         License: GPL
Signature   : DSA/SHA1, Tue 03 Oct 2006 07:16:21 PM MDT, Key ID b44269d04f2a6fd2
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.gnu.org/software/emacs/
Summary     : Emacs common files
Description :
Emacs is a powerful, customizable, self-documenting, modeless text
editor. Emacs contains special code editing features, a scripting
language (elisp), and the capability to read mail, news, and more
without leaving the editor.

This package contains all the common files needed by emacs or emacs-nox.

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%]


...this seemed work, but actually needed the emacs software first!, ie:

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


this worked!

also, modified .bashrc with:

 # User specific aliases and functions
 alias e='emacs -nw'
 alias dir='ls -la'
 alias cd='cd \!*; set prompt = "%B`pwd`[\\!]: " '



------------------------------------------
% Wed Nov  7 11:57:17 MST 2007

steps:

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

------------------------------------------
Mon Nov 12 09:27:48 MST 2007



------------------------------------------
Sat Nov 10 11:39:46 MST 2007

output of:  ./configit.sh

[cuff@localhost x86]$ ./configit.sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for main in -lpthread... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking whether closedir returns void... no
checking for error_at_line... yes
checking whether gcc needs -traditional... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for floor... no
checking for gethostbyname... yes
checking for gettimeofday... yes
checking for memset... yes
checking for mkdir... yes
checking for putenv... yes
checking for regcomp... yes
checking for rint... no
checking for select... yes
checking for socket... yes
checking for strchr... yes
checking for strerror... yes
checking for tzset... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating aircoa/Makefile
config.status: creating lib/atdISFF/Makefile
config.status: creating lib/atdTermio/Makefile
config.status: creating lib/atdUtil/Makefile
config.status: creating lib/dsc/Makefile
config.status: creating ndaq/Makefile
config.status: creating relay_util/Makefile
config.status: creating serial_util/Makefile
config.status: creating test/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands



------------------------------------------
make  all-recursive
make[1]: Entering directory `/usr/local/ndaq/build/x86'
Making all in lib
make[2]: Entering directory `/usr/local/ndaq/build/x86/lib'
make  all-am
make[3]: Entering directory `/usr/local/ndaq/build/x86/lib'
if g++ -DHAVE_CONFIG_H -I. -I../../../src/lib -I.. -I../../../src/lib    -O2 -Wall -MT Exception.o -MD -MP -MF ".deps/Exception.Tpo" -c -o Exception.o `test -f 'atdUtil/Exception.cpp' || echo '../../../src/lib/'`atdUtil/Exception.cpp; \
        then mv -f ".deps/Exception.Tpo" ".deps/Exception.Po"; else rm -f ".deps/Exception.Tpo"; exit 1; fi
/bin/sh: g++: command not found
make[3]: *** [Exception.o] Error 1
make[3]: Leaving directory `/usr/local/ndaq/build/x86/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/ndaq/build/x86/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/ndaq/build/x86'
make: *** [all] Error 2




------------------------------------------
[cuff@localhost x86]$ ./configit.sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
------------------------------------------

