Modifications entre les versions 3 et 26 (s'étendant sur 23 versions)
Version 3 à la date du 2011-05-06 22:16:24
Taille: 8054
Éditeur: MoussaNombre
Commentaire:
Version 26 à la date du 2012-01-11 16:12:18
Taille: 10435
Éditeur: MoussaNombre
Commentaire: Mise à jour
Texte supprimé. Texte ajouté.
Ligne 1: Ligne 1:
= Installation de Funambol pour SOGo =

 '''NB : ce sont plus des notes ... pas vraiment une procédure structurée ..'''

== Documentations ==
 * http://doc.ubuntu-fr.org/funambol
 * http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf

== Installation sur le sogo-paris ==
 * pré-requis :
  * mysql avec un compte pour funambol
  * un utilisateur système funambol dont le hone sera le dossier de base de funambol (ici : `var/lib/funambol/Funambol`), avec tous les droits sur le dossier
  * java bin et jre (chez canonical lucid/partner : "deb http://archive.canonical.com/ lucid partner")
 * version installée : funambol bundle 8.7 dans le dossier `var/lib/funambol/Funambol`
  * placer funambol dans init.d : `cp /var/lib/funambol/Funambol/bin/funambol /etc/init.d/ ; update-rc funambol defaults ; rm /var/lib/funambol/Funambol/bin/funambol ; ln -s /etc/init.d/funambol /var/lib/funambol/Funambol/bin/`
   Petit soucis pas grave :
<<TableOfContents>>

== Procédure d'installation du serveur Funambol ==
Source : Francis @Inverse.ca, mise à jour et adapté par MoussaNombre

 NB : créer une partition dédiée : /opt : 3G
Ligne 18: Ligne 9:
root@sogo-paris:/var/lib/funambol/Funambol# /etc/init.d/funambol stop
java.sql.SQLException: socket creation error

==> il est quand même arrêté
root@sogo-paris:/var/lib/funambol/Funambol# netstat -tlnup | grep java
root@sogo-paris:/var/lib/funambol/Funambol#
   }}}
  * home de funambol et path pour jre défini dans /etc/init.d/funambol
  * mysql-connector-java-xxx-bin.jar ("For MySQL, please refer to the following site : http://dev.mysql.com/usingmysql/java/")
    le mettre conforment au path spécifié ici "jdbc.classpath=/var/lib/funambol/Funambol/mysql-connector-java-5.1.15-bin.jar" dans /var/lib/funambol/Funambol/ds-server/install.properties

 * connexion avec SOGo : lire le pdf de chez sogo
  * funambol-sogo (http://www.sogo.nu/downloads/backend.html)
  * json.simple
  * '''NB''' : pour installer les modules et initialiser la BD pour la première fois, il faut lancer `bin/install` et non bin/install-modules tel que dit dans la doc ; sinon on tombe sur l'erreur :
   {{{
      [sql] Failed to execute: create table fnbl_email_cache ( guid varchar(200) binary not null, source_uri varchar(128) binary not null, principal bigint not null, last_crc bigint, invalid char, internal char, messageid varchar(700) binary, headerdate varchar(20) binary, received varchar(20) binary, subject varchar(700) binary, sender varchar(300) binary, isemail char, constraint pk_cache primary key (guid, source_uri, principal), constraint fk_principal_email_cache foreign key (principal) references fnbl_principal (id) on delete cascade )ENGINE = InnoDB CHARACTER SET utf8

BUILD FAILED
/var/lib/funambol/Funambol/ds-server/install/install.xml:238: The following error occurred while executing this line:
/var/lib/funambol/Funambol/ds-server/install/install-modules.xml:120: The following error occurred while executing this line:
/var/lib/funambol/Funambol/ds-server/install/install-modules.xml:168: The following error occurred while executing this line:
/var/lib/funambol/Funambol/ds-server/install/install-modules.xml:240: The following error occurred while executing this line:
/var/lib/funambol/Funambol/ds-server/install/install-modules.xml:285: The following error occurred while executing this line:
/var/lib/funambol/Funambol/ds-server/install/install-modules.xml:369: java.sql.SQLException: Ne peut créer la table 'funambol.fnbl_email_cache' (Errcode: 150)
   }}}
  * selon la doc "configure the data sources for SOGo. To do so, start the Funambol Administration Tool
using the following command :
/opt/Funambol/admin/bin/funamboladmin
"
   Mais c'est un truc graphique ! je fais comment là ???? ... à suivre ...

 Et voici la procédure transmise par Francis, de chez Inverse :

   {{{
-= Funambol =-
Ligne 56: Ligne 11:
> > create database funambol;
> > use funambol;
> > grant all privileges on funambol.* to 'funambol'@'localhost' identified by 'xxxxxxxxxxxxxxxx';
> > CREATE DATABASE funambol DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
> > USE funambol;
> > GRANT ALL PRIVILEGES ON funambol.* TO 'funambol'@'localhost' IDENTIFIED BY 'xxxxxxxxxxxxxxxx';
Ligne 60: Ligne 15:
mkdir /tmp/funambol
cd /tmp/funambol

wget http://download.forge.objectweb.org/sync4j/funambol-8.7.0.bin
mkdir /opt/tmp-funambol-A-SUPPRIMER # pour ne pas saturer la racine (1G)
cd /opt/tmp-funambol-A-SUPPRIMER

wget http://download.forge.objectweb.org/sync4j/funambol-9.0.0.bin
Ligne 65: Ligne 20:
wget http://www.sogo.nu/uploads/Funambol/funambol-sogo-1.0.8.s4j
wget http://mysql.mirror.iweb.ca/Downloads/Connector-J/mysql-connector-java-5.1.15.tar.gz
wget http://mirror.olnevhost.net/pub/apache//commons/configuration/binaries/commons-configuration-1.6.tar.gz
wget http://apache.imghat.com//commons/lang/binaries/commons-lang-2.6-bin.tar.gz
wget http://www.ecoficial.com/apachemirror//commons/logging/binaries/commons-logging-1.1.1-bin.tar.gz
wget http://www.trieuvan.com/apache//commons/collections/binaries/commons-collections-3.2.1-bin.tar.gz

(extraire les .jar)

sh funambol-8.7.0.bin
wget http://www.sogo.nu/uploads/Funambol/funambol-sogo-1.0.9.s4j
wget http://mysql.mirror.iweb.ca/Downloads/Connector-J/mysql-connector-java-5.1.18.tar.gz
wget http://www.apache.org/dist/commons/configuration/binaries/commons-configuration-1.7-bin.tar.gz
wget http://www.apache.org/dist/commons/lang/binaries/commons-lang3-3.0.1-bin.tar.gz
wget http://www.apache.org/dist/commons/logging/binaries/commons-logging-1.1.1-bin.tar.gz
wget http://www.apache.org/dist/commons/collections/binaries/commons-collections-3.2.1-bin.tar.gz

# extraire les .jar en désarchivant les tar.gz
for i in *.tar.gz; do tar xvfz $i; done

sh funambol-9.0.0.bin
Ligne 78: Ligne 34:
cp *.jar /opt/Funambol/tools/tomcat/lib/
cp funambol-sogo-1.0.8.s4j /opt/Funambol/ds-server/modules/

(modifier /opt/Funambol/ds-server/install.properties)
cp -av json_simple.jar */*.jar /opt/Funambol/tools/tomcat/lib/

cp funambol-sogo-1.0.9.s4j /opt/Funambol/ds-server/modules/
 
cat > /opt/Funambol/ds-server/install.properties << __EOF__
server-uri=

context-path=/funambol

dbms=mysql

# MySQL
# =====

jdbc.classpath=/opt/Funambol/tools/tomcat/lib/mysql-connector-java-5.1.18-bin.jar
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://[hostname]/funambol?characterEncoding=UTF-8
jdbc.user=funambol
jdbc.password=le_mdp_funambol

modules-to-install=content-provider-9.0.0,email-connector-9.0.0,foundation-9.0.0,phones-support-9.0.0,webdemo-9.0.0,funambol-sogo-1.0.9
__EOF__
Ligne 86: Ligne 60:
chown -R funambol:funambol /opt/Funambol/
Ligne 90: Ligne 65:
chown -R funambol:funambol /opt/Funambol/

mysql -h localhost -u funambol funambol -p
> > INSERT INTO fnbl_sync_source (uri, config, name, sourcetype) VALUES
('sogo-cal', 'sogo/sogo/sogo/sogo-cal.xml', 'sogo-cal', 'sogo'),
('sogo-card', 'sogo/sogo/sogo/sogo-card.xml', 'sogo-card', 'sogo'),
('sogo-todo', 'sogo/sogo/sogo/sogo-todo.xml', 'sogo-todo', 'sogo');
> > \q
export CLASSPATH=$CLASSPATH:/opt/Funambol/tools/tomcat/lib/mysql-connector-java-5.1.15-bin.jar
/opt/Funambol/bin/admin-passwd
(sa => xxxxxxxxxx)

/opt/Funambol/bin/funambol start
# mise en place du fichier de gestion (start/stop) dan /etc/init.d

cat > /tmp/funambol-initd << __EOF__
#!/bin/sh
### BEGIN INIT INFO
# Provides: funambol
# Required-Start: \$local_fs \$remote_fs \$network \$syslog \$sogo
# Required-Stop: \$local_fs \$remote_fs \$network \$syslog \$sogo
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop Funambol server
### END INIT INFO

set -e

__EOF__

sed -i -e "s/^#\!\/bin\/sh//" /opt/Funambol/bin/funambol

cat /opt/Funambol/bin/funambol >> /tmp/funambol-initd
rm /opt/Funambol/bin/funambol
mv /tmp/funambol-initd /opt/Funambol/bin/funambol
chown root.funambol /opt/Funambol/bin/funambol
chmod a+x,g+w /opt/Funambol/bin/funambol
Ligne 104: Ligne 92:
ln -s /etc/init.d/funambol /etc/rc2.d/S20funambol insserv funambol

aptitude install patch
Ligne 120: Ligne 110:
modifier /etc/apache2/conf.d/SOGo.conf en ajoutant
******
# s'assurer qu'il n'y a aucune instance de funambol (java) en cours
ps auxw | grep java
# si oui, les arrêter
killall java

# On lance Funambol
/etc/init.d/funambol start

# config apache

cat >> /etc/apache2/conf.d/SOGo.conf << __EOF__
Ligne 129: Ligne 129:
******

-= SOGo =-

mysql -pxxxxxxxxxxx
> > create database sogo;
> > grant all privileges on sogo.* to 'sogo'@'localhost' identified by 'xxxxxxxxxx';
> > grant all privileges on sogo.* to 'sogo'@'sogo.xx.auf.org' identified by 'xxxxxxxxxxxxxxx';
> > grant all privileges on sogo.* to 'sogo'@'sogo.ca.auf.org' identified by 'xxxxxxxxxxxxxxx';
__EOF__

# Relancer apache
/etc/init.d/apache2 restart

# configuration du connecteur sogo pour funambol

mysql -h localhost -u funambol funambol -p
> > INSERT INTO fnbl_sync_source (uri, config, name, sourcetype) VALUES
('sogo-cal', 'sogo/sogo/sogo/sogo-cal.xml', 'sogo-cal', 'sogo'),
('sogo-card', 'sogo/sogo/sogo/sogo-card.xml', 'sogo-card', 'sogo'),
('sogo-todo', 'sogo/sogo/sogo/sogo-todo.xml', 'sogo-todo', 'sogo');
Ligne 139: Ligne 142:
defaults -u sogo write sogod SOGoMailDomain xx.auf.org
defaults -u sogo write sogod SOGoMailingMechanism smtp
defaults -u sogo write sogod SOGoSMTPServer smtp.xx.auf.org
defaults -u sogo write sogod SOGoLanguage French
defaults -u sogo write sogod SOGoTimeZone America/Montreal
defaults -u sogo write sogod SOGoEnableEMailAlarms YES
defaults -u sogo write sogod OCSSessionsFolderURL mysql://sogo:xxxxxxxx@sogo.xx.auf.org:3306/sogo/sogo_sessions_folder
defaults -u sogo write sogod OCSFolderInfoURL mysql://sogo:xxxxxxxxx@sogo.xx.auf.org:3306/sogo/sogo_folder_info
defaults -u sogo write sogod SOGoProfileURL mysql://sogo:xxxxxxx@sogo.xx.auf.org:3306/sogo/sogo_user_profile
defaults -u sogo write sogod OCSEMailAlarmsFolderURL mysql://sogo:xxxxxxxx@sogo.xx.auf.org:3306/sogo/sogo_alarms_folder
defaults -u sogo write sogod SOGoIMAPServer imap.xx.auf.org
defaults -u sogo write sogod SOGoUserSources '(
    {
        canAuthenticate = YES;
        displayName = AUF;
        id = users;
        isAddressBook = YES;
        type = sql;
        userPasswordAlgorithm = md5;
        viewURL = "mysql://sogo:xxxxxx@sogo.xx.auf.org:3306/sogo/auf_users";
        IMAPLoginFieldName = mail_pays;
        authenticationFilter = "(mail_pays like '\''%@xx.auf.org'\'')";
    }
)'

sed -i -e 's/JDBC_JAR=/JDBC_JAR="\/opt\/Funambol\/tools\/tomcat\/lib\/mysql-connector-java-5.1.18-bin.jar"/' /opt/Funambol/bin/admin-passwd

# changer le mot de passe admin
/opt/Funambol/bin/admin-passwd
# ancien mot de passe : "sa"
# entrer un nouveau

####### CETTE PARTIE DE LA CONFIG SE PASSE SUR UN POSTE UBUNTU ###############
# télécharger sur un poste Ubuntu le funamboladmin pour configurer les connecteurs SOGo
# http://downloads.sourceforge.net/project/funambol/admin-tool/v10/funambol-admin-10.0.0.tgz?r=&ts=1319637068&use_mirror=iweb
# désarchiver le fichier funambol-admin-10.0.0.tgz
# aller dans le nouveau dossier créer (`Funambol`) et lancer l'outil d'admin : `./Funambol/admin/bin/funamboladmin` (c'est un outil graphique)
# double cliquer sur "Funambol Administration Tool" dans le menu de gauche
# se connecter à son serveur (dans le pop-up qui s'affiche), sur le port 80 avec le mot de passe mis ci-dessus
# aller à sogo.xx.auf.org > Modules > sogo > FunambolSOGoConnector > SOGo SyncSource et ajouter une source (en double cliquant sur "SOGo SyncSource") pour chaque type de données à synchroniser (calendrier, carnet et notes) :

## pour le carnet d'adresses
# Source URI: sogo-card
# Name: sogo-card
# Supported type: text/x-vcard
# Database URL: jdbc:mysql://sogo.xx.auf.org/sogo
# Database username: sogo
# Database password: xxxxxxxxxxxxxx # mot de passe d'accès à la BdD sogo

## pour l'agendas :
# Source URI: sogo-cal
# Name: sogo-cal
# Supported type: text/x-vcal
# Database URL: jdbc:mysql://sogo.xx.auf.org/sogo
# Database username: sogo
# Database password: xxxxxxxxxxxxxx

# pour les notes :
# Source URI: sogo-todo
# Name: sogo-todo
# Supported type: text/x-todo
# Database URL: jdbc:mysql://sogo.xx.auf.org/sogo
# Database username: sogo
# Database password: xxxxxxxxxxxxxx

###############################################################################

# Retour au serveur

# On relance Funambol
/etc/init.d/funambol stop ; /etc/init.d/funambol start

rm -rf /opt/tmp-funambol-A-SUPPRIMER

# Terminé
Ligne 164: Ligne 195:

== Sur les clients ==

=== Installation du client funambol sur un BlackBerry ===

 1. installer Funambol Sync directement à partir du Blackberry

  1. Ouvrir le navigateur du blackberry
  1. Inscrire l'adresse suivante (http://my.funambol.com/bb/sync45.jad (OS =< 4.5)) ou (http://my.funambol.com/bb/sync47.jad (OS >= 4.7))

 1. sur le BB, après l'installation, l'application n'apparait pas dans la liste des appli dispo. L'astuce que j'ai découverte :
  1. ouvrir une application quelconque
  1. taper la touche "menu" et choisir "changer d'application", et là on a notre funambol BB sync

 1. la suite : (extrait de la documentation SOGo : http://www.sogo.nu/files/docs/SOGo%20Mobile%20Devices%20Configuration.pdf)
  {{{
 From the Tools menu, choose Options...:
❏ Specify the Location. If your SOGo server is sogo.domain.com, the location should be
http://sogo.domain.com/funambol/ds
❏ Specify your username and password
❏ Check the Contacts check box and click on the Details button. The synchronization type is two-
way and the Remote name is 'sogo-card'. The data format is vCard.
❏ Check the Calendar check box and click on the Details button. The synchronization type is two-
way and the Remote name is 'sogo-cal'. The data format is vCalendar.
❏ Check the Tasks check box and click on the Details button. The synchronization type is two-way
and the Remote name is 'sogo-todo'. The data format is SIF.
❏ Save the preferences.
  }}}
 1. il ne reste plus qu'à accéder aux menus calendrier et carnet d'adresses.

'''Terminé'''

NB : Pour mémoire : installation depuis le BB Desktop Manager
{{{
 1. télécharger le client (funambol_sync_plugin pour BB) ici : https://www.forge.funambol.org/download/#phone
 1. décompresser l'archive et convertir le fichier .jad en .alx (utiliser par exemple l'outil [[http://wizzzdeveloppement.free.fr/index.php?lang=fr&page=tab4|GivemeYourJad]] sous M$ Windows)
 1. utiliser le BB Desktop Manager (sous M$ Windows) pour installer l'application :
  1. choisir l'option "chargeur d'applications"
  1. ensuite "ajouter-supprimer des applications"
  1. faire "parcourir" pour retrouver le fichier .alx précédemment créé
  1. enfin "suivant", "suivant" ... "terminer"
}}}


=== Installation du client funambol sur Androïd ===
 1. à partir du "androïd market" installer funambol sync client
 1. suivre la [[https://www.forge.funambol.org/servlets/OCNDirector?id=DOCQSANDR|doc]] : [[attachment:Funambol-android-sync-client-quick-start-guide-v10.0.pdf]]
   * Dans la section "Remote Names", renseigner :
    * 'sogo-card' pour le carnet d'adresses
    * 'sogo-cal' pour l'agenda
 NB : les tests qui ont été fait aujourd'hui n'ont pas été concluants : la synchro ne s'achève jamais et l'agenda est pollué d'événement déjà existants (retransmis par l'androïd).

=== Android 3.0.1 tablette Acer ===
 1. à partir du "androïd market" rechercher et installer funambol sync client
 1. ouvrir l'application funambol sync client
 1. en bas à droite cliquer pour "compte existant"
 1. saisir nom d'utilisateur (`prenom.nom`), mot de passe et url du serveur '''http://sogo.ca.auf.org/funambol/ds'''
 1. connecter
 1. une fois connecté, une nouvelle fenêtre s'ouvre
 1. en bas, 4ème icône (bouton "options" d'android), choisir '''settings'''
 1. dans l'onglet '''Sync''', configurer les options de synchronisation ; désactiver la synchro pour Pictures, Videos et Files
 1. puis onglet '''Advanced''', tout en bas cliquer '''Remote Names''' et renseigner :
  * 'sogo-card' pour le carnet d'adresses
  * 'sogo-cal' pour l'agenda
 1. cliquer '''save'''
 1. de retour dans la fenêtre principal funambol, cliquer sur '''Sync All''' (en bas)
 1. aller enfin dans les applications '''Agenda''' et '''Contacts'''

Procédure d'installation du serveur Funambol

Source : Francis @Inverse.ca, mise à jour et adapté par MoussaNombre

  • NB : créer une partition dédiée : /opt : 3G
    • mysql -pxxxxxxxxxxxxxx
      > > CREATE DATABASE funambol DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
      > > USE funambol;
      > > GRANT ALL PRIVILEGES ON funambol.* TO 'funambol'@'localhost' IDENTIFIED BY 'xxxxxxxxxxxxxxxx';
      > > \q
      mkdir /opt/tmp-funambol-A-SUPPRIMER   # pour ne pas saturer la racine (1G)
      cd /opt/tmp-funambol-A-SUPPRIMER
      
      wget http://download.forge.objectweb.org/sync4j/funambol-9.0.0.bin
      wget http://json-simple.googlecode.com/files/json_simple.jar
      wget http://www.sogo.nu/uploads/Funambol/funambol-sogo-1.0.9.s4j
      wget http://mysql.mirror.iweb.ca/Downloads/Connector-J/mysql-connector-java-5.1.18.tar.gz
      wget http://www.apache.org/dist/commons/configuration/binaries/commons-configuration-1.7-bin.tar.gz
      wget http://www.apache.org/dist/commons/lang/binaries/commons-lang3-3.0.1-bin.tar.gz
      wget http://www.apache.org/dist/commons/logging/binaries/commons-logging-1.1.1-bin.tar.gz
      wget http://www.apache.org/dist/commons/collections/binaries/commons-collections-3.2.1-bin.tar.gz
      
      # extraire les .jar en désarchivant les tar.gz
      for i in *.tar.gz; do tar xvfz $i; done
      
      sh funambol-9.0.0.bin   
      ...
      /opt/Funambol/bin/funambol stop
      
      cp -av json_simple.jar */*.jar /opt/Funambol/tools/tomcat/lib/
      
      cp funambol-sogo-1.0.9.s4j /opt/Funambol/ds-server/modules/
       
      cat > /opt/Funambol/ds-server/install.properties << __EOF__
      server-uri=
      
      context-path=/funambol
      
      dbms=mysql
      
      # MySQL
      # =====
      
      jdbc.classpath=/opt/Funambol/tools/tomcat/lib/mysql-connector-java-5.1.18-bin.jar
      jdbc.driver=com.mysql.jdbc.Driver
      jdbc.url=jdbc:mysql://[hostname]/funambol?characterEncoding=UTF-8
      jdbc.user=funambol
      jdbc.password=le_mdp_funambol
      
      modules-to-install=content-provider-9.0.0,email-connector-9.0.0,foundation-9.0.0,phones-support-9.0.0,webdemo-9.0.0,funambol-sogo-1.0.9
      __EOF__
      
      groupadd funambol
      useradd -g funambol -d /opt/Funambol funambol
      chmod 770 /opt/Funambol/
      chown -R funambol:funambol /opt/Funambol/
      
      cd /opt/Funambol/
      yes | ./bin/install
      
      # mise en place du fichier de gestion (start/stop) dan /etc/init.d
      
      cat > /tmp/funambol-initd << __EOF__
      #!/bin/sh
      ### BEGIN INIT INFO
      # Provides:          funambol
      # Required-Start:    \$local_fs \$remote_fs \$network \$syslog \$sogo
      # Required-Stop:     \$local_fs \$remote_fs \$network \$syslog \$sogo
      # Default-Start:     2 3 4 5
      # Default-Stop:      0 1 6
      # X-Interactive:     true
      # Short-Description: Start/stop Funambol server
      ### END INIT INFO
      
      set -e
      
      __EOF__
      
      sed  -i -e "s/^#\!\/bin\/sh//" /opt/Funambol/bin/funambol
      
      cat /opt/Funambol/bin/funambol >> /tmp/funambol-initd
      rm /opt/Funambol/bin/funambol
      mv /tmp/funambol-initd /opt/Funambol/bin/funambol
      chown root.funambol /opt/Funambol/bin/funambol
      chmod a+x,g+w /opt/Funambol/bin/funambol
      
      ln -s /opt/Funambol/bin/funambol /etc/init.d/funambol
      insserv funambol
      
      aptitude install patch
      
      patch -p0 <<EOF
      --- /opt/Funambol/bin/funambol.orig     2010-11-16 21:24:36.599675745 +0000
      +++ /opt/Funambol/bin/funambol  2010-11-16 21:24:45.630909962 +0000
      @@ -1,7 +1,6 @@
       #!/bin/sh
       
      -cd \`dirname \$0\`
      -FUNAMBOL_HOME=\`(cd .. ; pwd)\`
      +FUNAMBOL_HOME=/opt/Funambol
       DS_SERVER_HOME=\$FUNAMBOL_HOME/ds-server
       
       if [ ! -d \$FUNAMBOL_HOME/config ]; then
      EOF
      
      # s'assurer qu'il n'y a aucune instance de funambol (java) en cours
      ps auxw | grep java
      # si oui, les arrêter
      killall java
      
      # On lance Funambol
      /etc/init.d/funambol start
      
      # config apache 
      
      cat >> /etc/apache2/conf.d/SOGo.conf << __EOF__
      
      # Pour funambol
      ProxyPass /funambol http://127.0.0.1:8080/funambol retry=1
      ProxyPassReverse /funambol http://127.0.0.1:8080/funambol
      <Proxy http://127.0.0.1:8080/funambol>
          Order allow,deny
        Allow from all
      </Proxy>
      __EOF__
      
      # Relancer apache
      /etc/init.d/apache2 restart
      
      # configuration du connecteur sogo pour funambol
      
      mysql -h localhost -u funambol funambol -p
      > > INSERT INTO fnbl_sync_source (uri, config, name, sourcetype) VALUES
      ('sogo-cal', 'sogo/sogo/sogo/sogo-cal.xml', 'sogo-cal', 'sogo'),
      ('sogo-card', 'sogo/sogo/sogo/sogo-card.xml', 'sogo-card', 'sogo'),
      ('sogo-todo', 'sogo/sogo/sogo/sogo-todo.xml', 'sogo-todo', 'sogo');
      > > \q
      
      sed -i -e 's/JDBC_JAR=/JDBC_JAR="\/opt\/Funambol\/tools\/tomcat\/lib\/mysql-connector-java-5.1.18-bin.jar"/' /opt/Funambol/bin/admin-passwd
      
      # changer le mot de passe admin
      /opt/Funambol/bin/admin-passwd
      # ancien mot de passe : "sa"
      # entrer un nouveau
      
      ####### CETTE PARTIE DE LA CONFIG SE PASSE SUR UN POSTE UBUNTU  ###############
      # télécharger sur un poste Ubuntu le funamboladmin pour configurer les connecteurs SOGo
      # http://downloads.sourceforge.net/project/funambol/admin-tool/v10/funambol-admin-10.0.0.tgz?r=&ts=1319637068&use_mirror=iweb
      # désarchiver le fichier funambol-admin-10.0.0.tgz
      # aller dans le nouveau dossier créer (`Funambol`) et lancer l'outil d'admin : `./Funambol/admin/bin/funamboladmin` (c'est un outil graphique)
      # double cliquer sur "Funambol Administration Tool" dans le menu de gauche
      # se connecter à son serveur (dans le pop-up qui s'affiche), sur le port 80 avec le mot de passe mis ci-dessus
      # aller à sogo.xx.auf.org > Modules > sogo > FunambolSOGoConnector > SOGo SyncSource et ajouter une source (en double cliquant sur "SOGo SyncSource") pour chaque type de données à synchroniser (calendrier, carnet et notes) :
      
      ## pour le carnet d'adresses
      # Source URI:        sogo-card
      # Name:              sogo-card
      # Supported type:    text/x-vcard
      # Database URL:      jdbc:mysql://sogo.xx.auf.org/sogo
      # Database username: sogo
      # Database password: xxxxxxxxxxxxxx   # mot de passe d'accès à la BdD sogo
      
      ## pour l'agendas :
      # Source URI:        sogo-cal
      # Name:              sogo-cal
      # Supported type:    text/x-vcal
      # Database URL:      jdbc:mysql://sogo.xx.auf.org/sogo
      # Database username: sogo
      # Database password: xxxxxxxxxxxxxx
      
      # pour les notes :
      # Source URI:        sogo-todo
      # Name:              sogo-todo
      # Supported type:    text/x-todo
      # Database URL:      jdbc:mysql://sogo.xx.auf.org/sogo
      # Database username: sogo
      # Database password: xxxxxxxxxxxxxx
      
      ###############################################################################
      
      # Retour au serveur
      
      # On relance Funambol
      /etc/init.d/funambol stop ; /etc/init.d/funambol start
      
      rm -rf /opt/tmp-funambol-A-SUPPRIMER
      
      # Terminé

Sur les clients

Installation du client funambol sur un BlackBerry

  1. installer Funambol Sync directement à partir du Blackberry
    1. Ouvrir le navigateur du blackberry
    2. Inscrire l'adresse suivante (http://my.funambol.com/bb/sync45.jad (OS =< 4.5)) ou (http://my.funambol.com/bb/sync47.jad (OS >= 4.7))

  2. sur le BB, après l'installation, l'application n'apparait pas dans la liste des appli dispo. L'astuce que j'ai découverte :
    1. ouvrir une application quelconque
    2. taper la touche "menu" et choisir "changer d'application", et là on a notre funambol BB sync
  3. la suite : (extrait de la documentation SOGo : http://www.sogo.nu/files/docs/SOGo%20Mobile%20Devices%20Configuration.pdf)

    •  From the Tools menu, choose Options...:
      ❏ Specify the Location. If your SOGo server is sogo.domain.com, the location should be
      http://sogo.domain.com/funambol/ds
      ❏ Specify your username and password
      ❏ Check the Contacts check box and click on the Details button. The synchronization type is two-
      way and the Remote name is 'sogo-card'. The data format is vCard.
      ❏ Check the Calendar check box and click on the Details button. The synchronization type is two-
      way and the Remote name is 'sogo-cal'. The data format is vCalendar.
      ❏ Check the Tasks check box and click on the Details button. The synchronization type is two-way
      and the Remote name is 'sogo-todo'. The data format is SIF.
      ❏ Save the preferences.
  4. il ne reste plus qu'à accéder aux menus calendrier et carnet d'adresses.

Terminé

NB : Pour mémoire : installation depuis le BB Desktop Manager

 1. télécharger le client (funambol_sync_plugin pour BB) ici : https://www.forge.funambol.org/download/#phone
 1. décompresser l'archive et convertir le fichier .jad en .alx (utiliser par exemple l'outil [[http://wizzzdeveloppement.free.fr/index.php?lang=fr&page=tab4|GivemeYourJad]] sous M$ Windows)
 1. utiliser le BB Desktop Manager (sous M$ Windows) pour installer l'application :
  1. choisir l'option "chargeur d'applications"
  1. ensuite "ajouter-supprimer des applications"
  1. faire "parcourir" pour retrouver le fichier .alx précédemment créé
  1. enfin "suivant", "suivant" ... "terminer"

Installation du client funambol sur Androïd

  1. à partir du "androïd market" installer funambol sync client
  2. suivre la doc : Funambol-android-sync-client-quick-start-guide-v10.0.pdf

    • Dans la section "Remote Names", renseigner :
      • 'sogo-card' pour le carnet d'adresses
      • 'sogo-cal' pour l'agenda
    NB : les tests qui ont été fait aujourd'hui n'ont pas été concluants : la synchro ne s'achève jamais et l'agenda est pollué d'événement déjà existants (retransmis par l'androïd).

Android 3.0.1 tablette Acer

  1. à partir du "androïd market" rechercher et installer funambol sync client
  2. ouvrir l'application funambol sync client
  3. en bas à droite cliquer pour "compte existant"
  4. saisir nom d'utilisateur (prenom.nom), mot de passe et url du serveur http://sogo.ca.auf.org/funambol/ds

  5. connecter
  6. une fois connecté, une nouvelle fenêtre s'ouvre
  7. en bas, 4ème icône (bouton "options" d'android), choisir settings

  8. dans l'onglet Sync, configurer les options de synchronisation ; désactiver la synchro pour Pictures, Videos et Files

  9. puis onglet Advanced, tout en bas cliquer Remote Names et renseigner :

    • 'sogo-card' pour le carnet d'adresses
    • 'sogo-cal' pour l'agenda
  10. cliquer save

  11. de retour dans la fenêtre principal funambol, cliquer sur Sync All (en bas)

  12. aller enfin dans les applications Agenda et Contacts

Projet/SOGo/ProcédureInstallationFunambol (dernière édition le 2012-01-11 16:12:18 par MoussaNombre)