Saturday, December 29, 2012

installaion openerp 7.0 alpha on ubuntu 10.04



#!/bin/bash
######################################################################
# AIM :Open erp 7.0 install
#By :Navneet Rathi
#Date:06-Dec-2012

#
#####################################################################


#postgresql install

apt-get update

http_proxy=210.212.152.5:80

sudo add-apt-repository ppa:pitti/postgresql

sudo apt-get update

sudo apt-get upgrade
http_proxy=
sudo apt-get install postgresql-9.1 libpq-dev

#
#create a user openerp  on postgresql
#
su - postgres -c "createuser -s openerp" 2> /dev/null || true


#install basic requirement for Openerp 7.0

apt-get install python-software-properties python-dateutil python-feedparser python-gdata python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi graphviz python-antlr python-libxml2 python-egenix-mxdatetime python-setuptools python-yaml python-zsi python-docutils python-psutil bzr wget

#install dependendies

apt-get install python-simplejson python-webdav python-werkzeug python-xlwt

## Dependencies install using wasy install
sudo easy_install  pychart # ', # not on pypi, use: pip install http://download.gna.org/pychart/PyChart-1.39.tar.gz
sudo easy_install  babel # ',
sudo easy_install  docutils # ',
sudo easy_install  feedparser # ',
sudo easy_install  gdata # ',
sudo easy_install  lxml < 3 # ', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
sudo easy_install  mako # ',
sudo easy_install  PIL # ', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
sudo easy_install  psutil # ', # windows binary code.google.com/p/psutil/downloads/list
sudo easy_install  psycopg2 # ',
sudo easy_install  pydot # ',
sudo easy_install  python-dateutil < 2 # ',
sudo easy_install  python-ldap # ', # optional
sudo easy_install  python-openid # ',
sudo easy_install  pytz # ',
sudo easy_install  pywebdav # ',
sudo easy_install  pyyaml # ',
sudo easy_install  reportlab # ', # windows binary pypi.python.org/pypi/reportlab
sudo easy_install  simplejson # ',
sudo easy_install  vatnumber # ',
sudo easy_install  vobject # ',
sudo easy_install  werkzeug # ',
sudo easy_install  xlwt #'


#install werkzeug need for some unexpected errors

sudo easy_install werkzeug

#fetch openerp 7.0

http://nightly.openerp.com/trunk/nightly/deb/openerp_7.0alpha-latest-1_all.deb

#install it now

dpkg -i openerp_7.0alpha-latest-1_all.deb 


#sudo su
#copy paste this script in a file
# nano/gedit openerp.sh
#
chmod 777 openerp.sh

#./openerp.sh

#
#after the Script execute completely open the browser and type http://localhost:8069
#