No description
Find a file
Your Name a5837723bd
Some checks failed
Run CI/CD... / main (push) Failing after 2m2s
Add .gitignore and .gitea/workflows/ci.yml
2025-01-31 15:36:18 +00:00
.gitea/workflows Add .gitignore and .gitea/workflows/ci.yml 2025-01-31 15:36:18 +00:00
.abf.yml init build 2013-09-13 21:12:07 +00:00
.gitignore Добавление .gitignore и .gitea/workflows/ci.yml 2025-01-07 23:02:07 +03:00
LICENSING init build 2013-09-13 21:12:07 +00:00
openerp-fsf-fix.patch init build 2013-09-13 21:12:07 +00:00
openerp-gen-cert init build 2013-09-13 21:12:07 +00:00
openerp-server-relicense-dict_tools-to-LGPL2.1.patch init build 2013-09-13 21:12:07 +00:00
openerp-unbundle-pyftpdlib.patch init build 2013-09-13 21:12:07 +00:00
openerp.service init build 2013-09-13 21:12:07 +00:00
openerp.spec init build 2013-09-13 21:12:07 +00:00
README.omv init build 2013-09-13 21:12:07 +00:00

# Fedora getting-started for Fedora >= F16

There are several steps to get the server running:

- Install postgresql and start the server.
- Generate openerp server key and certificate.
- Create the postgresql openerp user and it's database
- Start the server.

## Install postgresql.

    $ sudo  yum -y install postgresql-server
    $ sudo postgresql-setup initdb
    $ sudo su - postgres
    bash-2.4$ sed -i  '/^host/s/[^ ]*$/password/' \
                       /var/lib/pgsql/data/pg_hba.conf
    bash-2.4$ exit
    $ sudo systemctl enable postgresql.service
    $ sudo systemctl start postgresql.service

The modifications of pg_hba.conf let the local postgresql user run also
as postgres db user without authentication§, while all TCP-IP connections
need a password.

See: /usr/share/doc/postgresql-*/README.rpm-dist

## Install openerp and generate server key and certificate.

To install and generate a simple certificate and a key, both stored
in /etc/openerp::

    $ sudo yum install openerp
    $ sudo openerp-gen-cert

## Create database user. and it's database

To create the openerp user, you need to set the password by
editing /etc/openerp/openerp-server.conf. You should set
db_name, db_user and db_password. To create database,
assuming db_name == db_user == 'openerp'::

    $ sudo su - postgres
    bash-4.2$  createuser --createdb --no-createrole --pwprompt openerp
    Enter password for new role: XXXXXXXXXX
    Enter it again: XXXXXXXXXX
    Shall the new role be a superuser? (y/n) y
    CREATE ROLE
    bash-4.2$ createdb -W -U openerp openerp
    Password: XXXXXXXX
    bash-4.2$ exit

All three passwords are the same as db_password in
/etc/openerp/openerp-server.conf.

## Start openerp server

    $ sudo systemctl start openerp.service

and verify that /var/log/messages looks OK. You can make server start at
boot using 'systemctl enable openerp.service'

## Continue installation

From now on you need to create an openerp database. For this, you need the
gtk client:

    $ sudo yum install openerp-client
    $ openerp-client

and proceed according to
http://doc.openerp.com/v6.0/book/1/1_1_Inst_Config/1_1_Inst_Config_db_create.html