elveos

elveos Git Source Tree

Root/INSTALL

1***********************************
2* Install all needed dependancies *
3***********************************
4sudo apt-get install nodejs gettext postgresql-client postgresql openjdk-6-jdk openjdk-6-doc openjdk-6-source lighttpd qt4-dev-tools xsel rlwrap build-essential visitors libpg-java
5
6************************************
7* Install and configure lighttpd *
8************************************
9Install lighttpd:
10apt-get install lighttpd
11
12Create a symbolic link of '.../deployment/files/fastcgi.conf' in '/etc/lighttpd/conf-enabled/':
13cd /etc/lighttpd/conf-enabled/
14ln -s /home/fred/bloatit/deployment/files/fastcgi.conf
15
16Create a symbolic link of '.../deployment/files/rewrite.lighttpd.conf' in '/etc/lighttpd/conf-enabled/':
17cd /etc/lighttpd/conf-enabled/
18ln -s /home/fred/bloatit/deployment/files/rewrite.lighttpd.conf
19
20========================
21= MODIFY lighttpd.conf =
22========================
23In '/etc/lighttpd/lighttpd.conf' :
24
25-> Modify the filed 'server.document-root' to 'www' folder in bloatit.
26-> Example:
27server.document-root = "/home/fred/projets/bloatit/www"
28
29Uncomment or add '"mod-accesslog"' in 'server.modules'
30Uncomment or add '"mod_expire"' in 'server.modules'
31# Note : if mod_rewrite is activated, remove or comment it
32
33-> Add line :
34server.error-handler-404 = "/en/dopagenotfound"
35
36-> Add the following lines :
37
38# make an external redirect
39# from any www.host (with www.) to the host (without www.)
40$HTTP["host"] =~ "^www\.(.*)$" {
41  url.redirect = ( "^/(.*)" => "http://%1/$1" )
42}
43
44# Access logs
45accesslog.filename = "/var/log/lighttpd/access.log"
46
47#30Mb in Kb
48server.max-request-size= 30000
49
50======================
51= Restart lighttpd =
52======================
53Restart lighttpd config:
54service lighttpd restart
55
56Verify the loading in logs:hibernate.cfg.xml not found
57cat /var/log/lighttpd/error.log
58
59**********************
60* Install postgresql *
61**********************
62# Install the postgresql package
63sudo apt-get install postgresql
64sudo apt-get install postgresql-client
65
66# Use the postgres User to create a new DB and a new User
67sudo su postgres
68psql
69#> CREATE USER bloatit;
70#> ALTER ROLE bloatit WITH createdb;
71#> CREATE DATABASE bloatit OWNER bloatit;
72#> CREATE DATABASE bloatit_test OWNER bloatit;
73#> ALTER USER bloatit WITH ENCRYPTED PASSWORD 'passe' ;
74#>\q
75
76# change the authentification method
77vim /etc/postgresql/8.4/main/pg_hba.conf
78# Go to the end of the file.
79# change ident to md5 [EXCEPT FOR THE USER "postgres"]
80
81#leave the postgres session
82exit
83
84# restart the server
85sudo service postgresql restartliquibase-launcher.sh
86
87# Initialize the database
88# go to <Project Home>/main/liquibase
89# execute liquibase-launcher.sh update
90cd main/liquibase
91./liquibase-launcher.sh update
92
93************************************
94* Install gettext *
95************************************
96sudo apt-get install gettext
97
98************************************
99* Configure the java server *
100************************************
101copy the files/folders from etc/ to ~/.config/bloatit/
102# There are value to configure, see the comments in the files.
103
104copy the files/folders from share/ to ~/.local/share/bloatit/
105
106************************************
107* Get a fake connection with bank *
108************************************
109copy pathfile file to your config path
110cp ~/elveos/dev/etc/pathfile ~/.config/bloatit/pathfile
111
112edit pathfile to point to the correct URI :
113vim ~/.config/bloatit/pathfile
114Modify :
115 - F_DEFAULT!/home/yoann/elveos/dev/share/mercanet/parmcom.mercanet!
116 - F_PARAM!/home/yoann/elveos/dev/share/mercanet/parmcom!
117 - F_CERTIFICATE!/home/yoann/elveos/dev/share/mercanet/certif!
118
119where /home/yoann/elveos/dev is the root to your development folder
120
121************************************
122* Configure access right *
123************************************
124The lighttpd process will need to read in ~/.local/share (depending of java
125process user). You may need to run the java process with the lighttp
126d user or
127change the right:
128
129chmod 777 ~/.local
130chmod 777 ~/.local/share
131
132Create directory /var/local/lucene/indexes and give write right to it.
133sudo mkdir -p /var/local/lucene/indexes
134sudo chmod 777 /var/local/lucene/indexes
135
136************************************
137* Install and run *
138************************************
139mvn clean install -Dmaven.test.skip=true
140cd main
141mvn exec:java
142

Archive Download this file