Cloud Service >> Knowledgebase >> Cloud Server >> Easy Guide to Installing OpenERP on Ubuntu
submit query

Cut Hosting Costs! Submit Query Today!

Easy Guide to Installing OpenERP on Ubuntu

OpenERP (now known as Odoo) is a powerful open-source business management software. This guide will walk you through the process of installing OpenERP on Ubuntu. We'll use simple steps and explain each part clearly.

What You'll Need

Before we start, make sure you have:

A computer running Ubuntu (this guide uses Ubuntu 20.04 LTS)

An internet connection

Basic knowledge of using the terminal

Step 1: Update Your System

First, update your Ubuntu system. Open a terminal and type:

Copy

sudo apt update
sudo apt upgrade

This ensures you have the latest software versions.

Step 2: Install Python

OpenERP runs on Python. Ubuntu usually comes with Python installed, but let's make sure:

python3 --version

If you see a version number, you're good to go. If not, install Python:

sudo apt install python3

Step 3: Install PostgreSQL

OpenERP uses PostgreSQL as its database. Install it by running:

sudo apt install postgresql

Step 4: Create a PostgreSQL User

Create a new PostgreSQL user for OpenERP:

sudo su - postgres

 

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp

You'll be asked to set a password. Remember this password for later.

Step 5: Install Required Python Packages

OpenERP needs several Python packages to run. Install them using pip:

sudo apt install python3-pip

sudo pip3 install Babel decorator docutils feedparser gevent Jinja2 lxml Mako MarkupSafe mock ofxparse passlib Pillow psutil psycopg2 pydot pyparsing PyPDF2 pyserial python-dateutil pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd

Step 6: Download OpenERP

Now, let's download OpenERP. We'll use version 7.0 for this guide:

wget
https://nightly.odoo.com/7.0/nightly/src/openerp-7.0-latest.tar.gz

Extract the downloaded file:

tar -xvf openerp-7.0-latest.tar.gz

Step 7: Configure OpenERP

Move into the extracted folder:

cd openerp-7.0-*

Create a configuration file:

Copy

sudo cp openerp-server.conf /etc/openerp-server.conf

sudo nano /etc/openerp-server.confsudo nano /etc/openerp-server.conf

In the configuration file, find the line that starts with "db_password" and change it to the PostgreSQL password you set earlier:

db_password = your_postgres_password

Save and close the file.

Step 8: Create a System User for OpenERP

Create a system user to run OpenERP:

sudo adduser --system --home=/opt/openerp --group openerp

Step 9: Set Up OpenERP as a Service

To make OpenERP start automatically when your system boots, create a service file:

sudo nano /etc/systemd/system/openerp.service

Add the following content:

[Unit]

Description=OpenERP

After=postgresql.service

 

[Service]

Type=simple

User=openerp

Group=openerp

ExecStart=/usr/bin/python3 /opt/openerp/openerp-server -c /etc/openerp-server.conf

 

[Install]

 

WantedBy=multi-user.target

Save and close the file.

Step 10: Start OpenERP

Now, start the OpenERP service:

sudo systemctl start openerp

To make it start automatically on boot:

sudo systemctl enable openerp

Step 11: Access OpenERP

Open a web browser and go to:

http://localhost:8069

You should see the OpenERP login page. Congratulations! You've successfully installed OpenERP on Ubuntu.

Conclusion

Installing OpenERP on Ubuntu might seem tricky at first, but by following these steps, you can set it up without much trouble. Remember, this guide covers a basic installation. For a production environment, you might need additional security measures and optimizations.

If you're looking for a hassle-free way to use OpenERP without worrying about installation and maintenance, consider Cyfuture Cloud. They offer managed OpenERP hosting services, taking care of all the technical details so you can focus on running your business. With Cyfuture Cloud, you get the power of OpenERP combined with the reliability and scalability of cloud hosting. Check out their services to see how they can make your OpenERP experience even easier!

Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!