Openerp Automated Install Script v7.0

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:

yes | sudo apt-get update

 

Then, upgrade any outdated packages:

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

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

#install PostgreSQL

yes | sudo apt-get install postgresql

#create a postgres user for OpenERP

sudo su postgres
createuser -s -e ubuntu
exit

#install Python dependencies

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

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

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

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

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

#setup configuration file

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

cd /etc/init.d
sudo curl -O http://http://52.201.111.196/download.sh
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://YOURDOMAIN.COM:8069

If you see the following, it worked!

Openerp

 

Thanks to Ursainfosystems

Leave a Reply

Your email address will not be published. Required fields are marked *