Psotgres setup, first version
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 28 Jun 2010 00:40:48 +0000 (00:40 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 28 Jun 2010 00:40:48 +0000 (00:40 +0000)
INSTALL

diff --git a/INSTALL b/INSTALL
index 251d2f6585218fe80b744044a956b8124212a11b..7feff19317aa4138f67aa4e1c62356d0eb8eb1d3 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -9,18 +9,34 @@ mkdir --mode 2775 /var/lib/ais/nmea/
 mkdir /etc/ais/
 
 create your file in /etc/ais/config
+chmod 660 /etc/ais/config
 see config.SAMPLE
 
 adduser www-data ais
 
 change apache umask in /etc/apache2/envvars from 022 to 002 so that new folders are group writables
 
+sudo deploy
+OR
 ln -s /home/nirgal/kod/ais/bin /usr/lib/python2.5/ais
+OR
+ln -s /home/nirgal/kod/ais/bin /usr/share/pyshared/ais
+find /usr/share/pyshared/ais/ -name *.py > /usr/share/python-support/ais.public
+update-python-modules /usr/share/python-support/ais.public
+
+
+createuser ais
+ALTER USER ais PASSWORD '...';
+modify user
+createdb ais -O ais
+psql ais -h localhost -U ais -f structure.sql
+
 
 Required packages:
 postgresql
-python-serial
+python-serial or python>=2.5
 python-rrdtool
+python-psycopg2
 
 Recommanded packages:
 ntp