This question has been flagged
1 Reply
12390 Views

I have installed Odoo 10.0 on Ubuntu 16.04 with Odoo's package installer, according to Odoo's original installation documentation: https://www.odoo.com/documentation/10.0/setup/install.html#packaged-installers.

How can I run Odoo from the command line in this setup? All advices found in the Internet do not work.

Avatar
Discard
Author Best Answer

The command to execute Odoo 10.0 from the command line with a package install on Ubuntu is simply

ubuntu@ip-192-168-xxx-xxx:~$ odoo

but the command must be executed as the user odoo which was set up by the package installer as non-shell non-login user for security reasons.

In order to execute the command odoo as the odoo user, use the following command with your regular Ubuntu user from anywhere (the first odoo is the user odoo, the second odoo is the command odoo):

ubuntu@ip-192-168-xxx-xxx:~$ sudo -H -u odoo odoo 

Use any command line option you like as described in the documentation, for example:

ubuntu@ip-192-168-xxx-xxx:~$ sudo -H -u odoo odoo -c /etc/odoo/odoo.conf -u all

Enjoy!

Cost me quite some efforts to find out, so I thought to share it for other desparate non-Linux-professionals :-)


Avatar
Discard