欢迎!

分享和讨论最佳内容和新营销理念,打造专业形象,共同成为更好的营销人员。

注册

You need to be registered to interact with the community.
This question has been flagged
988 Views

1. Introduction In this tutorial, I will learn how to install Odoo 10 Community or Enterprise on Ubuntu 16.04. The script you will use is based on André Schenkels' code, but has been updated, upgraded, improved, and added Enterprise support. Please note that if you want to install the Enterprise version, you need to be an official partner, or you need to purchase an Enterprise subscription from Odoo. Otherwise, you will not have access to the Github repository of the Enterprise code! 2. Download the script The first step is to download my script from Github and add the code to a new .sh file on your Ubuntu machine, wherever you like.
For example, under /home. Open an Ubuntu terminal and cd to the directory where you want to keep the script, then create the file:

1sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/10.0/odoo_install.sh


If you're curious about how the entire code looks and works, you can find it on my GitHub account. Now open the file and edit the parameters you like:

1sudo nano odoo_install.sh


You can configure/change your preferences at the top of the script. You can choose whether to install Wkhtmltopdf, which version you need, where it is located, and most importantly, what the main administrator password is.Tip: Please always modify for each Odoo you install!
If you want the enterprise version of V10, you should change the IS_ENTERPRISE line to true:

1IS_ENTERPRISE="True"


If you want the community version, you can proceed and keep the IS_ENTERPRISE key set to false (this is the case by default):

1IS_ENTERPRISE="False"


3. Make the Odoo installation file executable. The next step is to make the file executable. Once it is set as executable, you can run it, and everything will be installed automatically.
Use the following command to do this:

1     
2sudo chmod +x odoo_install.sh



Since the code is in your file and the file is executable, you just need to execute it using the following command:

1#  ./odoo_install.sh       # The # sign at the beginning does not need to be copied, only copy ./odoo_install.sh


You will see the script automatically start the update, download the required packages, create users, and download code from Github. Finally, if you choose to install the enterprise version, you will need to provide Github credentials to download the enterprise code (as this is a private repository). Fill in your details and let the script continue:
Give the script a few minutes to configure and install everything, and eventually you will see something like this:
You now have a fully functional Odoo V10 Community or Enterprise in your system! Congratulations.
5. Additional Information about Odoo 10 Enterprise Since Odoo Enterprise uses code from http://github.com/odoo/odoo and github.com/odoo/enterprise, we will use this script to separate the code. This will make future upgrades easier and keep the code well separated. This means that the default V10 code will be located under /odoo/odoo-server/, and all enterprise code will be located under /odoo/enterprise/. In the script you see, there is an option to change the Odoo port (OE_PORT). When you change this port number to 8070 in the installation script, it will be applied to /etc/your-config-file.conf, which will allow you to change the default port.
To apply these changes, you should do the following:

-c will change the configuration and remember what you changed under /etc/your-config-file.conf. Since my port is set to 8070, this tells Odoo that it should run on port 8070. When you open your browser and navigate to http://localhost:8070/, you will see it running:

Avatar
Discard