- Install the Odoo
AUR package
.
$ yay -S odoo
- Configuring PostgreSQL to run with Odoo It is necessary to create a new PostgreSQL user for Odoo. For that log in as the default PostgreSQL superuser, 'postgres', by executing the following command:
$ sudo -i -u postgres
- If the PostgreSQL instance has not been initialized yet
[postgres]$ initdb -D /var/lib/postgres/data
- Exit the postgres user account
[postgres]$ exit
- Enable and start the PostgreSQL service to start automatically at every boot
$ sudo systemctl enable postgresql
$ sudo systemctl start postgresql
- Create the database user (called role in the PostgreSQL ) odoo with the command that follows
$ sudo -i -u postgres
[postgres]$ createdb odoo
[postgres]$ createuser odoo --createdb --login --no-superuser --no-createrole --pwprompt
[postgres]$ exit
The configuration file of Odoo is located at /etc/odoo/odoo.conf
. Specify the db_user
and db_password
according to the username and password you specified at previous step.
[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
- Enable and start the
odoo.service
$ sudo systemctl enable odoo.service
$ sudo systemctl start odoo.service
- Logging in Go to http://localhost:8069 in your web browser to access the Odoo login page.