Flag This Hub

Installing OpenERP on Ubuntu 9.10

By


This is not intended to be a full and complete guide to installing OpenERP on Ubuntu 9.10. It is more or less a follow up to a previous Hub abut installing on Ubuntu 9.04.

The basic idea is to just really put down the commands I used to get OpenERP installed on my Ubuntu 9.10 workstation. Essentially most of the steps are exactly the same.

Hope this will help others.

Okay, so lets start by installing the necessary packages.

$ sudo apt-get install openerp-server openerp-client python2.5 python2.5-dev python-profiler

Next we need to install the latest PyXML (at the time of writing this is version 0.8.4).

$ wget http://sourceforge.net/projects/pyxml/files/pyxml/0.8.4/PyXML-0.8.4.tar.gz/download 
$ tar -zxvf PyXML-0.8.4.tar.gz $ cd PyXML-0.8.4/ 
$ sudo python2.5 setup.py install 
$ sudo mkdir -p /usr/lib/python2.5/site-packages/oldxml/_xmlplus/utils/ 
$ sudo ln -s /usr/lib/python2.6/dist-packages/oldxml/_xmlplus/utils/boolean.so /usr/lib/python2.5/site-packages/oldxml/_xmlplus/utils/    

The following step adds a user for OpenERP to PostgreSQL.

$ sudo su postgres 
$ createuser openerp -P 
  Enter password for new role: (enter password here) 
  Enter it again: (enter password here) 
  Shall the new role be a superuser? (y/n) n 
  Shall the new role be allowed to create databases? (y/n) y 
  Shall the new role be allowed to create more new roles? (y/n) n 
$ exit  

Now we need to edit the OpenERP server scrip to ensure that it uses Python 2.5. We will make a backup of the file in case something goes wrong.

$ sudo cp /usr/bin/openerp-server /usr/bin/openerp-server.orig 
$ sudo vi /usr/bin/openerp-server  

We need to look for the following line :

exec /usr/bin/python ./openerp-server.py $@

and chnage it to :

exec /usr/bin/python2.5 ./openerp-server.py $@

Now we need to edit the OpenERP configuration file. We will just edit a few fields to ensure that we can use OpenERP.

$ sudo vi /etc/openerp-server.conf    

We need to look for the following three lines. These lines are not necessarily following each other.

db_name = openerp 
db_user = openerp 
db_password =    

and change them to the following :

db_name = 
db_user = openerp 
db_password = (enter password here)    

By removing the db_name above we will be able to connect to different databases. If you are only using one database you can put it in here.

All that remains is to configure Postgres and restart it.

$ sudo vi /etc/postgresql/8.4/main/pg_hba.conf

Add the following line to it :

local all all md5  

Now all we need to do is restart PostgreSQL and OpenERP. We can do this by issuing the following commands :

$ sudo /etc/init.d/postgresql-8.4 restart
$ sudo /etc/init.d/openerp-server restart    

If everything above happened without any errors, you should now have a working OpenERP installation on your Ubuntu 9.10 workstation or server.

Run the client and attempt to create a database. Remember that the default administrator password on OpenERP is 'admin'.

I hope this was of use to you.

Comments

Mustafa 2 years ago

I followed your instructions to the letter but there is some thing wrong in procedure for install PyXML the link is not being created because the boolean.so file that should be located in the python2.6/dist-packages/---- in not there

Alan Bourke 2 years ago

Thanks for this, very helpful.

phos4us 2 years ago

Hi Mustafa,

Yes. You are right. This step appears to longer be necessary.

Does your installation work?

Regards

phos4us 2 years ago

Hi Alan

Thanks. Glad it was useful.

Regards

Hamish 2 years ago

I am using Ubuntu 9.10 and would just like to know how much (roughly) secondary storage (disc space) an install of openERP will require? (Including postgresql as I only currently have mySQL installed)

Cheers

phos4us 2 years ago

Hi Hamish,

Not entirely sure about what dependencies will be required by your system as this will depend on installed software etc, but the basic openerp (client and server) and postgresql (client and server) seem to be roughly 110M installed size.

Hope this helps.

Regards

and2010 2 years ago

Great guide! thanks!

what way you recomend to install openerp on ubuntu 10.04 lucid linx?

the repositories or download client & server from openerp site?

phos4us 2 years ago

Hi And2010

I haven't tried either way but am sure that both would provide you with a very similar result.

Regards

Paulo Leandro 22 months ago

Cheers,

I suggest using the "all-in-one" setup script that you can find here:

http://openerpappliance.com/2009/09/15/openerp-all

Besides taking care of all dependencies, the script will also optionally update OpenERP and modules.

Give it a try! I'm using it in production sites.

Regards,

Paulo

phos4us 22 months ago

Thanks Paulo,

I haven't tried this script, but am sure it will make the task of installing OpenERP a lot easier.

Regards

Andrew

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Like this Hub?
    Please wait working