Funambol: Difference between revisions

From WickyWiki
No edit summary
No edit summary
Line 12: Line 12:


The following installer installs in /opt/Funambol
The following installer installs in /opt/Funambol
sudo ./funambol-10.0.3-x64.bin
<syntaxhighlight lang=bash>
sudo ./funambol-10.0.3-x64.bin
</syntaxhighlight>


Start Fundambol administrator console (Java)
Start Fundambol administrator console (Java)
sudo /opt/Funambol/admin/bin/funamboladmin
<syntaxhighlight lang=bash>
sudo /opt/Funambol/admin/bin/funamboladmin
</syntaxhighlight>


With funamboladmin, configure the "admin" password, default password is "sa"
With funamboladmin, configure the "admin" password, default password is "sa"
login to "localhost" with user "admin" and default password "sa"
login to "localhost" with user "admin" and default password "sa"
expand the tree on the left
expand the tree on the left
double click on "Users"
double click on "Users"
click "search"
click "search"
select the line of the admin user
select the line of the admin user
click "edit"
click "edit"
change the password and confirm
change the password and confirm
save
save
close funamboladmin
close funamboladmin


To be able to access Funambol through a secure SSL connection you need to [[Create a Tomcat self-signed certificate]]
To be able to access Funambol through a secure SSL connection you need to [[Create a Tomcat self-signed certificate]]
Line 32: Line 36:
Source: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
Source: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html


<syntaxhighlight lang=bash>
sudo keytool -genkey -alias tomcat -keyalg RSA -keystore /etc/ssl/private/myserver_org.keystore
sudo keytool -genkey -alias tomcat -keyalg RSA -keystore /etc/ssl/private/myserver_org.keystore
</syntaxhighlight>


enter sudo pwd
enter sudo pwd
enter new keystore password (changeit)
enter new keystore password (changeit)
reenter
reenter
first and last name (myserver.org)
first and last name (myserver.org)
departement
departement
organisation
organisation
city
city
province
province
countrycode
countrycode
key password for tomcat (changeit)
key password for tomcat (changeit)


Configure Funambol to use your cerificate:
Configure Funambol to use your cerificate:


sudo gedit /opt/Funambol/tools/tomcat/conf/server.xml
<syntaxhighlight lang=bash>
sudo gedit /opt/Funambol/tools/tomcat/conf/server.xml
</syntaxhighlight>


<syntaxhighlight lang="xml">
<syntaxhighlight lang=xml>
<!-- 20111008 wjv Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!-- 20111008 wjv Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector  
<Connector  
      port="8443" maxThreads="200"
port="8443" maxThreads="200"
      scheme="https" secure="true" SSLEnabled="true"
scheme="https" secure="true" SSLEnabled="true"
      keystoreFile="/etc/ssl/private/wilbertvolkers.dyndns.org.keystore" keystorePass="changeit"
keystoreFile="/etc/ssl/private/wilbertvolkers.dyndns.org.keystore" keystorePass="changeit"
      clientAuth="false" sslProtocol="TLS" />
clientAuth="false" sslProtocol="TLS" />
</syntaxhighlight>
</syntaxhighlight>


Configure auto startup
Configure auto startup
sudo cp /opt/Funambol/bin/funambol /opt/Funambol/bin/funambol.original
<syntaxhighlight lang=bash>
sudo gedit /opt/Funambol/bin/funambol
sudo cp /opt/Funambol/bin/funambol /opt/Funambol/bin/funambol.original
sudo gedit /opt/Funambol/bin/funambol
</syntaxhighlight>


edit funambol to point to fixed path, typically /opt/Funambol
edit funambol to point to fixed path, typically /opt/Funambol
...
...
#cd `dirname $0`
#cd `dirname $0`
FUNAMBOL_HOME=`(cd /opt/Funambol ; pwd)`
FUNAMBOL_HOME=`(cd /opt/Funambol ; pwd)`
...
...


create startup in the deamons folders
create startup in the deamons folders
sudo cp /opt/Funambol/bin/funambol /etc/init.d/funambol
<syntaxhighlight lang=bash>
sudo update-rc.d -f funambol defaults
sudo cp /opt/Funambol/bin/funambol /etc/init.d/funambol
sudo update-rc.d -f funambol defaults
</syntaxhighlight>


