<\/span><\/h2>\n\n\n\nIn the previous step, we added a new system user to install and run Odoo. Let’s switch to system user ‘odoo’ to download Odoo from GitHub and create a new python environment.<\/p>\n\n\n\n
# su - odoo17<\/pre>\n\n\n\nNow, let’s download Odoo from github<\/p>\n\n\n\n
$ git clone https:\/\/www.github.com\/odoo\/odoo --depth 1 --branch 17.0 odoo17<\/pre>\n\n\n\nCreate a Python virtual environment<\/h3>\n\n\n\n
By using a Python virtual environment, this Odoo installation method will allow you install multiple Odoo instances on your server, including different versions simultaneously. Now that Odoo 17 has been downloaded to \/opt\/odoo\/odoo17<\/code>, it is time to create a Python virtual environment.<\/p>\n\n\n\n$ python3 -m venv odoo17-venv<\/pre>\n\n\n\nNow, we have a new virtual environment, we need to activate it prior to installing Odoo.<\/p>\n\n\n\n
$ source odoo17-venv\/bin\/activate<\/pre>\n\n\n\nOnce invoked, your shell prompt would look like this:<\/p>\n\n\n\n
(odoo17-venv) odoo17@debian12:~$<\/pre>\n\n\n\nNext, let’s install Odoo:<\/p>\n\n\n\n
(odoo17-venv) odoo17@debian12:~$ pip3 install wheel \n(odoo17-venv) odoo17@debian12:~$ pip3 install -r odoo17\/requirements.txt<\/pre>\n\n\n\nThat’s it. Odoo has been installed under the directory \/opt\/odoo17\/odoo17<\/code>. We can create a new directory to store our custom Odoo addons.<\/p>\n\n\n\n$ mkdir \/opt\/odoo17\/odoo17\/custom-addons<\/pre>\n\n\n\nDone, let’s exit from user ‘odoo17’ and create the Odoo configuration file.<\/p>\n\n\n\n
$ exit<\/pre>\n\n\n\nThe command above should bring you back to the previous user, in this case, root. Open the configuration file:<\/p>\n\n\n\n
# nano \/etc\/odoo17.conf<\/pre>\n\n\n\nPaste the following content into the file.<\/p>\n\n\n\n
[options]
admin_passwd = m0d1fyth15
db_host = False
db_port = False
db_user = odoo17
db_password = False
addons_path = \/opt\/odoo17\/odoo17\/addons,\/opt\/odoo17\/odoo17\/custom-addons<\/pre>\n\n\n\nReplace m0d1fyth15<\/code> <\/strong>with something harder and stronger. This will be your Odoo’s master password. Save the file, then exit from the nano editor.<\/p>\n\n\n\n