Sunteți pe pagina 1din 9

Basicamente siga as instrues disponiveis em : http://doc.openerp.com/v6.1/install/linux/index.html Outra fonte de referncia: http://www.slideshare.

net/easyopenerp/how-to-installopenerp-61-rc1-en Atualize o sistema


sudo tee /etc/apt/sources.list.d/openerp.list <<EOF deb http://nightly.openerp.com/6.1/nightly/deb/ ./EOF sudo apt-get update sudo apt-get upgrade apt-cache search openerp

Instalao automatizada para ubuntu:


sudo apt-get install openerp Configurao mnima do banco de dados: sudo -u postgres createuser --createdb --username postgres --nocreaterole openerp Shall the new role be a superuser? (y/n) y Caso necessite verificar o banco de dados utilize o comando: sudo -u postgres psql postgres

Para sair execute:


\q

Caso queira configurar outro local para o armazenamento de dados altere:


sudo nano /etc/postgresql/9.1/main/postgresql.conf data_directory = '/var/lib/postgresql/9.1/main'

O diretrio deve ter autorizao de acesso para o usurio postgres como segue:
chown postgres:postgres /var/lib/postgresql/9.1/main chmod 700 /var/lib/postgresql/9.1/main

Reinicie o servidor com o comando:


sudo service postgresql restart

Verifique a configurao da conexo ao banco de dados no servidor openerp:


sudo nano /etc/openerp/openerp-server.conf [options] addons_path = /usr/lib/pymodules/python2.7/openerp/addons admin_passwd = admin assert_exit_level = error cache_timeout = 100000 cpu_time_limit = 60 csv_internal_sep = , db_host = False db_maxconn = 64 db_name = False db_password = False db_port = False db_template = template0 db_user = openerp dbfilter = .* debug_mode = False demo = {} email_from = False import_partial = list_db = True log_handler = [':INFO'] log_level = info

logfile = /var/log/openerp-server.log login_message = False logrotate = True max_cron_threads = 4 netrpc = True netrpc_interface = netrpc_port = 8070 osv_memory_age_limit = 1.0 osv_memory_count_limit = False pg_path = None pidfile = None proxy_mode = False reportgz = False secure_cert_file = server.cert secure_pkey_file = server.pkey server_wide_modules = None smtp_password = False smtp_port = 25 smtp_server = localhost smtp_ssl = False smtp_user = False static_http_document_root = None static_http_enable = False static_http_url_prefix = None syslog = False test_commit = False test_disable = False test_file = False test_report_directory = False timezone = False translate_modules = ['all'] unaccent = False virtual_memory_limit = 805306368 virtual_memory_reset = 671088640 without_demo = False xmlrpc = True xmlrpc_interface = xmlrpc_port = 8069 xmlrpcs = True xmlrpcs_interface = xmlrpcs_port = 8071 Acesso Webdav ainda inclua: [webdav] enable = True vdir = webdav verbose = True debug = True

Comandos teis: Reinicie o postgresl:


sudo service postgresql restart Reinicie o servidor ERP: sudo service openerp restart Resoluo de problemas com o log: sudo cat /var/log/openerp-server.log

Servidor conectado ao banco de dados pela porta 5432 e atendendo pelas portas 8069, 8070 e 8071 (segura)
ps uaxww | grep -i openerp sudo lsof -i :8069 sudo lsof -i :8070 sudo netstat -anpt

Acesse o endereo de seu servidor com seu browser preferido:


http://ec2-177-71-163-151.sa-east-1.compute.amazonaws.com:8069

E escolha manage database abaixo da tela de login O senha padro do master password : admin

Depois voce pode acessar o sistema com o usurio Admin e senha acima selecionada. link para SSL : http://www.theopensourcerer.com/2011/04/21/how-to-install-openerp-6on-ubuntu-10-04-lts-server-part-2-ssl/ Agora precisa baixar e configurar a localizao brasileira: Referencia: https://docs.google.com/document/d/1VWOCFLXeXnJPzKqsJEbLCcWG5 _CqoHl5aYI5qd4cebg/edit
sudo apt-get install bzr bzrtools sudo mkdir /etc/openerp/launchpad sudo chown openerp:openerp /etc/openerp/launchpad

