acdsn:daemon_installation
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
acdsn:daemon_installation [2012/08/21 17:03] – created sbolay | acdsn:daemon_installation [2012/09/08 14:40] – [For a complete installation of the acdsn server] sbolay | ||
---|---|---|---|
Line 3: | Line 3: | ||
It first listen to the RS485 network and if there is no backup master (slave) | It first listen to the RS485 network and if there is no backup master (slave) | ||
this daemon will take the hand! | this daemon will take the hand! | ||
- | |||
===== For a complete installation of the acdsn server ===== | ===== For a complete installation of the acdsn server ===== | ||
- | - Install packages | + | |
- | - Compile and install libconfig | + | - then keep the server on time to avoid time stamp error< |
- | - Reload libraries | + | aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch</ |
- | - Configure compile and install acdsn (-DACCESS or -DCONTROL or -DDRIVE | + | - update the installation< |
- | * copy binary in / | + | aptitude update && aptitude safe-upgrade</ |
+ | | ||
+ | | ||
+ | - Compile and 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<code bash> | ||
+ | | ||
+ | *or<code bash> | ||
+ | / | ||
+ | - Configure compile and install acdsn | ||
+ | * Modify Makefile.am with options: | ||
+ | autoreconf -fvi | ||
+ | | ||
+ | * copy binary in / | ||
* copy init file in / | * copy init file in / | ||
- configure files in /etc/acdsn (especially /dev/ttyS?) | - configure files in /etc/acdsn (especially /dev/ttyS?) | ||
- | | + | - modify the [[acdsn: |
- | | + | - add the [[acdsn: |
- | - add the tmpfs init script into /etc/init.d and update-rc.d tmpfs defaults 10 | + | - modify |
- | + | ||
- | - install expect package to create a remote ssh tunnel (aptitude install expect) | + | |
- | - create a certificat (ssh-keygen -t rsa) | + | |
- | - export | + | |
- | - configure root bashrc (export EDITOR=vi) | + | |
- | - add reverse ssh tunnel connection in crontab | + | |
- | */5 * * * * /bin/bash / | + | |
- | */5 * * * * /bin/bash / | + | |
+ | 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 / | ||
+ | */5 * * * * /bin/bash / | ||
+ | ===== Fine Tunning ===== | ||
+ | ==== apt-xapian-index ==== | ||
+ | => It is to hard for the kernel | ||
+ | <code bash> | ||
- | 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 / | + | ==== monit ==== |
+ | __From man page:__\\ | ||
+ | // | ||
+ | Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.// | ||
+ | <code bash> | ||
+ | === Reference === | ||
+ | * [[http:// | ||
+ | * You my be interested also to the respawn option of the [[http:// |
acdsn/daemon_installation.txt · Last modified: 2012/10/03 10:02 by sbolay