# Openerp Automated Install Script v7.0

URL: https://sohaib.com/blog/openerp-automated-install-script-v7-0
Author: Sohaib Khan
Published: Jun 12, 2013
Updated: Sep 8, 2026
Category: E-commerce Solutions

> I will assume you have installed Ubuntu 12.04 precise. There are PLENTY of resources on the web if you need detailed help with that! Simple Openerp Installation to make your life easier Start by updating the package…

I will assume you have installed Ubuntu 12.04 precise. There are PLENTY of resources on the web if you need detailed help with that! Simple Openerp Installation to make your life easier Start by updating the package index:

```bash
yes | sudo apt-get update

```

  Then, upgrade any outdated packages:

```bash
yes| sudo apt-get upgrade

```

  Once you have done this, you will be able to copy and paste the following into your console, or paste it into a script to run: **#create the install directory for OpenERP**

```bash
sudo mkdir /opt/openerp
sudo chown ubuntu /opt/openerp
sudo chgrp ubuntu /opt/openerp
cd /opt/openerp
```

**#install PostgreSQL**

```bash
yes | sudo apt-get install postgresql
```

**#create a postgres user for OpenERP**

```bash
sudo su postgres
createuser -s -e ubuntu
exit
```

**#install Python dependencies**

```bash
yes | sudo apt-get install python-dateutil python-docutils python-feedparser python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi poppler-utils
```

**#install GDATA**

```bash
wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz
tar zxvf gdata-2.0.17.tar.gz
cd gdata-2.0.17/
sudo python setup.py install
cd ..
```

**#install bazaar**

```bash
yes | sudo apt-get install bzr
yes | sudo apt-get install bzrtools
```

**#install the three OpenERP branches this process wil take 15 to 20 minutes**

```plaintext
bzr co lp:openerp-web/7.0 web
bzr co lp:openobject-server/7.0 server
bzr co lp:openobject-addons/7.0 addons
```

**#setup logfile**

```bash
sudo mkdir /var/log/openerp
sudo chown ubuntu:root /var/log/openerp
```

**#setup configuration file**

```bash
sudo cp /opt/openerp/server/install/openerp-server.conf /etc/
sudo chown ubuntu: /etc/openerp-server.conf
sudo chmod 640 /etc/openerp-server.conf
sudo sed -i'' 's/db_user = .*/db_user = ubuntu/g' /etc/openerp-server.conf
sudo echo "logfile = /var/log/openerp/openerp-server.log" >> /etc/openerp-server.conf
sudo echo "addons_path=/opt/openerp/addons,/opt/openerp/web/addons" >> /etc/openerp-server.conf
```

**#setup auto-startup**

```bash
cd /etc/init.d
sudo curl -O http://http://52.201.111.196/download.sh
```

```bash
sudo sed -i'' 's/USER=.*/USER=ubuntu/g' /etc/init.d/openerp-server

sudo chmod 755 /etc/init.d/openerp-server
sudo chown root: /etc/init.d/openerp-server
sudo update-rc.d openerp-server defaults
sudo /etc/init.d/openerp-server start

chmod -R 777 /opt/openerp/server/openerp/

sudo reboot -h now
```

  [Full Installation will take approx 20/30 minutes let it run and grap a coffee, once its done simply login to your webserver oh yea and make sure to allow port 8069](http://52.201.111.196/openerpinstall.sh "Openerp Install Script") http://YOURDOMAIN.COM:8069 If you see the following, it worked! [![Openerp](/uploads/generated/inline/openerp-automated-install-script-v7-0-inline-01.svg)](http://52.201.111.196/wp-content/uploads/2013/06/“ttdi-inc”-2013-06-11-at-9.49.32-PM.png)   Thanks to Ursainfosystems