cd /etc/openerp/launchpad
Agora, utilizando o terminal digite a seguinte linha de comando, substituindo o parmetro final pelo seu nome de usurio do LP (Launchpad):
sudo -u openerp USER=openerp HOME=/etc/openerp/launchpad bzr launchpad-login arvati sudo -u openerp ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/openerp/.ssh/id_rsa): /etc/openerp/launchpad/id_rsa

Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /etc/openerp/launchpad/id_rsa. Your public key has been saved in /etc/openerp/launchpad/id_rsa.pub. The key fingerprint is: 74:b6:b6:a9:1e:de:4e:90:bc:2a:e2:5d:97:3e:fc:d9 openerp@ip-10-252-25216 The key's randomart image is: +--[ RSA 2048]----+ | | | . | | . = | | . + + . | | .S o + | | . . + | | . +.+ . | | ...+ *o. o | | .....+.+oo E| +-----------------+ cat id_rsa.pub

Agora abra o seguinte link no seu navegador (substitua seu usurio Launchpad no link): https://launchpad.net/~arvati/+editsshkeys
sudo tee -a /etc/ssh/ssh_config <<EOF Host bazaar.launchpad.net IdentityFile /etc/openerp/launchpad/id_rsa User arvati # the short name that appears in the URL when you visit https://launchpad.net/~ EOF sudo -u openerp USER=openerp HOME=/etc/openerp/launchpad bzr branch lp:openerp.pt-br-localiz /etc/openerp/launchpad/pt-br sudo -u openerp USER=openerp HOME=/etc/openerp/launchpad bzr branch lp:openobject-addons/extra-trunk /etc/openerp/launchpad/extra

Agora vamos disponibilizar estes modulos de localizao ao servidor:


sudo cp -a /etc/openerp/launchpad/pt-br/l10n_br* /usr/lib/pymodules/python2.7/openerp/addons/

E alguns mdulos extras necessrios:


account_fiscal_position_rule account_fiscal_position_rule_purchase account_fiscal_position_rule_sale account_fiscal_position_rule_stock account_product_fiscal_classification account_payment_extension

sudo cp -a /etc/openerp/launchpad/extra/account_fiscal_position_rule /usr/lib/pymodules/python2.7/openerp/addons/ sudo cp -a /etc/openerp/launchpad/extra/account_fiscal_position_rule_purchase /usr/lib/pymodules/python2.7/openerp/addons/ sudo cp -a /etc/openerp/launchpad/extra/account_fiscal_position_rule_sale /usr/lib/pymodules/python2.7/openerp/addons/

sudo cp -a /etc/openerp/launchpad/extra/account_fiscal_position_rule_stock /usr/lib/pymodules/python2.7/openerp/addons/ sudo cp -a /etc/openerp/launchpad/extra/account_product_fiscal_classification /usr/lib/pymodules/python2.7/openerp/addons/ sudo cp -a /etc/openerp/launchpad/extra/account_payment_extension /usr/lib/pymodules/python2.7/openerp/addons/

Dependendo das configuraes de seu servidor, pode ser que a instalao do mdulo l10n_br_data_zip demore muito por ser uma importao de dados muito extensa. Tem algumas dicas de como tornar esta importao mais rpida inicalizando o servidor com os seguintes parmetros abaixo: sudo -u openerp openerp-server --importpartial=/tmp/status.pickle --database=openerp -init=l10n_br_data_zip --config=/etc/openerp/openerpserver.conf --logfile=/var/log/openerp-server.log &
Parmetros padro: Caminho do arquivo de configurao: /etc/openerp/openerp-server.conf Caminho do arquivo de log: /var/log/openerp-server.log Usurio do processo openerp-server: openerp Readme: /usr/share/doc/openerp/README Caminho dos Addons na instalao Ubuntu: /usr/lib/pymodules/python2.7/openerp/addons/ Ajuda sobre todas as configuraes possveis no arquivo /etc/openerp/openerp-server.conf pode ser verificada pelo comando: openerp-server --help

