Funambol

Aus MHC-Wiki

Wechseln zu: Navigation, Suche

SOGo 1.0.1 requieres Funambol 6.5 !

Server

Download the Files:

wget http://download.forge.objectweb.org/sync4j/funambol-6.5.14.bin
wget http://jdbc.postgresql.org/download/postgresql-8.3-604.jdbc3.jar
wget http://archive.apache.org/dist/commons/lang/binaries/commons-lang-2.3.tar.gz
wget http://archive.apache.org/dist/commons/collections/binaries/commons-collections-3.2.tar.gz
wget http://www.scalableogo.org/uploads/Funambol/funambol-sogo-1.0.5.s4j

Install Funambol:

chmod +x funambol-6.5.14.bin 
sh funambol-6.5.14.bin 
cp /opt/Funambol/tools/bin/funambol.sh /etc/init.d/funambol
ln -s /etc/init.d/funambol /etc/rc3.d/S30funambol

Edit the start/stop script and modify the line:

BUNDLE_HOME=`(cd ../.. ; pwd)`

to:

BUNDLE_HOME=`(cd /opt/Funambol ; pwd)`

Stop Funambol if you have started it during installation:

/etc/init.d/funambol stop

Unpack and install commons-collections and commons-lang:

tar xfz commons-collections-3.2.tar.gz 
tar xfz commons-lang-2.3.tar.gz 
cd commons-collections-3.2/
cp *.jar /opt/Funambol/tools/tomcat/common/lib/
cd commons-lang-2.3/
cp *.jar /opt/Funambol/tools/tomcat/common/lib/
rm -rf commons-collections-3.2 commons-lang-2.3

Install PostgreSQL JDBC:

cp postgresql-8.3-604.jdbc3.jar /opt/Funambol/tools/tomcat/common/lib

Copy SOGo Funambol module:

cp funambol-sogo-1.0.5.s4j /opt/Funambol/ds-server/modules

Stat Funambol:

/etc/init.d/funambol start

Install module by issuing the following command and answering all questions with y:

cd /opt/Funambol/ds-server
./bin/install-modules.sh tomcat50

Edit the file: /opt/Funambol/ds-server/config/ca/inverse/sogo/security/SOGoOfficer.xml and change host name to your GOGo host and prot to 20000:

       <void property="host">
           <string>localhost</string>
       </void>
       <void property="port">
           <string>20000</string>
       </void>

For some reason I had to use "localhost" my real server name (sogoserver.mhc.loc) did not work despite netstat told me that sogod listens on post 2000 to *

I found that it's better to restart Funambol at the end:

/etc/init.d/funambol stop
/etc/init.d/funambol start

Admin Client

Usually I do not have X on my server so I use a administration client with X.

Download Funambol Admin Tool:

wget http://download.forge.objectweb.org/sync4j/funambol-admin-6.5.14.tgz

And unpack it e.g. to /opt:

tar xfz funambol-admin-6.5.14.tgz -C /opt

Start up the client:

/opt/Funambol/admin/bin/funamboladmin

Perhaps you want to create some kind of menu entry.

Note: Wiki cut&paste often appends blanks to the cuted text. Funambol will not tolerate blanks at then end of the strings ! Dont' forget to change "server.mhc.loc" to something fitting you needs.

Go in Modules > sogo > FunambolSOGoConnector > SOGo SyncSource and add a source for each data type you would like to synchronize. To synchronize an address book, you would specify:

Source URI:        sogo-card
Name:              sogo-card
Supported type:    text/x-vcard
Database URL:      jdbc:postgresql://server.mhc.loc/sogo
Database username: sogo
Database password: sogo

To synchronize an calenders, you would specify:

Source URI:        sogo-cal
Name:              sogo-cal
Supported type:    text/x-event
Database URL:      jdbc:postgresql://server.mhc.loc/sogo
Database username: sogo
Database password: sogo

To synchronize an tasks, you would specify:

Source URI:        sogo-todo
Name:              sogo-todo
Supported type:    text/x-todo
Database URL:      jdbc:postgresql://server.mhc.loc/sogo
Database username: sogo
Database password: sogo

If you want to auto-create Funambol user accounts for every users that can authenticate to SOGo, you can use the SOGoOfficer to do so. From the Funambol Administration Tool, in "Server Settings", set the Officer to the following value:

ca/inverse/sogo/security/SOGoOfficer.xml
Persönliche Werkzeuge
Navigation