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 21:32] – [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:// | ||
- | - then keep the server on time to avoid time stamp error< | + | - update the debian source-list with your favorite debian package mirror< |
+ | vi / | ||
+ | - keep the server on time to avoid time stamp error< | ||
aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch</ | aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch</ | ||
- update the installation< | - update the installation< | ||
Line 14: | Line 15: | ||
aptitude update && aptitude install automake make libtool flex byacc bison g++ libldap2-dev texinfo</ | aptitude update && aptitude install automake make libtool flex byacc bison g++ libldap2-dev texinfo</ | ||
- Compile and install [[http:// | - Compile and install [[http:// | ||
- | ./configure && make && make install)</ | + | ./configure && make && make install</ |
* If you get libtool: Version mismatch error.< | * If you get libtool: Version mismatch error.< | ||
This is libtool 2.2.6, but the | This is libtool 2.2.6, but the | ||
Line 24: | Line 25: | ||
- Reload libraries< | - Reload libraries< | ||
ldconfig</ | ldconfig</ | ||
+ | *or<code bash> | ||
+ | / | ||
- Configure compile and install acdsn | - Configure compile and install acdsn | ||
* Modify Makefile.am with options: (-DACCESS or -DCONTROL or -DDRIVE)< | * Modify Makefile.am with options: (-DACCESS or -DCONTROL or -DDRIVE)< | ||
Line 32: | Line 35: | ||
- configure files in /etc/acdsn (especially /dev/ttyS?) | - configure files in /etc/acdsn (especially /dev/ttyS?) | ||
- 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 a automatic reverse ssh tunnel, you can add: | + | If you want to make an automatic reverse ssh tunnel, you can add: |
- install expect package to create a remote ssh tunnel< | - install expect package to create a remote ssh tunnel< | ||
aptitude install expect</ | aptitude install expect</ | ||
Line 46: | Line 55: | ||
*/5 * * * * /bin/bash / | */5 * * * * /bin/bash / | ||
*/5 * * * * /bin/bash / | */5 * * * * /bin/bash / | ||
+ | ===== Fine Tunning ===== | ||
+ | ==== apt-xapian-index ==== | ||
+ | => It is to hard for the kernel | ||
+ | <code bash> | ||
+ | |||
+ | ==== Less is More ==== | ||
+ | http:// | ||
+ | |||
+ | ==== monit ==== | ||
+ | __From man page:__\\ | ||
+ | // | ||
+ | Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.// | ||
+ | <code bash> | ||
- | If libconfig is missing, please | + | Add configuration in / |
- | * configure (./configure) it, | + | <code bash> |
- | * compile (make) it from the libconfig (1.4b4) folder then, | + | check process acdsn with pidfile / |
- | | + | start program = "/etc/init.d/acdsn start" with timeout 60 seconds |
- | * then install it (sudo make install). | + | stop program |
- | * Finally you may have to call ldconfig alone or /usr/bin/ldconfig -l /usr/local/lib/libconfig.so.9 | + | </code> |
+ | === Reference === | ||
+ | * [[http:// | ||
+ | * You my be interested also to the respawn option of the [[http:// |
acdsn/daemon_installation.1345584745.txt.gz · Last modified: 2012/08/21 21:32 by sbolay