EnglishJapanese Reload Front page List of pages Search Recent changes RSS of recent changes

Back to Manual page

Installation manual

Usually, RIBFDAQ is already installed in RIBFDAQ computers. Experimentalists don't have to install DAQ software into your computers. To change the configuration of DAQ, please read the Setup page. If you want to use our DAQ software, please refer this page.

babirlDAQ is a software package for RIBFDAQ including Event builder, Event sender, and some utilities. To take data from CAMAC/VME, NBBQ which includes device drivers is required. babirlDAQ and NBBQ run under Linux (from 2.2 to 2.6 kernel). Sometimes, our device driver don't have the compatibility with the latest kernel.


Linux distributions and Firewall

babirl can run under Linux (32/64 bit). Here, Scientific Linux is assumed, but, any distributions could be used.

babirl uses may non usual network ports such as 17502, 17511, 17512 ... You have to disable the firewall or open some ports (defined in include/bi-config.h). The easiest way is:

    (uncheck Enabled)

If you are not sure about SELinux, it makes easy if you disable SELinux (edit /etc/sysconfig/selinux):


required packages

Basic babirl

In the case of Scientific Linux, Commands



zlib-devel       (chkridf, prinfo)
ncurses-devel    (babicon)
readline-devel   (babicon)
expat-devel      (babiau, babild, babinfo)

For example, you can install by using yum,

yum install zlib-devel

with Web Utilities (apache + php)

babirl can be controlled from Web browser. To use web utilities, apache and php are required:


with Database (postgresql)

babirl can connect to postgresql to store Run and Scaler information. When we use time stamping system, the use of database helps us. In this case, some postgresql packages are required:


By tar file

Get a tar file from Download page.

cd /usr
tar zxvf babirl111210.tar.gz
ln -s babirl111210 babirl
cd babirl

By svn repository (from RIKEN inside only)

Please ask...

User mode babirl

Server mode babirl requires permission of the super user, but this feature is no good for most people. And this user mode babirl is suitable for a test bench of detectors. Please refer Test Bench

Compilation with DB access

If you try to use DB, please modify /usr/babirl/common.mk

# Use of DB

And compile,

make clean

Install of Web Utilities

Setting of httpd

Start httpd (if necessary):

/sbin/service httpd start

It is useful to start at the OS start up:

/sbin/chkconfig --level 35 httpd on

If you want to use web utilities in user directory, please modify /etc/httpd/conf/httpd.conf

<IfModule mod_userdir.c>
  #UserDir disabled
  UserDir public_html

Then, reload httpd

/sbin/service httpd reload

It is better to set the timezone in /etc/php.ini, like this:

; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = "Asia/Tokyo" 

Copy files

cd ~
chmod 755 $HOME         (or 711, if necessary) 
mkdir public_html/
cp -r /usr/babirl/webutil ./public_html/ 
chmod 777 public_html/webutil/xml
chmod 777 public_html/webutil/dat

First access to web utilities

Please access to http://USERHOST/~USERID/webutil, you could see:

Index page

Please edit user definition file : edituserdef.php

If not, for example, 403 Forbidden, please check the permission of directories and the setting of SELinux.

About setup of web utilities, please see DAQ/Manual/Setup/WebUtility.

Process controller (babimo)

The babimo is a daemon process for managing DAQ processes. This program is not a safe process, however very useful. You must not run this daemon for commonly used servers, better to use under DAQ computers, only.

It is useful to start at boot time (for Scientific Linux 6):

cp /usr/babirl/rcd/babimo /etc/rc.d/init.d/
/sbin/chkconfig --level 35 babimo on
/sbin/service babimo start

for CentOS, Rocky, Alma 7 or 8 case,

cp /usr/babirl/rcd/babimo.service /etc/systemd/system/
systemctl enable babimo
systemctl start babimo

Online analysis buffer

To use online analysis or monitor programs, babian is required. babian receives on-line data from the event builder. User can obtain on-line data through the shared memory. For data transfer for on-line, UDP/IP protocol is used. Then it is not guaranteed to receive all on-line data. And also the 1 block size must be less than 64KBytes.

It is useful to start at boot time:

cp /usr/babirl/rcd/babian /etc/rc.d/init.d/
/sbin/chkconfig --level 35 babian on
/sbin/service babian start


By tar file

Get a tar file from Download page. And copy file to /tmp directory.

cd /tmp
tar zxvf nbbq-****.tar.gz
cd nbbq-****/
make install

Event sender


To use your CC/NET as a babirl event sender, please install NBBQ and babirl. 'pcc' is the default device driver for CC/NET. However, NBBQ has a original device driver (bb-ccnet) developed by H.B. 'pcc' and 'bb-ccnet' conflict each other. So, to use NBBQ, unregistration of pcc is required.


In RIBFDAQ, the netboot system (diskless system) is available for VMIVME 7807 and 7700 with PXE boot. To register client VMIVME to the server (=g01), MAC address is required. During the PXE boot process, you can find MAC address on the displey. If you would like to use VMIVME with netboot (diskless), please tell us the MAC address.

Netboot environment

It is good idea to use diskless VME controller. In RIBF, VME controllers don't use disk drive, OS image is downloaded from the server.

To build netboot environment, please see Netboot.

Last-modified: Wed, 07 Sep 2022 19:25:54 HAST (538d)