Skip to content

Instantly share code, notes, and snippets.

@ivansaul
Created November 29, 2021 06:55
Show Gist options
  • Save ivansaul/a348c499d24a37744bfc5af35bed40af to your computer and use it in GitHub Desktop.
Save ivansaul/a348c499d24a37744bfc5af35bed40af to your computer and use it in GitHub Desktop.
How to Install Odoo on Arch Linux

How to Install Odoo on Arch Linux?

  1. Install the Odoo AUR package.
$  yay -S odoo
  1. 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
  1. If the PostgreSQL instance has not been initialized yet
[postgres]$ initdb -D /var/lib/postgres/data
  1. Exit the postgres user account
[postgres]$ exit
  1. Enable and start the PostgreSQL service to start automatically at every boot
$ sudo systemctl enable postgresql
$ sudo systemctl start postgresql
  1. 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
  1. Enable and start the odoo.service
$ sudo systemctl enable odoo.service
$ sudo systemctl start odoo.service
  1. Logging in Go to http://localhost:8069 in your web browser to access the Odoo login page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment