This is probably the easiest way to install and run OpenERP on a local machine.
Install PostgreSQL database (version 9.1)
> sudo apt-get install postgresql > sudo apt-get install pgadmin3
Download OpenERP Installer (.deb package), i.e., openerp_7.0-latest-1_all.deb, from http://nightly.openerp.com/7.0/nightly/deb/
$ wget http://nightly.openerp.com/7.0/nightly/deb/openerp_7.0-latest-1_all.deb
Install the package for the first time,
> sudo dpkg -i openerp_7.0-latest-1_all.deb
This will not go through, as error will show error msg. This is because required libraries are not met. But is ok, linux will remember it, then we can run following command to get them all at once.
> sudo apt-get install -f
DONE, Start using it @ http://localhost:8069.
For the first use, user will need to create database.
OpenERP start up service
With this method, the startup service (openerp) will be located at /etc/init.d/openerp, we can start or stop service as following,
> cd /etc/init.d > sudo ./openerp start > sudo ./openerp stop > sudo ./openerp restart
Changing PostgreSQL’s user/password (Optional)
During installation, a new db_user = openerp with no password. This configuration is stored in openerp-server.conf file,
As we want to change password, we will first edit the pg_hba.conf to allow connection from other client (i.e., terminal)
> sudo nano /etc/postgresql/9.1/main/pg_hba.conf
local all postgres peerto:
local all postgres trust
Restart Server and Alter the user openerp‘s password to openerppwd
> sudo service postgresql restart > psql -U postgres postgres=# ALTER USER openerp with password 'openerppwd';
We can now change db_password in openerp-server.conf and restart OpenERP server accordingly.