--version -h, --help -c CONFIG, --config=CONFIG -s, --save -i INIT, --init=INIT -u UPDATE, --update=UPDATE --without-demo=WITHOUT_DEMO

show program's version number and exit show this help message and exit

specify alternate config file

save configuration to ~/.openerp_serverrc

-P IMPORT_PARTIAL, --import-partial=IMPORT_PARTIAL

install one or more modules (commaseparated list, use "all" for all modules), requires -d update one or more modules (commaseparated list, use "all" for all modules). Requires -d. disable loading demo data for modules to be installed (comma-separated, use "all" for all modules). Requires -d and -i. Default is none Use this for big data importation, if it crashes you will be able to continue at the current state. Provide a filename to store intermediate importation states.

--pidfile=PIDFILE --addons-path=ADDONS_PATH --load=SERVER_WIDE_MODULES --xmlrpcinterface=XMLRPC_INTERFACE --xmlrpc-port=XMLRPC_PORT --no-xmlrpc --proxy-mode --xmlrpcsinterface=XMLRPCS_INTERFACE --xmlrpcs-port=XMLRPCS_PORT --no-xmlrpcs --cert-file=SECURE_CERT_FILE --pkey-file=SECURE_PKEY_FILE --netrpcinterface=NETRPC_INTERFACE --netrpc-port=NETRPC_PORT --no-netrpc --db-filter=REGEXP --static-http-enable

--static-http-documentroot=STATIC_HTTP_DOCUMENT_ ROOT --static-http-urlspecify the URL root prefix where you want prefix=STATIC_HTTP_URL_PREFIX web browsers to access your static HTML files (e.g '/') --test-file=TEST_FILE Launch a YML test file. --test-reportIf set, will save sample of all reports in this directory=TEST_REPORT_DIRECTO directory. RY --test-disable Disable loading test files. --test-commit Commit database changes performed by tests. --assert-exitspecify the level at which a failed assertion level=ASSERT_EXIT_LEVEL will stop the server. Accepted values: ['info', 'warn', 'test', 'critical', 'error', 'debug', 'notset'] --logfile=LOGFILE file where the server log will be stored --no-logrotate do not rotate the logfile

file where the server pid will be stored specify additional addons paths (separated by commas). Comma-separated list of server-wide modules default=web Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces. specify the TCP port for the XML-RPC protocol disable the XML-RPC protocol Enable correct behavior when behind a reverse proxy Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces. specify the TCP port for the XML-RPC Secure protocol disable the XML-RPC Secure protocol specify the certificate file for the SSL connection specify the private key file for the SSL connection specify the TCP IP address for the NETRPC protocol specify the TCP port for the NETRPC protocol disable the NETRPC protocol Filter listed database enable static HTTP service for serving plain HTML files specify the directory containing your static HTML files (e.g '/var/www/')

--syslog --log-handler=PREFIX:LEVEL

--log-request --log-response --log-web

--log-sql --log-level=LOG_LEVEL

--email-from=EMAIL_FROM --smtp=SMTP_SERVER --smtp-port=SMTP_PORT --smtp-ssl --smtp-user=SMTP_USER --smtppassword=SMTP_PASSWORD -d DB_NAME, --database=DB_NAME -r DB_USER, --db_user=DB_USER -w DB_PASSWORD, --db_password=DB_PASSWORD --pg_path=PG_PATH --db_host=DB_HOST --db_port=DB_PORT --db_maxconn=DB_MAXCONN --db-template=DB_TEMPLATE

