Modifications entre les versions 23 et 24
Version 23 à la date du 2011-10-29 03:49:03
Taille: 10082
Éditeur: MoussaNombre
Commentaire: Mise à jour
Version 24 à la date du 2011-11-21 14:17:20
Taille: 10416
Commentaire:
Texte supprimé. Texte ajouté.
Ligne 199: Ligne 199:

==== 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))
3. Une fois installé, suivre la procédure de paramétrage ci-dessous.
}}}

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/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

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))
3. Une fois installé, suivre la procédure de paramétrage ci-dessous.
  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)