Reference for DAQ-Middleware
Other references are available at
http://greentea.kek.jp/daqm/.
To run EchoReader-EchoMonitor:
- Get DVD images of the newest version of Scientific Linux(5.3) from network.
- Burn DVD's, then install Linux.
- Configure the system with referring the Manual for MLF-DAQ.
- firewall: disable, SELinux: disable, ntp: enable
- Check installed packages.
- xinetd: none
- python-devel: none
- gd: installed
- libpng: installed
- Login with GNOME. Install above packages by "Pull-down menu->Applications->Add/Remove Software".
- Adjust network parameter as the section 2.1.4 of the manual for MLF-DAQ
- As the desciption on p. 8 of Preparation of DAQ-Middleware, get and install neccessary libraries.
- In my case, I cannot get repo file by rpm. I used 'wget' to get rpm file.
(kek-daqmiddleware-for-mlf-repo-1-4.el5.noarch.rpm)
- Edit the rpm file, then install repo file by the rpm file.
- change the hostname of baseurl in repo file to www-jlc.kek.jp.
- the yum!
- /sbin/chkconfig omniNames off
- add bootComps entry into /etc/services as the section 2.3 of the Manual for MLF-DAQ.
- get and restore DAQ Components.(DaqComponents.2009.07.tar.gz)
- get and install Socket library.(SiTCP.2009.07.tar.gz)
- restore in the directory where DaqComponents is.
- make 'lib' directory in the same directory.
- move into restored 'SiTCP' directory, then issue 'make install'.
- comfirm the library is really created in 'lib' directory.
- Create EchoReaderComp as the example of source type component.(source-comp-2009.tar.gz)
- copy all the files in src/ directory into 'DaqComponents/src/'directory.
- in 'DaqComponents/src/'directory, issue 'make -f Makefile.EchoReader'.
- comfirm EchoReaderComp is really created in 'DaqComponents/bin' directory.
- Create EchoMonitorComp as the example of sink type component.(sink-comp.tar.gz)
- before making component, install ROOT.
- get packages of ROOT from http://root.cern.ch, but I cannot install properly. (ver. 5.22, 5.24)
- instead I copied ROOT which was used at the KEK-workshop into my system.
- copy all the files in 'histogram/' directory into 'DaqComponents/src/' directory.
- in 'DaqComponents/src/' directory, issue 'make -f Makefile.EchoMonitor.
- comfirm EchoMonitorComp is really created in 'DaqComponents/bin'directory.
- remake DaqOperatorComp although it already exists. confirm DaqOperatorComp is in 'DaqComponents/bin'.
- EchoReader uses port#7:echo-stream. change the entry of /etc/xinetd.d/echo-stream from disable to no. after editing issue '/etc/init.d/xinetd restart'.
- copy echo-monitor/config.xml into DaqComponents/ directory.
- set the host address in config.xml as 127.0.0.1, and change all the entry starting with /home/daq/... so as to fir my environment with absolute path.
- set daq_lib_path in run-local.py as the directory where socket library is installed.
- preparation is over. issue './run-local.py -c' to start daq system.