-
-
Save redlotus/5865df48a1f8faa11d82493624b25c58 to your computer and use it in GitHub Desktop.
Install OpenERP 7 on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copied only the scripts from http://www.theopensourcerer.com/2012/12/how-to-install-openerp-7-0-on-ubuntu-12-04-lts/ | |
sudo apt-get install openssh-server denyhosts | |
sudo apt-get update | |
sudo apt-get dist-upgrade | |
sudo adduser --system --home=/opt/openerp --group openerp | |
sudo apt-get install postgresql | |
sudo su - postgres | |
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp | |
#Enter password for new role: ******** | |
#Enter it again: ******** | |
# Ctrl + d to exit postgres user and move to root | |
sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata \ | |
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 | |
wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz | |
cd /opt/openerp | |
sudo tar xvf ~/openerp-7.0-latest.tar.gz | |
sudo chown -R openerp: * | |
sudo cp -a openerp-7.0 server | |
sudo cp /opt/openerp/server/install/openerp-server.conf /etc/ | |
sudo chown openerp: /etc/openerp-server.conf | |
sudo chmod 640 /etc/openerp-server.conf | |
sudo nano /etc/openerp-server.conf | |
# change the db_password = False to the same password you used back in line 9, add logfile = /var/log/openerp/openerp-server.log | |
sudo cp /opt/openerp/server/install/openerp-server.init /etc/init.d/openerp-server | |
# init.d boot script http://www.theopensourcerer.com/wp-content/uploads/2012/12/openerp-server | |
sudo chmod 755 /etc/init.d/openerp-server | |
sudo chown root: /etc/init.d/openerp-server | |
sudo mkdir /var/log/openerp | |
sudo chown openerp:root /var/log/openerp | |
#testing the server | |
sudo /etc/init.d/openerp-server start | |
less /var/log/openerp/openerp-server.log | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment