User Tools

Site Tools


acdsn:daemon_installation

This is an old revision of the document!


ACDSN Installation

This is the master daemon for the monitoring project. It first listen to the RS485 network and if there is no backup master (slave) this daemon will take the hand!

For a complete installation of the acdsn server

  1. ssh to the FoxG20 box (root/netusg20)
  2. Install packages (aptitude update && aptitude install automake make libtool flex byacc bison g++ libldap2-dev texinfo)
  3. Compile and install libconfig (./configure && make && make install)
  4. Reload libraries (ldconfig)
  5. Configure compile and install acdsn (-DACCESS or -DCONTROL or -DDRIVE in Makefile.am and then ./configure && make && make install)
    • copy binary in /usr/bin/acdsn
    • copy init file in /etc/init.d/acdsn and run update-rc.d acdsn
  6. configure files in /etc/acdsn (especially /dev/ttyS?)
  7. keep the server on time (aptitude install ntpdate and then execute ntpdate ntp.metas.ch)
  8. modify the /etc/default/tmpfs file to mount heavy files/directories into memory
  9. add the tmpfs init script into /etc/init.d and update-rc.d tmpfs defaults 10
  1. install expect package to create a remote ssh tunnel (aptitude install expect)
  2. create a certificat (ssh-keygen -t rsa)
  3. export the public key on the remote host (cat id-rsa.pub » authorized_keys)
  4. configure root bashrc (export EDITOR=vi)
  5. add reverse ssh tunnel connection in crontab
    */5 * * * * /bin/bash /media/data/connect.sh -u sbolay -t bolay.co -e /media/data/.add-rsa -l 1091 -r 9031
    */5 * * * * /bin/bash /media/data/connect.sh -u sbolay -t bolay.co -e /media/data/.add-rsa -l 22 -r 9023

If libconfig is missing, please

  • configure (./configure) it,
  • compile (make) it from the libconfig (1.4b4) folder then,
  • check (make check) it and
  • then install it (sudo make install).
  • Finally you may have to call ldconfig alone or /usr/bin/ldconfig -l /usr/local/lib/libconfig.so.9
acdsn/daemon_installation.1345576496.txt.gz · Last modified: 2012/08/21 19:14 by sbolay