User Tools

Site Tools


acdsn:daemon_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
acdsn:daemon_installation [2012/08/21 21:32] – [For a complete installation of the acdsn server] sbolayacdsn:daemon_installation [2012/09/30 20:27] – [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://www.acmesystems.it/FOXG20|FoxG20]] box and login (root/netusg20)   - ssh to the [[http://www.acmesystems.it/FOXG20|FoxG20]] box and login (root/netusg20)
-  - then keep the server on time to avoid time stamp error<code bash>+  - update the debian source-list with your favorite debian package mirror<code bash> 
 +    vi /etc/apt/source.list</code> 
 +  - keep the server on time to avoid time stamp error<code bash>
     aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch</code>     aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch</code>
   - update the installation<code bash>   - update the installation<code bash>
Line 24: Line 25:
   - Reload libraries<code bash>   - Reload libraries<code bash>
     ldconfig</code>     ldconfig</code>
 +    *or<code bash>
 +    /usr/bin/ldconfig -l /usr/local/lib/libconfig.so.9</code>
   - Configure compile and install acdsn   - Configure compile and install acdsn
     * Modify Makefile.am with options: (-DACCESS or -DCONTROL or -DDRIVE)<code bash>     * Modify Makefile.am with options: (-DACCESS or -DCONTROL or -DDRIVE)<code bash>
Line 33: Line 36:
   - modify the [[acdsn:tmpfs#etc_default_tmpfs|/etc/default/tmpfs]] file to mount heavy files/directories into memory   - modify the [[acdsn:tmpfs#etc_default_tmpfs|/etc/default/tmpfs]] file to mount heavy files/directories into memory
   - add the [[acdsn:tmpfs#etc_initd_tmpfs|tmpfs init script into /etc/init.d]] and update-rc.d tmpfs defaults 10   - add the [[acdsn:tmpfs#etc_initd_tmpfs|tmpfs init script into /etc/init.d]] and update-rc.d tmpfs defaults 10
 +  - modify the [[acdsn:networks|/etc/network/interfaces]] to allow hotplug
  
 If you want to make a automatic reverse ssh tunnel, you can add: If you want to make a automatic reverse ssh tunnel, you can add:
Line 46: Line 50:
     */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 1091 -r 9031
     */5 * * * * /bin/bash /media/data/connect.sh -u sbolay -t bolay.co -e /media/data/.add-rsa -l 22 -r 9023</code>     */5 * * * * /bin/bash /media/data/connect.sh -u sbolay -t bolay.co -e /media/data/.add-rsa -l 22 -r 9023</code>
 +===== Fine Tunning =====
 +==== apt-xapian-index ====
 +=> It is to hard for the kernel
 +<code bash>aptitude purge apt-xapian-index</code>
 +
 +==== Less is More ====
 +http://linux.koolsolutions.com/2009/05/07/how-small-can-you-make-your-linux-system-part-1/
  
-If libconfig is missing, please  +==== monit ==== 
-  * configure (./configure) it, +__From man page:__\\ 
-  * compile (make) it from the libconfig (1.4b4) folder then, +//[[http://www.google.com/url?sa=t&rct=j&q=debian%20package%20monit&source=web&cd=1&ved=0CB8QFjAA&url=http%3A%2F%2Fpackages.debian.org%2Fmonit&ei=c-xKUJK3GeXR4QTbmoGQCQ&usg=AFQjCNGCng4CbOK-uWPXgJf-wQKs4lhtcw|monit]] is a utility for managing and monitoring processesfiles, directories and filesystems on a Unix system.\\ 
-  * check (make check) it and  +Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.// 
-  * then install it (sudo make install)+<code bash>aptitude install monit</code>
-  * Finally you may have to call ldconfig alone or /usr/bin/ldconfig -l /usr/local/lib/libconfig.so.9+
  
 +=== Reference ===
 +  * [[http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html|Monitor and restart Apache or lighttpd webserver when daemon is killed]]
 +  * You my be interested also to the respawn option of the [[http://unixhelp.ed.ac.uk/CGI/man-cgi?inittab+5|inittab]]. (See this [[http://www.linuxquestions.org/questions/linux-general-1/automatic-restart-3541/|post]])
acdsn/daemon_installation.txt · Last modified: 2012/10/03 10:02 by sbolay