acdsn:daemon_installation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| acdsn:daemon_installation [2012/08/21 19:42] – [For a complete installation of the acdsn server] sbolay | acdsn:daemon_installation [2012/10/03 10:02] (current) – [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 ===== | ||
| - | - ssh to the [[http:// | + | - ssh to the [[http:// |
| - | - Install packages | + | - update the debian source-list with your favorite debian package mirror< |
| - | - Compile and install [[http:// | + | vi / |
| - | - Reload libraries | + | - keep the server on time to avoid time stamp error< |
| - | - Configure compile and install acdsn (-DACCESS or -DCONTROL or -DDRIVE | + | aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch</ |
| - | * copy binary in / | + | - update the installation< |
| + | aptitude update && aptitude safe-upgrade</ | ||
| + | - Install packages<code bash> | ||
| + | | ||
| + | - Compile and install [[http:// | ||
| + | | ||
| + | * 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?) | ||
| - | - keep the server on time (aptitude install ntpdate and then execute ntpdate ntp.metas.ch) | ||
| - modify the [[acdsn: | - modify the [[acdsn: | ||
| - | - add the [[acdsn: | + | - add the [[acdsn: |
| + | chmod +x tmpfs | ||
| + | | ||
| + | //OR | ||
| + | insserv tmpfs | ||
| + | </ | ||
| + | - modify the [[acdsn: | ||
| - | | + | If you want to make an automatic reverse ssh tunnel, you can add: |
| - | - create a certificat | + | |
| - | - export the public key on the remote host (cat id-rsa.pub >> authorized_keys) | + | |
| - | - configure root bashrc | + | - create a certificat<code bash> |
| + | | ||
| + | - export the public key on the remote host<code bash> | ||
| + | | ||
| + | - configure root bashrc<code bash> | ||
| + | | ||
| - add reverse ssh tunnel connection in crontab< | - 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> | ||
| - | */5 * * * * /bin/bash / | + | ==== Less is More ==== |
| - | */5 * * * * /bin/bash / | + | http://linux.koolsolutions.com/2009/05/07/how-small-can-you-make-your-linux-system-part-1/ |
| - | </code> | + | |
| - | If libconfig is missing, please | + | ==== monit ==== |
| - | * configure (./configure) it, | + | __From man page:__\\ |
| - | * compile (make) it from the libconfig (1.4b4) folder then, | + | // |
| - | * check (make check) it and | + | Monit conducts automatic maintenance |
| - | * then install | + | <code bash> |
| - | * Finally you may have to call ldconfig alone or /usr/bin/ldconfig -l /usr/local/lib/libconfig.so.9 | + | |
| + | Add configuration in /etc/monit/conf.d/acdsn | ||
| + | <code bash> | ||
| + | check process acdsn with pidfile | ||
| + | start program = "/ | ||
| + | stop program | ||
| + | </ | ||
| + | === Reference === | ||
| + | * [[http:// | ||
| + | * You my be interested also to the respawn option of the [[http:// | ||
acdsn/daemon_installation.1345578179.txt.gz · Last modified: 2012/08/21 19:42 by sbolay