Installing Odoo 13 on Ubuntu

< / / / / / >
V 13.0
+/- 6 minutes
Written by Yenthe Van Ginneken

Quick scroll

1. Introduction

Installing an Odoo instance can be a challenging and time consuming process. As installing an Odoo is always nearly the same except for a few options we've created a script to automatically install Odoo. In this tutorial you will learn how to install the community or enterprise version of Odoo 13. You'll learn how to configure the script and how to execute it.

2. Downloading the script

The first step is to download the installation script from Github and adding the code to a new .sh file on your Ubuntu machine. Let's download this script under your main directory in this example. Open up an Ubuntu terminal and cd into the directory where you'd like to keep the script:

                    cd ~/                                    

Now let us download the script to your Ubuntu instance in a new file with the wget command:

                    sudo wget                                    

If you're curious about how the whole code looks and works you can find it on Github. Now open up the file and edit the parameters to your liking:

                    sudo nano                                    

There are some things you can configure/change to your likings at the top of the script. You can choose if you wish to install Wkhtmltopdf or not, which version you'd like, where the location is and most importantly what the master admin password is.
Tip: always modify this for every Odoo you install! If you want the enterprise version of Odoo version 13 you should change the line IS_ENTERPRISE to true:


If you want the community version you can just continue and keep the IS_ENTERPRISE key set to False. Now save your file (ctrl+o) and close it (ctrl+x).

3. Making the Odoo installation file executable

The next step is to make this file executable. After you've made it executable you can execute it and everything will be installed automatically. You can do this with the following command:

                    sudo chmod +x                                    

4. Running the script

Now that the code is in your file and the file is executable you simply have to execute it with the following command:


You will see that the script automatically starts updates, downloads required packages, creates the user, downloads the code from Github, ... Eventually, if you've chosen to install the enterprise version, you will need to give in your Github credentials to download the enterprise code (since this is a private repository). Fill in your details and let the script continue: Odoo 13 enterprise authentication

Give the script a few minutes to configure and install everything and eventually you will see something like this: Odoo 13 main screen

You now have a fully functional Odoo version 13 community or enterprise on your system! Congratulations.

5. Extra information about the script

Since Odoo Enterprise uses code from both and we will separate the code with this script. This will make future upgrades easier and the code is nicely separated. This means that the default V13 code will be under /odoo/odoo-server/ and all the enterprise code will be under /odoo/enterprise/.

In the script you saw there was an option to change the Odoo port (OE_PORT). When you'd change this port number to 8070 in the install script it would be applied to /etc/your-config-file.conf and this would give you the ability to change the default port. To apply these changes you should restart the Odoo service with your configuration file:

                    sudo service odoo-server restart -c /etc/odoo-server.conf                                    

The -c will change the configuration and memorize what you've changed under /etc/your-config-file.conf. Because my port was set to 8070 this is telling the Odoo that it should run on port 8070. When you would now open up your browser and navigate to http://localhost:8070/ you will see it is running there.

6. Conclusion

Thanks to this installation script installing Odoo has never been so easy and fast. You can use this script to install any Odoo version starting from V8 and can even install multiple Odoo instances on one Ubuntu server. Take some time to read through the script so you understand all the options. It'll be a great asset for all your new installations.