Firefox sync : Différence entre versions

De SME Server Wiki
 
(5 révisions intermédiaires par le même utilisateur non affichées)
Ligne 4 : Ligne 4 :
  
 
http://docs.services.mozilla.com/server-devguide/setup.html
 
http://docs.services.mozilla.com/server-devguide/setup.html
 +
 +
http://pypi.python.org/pypi/Mercurial/1.2.1
 +
 +
  
 
==prerequis==
 
==prerequis==
 
  yum install  mysql-devel openldap-devel
 
  yum install  mysql-devel openldap-devel
  yum install bzip2 bzip2-devel bzip2-libs  readline readline-devel tkinter gdbm-devel
+
  yum install bzip2 bzip2-devel bzip2-libs  readline readline-devel tkinter gdbm-devel tk-devel sqlite-devel db4-devel openssl-devel  bluez-libs-devel
  
 
(va aussi installer tcl tk et tix)
 
(va aussi installer tcl tk et tix)
  
=== Mercurial repo===
+
http://bda.ath.cx/blog/2009/04/08/installing-python-26-in-centos-5-or-rhel5/
wget http://pkgs.repoforge.org/mercurial/mercurial-hgk-1.2.1-1.el4.rf.i386.rpm
+
 
wget http://pkgs.repoforge.org/mercurial/mercurial-1.2.1-1.el4.rf.i386.rpm
+
 
yum localinstall mercurial-hgk-1.2.1-1.el4.rf.i386.rpm mercurial-1.2.1-1.el4.rf.i386.rpm
+
  
 
===python===
 
===python===
Ligne 23 : Ligne 26 :
 
  make
 
  make
 
  make install
 
  make install
 +
 +
lors de la compilation il y aura un message a la fin indiquanr qu'il ne peut compiler les modules pour bsddb185 et sunaudiodev, mais ils ne seront pas utilise sous SME.
  
 
=== path python ===
 
=== path python ===
Ligne 29 : Ligne 34 :
 
  cp -a  python python23
 
  cp -a  python python23
 
  rm python -f
 
  rm python -f
  ln -sf /usr/local/bin/python python
+
  ln -sf /usr/local/bin/python /usr/bin/python
  
 
=== Installer les plugins de python requis ===
 
=== Installer les plugins de python requis ===
  
  curl -O http://python-distribute.org/distribute_setup.py
+
curl -O http://python-distribute.org/distribute_setup.py
  python distribute_setup.py
+
python distribute_setup.py
  easy_install MoPyTools
+
easy_install MoPyTools
  easy_install mercurial
+
easy_install docutils
 +
easy_install roman
 +
easy_install mercurial
 +
 
 +
== installer mercurial===
 +
cd
 +
wget http://mercurial.selenic.com/release/mercurial-2.2.tar.gz
 +
tar -xzf mercurial-2.2.tar.gz
 +
cd mercurial
 +
make install
  
 
== compiler sync==
 
== compiler sync==
Ligne 44 : Ligne 58 :
  
  
pour le moment j'ai un
 
abort: couldn't find mercurial libraries in [/usr/bin /usr/local/lib/python2.6/site-packages/distribute-0.6.27-py2.6.egg /usr/local/lib/python2.6/site-packages/MoPyTools-3.2-py2.6.egg /usr/local/lib/python2.6/site-packages/pypi2rpm-0.6.3-py2.6.egg /usr/local/lib/python2.6/site-packages/virtualenv-1.7.2-py2.6.egg /usr/local/lib/python2.6/site-packages/Distutils2-1.0a3-py2.6.egg /usr/local/lib/python2.6/site-packages/flake8-1.3.1-py2.6.egg /usr/local/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg /usr/local/lib/python2.6/site-packages/PasteScript-1.7.5-py2.6.egg /usr/local/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg /usr/local/lib/python2.6/site-packages/argparse-1.2.1-py2.6.egg /usr/local/lib/python26.zip /usr/local/lib/python2.6 /usr/local/lib/python2.6/plat-linux2 /usr/local/lib/python2.6/lib-tk /usr/local/lib/python2.6/lib-old /usr/local/lib/python2.6/lib-dynload /usr/local/lib/python2.6/site-packages /usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info]
 
(check your install and PYTHONPATH)
 
  
 +
avec succés !!
  
 
==restaurer python==
 
==restaurer python==
Ligne 55 : Ligne 67 :
 
  rm -f /usr/bin/python
 
  rm -f /usr/bin/python
 
  cp -a /usr/bin/python23 /usr/bin/python
 
  cp -a /usr/bin/python23 /usr/bin/python
  rm -f /usr/bin/pytho23
+
  rm -f /usr/bin/python23
 
ou temporairement
 
ou temporairement
 
  cd /usr/bin
 
  cd /usr/bin
Ligne 63 : Ligne 75 :
  
 
==serveur web==
 
==serveur web==
 +
 +
==rpm ico ==
 +
 +
http://www.jethrocarr.com/2012/03/04/mozilla-sync-server-rpms/
 +
 +
http://repos.amberdms.com/pub/amberdms/linux/centos/5/amberdms-os/SRPMS/

Version actuelle en date du 26 juin 2012 à 21:10

installer le serveur sync de firefox sur sme 7

http://docs.services.mozilla.com/howtos/run-sync.html

http://docs.services.mozilla.com/server-devguide/setup.html

http://pypi.python.org/pypi/Mercurial/1.2.1


prerequis

yum install  mysql-devel openldap-devel
yum install bzip2 bzip2-devel bzip2-libs  readline readline-devel tkinter gdbm-devel tk-devel sqlite-devel db4-devel openssl-devel  bluez-libs-devel

(va aussi installer tcl tk et tix)

http://bda.ath.cx/blog/2009/04/08/installing-python-26-in-centos-5-or-rhel5/


python

télécharger python 2.6.8,

tar -xzf
cd
./configure
make
make install

lors de la compilation il y aura un message a la fin indiquanr qu'il ne peut compiler les modules pour bsddb185 et sunaudiodev, mais ils ne seront pas utilise sous SME.

path python

https://wiki.archlinux.org/index.php/Mozilla_Sync_Server#Python_preparation

cd /usr/bin
cp -a  python python23
rm python -f
ln -sf /usr/local/bin/python /usr/bin/python

Installer les plugins de python requis

curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py
easy_install MoPyTools
easy_install docutils
easy_install roman
easy_install mercurial

installer mercurial=

cd
wget http://mercurial.selenic.com/release/mercurial-2.2.tar.gz
tar -xzf mercurial-2.2.tar.gz
cd mercurial
make install

compiler sync

 hg clone https://hg.mozilla.org/services/server-full
 cd server-full
 make build


avec succés !!

restaurer python

http://www.wenks.ch/fabian/mozilla-custom-sync-server/

cd /usr/bin
rm -f /usr/bin/python
cp -a /usr/bin/python23 /usr/bin/python
rm -f /usr/bin/python23

ou temporairement

cd /usr/bin
rm -f /usr/local/bin/python23
ln -sf /usr/bin/python23 /usr/bin/python


serveur web

rpm ico

http://www.jethrocarr.com/2012/03/04/mozilla-sync-server-rpms/

http://repos.amberdms.com/pub/amberdms/linux/centos/5/amberdms-os/SRPMS/