start/stop manually
start/stop manually
sudo /opt/Funambol/bin/funambol stop
<syntaxhighlight lang=bash>
sudo /opt/Funambol/bin/funambol start
sudo /opt/Funambol/bin/funambol stop
sudo /opt/Funambol/bin/funambol start
</syntaxhighlight>


== sync with outlook ==
== sync with outlook ==
Line 85: Line 99:
NB: only managed to get this to work with a local, non SSL address like http://localhost:8080/funambol/ds
NB: only managed to get this to work with a local, non SSL address like http://localhost:8080/funambol/ds


sudo apt-get install syncevolution sync-ui
<syntaxhighlight lang=bash>
sync-ui
sudo apt-get install syncevolution sync-ui
sync-ui
</syntaxhighlight>


create a sync connection
create a sync connection


1. with funamboladmin create a User
1. with funamboladmin create a User
2. try sync with sync-ui (it will fail)
2. try sync with sync-ui (it will fail)
3. with funamboladmin you will se that an 'Evolution' Device is added, pair this device and the User as a new Principal
3. with funamboladmin you will se that an 'Evolution' Device is added, pair this device and the User as a new Principal
4. sync with sync-ui
4. sync with sync-ui


== sync with windows thunderbird + lightning ==
== sync with windows thunderbird + lightning ==
Line 100: Line 116:


add hotmail/yahoo email accounts
add hotmail/yahoo email accounts
1. with funamboladmin create a User
1. with funamboladmin create a User
2. go to Modules, email, FunambolEmailConnector
2. go to Modules, email, FunambolEmailConnector
2. section account, Add and configure, with Cache you can see if emails are retrieved
2. section account, Add and configure, with Cache you can see if emails are retrieved


== sync with windows mobile ==
== sync with windows mobile ==
Line 108: Line 124:
== mySQL for funambol ==
== mySQL for funambol ==


#http://wiki.contribs.org/Funambol
#http://wiki.contribs.org/Funambol
#mysql jdbc driver
#mysql jdbc driver
sudo apt-get install libmysql-java
<syntaxhighlight lang=bash>
    sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/tools/jre-1.6.0/jre/
sudo apt-get install libmysql-java
    sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/tools/tomcat/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/tools/jre-1.6.0/jre/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/pim-listener/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/tools/tomcat/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/inbox-listener/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/pim-listener/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/ox-listener/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/inbox-listener/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/ox-listener/lib/
</syntaxhighlight>


#(todo do we need this?) install funambol connector
#(todo do we need this?) install funambol connector
sudo -i
<syntaxhighlight lang=bash>
cd /opt/Funambol/tools/tomcat/lib/
sudo -i
wget http://json-simple.googlecode.com/files/json_simple-1.1.jar
cd /opt/Funambol/tools/tomcat/lib/
exit
wget http://json-simple.googlecode.com/files/json_simple-1.1.jar
exit
</syntaxhighlight>


#disable hypersonic, modify
#disable hypersonic, modify
sudo gedit /opt/Funambol/bin/funambol
<syntaxhighlight lang=bash>
#20111011 wjv disabled hypersonic
sudo gedit /opt/Funambol/bin/funambol
COMED=false
</syntaxhighlight>
#20111011 wjv disabled hypersonic
COMED=false
 
<syntaxhighlight lang=bash>
sudo cp /opt/Funambol/ds-server/install.properties /opt/Funambol/ds-server/install.properties.original
sudo gedit /opt/Funambol/ds-server/install.properties
</syntaxhighlight>
...
#20111014 wjv selected mysql as database
dbms=mysql
...
#20111014 wjv selected mysql as database
jdbc.classpath=/usr/share/java/mysql-connector-java.jar
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost/funambol
jdbc.user=funambol
jdbc.password=qw21YaUv
...
<syntaxhighlight lang=bash>
sudo cp /opt/Funambol/config/com/funambol/server/db/db.xml /opt/Funambol/config/com/funambol/server/db/db.xml.original
sudo gedit /opt/Funambol/config/com/funambol/server/db/db.xml
</syntaxhighlight>
<syntaxhighlight lang=xml>
<!-- 20111011 wjc selected postgresql as database -->
...
<string>url</string>
<string>jdbc:mysql://localhost/funambol</string>
...
<string>driverClassName</string>
<string>org.mysql.Driver</string>
...
<string>username</string>
<string>funambol</string>
...
<string>password</string>
<string>q***</string>
...
</syntaxhighlight>


