Installation Of Open ERP Client, Server And Open ERP eTiny Server On CentOS 5.2
This article will show you how to configure and install the Open ERP 4.2.2 Server, Client and eTiny Server for Cent OS 5.2.
Enable EPEL Repository
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
Install Dependencies
yum install subversion
yum install bzr
yum install vim-enhanced.x86_64
yum install python-psycopg2.x86_64
yum install pytz.noarch
yum install python-psycopg2
yum install PyXML.x86_64
yum install mx.x86_64
yum install libxslt-python.x86_64
yum install python-imaging.x86_64
rpm -i python-psycopg-1.1.21-7.el5.kb.x86_64.rpm
Reference centos.karan.org/el5/extras/testing/x86_64/RPMS/python-psycopg-1.1.21-7.el5.kb.x86_64.rpm
http://rpm.pbone.net/index.php3?stat=3&search=python-psycopg&srodzaj=3
yum install pygtk2.x86_64
yum install python-matplotlib
yum install TurboGears
Build Repository file pgdg-82-centos.repo
wget http://yum.pgsqlrpms.org/reporpms/repoview/pgdg-centos.html
Reference http://yum.pgsqlrpms.org/reporpms/repoview/letter_p.group.html
rpm -i pgdg-centos-8.2-4.noarch.rpm
Move pgdg-82-centos.repo to /etc/yum.repos.d.
Install PostgreSQL 8.2
yum install postgres
yum install postgresql-server.x86_64
service postgresql initdb
Your Server, Client and eTiny Server are ready for use.
From terminal go to your tinyerp server's bin directory and start the server:
./tinyerp-server.py
From terminal go to your eTiny server's root directory and start the server:
./start-tinyerp.py
After successful installation you can browse the url http://localhost:8069.
Before using the above eTiny you might need to create one new database for the TinyERP server. You can do it from the Tiny ERP GTK client, to do this go to bin directory of tinyerp client and start the client:
./tinyerp-client.py
Then create one clean database.
#!/bin/bash
###########################################
## Setting UP Open ERP Server,eTiny #
## Server and OpenERP Client On CentOS 5.2#
###########################################
### Do this FIRST!!
# * As root, cd /etc/yum.repos.d
# * Edit distro's .repo file:
# o On CentOS, edit CentOS-Base.repo, [base] and [updates] sections.
# * Add
# exclude=postgresql*
# to the bottom of the sections.
# version package à tlcg
REPORTLAB="python-reportlab-1.20-1.el5.rf.noarch"
PSYCHOG="python-psycopg-1.1.21-7.el5.kb.i386"
PGDG="8.2/pgdg-centos-8.2-4.noarch"
OPRSRV="openerp-server-5.0.0-2"
OPRCLI="openerp-client-5.0.0-2"
OPRWEB="openerp-client-web-5.0.0-2"
# Répertoire de tlcg
ROOT="/root/openerp"
SRC="/usr/src"
# Création rep
mkdir $ROOT
cd $ROOT
# 1. Enable EPEL (Extra Packages for Enterprise Linux) Repository
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
# 1b. Build Repository file pgdg-82-centos.repo
rpm -Uvh http://yum.pgsqlrpms.org/reporpms/$PGDG.rpm
# 2. Install dependencies
yum -y install python-lxml
yum -y install subversion
yum -y install bzr
yum -y install vim-enhanced
yum -y install python-psycopg2
yum -y install pytz.noarch
yum -y install PyXML
yum -y install mx
yum -y install libxslt-python
yum -y install python-imaging
yum -y install pygtk2
yum -y install python-matplotlib
yum -y install TurboGears
yum -y install libxml2
yum -y install python-devel
yum -y install graphviz pydot pychart
yum -y install postgres
yum -y install postgresql-server
yum -y install python-gtk2
yum -y install python-glade2
yum -y install python-egenix-mxdatetime
service postgresql initdb
cd $ROOT
wget http://dag.wieers.com/rpm/packages/python-reportlab/$REPORTLAB.rpm 2>$ROOT/log.install
rpm -Uvh $REPORTLAB.rpm 2>$ROOT/log.install
rpm -Uvh http://centos.karan.org/el5/extras/testing/i386/RPMS/$PSYCHOG.rpm
# 3. Install openerp + tiny webserver
#Installation du serveur
cd $ROOT
wget http://openerp.com/download/stable/source/$OPRSRV.tar.gz 2>$ROOT/log.install
tar xfvz $OPRSRV.tar.gz
cd $OPRSRV
python setup.py build 2>$ROOT/log.install
python setup.py install 2>$ROOT/log.install
#Installation du client
cd $ROOT
wget http://openerp.com/download/stable/source/$OPRCLI.tar.gz 2>$ROOT/log.install
tar xfvz $OPRCLI.tar.gz
cd $OPRCLI
python setup.py build 2>$ROOT/log.install
python setup.py install 2>$ROOT/log.install
#Installation du client-web
easy_install -U setuptools
easy_install openerp-web
# 4. Post Config
# Création d'un fichier de logs pour les output du serveur
touch /var/log/openerp.log
# Ajout pour le démarrage auto du serveur
echo "su - postgres -c /usr/bin/openerp-server 1>/var/log/openerp.log &" >>/etc/rc.local
# Configuration du lancement auto du web
more /usr/lib/python2.4/site-packages/openerp_web-5.0-py2.5.egg/scripts/openerp-web |sed 's/terp/root/g' > /etc/init.d/openerp-web
chmod +x /etc/init.d/openerp-web
cp /usr/lib/python2.4/site-packages/openerp_web-5.0-py2.5.egg/config/default.cfg /etc/openerp-web.cfg
cd $ROOT
wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-1.tar.gz
tar zxvf apps-sys-utils-start-stop-daemon-IR1_9_18-1.tar.gz
cd apps/sys-utils/start-stop-daemon-IR1_9_18-1/
gcc start-stop-daemon.c -o start-stop-daemon
cp start-stop-daemon /usr/bin/
# config du lancement des services
chkconfig --add postgresql
chkconfig postgresql on
chkconfig --add openerp-web
chkconfig etiny-server on
# Un petit redémarrage pour vérifier que tout fonctionne.
shutdown -r now