Accesstream software installation procedure

I have been asked to install AccessStream application on linux to test it.

But this application has not ANY documentation or install procedure. At the end I managed to install it, here is the procedure.

Download[

](http://trac.dclinuxapps1.caixagalicia.cg/wiki/InstalacionAccesstream?version=2#Download)

Instalation[

](http://trac.dclinuxapps1.caixagalicia.cg/wiki/InstalacionAccesstream?version=2#Instalation)

Tomcat:

cd /opt/
tar -xvzf apache-tomcat-7.0.2.tar.gz
cd apache-tomcat-7.0.2/

Add rol manager conf/tomcat-users.xml and user tomcat

  <role rolename="manager-gui"/>
  <user username="tomcat" password="werfvcxs" roles="tomcat,manager-gui"/>

Deploy[

](http://trac.dclinuxapps1.caixagalicia.cg/wiki/InstalacionAccesstream?version=2#Deploy)

Database[

](http://trac.dclinuxapps1.caixagalicia.cg/wiki/InstalacionAccesstream?version=2#Database)

Install postgresql-server. Update /var/lib/pgsql/data/pg_hba.conf:

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         postgres                               ident sameuser
# IPv4 local connections:
host    all         postgres         127.0.0.1/32          ident sameuser
# IPv6 local connections:
host    all         postgres         ::1/128               ident sameuser

# "local" is for Unix domain socket connections only
local   all         all                               md5 sameuser
# IPv4 local connections:
host    all         all         127.0.0.1/32          md5 sameuser
# IPv6 local connections:
host    all         all         ::1/128               md5 sameuser

Using a Postgres 8.4 pg_restore (may be you need execute this in other host), we generate the .sql from the dump downloaded:

pg_restore  accesstream-postgres-testdata-backup-1.2.0.backup  > accesstream-postgres-testdata-backup-1.2.0.backup.sql

Must create DB and user (data in web-admin.war/WEB-INF/classes/spring/datasource/xapool.xml):

In postgres account:

su - postgres
createdb accesstream
createuser accesstream
createuser public
psql <<EOF
alter user accesstream with encrypted password 'idvs';
grant all privileges on database accesstream to accesstream;
EOF
psql accesstream -f accesstream-postgres-testdata-backup-1.2.0.backup.sql

Restart[

](http://trac.dclinuxapps1.caixagalicia.cg/wiki/InstalacionAccesstream?version=2#Restart)