0% found this document useful (0 votes)
73 views

Manual - Openerp Comandos

The document provides steps to install OpenERP 6.1 on Ubuntu LTS 10.04. It involves installing necessary packages like PostgreSQL, Python libraries, Bazaar branches for the server, addons, and web modules. The openerp user and group are created and the configuration file is edited to specify the database password and addons paths. An init script is added to start and stop the openerp server as a service. The installation is tested by starting and stopping the server.

Uploaded by

RafaNinja
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views

Manual - Openerp Comandos

The document provides steps to install OpenERP 6.1 on Ubuntu LTS 10.04. It involves installing necessary packages like PostgreSQL, Python libraries, Bazaar branches for the server, addons, and web modules. The openerp user and group are created and the configuration file is edited to specify the database password and addons paths. An init script is added to start and stop the openerp server as a service. The installation is tested by starting and stopping the server.

Uploaded by

RafaNinja
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Como instalar OpenERP 6.1 no Ubuntu LTS 10,04 Passo 1.

Construa o seu servidor


sudo apt-get install openssh-server denyhosts sudo apt-get update sudo apt-get dist-upgrade

Passo 2. Crie o usurio OpenERP que ser o proprietrio e executar o aplicativo


sudo adduser --system --home=/opt/openerp --group openerp

Etapa 3. Instalar e configurar o servidor de banco de dados PostgreSQL,


sudo apt-get install postgresql sudo su - postgres createuser --createdb --username postgres --no-createrole --nosuperuser --pwprompt openerp Digite a senha para o novo papel: ******** Digite novamente: ******** exit

Etapa 4. Instalar as bibliotecas necessrias Python para o servidor


sudo apt-get install python-dateutil python-feedparser pythongdata \ python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \ python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \ python-simplejson python-tz python-vatnumber python-vobject python-webdav \ python-werkzeug python-xlwt python-yaml python-zsi sudo apt-get install python-pip sudo apt-get remove python-werkzeug sudo pip install werkzeug sudo apt-get install bzr

Etapa 5. Instale o servidor OpenERP


cd /opt/openerp sudo bzr branch --stacked lp:openobject-server/6.1 server sudo bzr branch --stacked lp:openobject-addons/6.1 addons sudo bzr branch --stacked lp:openobject-addons/extra-trunk extra-addons sudo bzr branch --stacked lp:openerp-web/6.1 web sudo bzr branch lp:openerp.pt-br-localiz l10n_br

Passo 6. Configurando a aplicao OpenERP


sudo cp /opt/openerp/server/install/openerp-server.conf /etc/ sudo chown openerp: /etc/openerp-server.conf sudo chmod 640 /etc/openerp-server.conf sudo nano /etc/openerp-server.conf alterar a linha db_password = False para a mesma senha que voc usou para trs no passo 3. Manter dentro do arquivo para adicionar as linhas de comandos. logfile = /var/log/openerp/openerp-server.log addons_path = /opt/openerp/addons,/opt/openerp/extraaddons,/opt/openerp/web/addons,/opt/openerp/l10n_br Ctrl+x (para salvar e sair) sudo su - openerp -s /bin/bash /opt/openerp/server/openerp-server Exit Passo 7. Instalar o script de inicializao cd /etc/init.d/ sudo nano openerp-server

Colar esse script:


#!/bin/sh ### BEGIN INIT INFO # Provides: # Required-Start: # Required-Stop: # Should-Start: # Should-Stop: # Default-Start: # Default-Stop: # Short-Description: # Description: ### END INIT INFO openerp-server $remote_fs $syslog $remote_fs $syslog $network $network 2 3 4 5 0 1 6 Enterprise Resource Management software Open ERP is a complete ERP and CRM software.

PATH=/bin:/sbin:/usr/bin DAEMON=/opt/openerp/server/openerp-server NAME=openerp-server DESC=openerp-server # Specify the user name (Default: openerp). USER=openerp # Specify an alternate config file (Default: /etc/openerp-server.conf). CONFIGFILE="/etc/openerp-server.conf" # pidfile PIDFILE=/var/run/$NAME.pid # Additional options that are passed to the Daemon. DAEMON_OPTS="-c $CONFIGFILE" [ -x $DAEMON ] || exit 0 [ -f $CONFIGFILE ] || exit 0 checkpid() { [ -f $PIDFILE ] || return 1 pid=`cat $PIDFILE` [ -d /proc/$pid ] && return 0 return 1 } case "${1}" in start) echo -n "Starting ${DESC}: " start-stop-daemon --start --quiet --pidfile ${PIDFILE} \ --chuid ${USER} --background --make-pidfile \ --exec ${DAEMON} -- ${DAEMON_OPTS} echo "${NAME}." ;; stop) echo -n "Stopping ${DESC}: " start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \ --oknodo echo "${NAME}." ;;

restart|force-reload) echo -n "Restarting ${DESC}: " start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \ --oknodo sleep 1 start-stop-daemon --start --quiet --pidfile ${PIDFILE} \ --chuid ${USER} --background --make-pidfile \ --exec ${DAEMON} -- ${DAEMON_OPTS} echo "${NAME}." ;; *) N=/etc/init.d/${NAME} echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0

-----------------------------------------------------------------------

sudo chmod 755 /etc/init.d/openerp-server sudo chown root: /etc/init.d/openerp-server sudo mkdir /var/log/openerp sudo chown openerp:root /var/log/openerp

Passo 8. Testando o servidor


sudo /etc/init.d/openerp-server start Visualizar o arquivo de log e ver que o servidor foi iniciado. less /var/log/openerp/openerp-server.log Verificar se o servidor para corretamente tambm: sudo /etc/init.d/openerp-server stop

You might also like