Odoo Help

-1

[10.0]Ubuntu: how to run Odoo from command line in a package install?

By
Ermin Trevisan
on 3/14/17, 5:37 PM 2,772 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.

0

Ermin Trevisan

--Ermin Trevisan--
8433
| 6 5 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 3/14/17, 5:41 PM

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 :-)


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

Asked: 3/14/17, 5:37 PM
Seen: 2772 times
Last updated: 7/17/18, 4:42 AM