1 This software is known to work on GNU/Debian 6.0 (squeeze).
2 It has been tested on architectures i386 and amd64.
21 python-decoratedstr (from nirgal.com)
22 python-htmlentities (from nirgal.com)
28 mkdir --mode 2775 /var/lib/ais # mode g+ws
29 chown :ais /var/lib/ais
30 mkdir --mode 2775 /var/lib/ais/db
31 mkdir --mode 2775 /var/lib/ais/db/bydate
32 mkdir --mode 2775 /var/lib/ais/db/last
33 mkdir --mode 2775 /var/lib/ais/stats/
34 mkdir --mode 2775 /var/lib/ais/nmea/
35 mkdir --mode 2775 /var/lib/ais/areas/
36 mkdir --mode 2775 /var/lib/ais/cron/
37 mkdir --mode 2775 /var/lib/ais/cron/fleets/
38 mkdir --mode 2775 /var/lib/ais/jobs/
39 mkdir --mode 2775 /etc/ais
41 mkdir --mode 2775 /var/log/ais
42 chown :ais /var/log/ais
43 mkdir --mode 2775 /var/run/ais/
44 chown :ais /var/run/ais
48 createuser --no-superuser --no-createdb --no-createrole ais
49 psql -c '\password ais'
51 psql ais -h localhost -U ais -f structure.sql
55 create your file in /etc/ais/config
56 chmod 660 /etc/ais/config
59 create your file in /etc/ais/database
60 chmod 660 /etc/ais/database
61 see etc/database.SAMPLE
65 ln -s /home/nirgal/kod/ais/bin /usr/lib/python2.6/ais
69 ln -s /home/nirgal/kod/ais/bin /usr/share/pyshared/ais
70 find /usr/share/pyshared/ais/ -name *.py > /usr/share/python-support/ais.public
71 update-python-modules /usr/share/python-support/ais.public
76 I suggest you add these lines to your /etc/sysctl.conf file:
78 # for postgres: a process may use up to 768MB of RAM
79 kernel.shmmax=805306368
80 # Udp recv queue max size. Note this is not the max size a default socket will
81 get. 256*1024-1 => doubled by kernel = 512KB
82 net.core.rmem_max=262143
88 change apache umask in /etc/apache2/envvars from 022 to 002 so that new folders are group writables. If there is no such line, just add "umask 002" at the end of the file.
90 a2enmod ssl headers rewrite
92 = Real time acquisition
93 =======================
95 python -m ais.inputs.run --db --background
100 python -m ais.jobrunner --daemon