sudo cp /opt/Funambol/ds-server/install.properties /opt/Funambol/ds-server/install.properties.original
#create db and user
sudo gedit /opt/Funambol/ds-server/install.properties
<syntaxhighlight lang=bash>
...
sudo mysqladmin create funambol --default-character-set=utf8
#20111014 wjv selected mysql as database
sudo mysql -e "grant all privileges on funambol.* to funambol@localhost identified by 'q***'"
dbms=mysql
sudo mysql -e "flush privileges"
...
</syntaxhighlight>
#20111014 wjv selected mysql as database
jdbc.classpath=/usr/share/java/mysql-connector-java.jar
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost/funambol
jdbc.user=funambol
jdbc.password=qw21YaUv
...
sudo cp /opt/Funambol/config/com/funambol/server/db/db.xml /opt/Funambol/config/com/funambol/server/db/db.xml.original
sudo gedit /opt/Funambol/config/com/funambol/server/db/db.xml
<!-- 20111011 wjc selected postgresql as database -->
...
<string>url</string>
<string>jdbc:mysql://localhost/funambol</string>
...
<string>driverClassName</string>
<string>org.mysql.Driver</string>
...
<string>username</string>
<string>funambol</string>
...
<string>password</string>
<string>q***</string>
...


#create db and user
#create database, type 'y' until done, try again if it stops on an error
sudo mysqladmin create funambol --default-character-set=utf8
<syntaxhighlight lang=bash>
sudo mysql -e "grant all privileges on funambol.* to funambol@localhost identified by 'q***'"
cd /opt/Funambol
sudo mysql -e "flush privileges"
sudo ./bin/install
</syntaxhighlight>


#create database, type 'y' until done, try again if it stops on an error
-- PostgreSQL for funambol
cd /opt/Funambol
sudo ./bin/install


-- PostgreSQL for funambol
#postgresql jdbc driver
# http://wiki.contribs.org/Funambol
# http://www.receptiveit.com.au/mediawiki/index.php/Ubuntu:_Groupware_with_SOGo
<syntaxhighlight lang=bash>
sudo apt-get install libpg-java
sudo ln -s /usr/share/java/postgresql.jar /opt/Funambol/tools/tomcat/lib/
sudo ln -s /usr/share/java/postgresql.jar /opt/Funambol/pim-listener/lib/
</syntaxhighlight>
#install funambol connector
<syntaxhighlight lang=bash>
sudo -i
cd /opt/Funambol/tools/tomcat/lib/
wget http://json-simple.googlecode.com/files/json_simple-1.1.jar
exit
</syntaxhighlight>


#postgresql jdbc driver
#create database
# http://wiki.contribs.org/Funambol
<syntaxhighlight lang=bash>
# http://www.receptiveit.com.au/mediawiki/index.php/Ubuntu:_Groupware_with_SOGo
su postgres -c psql
sudo apt-get install libpg-java
</syntaxhighlight>
    sudo ln -s /usr/share/java/postgresql.jar /opt/Funambol/tools/tomcat/lib/
<syntaxhighlight lang=sql>
sudo ln -s /usr/share/java/postgresql.jar /opt/Funambol/pim-listener/lib/
CREATE USER funambol WITH PASSWORD 'q***';
#install funambol connector
ALTER USER funambol VALID UNTIL 'infinity';
sudo -i
ALTER USER funambol NOCREATEDB NOCREATEUSER;
cd /opt/Funambol/tools/tomcat/lib/
CREATE DATABASE funambol;
wget http://json-simple.googlecode.com/files/json_simple-1.1.jar
GRANT ALL PRIVILEGES ON DATABASE funambol TO funambol;
exit
#workaround (manual):
CREATE FUNCTION pg_catalog.text(bigint) RETURNS text STRICT IMMUTABLE LANGUAGE SQL AS 'SELECT textin(int8out($1));';
CREATE CAST (bigint AS text) WITH FUNCTION pg_catalog.text(bigint) AS IMPLICIT;
\q
</syntaxhighlight>
<syntaxhighlight lang=bash>
sudo gedit /var/lib/postgresql/data/pg_hba.conf
</syntaxhighlight>
#20111011 wjv add:
host    funambol    funambol    127.0.0.1/32          md5
<syntaxhighlight lang=bash>
sudo /etc/init.d/postgresql restart
</syntaxhighlight>
#test access to this user
<syntaxhighlight lang=bash>
psql -h 127.0.0.1 -d funambol -U funambol -W
\q
</syntaxhighlight>