Send the log to the syslog server setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: "openerp.orm:DEBUG" or "werkzeug:CRITICAL" (default: ":INFO") shortcut for --loghandler=openerp.netsvc.rpc.request:DEBUG shortcut for --loghandler=openerp.netsvc.rpc.response:DEBUG shortcut for --loghandler=openerp.addons.web.common.http:D EBUG shortcut for --loghandler=openerp.sql_db:DEBUG specify the level of the logging. Accepted values: ['info', 'debug_rpc', 'warn', 'test', 'critical', 'debug_sql', 'error', 'debug', 'debug_rpc_answer', 'notset'] (deprecated option). specify the SMTP email address for sending email specify the SMTP server for sending email specify the SMTP port specify the SMTP server support SSL or not specify the SMTP username for sending email specify the SMTP password for sending email specify the database name

specify the database user name

specify the database password

specify the pg executable path specify the database host specify the database port specify the the maximum number of physical connections to posgresql specify a custom database template to create a new database Internationalisation options: Use these options to translate OpenERP to another language.See i18n section of the user manual. Option '-d' is mandatory.Option '-l' is mandatory in case of

--load-language=LOAD_LANGUAGE -l LANGUAGE, --language=LANGUAGE --i18n-export=TRANSLATE_OUT --i18n-import=TRANSLATE_IN --i18n-overwrite

importation specifies the languages for the translations you want to be loaded specify the language of the translation file. Use it with --i18n-export or --i18n-import export all sentences to be translated to a CSV file, a PO file or a TGZ archive and exit import a CSV or a PO file with translations and exit. The '-l' option is required. overwrites existing translation terms on updating a module or importing a CSV or a PO file. specify modules to export. Use in combination with --i18n-export disable the ability to return the list of databases set the timeout for the cache system enable debug mode stop the server after its initialization specify reference timezone for the server (e.g. Europe/Brussels Force a limit on the maximum number of records kept in the virtual osv_memory tables. The default is False, which means no countbased limit. Force a limit on the maximum age of records kept in the virtual osv_memory tables. This is a decimal value expressed in hours, and the default is 1 hour. Maximum number of threads processing concurrently cron jobs. Maximum allowed virtual memory per Gunicorn process. When the limit is reached, any memory allocation will fail. Maximum allowed virtual memory per Gunicorn process. When the limit is reached, the worker will be reset after the current request. Maximum allowed CPU time per Gunicorn process. When the limit is reached, an exception is raised. Use the unaccent function provided by the database when available.

-modules=TRANSLATE_MODULES --no-database-list --cache-timeout=CACHE_TIMEOUT --debug --stop-after-init -t TIMEZONE, --timezone=TIMEZONE --osv-memory-countlimit=OSV_MEMORY_COUNT_LIM IT --osv-memory-agelimit=OSV_MEMORY_AGE_LIMIT

--max-cronthreads=MAX_CRON_THREADS --virtual-memorylimit=VIRTUAL_MEMORY_LIMIT --virtual-memoryreset=VIRTUAL_MEMORY_RESET

--cpu-time-limit=CPU_TIME_LIMIT

--unaccent
Oficialmente as opes disponveis so:

Verbose Pidfile

Enable the debugging mode (default False) The file where the server pid will be stored (default False)

Logfile Interface Port debug_mode secure smtp_server smtp_user smtp_password db_name db_user db_password pg_path db_host db_port price_accuracy

The file where the server log will be stored (default False) The IP address on which the server will bind. If empty, it will bind on all interfaces (default empty) The TCP port on which the server will listen. (default 8069) Enable debug mode (default False) Launch server over https instead of http. (default False) Specify the SMTP server for sending email. (default localhost) Specify the SMTP user for sending email. (default False) Specify the SMTP password for sending email. (default False) Specify the database name. Specify the database user name. (default None) Specify the database password for db_user. (default None) Specify the PostgreSQL executable path. (default None) Specify the database host. (default localhost) Specify the database port. (default None) Specify the price accuracy.

S-ar putea să vă placă și