Install OpenERP 6.1 on ubuntu for development
¿How to install OpenERP 6.1? ... Guide:
I) Dependences
# Install postgres (database) #---------------------------------------------------------------------- sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev psql --version sudo su postgres -c psql ALTER USER postgres WITH PASSWORD 'postgresdemo'; sudo passwd -d postgres sudo su postgres -c passwd sudo su - postgres createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp exit
# Install python (base language) #---------------------------------------------------------------------- sudo apt-get install python python-psycopg2 python-reportlab \ python-egenix-mxdatetime python-tz python-pychart python-mako \ python-pydot python-lxml python-vobject python-yaml python-dateutil \ python-pychart python-webdav sudo apt-get install python-cherrypy3 python-formencode python-pybabel \ python-simplejson python-pyparsing sudo apt-get install python-gtk2 python-glade2 \ python-matplotlib python-egenix-mxdatetime python-hippocanvas #sudo apt-get install python-xml
II) OpenERP
# Install OPENERP (Application) #----------------------------------------------------------------------
To see more in: http://trescloud.blogspot.com.ar/2012/11/instalacion-de-openerp-6.html
The recommended installation is copy all in a folder named /opt/openerp
#Create structure folder, user and permission
sudo adduser --system --home=/opt/openerp --group openerp
cd /opt/openerp
sudo mkdir /opt/openerp/download
sudo chmod 755 /opt/openerp/download
sudo chown openerp: /opt/openerp/download
sudo mkdir server
sudo chmod 755 /opt/openerp/server
sudo chown openerp: /opt/openerp/server
sudo mkdir web
sudo chmod 755 /opt/openerp/web
sudo chown openerp: /opt/openerp/web
sudo mkdir client
sudo chmod 755 /opt/openerp/client
sudo chown openerp: /opt/openerp/client
sudo mkdir /var/log/openerp sudo chown openerp:root /var/log/openerp
#Download OpenERP server:
sudo -su openerp
cd /opt/openerp/download
wget http://nightly.openerp.com/6.1/releases/openerp-6.1-1.tar.gz
sudo tar -zxvf openerp-6.1-1.tar.gz sudo mv openerp-6.1-1/* /opt/openerp/server sudo rm -R openerp-6.1-1
cd /opt/openerp/ sudo chown -R openerp: *
wget http://nightly.openerp.com/6.1/releases/openerp-client-6.1-1.tar.gz
sudo tar -zxvf openerp-client-6.1-1.tar.gz sudo mv openerp-6.1-1/* /opt/openerp/client sudo rm -R openerp-client-6.1-1 /opt/openerp/ sudo chown -R openerp: *
cd /opt/openerp/ sudo chown -R openerp: *
#Configuration OpenERP server:
sudo cp /opt/openerp/server/doc/openerp-server.conf /etc/openerp-server.conf sudo chown openerp:root /etc/openerp-server.conf sudo chmod 640 /etc/openerp-server.conf sudo cp /opt/openerp/server/openerp-server /etc/init.d/openerp-server sudo chmod 755 /etc/init.d/openerp-server sudo chown root: /etc/init.d/openerp-server sudo cp /opt/openerp/web/doc/openerp-web.cfg /etc/openerp-web.conf sudo chown openerp:root /etc/openerp-web.conf sudo chmod 640 /etc/openerp-web.conf sudo cp /opt/openerp/web/scripts/openerp-web /etc/init.d/openerp-web sudo chmod 755 /etc/init.d/openerp-web sudo chown root: /etc/init.d/openerp-web
# Launch applications #---------------------------------------------------------------------- sudo /etc/init.d/postgresql restart sudo /etc/init.d/openerp-server start less /var/log/openerp/openerp-server.log #sudo python /opt/openerp/server/bin/openerp-server.py -r openerp -w postgresdemo --db_host 127.0.0.1 #/opt/openerp/server/bin/openerp-server.py --config=/etc/openerp-server.conf # See if OpenERP is running #---------------------------------------------------------------------- ps aux | grep openerp
III) Development
# Install Eclipse (Java + IDE) #----------------------------------------------------------------------
# Install Java
# If we install Oracle Java 7: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
# If we install sun-java6-jdk on ubuntu 12.04 #
sudo add-apt-repository ppa:flexiondotorg/java sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin
# Select java to use between installed alternatives
sudo update-alternatives --config java
# View version:
~$ java -version java version "1.6.0_30" Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) Server VM (build 20.5-b03, mixed mode)
# Install Eclipse (see more...)
Download Eclipse from http://www.eclipse.org/downloads/packages/eclipse-classic-421/junosr1
or http://www.eclipse.org/downloads/
# Install Plugins
Install plugins following:
- JavaScript Development Tools
- XML Editors and Tools
- Eclipse Web Developer Tools
- PyDev for Eclipse
For install go: Help->Install new software...
Referencias:
https://doc.openerp.com/v6.1/
http://www.slideshare.net/
http://informaticartica.
http://openerpdev.wordpress.
http://planet.agilebg.com/en/
http://www.slideshare.net/
http://trescloud.blogspot.com.ar/2013/02/configurar-eclipse-4.html