#create database
#disable hypersonic, modify
su postgres -c psql
<syntaxhighlight lang=bash>
CREATE USER funambol WITH PASSWORD 'q***';
sudo gedit /opt/Funambol/bin/funambol
ALTER USER funambol VALID UNTIL 'infinity';
</syntaxhighlight>
ALTER USER funambol NOCREATEDB NOCREATEUSER;
#20111011 wjv disabled hypersonic
CREATE DATABASE funambol;
COMED=false
GRANT ALL PRIVILEGES ON DATABASE funambol TO funambol;
#workaround (manual):
CREATE FUNCTION pg_catalog.text(bigint) RETURNS text STRICT IMMUTABLE LANGUAGE SQL AS 'SELECT textin(int8out($1));';
CREATE CAST (bigint AS text) WITH FUNCTION pg_catalog.text(bigint) AS IMPLICIT;
\q
sudo gedit /var/lib/postgresql/data/pg_hba.conf
#20111011 wjv add:
host    funambol    funambol    127.0.0.1/32          md5
sudo /etc/init.d/postgresql restart
#test access to this user
psql -h 127.0.0.1 -d funambol -U funambol -W
\q


#disable hypersonic, modify
<syntaxhighlight lang=bash>
sudo gedit /opt/Funambol/bin/funambol
sudo cp /opt/Funambol/ds-server/install.properties /opt/Funambol/ds-server/install.properties.original
#20111011 wjv disabled hypersonic
sudo gedit /opt/Funambol/ds-server/install.properties
COMED=false
</syntaxhighlight>
...
#20111011 wjv selected postgresql as database
dbms=postgresql
...
#20111011 wjv selected postgresql as database
jdbc.classpath=/usr/share/java/postgresql.jar
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://localhost/funambol
jdbc.user=funambol
jdbc.password=q***
...


sudo cp /opt/Funambol/ds-server/install.properties /opt/Funambol/ds-server/install.properties.original
<syntaxhighlight lang=bash>
sudo gedit /opt/Funambol/ds-server/install.properties
sudo cp /opt/Funambol/config/com/funambol/server/db/db.xml /opt/Funambol/config/com/funambol/server/db/db.xml.original
...
sudo gedit /opt/Funambol/config/com/funambol/server/db/db.xml
#20111011 wjv selected postgresql as database
</syntaxhighlight>
dbms=postgresql
<!-- 20111011 wjc selected postgresql as database -->
...
...
#20111011 wjv selected postgresql as database
<string>url</string>
jdbc.classpath=/usr/share/java/postgresql.jar
<string>jdbc:postgresql://localhost/funambol</string>
jdbc.driver=org.postgresql.Driver
...
jdbc.url=jdbc:postgresql://localhost/funambol
<string>driverClassName</string>
jdbc.user=funambol
<string>org.postgresql.Driver</string>
jdbc.password=q***
...
...
<string>username</string>
sudo cp /opt/Funambol/config/com/funambol/server/db/db.xml /opt/Funambol/config/com/funambol/server/db/db.xml.original
<string>funambol</string>
sudo gedit /opt/Funambol/config/com/funambol/server/db/db.xml
...
<!-- 20111011 wjc selected postgresql as database -->
<string>password</string>
...
<string>q***</string>
<string>url</string>
...
<string>jdbc:postgresql://localhost/funambol</string>
...
<string>driverClassName</string>
<string>org.postgresql.Driver</string>
...
<string>username</string>
<string>funambol</string>
...
<string>password</string>
<string>q***</string>
...


