Modifications entre les versions 19 et 20
Version 19 à la date du 2011-10-21 15:10:31
Taille: 12059
Éditeur: MoussaNombre
Commentaire: Mise à jour
Version 20 à la date du 2011-10-23 18:59:03
Taille: 12079
Éditeur: MoussaNombre
Commentaire: Mise à jour
Texte supprimé. Texte ajouté.
Ligne 53: Ligne 53:
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 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

Procédure d'installation du serveur Funambol

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

  • mysql -pxxxxxxxxxxxxxx
    > > create database funambol;
    > > use funambol;
    > > grant all privileges on funambol.* to 'funambol'@'localhost' identified by 'xxxxxxxxxxxxxxxx';
    > > \q
    mkdir /tmp/funambol
    cd /tmp/funambol
    
    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   # NM : à ce stade, j'ai choisi de mettre funambol dans /var/lib plutôt que dans /opt comme proposé par défaut
    # il faut adapter le chemin dans la suite si vous décidez d'en faire de même
    ...
    /opt/Funambol/bin/funambol stop
    
    cp -av */*.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
    
    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.18-bin.jar
    # changer le mot de passe admin
    /opt/Funambol/bin/admin-passwd
    # ancien mot de passe : "sa"
    # entrer un nouveau
    
    # paramétrer databasePassword dans les fichiers /opt/Funambol/config/sogo/sogo/sogo/sogo-*.xml suivants en remplacant les "xxxxxxxxxxxx" par le mot de passe du compte sogo d'accès à la BdD
    
    mkdir -p /opt/Funambol/config/sogo/sogo/sogo/
    
    cat > /opt/Funambol/config/sogo/sogo/sogo/sogo-cal.xml << __EOF__
    <?xml version="1.0" encoding="UTF-8"?> 
    <java version="1.6.0_17" class="java.beans.XMLDecoder"> 
     <object class="ca.inverse.sogo.engine.source.SOGoSyncSource"> 
      <void property="databasePassword"> 
       <string>xxxxxxxxxxxx</string>                
      </void> 
      <void property="databaseURL"> 
       <string>jdbc:mysql://sogo.xx.auf.org/sogo</string> 
      </void> 
      <void property="databaseUsername"> 
       <string>sogo</string> 
      </void> 
      <void property="info"> 
       <object class="com.funambol.framework.engine.source.SyncSourceInfo"> 
        <void property="supportedTypes"> 
         <array class="com.funambol.framework.engine.source.ContentType" length="1"> 
          <void index="0"> 
           <object class="com.funambol.framework.engine.source.ContentType"> 
            <void property="type"> 
             <string>text/x-vevent</string> 
            </void> 
            <void property="version"> 
             <string>1</string> 
            </void> 
           </object> 
          </void> 
         </array> 
        </void> 
       </object> 
      </void> 
      <void property="name"> 
       <string>sogo-cal</string> 
      </void> 
      <void property="sourceURI"> 
       <string>sogo-cal</string> 
      </void> 
     </object> 
    </java>
    __EOF__
    
    
    cat > /opt/Funambol/config/sogo/sogo/sogo/sogo-card.xml << __EOF__
    <?xml version="1.0" encoding="UTF-8"?> 
    <java version="1.6.0_17" class="java.beans.XMLDecoder"> 
     <object class="ca.inverse.sogo.engine.source.SOGoSyncSource"> 
      <void property="databasePassword"> 
       <string>xxxxxxxxxxx</string> 
      </void> 
      <void property="databaseURL"> 
       <string>jdbc:mysql://sogo.xx.auf.org/sogo</string> 
      </void> 
      <void property="databaseUsername"> 
       <string>sogo</string> 
      </void> 
      <void property="info"> 
       <object class="com.funambol.framework.engine.source.SyncSourceInfo"> 
        <void property="supportedTypes"> 
         <array class="com.funambol.framework.engine.source.ContentType" length="1"> 
          <void index="0"> 
           <object class="com.funambol.framework.engine.source.ContentType"> 
            <void property="type"> 
             <string>text/x-vcard</string> 
            </void> 
            <void property="version"> 
             <string>1</string> 
            </void> 
           </object> 
          </void> 
         </array> 
        </void> 
       </object> 
      </void> 
      <void property="name"> 
       <string>sogo-card</string> 
      </void> 
      <void property="sourceURI"> 
       <string>sogo-card</string> 
      </void> 
     </object> 
    </java>
    __EOF__
    
    
    cat > /opt/Funambol/config/sogo/sogo/sogo/sogo-todo.xml << __EOF__
    <?xml version="1.0" encoding="UTF-8"?> 
    <java version="1.6.0_17" class="java.beans.XMLDecoder"> 
     <object class="ca.inverse.sogo.engine.source.SOGoSyncSource"> 
      <void property="databasePassword"> 
       <string>xxxxxxxxxxxx</string> 
      </void> 
      <void property="databaseURL"> 
       <string>jdbc:mysql://sogo.xx.auf.org/sogo</string> 
      </void> 
      <void property="databaseUsername"> 
       <string>sogo</string> 
      </void> 
      <void property="info"> 
       <object class="com.funambol.framework.engine.source.SyncSourceInfo"> 
        <void property="supportedTypes"> 
         <array class="com.funambol.framework.engine.source.ContentType" length="1"> 
          <void index="0"> 
           <object class="com.funambol.framework.engine.source.ContentType"> 
            <void property="type"> 
             <string>text/x-vtodo</string> 
            </void> 
            <void property="version"> 
             <string>1</string> 
            </void> 
           </object> 
          </void> 
         </array> 
        </void> 
       </object> 
      </void> 
      <void property="name"> 
       <string>sogo-todo</string> 
      </void> 
      <void property="sourceURI"> 
       <string>sogo-todo</string> 
      </void> 
     </object> 
    </java>
    __EOF__
    
    chown -R funambol: /opt/Funambol/
    
    # 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
    
    # On lance Funambol
    /etc/init.d/funambol start
    
    -- config apache : ajoutée par NM --
    
    modifier /etc/apache2/conf.d/SOGo.conf en ajoutant
    ******
    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

Installation du client funambol sur un BlackBerry

  1. télécharger le client (funambol_sync_plugin pour BB) ici : https://www.forge.funambol.org/download/#phone

  2. décompresser l'archive et convertir le fichier .jad en .alx (utiliser par exemple l'outil GivemeYourJad sous M$ Windows)

  3. utiliser le BB Desktop Manager (sous M$ Windows) pour installer l'application :
    1. choisir l'option "chargeur d'applications"
    2. ensuite "ajouter-supprimer des applications"
    3. faire "parcourir" pour retrouver le fichier .alx précédemment créé
    4. enfin "suivant", "suivant" ... "terminer"
  4. 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
  5. 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.
  6. il ne reste plus qu'à accéder aux menus calendrier et carnet d'adresses.

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)