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
- ssh to the FoxG20 box and login (root/netusg20)
- then keep the server on time to avoid time stamp error
aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch
- update the installation
aptitude update && aptitude safe-upgrade
- Install packages
aptitude update && aptitude install automake make libtool flex byacc bison g++ libldap2-dev texinfo
- Compile and install libconfig
./configure && make && make install)
- If you get libtool: Version mismatch error.
This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from libtool 2.2.6b. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again.
- do:
autoreconf --force --install
- Reload libraries
ldconfig
- Configure compile and install acdsn
- Modify Makefile.am with options: (-DACCESS or -DCONTROL or -DDRIVE)
autoreconf -fvi ./configure && make
- copy binary in /usr/bin/acdsn (make install not yet implemented)
- copy init file in /etc/init.d/acdsn and run update-rc.d acdsn
- configure files in /etc/acdsn (especially /dev/ttyS?)
- modify the /etc/default/tmpfs file to mount heavy files/directories into memory
- add the tmpfs init script into /etc/init.d and update-rc.d tmpfs defaults 10
If you want to make a automatic reverse ssh tunnel, you can add:
- install expect package to create a remote ssh tunnel
aptitude install expect
- create a certificat
ssh-keygen -t rsa
- export the public key on the remote host
cat id-rsa.pub >> authorized_keys
- configure root bashrc
export EDITOR=vi
- 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.1345584745.txt.gz · Last modified: 2012/08/21 21:32 by sbolay