#create database, type y until done, try again if it stops on an error
#create database, type y until done, try again if it stops on an error
cd /opt/Funambol
<syntaxhighlight lang=bash>
sudo ./bin/install
cd /opt/Funambol
sudo ./bin/install
</syntaxhighlight>


----------- remove funambol
----------- remove funambol


#remove the folder /opt/Funambol
remove the folder /opt/Funambol

Revision as of 17:56, 20 October 2011

20111004, Ubuntu 11.04, Groupware

Homepage: https://www.forge.funambol.org

Funambol is a synchronisation server for e-mail, contacts, calendar, tasks and notes. You can synchronize various software and devices, configure push e-mail for mobiles etc. Although there is a "webdemo" to view some of the data, it not meant as a webinterface to these. You will need other software and devices for this.

In this text:

  • "myserver.org" is the machine we are installing, it can also be an IP address or "localhost"


Installation

The following installer installs in /opt/Funambol

sudo ./funambol-10.0.3-x64.bin

Start Fundambol administrator console (Java)

sudo /opt/Funambol/admin/bin/funamboladmin

With funamboladmin, configure the "admin" password, default password is "sa" login to "localhost" with user "admin" and default password "sa" expand the tree on the left double click on "Users" click "search" select the line of the admin user click "edit" change the password and confirm save close funamboladmin

To be able to access Funambol through a secure SSL connection you need to Create a Tomcat self-signed certificate

Source: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

sudo keytool -genkey -alias tomcat -keyalg RSA -keystore /etc/ssl/private/myserver_org.keystore

enter sudo pwd enter new keystore password (changeit) reenter first and last name (myserver.org) departement organisation city province countrycode key password for tomcat (changeit)

Configure Funambol to use your cerificate:

sudo gedit /opt/Funambol/tools/tomcat/conf/server.xml
<!-- 20111008 wjv Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector 
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="/etc/ssl/private/wilbertvolkers.dyndns.org.keystore" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS" />

Configure auto startup

sudo cp /opt/Funambol/bin/funambol /opt/Funambol/bin/funambol.original
sudo gedit /opt/Funambol/bin/funambol

edit funambol to point to fixed path, typically /opt/Funambol ...

  1. cd `dirname $0`

FUNAMBOL_HOME=`(cd /opt/Funambol ; pwd)` ...

create startup in the deamons folders

sudo cp /opt/Funambol/bin/funambol /etc/init.d/funambol
sudo update-rc.d -f funambol defaults

start/stop manually

sudo /opt/Funambol/bin/funambol stop
sudo /opt/Funambol/bin/funambol start

sync with outlook

  1. download and install funambol windows outlook client

user sync URL: https://myserver.org:8443/funambol/ds

sync with linux evolution

NB: only managed to get this to work with a local, non SSL address like http://localhost:8080/funambol/ds

sudo apt-get install syncevolution sync-ui
sync-ui

create a sync connection

1. with funamboladmin create a User 2. try sync with sync-ui (it will fail) 3. with funamboladmin you will se that an 'Evolution' Device is added, pair this device and the User as a new Principal 4. sync with sync-ui

sync with windows thunderbird + lightning

NB: didnt see the contact pictures

add hotmail/yahoo email accounts 1. with funamboladmin create a User 2. go to Modules, email, FunambolEmailConnector 2. section account, Add and configure, with Cache you can see if emails are retrieved

sync with windows mobile

mySQL for funambol

  1. http://wiki.contribs.org/Funambol
  2. mysql jdbc driver
sudo apt-get install libmysql-java
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/tools/jre-1.6.0/jre/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/tools/tomcat/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/pim-listener/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/inbox-listener/lib/
sudo ln -s /usr/share/java/mysql-connector-java.jar /opt/Funambol/ox-listener/lib/
  1. (todo do we need this?) install funambol connector
sudo -i
cd /opt/Funambol/tools/tomcat/lib/
wget http://json-simple.googlecode.com/files/json_simple-1.1.jar
exit
  1. disable hypersonic, modify
sudo gedit /opt/Funambol/bin/funambol
  1. 20111011 wjv disabled hypersonic

COMED=false

sudo cp /opt/Funambol/ds-server/install.properties /opt/Funambol/ds-server/install.properties.original
sudo gedit /opt/Funambol/ds-server/install.properties

