# Instalar OpenERP 6.0.3 sobre Ubuntu (Install OpenERP 6.0.3 on ubuntu 12) #----------------------------------------------------------------------
OpenERP is open source ERP software done with Python language.
I) Dependencias
# Instalando postgres #---------------------------------------------------------------------- sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev psql --version sudo su postgres -c psql ALTER USER postgres WITH PASSWORD 'postgresdemo'; sudo passwd -d postgres sudo su postgres -c passwd sudo su - postgres createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp exit # Instalando python #---------------------------------------------------------------------- sudo apt-get install python python-psycopg2 python-reportlab \ python-egenix-mxdatetime python-tz python-pychart python-mako \ python-pydot python-lxml python-vobject python-yaml python-dateutil \ python-pychart python-webdav sudo apt-get install python-cherrypy3 python-formencode python-pybabel \ python-simplejson python-pyparsing sudo apt-get install python-gtk2 python-glade2 \ python-matplotlib python-egenix-mxdatetime python-hippocanvas #sudo apt-get install python-xml
II) Primera forma de instalación:
#---------------------------------------------------------------------- # Instalando openERP 6.0.3 desde sources # http://www.openerp.com/downloads
#---------------------------------------------------------------------- sudo adduser --system --home=/opt/openerp --group openerp cd /opt/openerp sudo mkdir /opt/openerp/download sudo chmod 755 /opt/openerp/download sudo chown openerp: /opt/openerp/download sudo mkdir server sudo chmod 755 /opt/openerp/server sudo chown openerp: /opt/openerp/server sudo mkdir web sudo chmod 755 /opt/openerp/web sudo chown openerp: /opt/openerp/web sudo mkdir client sudo chmod 755 /opt/openerp/client sudo chown openerp: /opt/openerp/client cd /opt/openerp/download sudo wget http://www.openerp.com/download/stable/source/openerp-server-6.0.3.tar.gz sudo tar xvf openerp-server-6.0.3.tar.gz sudo mv openerp-server-6.0.3/* /opt/openerp/server sudo rm -R openerp-server-6.0.3 sudo wget http://www.openerp.com/download/stable/source/openerp-web-6.0.3.tar.gz sudo tar xvf openerp-web-6.0.3.tar.gz sudo mv openerp-web-6.0.3/* /opt/openerp/web sudo rm -R openerp-web-6.0.3 sudo wget http://www.openerp.com/download/stable/source/openerp-client-6.0.3.tar.gz sudo tar xvf openerp-client-6.0.3.tar.gz sudo mv openerp-client-6.0.3/* /opt/openerp/client sudo rm -R openerp-client-6.0.3 cd /opt/openerp/ sudo chown -R openerp: * sudo mkdir /var/log/openerp sudo chown openerp:root /var/log/openerp # Configurar OpenERP #---------------------------------------------------------------------- sudo cp /opt/openerp/server/doc/openerp-server.conf /etc/openerp-server.conf sudo chown openerp:root /etc/openerp-server.conf sudo chmod 640 /etc/openerp-server.conf sudo cp /opt/openerp/server/openerp-server /etc/init.d/openerp-server sudo chmod 755 /etc/init.d/openerp-server sudo chown root: /etc/init.d/openerp-server sudo cp /opt/openerp/web/doc/openerp-web.cfg /etc/openerp-web.conf sudo chown openerp:root /etc/openerp-web.conf sudo chmod 640 /etc/openerp-web.conf sudo cp /opt/openerp/web/scripts/openerp-web /etc/init.d/openerp-web sudo chmod 755 /etc/init.d/openerp-web sudo chown root: /etc/init.d/openerp-web # Terminando de Instalar el cliente #---------------------------------------------------------------------- cd /opt/openerp/download sudo wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz sudo tar zxvf setuptools-0.6c11.tar.gz sudo cd setuptools-0.6c11 sudo python setup.py build sudo python setup.py install cd /opt/openerp/client/bin openerp-client # Lanzar aplicaciones #---------------------------------------------------------------------- sudo /etc/init.d/postgresql restart sudo /etc/init.d/openerp-server start less /var/log/openerp/openerp-server.log sudo /etc/init.d/openerp-web start #sudo python /opt/openerp/server/bin/openerp-server.py -r openerp -w postgresdemo --db_host 127.0.0.1 #/opt/openerp/server/bin/openerp-server.py --config=/etc/openerp-server.conf # Ver si esta corriendo OpenERP #---------------------------------------------------------------------- ps aux | grep openerp # Otra forrma de instalar el cliente #---------------------------------------------------------------------- cd /opt/openerp/client/ sudo python setup.py install openerp-client /opt/openerp/client/bin/python openerp-client.py /opt/openerp/client/bin/python openerp-client.py -h # Instalando Modulos #---------------------------------------------------------------------- sudo apt-get install bzr cd /opt/openerp/download sudo bzr branch lp:~openerp-commiter/openobject-addons/extra-6.0 sudo cp -R /opt/openerp/download/extra-6.0/* /opt/openerp/server/bin/addons/ cd /opt/openerp/server/bin/addons/ sudo chown -R openerp: * # Instalar Modulos de Argentina #---------------------------------------------------------------------- cd /opt/openerp/download sudo bzr branch lp:openerp-argentina sudo cp -R /opt/openerp/download/openerp-argentina/* /opt/openerp/server/bin/addons/ cd /opt/openerp/server/bin/addons/ sudo chown -R openerp: *
III) Segunda forma de instalación:
#----------------------------------------------------------------------
# Instalando openERP 6.0.3 desde .DEB
# http://www.openerp.com/downloads
#---------------------------------------------------------------------- #download penerp-server-6.0-latest.deb wget http://nightly.openerp.com/6.0/releases/openerp-server-6.0-latest.deb wget http://nightly.openerp.com/6.0/releases/openerp-client-6.0-latest.deb #wget http://nightly.openerp.com/6.0/releases/openerp-web-6.0-latest.tar.gz # see dependences: python-dateutil python-libxslt1 python-lxml python-psycopg2 python-pydot python-pychart python-reportlab python-tz python-pyparsing python-yaml postgresql-client
# You need dokg. To installit use: sudo apt-get install dpkg
# Install server with dpkg:
dpkg -i openerp-server-6.0-latest.deb Selecting previously unselected package openerp-server. (Leyendo la base de datos ... 56530 ficheros o directorios instalados actualmente.) Desempaquetando openerp-server (de openerp-server-6.0-latest.deb) ... Configurando openerp-server (6.0.4-0) ... * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Open ERP uses a PostgreSQL database to store its data. With the first * * generation of packages, you have to setup this database manually. * * Please read /usr/share/doc/openerp-server/README.Debian how to do it. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Starting openerp-server: openerp-server. Procesando disparadores para ureadahead ... Procesando disparadores para man-db ... Procesando disparadores para python-support ...
...
No hay comentarios:
Publicar un comentario