...

  1. 20111014 wjv selected mysql as database

dbms=mysql ...

  1. 20111014 wjv selected mysql as database

jdbc.classpath=/usr/share/java/mysql-connector-java.jar jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost/funambol jdbc.user=funambol jdbc.password=qw21YaUv ...

sudo cp /opt/Funambol/config/com/funambol/server/db/db.xml /opt/Funambol/config/com/funambol/server/db/db.xml.original
sudo gedit /opt/Funambol/config/com/funambol/server/db/db.xml
<!-- 20111011 wjc selected postgresql as database -->
...
<string>url</string>
<string>jdbc:mysql://localhost/funambol</string>
...
<string>driverClassName</string>
<string>org.mysql.Driver</string>
...
<string>username</string>
<string>funambol</string>
...
<string>password</string>
<string>q***</string>
...
  1. create db and user
sudo mysqladmin create funambol --default-character-set=utf8
sudo mysql -e "grant all privileges on funambol.* to funambol@localhost identified by 'q***'"
sudo mysql -e "flush privileges"
  1. create database, type 'y' until done, try again if it stops on an error
cd /opt/Funambol
sudo ./bin/install

-- PostgreSQL for funambol

  1. postgresql jdbc driver
  2. http://wiki.contribs.org/Funambol
  3. http://www.receptiveit.com.au/mediawiki/index.php/Ubuntu:_Groupware_with_SOGo
sudo apt-get install libpg-java
sudo ln -s /usr/share/java/postgresql.jar /opt/Funambol/tools/tomcat/lib/
sudo ln -s /usr/share/java/postgresql.jar /opt/Funambol/pim-listener/lib/
  1. install funambol connector
sudo -i
cd /opt/Funambol/tools/tomcat/lib/
wget http://json-simple.googlecode.com/files/json_simple-1.1.jar
exit
  1. create database
su postgres -c psql
CREATE USER funambol WITH PASSWORD 'q***';
ALTER USER funambol VALID UNTIL 'infinity';
ALTER USER funambol NOCREATEDB NOCREATEUSER;
CREATE DATABASE funambol;
GRANT ALL PRIVILEGES ON DATABASE funambol TO funambol;
#workaround (manual):
CREATE FUNCTION pg_catalog.text(bigint) RETURNS text STRICT IMMUTABLE LANGUAGE SQL AS 'SELECT textin(int8out($1));';
CREATE CAST (bigint AS text) WITH FUNCTION pg_catalog.text(bigint) AS IMPLICIT;
\q
sudo gedit /var/lib/postgresql/data/pg_hba.conf
  1. 20111011 wjv add:

host funambol funambol 127.0.0.1/32 md5

sudo /etc/init.d/postgresql restart
  1. test access to this user
psql -h 127.0.0.1 -d funambol -U funambol -W
\q
  1. disable hypersonic, modify
sudo gedit /opt/Funambol/bin/funambol
  1. 20111011 wjv disabled hypersonic

COMED=false

sudo cp /opt/Funambol/ds-server/install.properties /opt/Funambol/ds-server/install.properties.original
sudo gedit /opt/Funambol/ds-server/install.properties

...

  1. 20111011 wjv selected postgresql as database

dbms=postgresql ...

  1. 20111011 wjv selected postgresql as database

jdbc.classpath=/usr/share/java/postgresql.jar jdbc.driver=org.postgresql.Driver jdbc.url=jdbc:postgresql://localhost/funambol jdbc.user=funambol jdbc.password=q*** ...

sudo cp /opt/Funambol/config/com/funambol/server/db/db.xml /opt/Funambol/config/com/funambol/server/db/db.xml.original
sudo gedit /opt/Funambol/config/com/funambol/server/db/db.xml

... <string>url</string> <string>jdbc:postgresql://localhost/funambol</string> ... <string>driverClassName</string> <string>org.postgresql.Driver</string> ... <string>username</string> <string>funambol</string> ... <string>password</string> <string>q***</string> ...

  1. create database, type y until done, try again if it stops on an error
cd /opt/Funambol
sudo ./bin/install

remove funambol

remove the folder /opt/Funambol