OpenERP 6 - a 'How to' Install on Ubuntu 10.4


OpenERP 6 (trunk) has been in development since sometime begining of this year and it starts to look good indeed.

Searching arround the web didnt bring any uptodate tutorials on OpenERP trunk v6 installation and personally having gone through a few issues with that, below is a quick roundup of steps that could be taken to get OpenERP v6 rc1 and OpenERP v6 rc1 web client running.

Best way is running OpenERP as a virtual machine, as it allows for easy migration, much more secure if running a shared environment etc. We had OpenVZ server running on our Centos 5.2 machine, so we will cover a brand new install on a brand new container.

On the main server machine prepare the new container with Ubuntu 10.04:

 cd /vz/template/cache
 wget http://download.openvz.org/template/precreated/ubuntu-10.04-x86_64.tar.gz
 vzctl create 105 --ostemplate ubuntu-10.04-x86
 vzctl set 105 --hostname yourhostname.co.uk --save
 vzctl set 105 --ipadd ip.add.re.ss --save
 vzctl start 105

Enter the new Virtual server:

vzctl enter 105

Set root pasword:

passwd

Prepare the new container for easy instalation:

apt-get update
apt-get install aptitude
aptitude update
apt-get install python-setuptools
aptitude install lxde

If you dont have xming already installed, download and install it on your windows machine. run it.

Open a new session of putty and under connection>SSH>X11, enable X11 forwarding and in the X display location type in:

localhost:0

Connect to your newly created container directly with this new session.

Type in:

xclock

you should see a pop up with a GUI clock in a few seconds if all correct. Close it.

Now is time to install OpenERP. We chose the lazy way - with the all in one setup script.

Download and unpack from [url=http://openerpappliance.com/tag/all-in-one/]http://openerpappliance.com/... openerp-allinone-setup.sh script.

cd /root

Upload the openerp-allinone-setup.sh to your root filder. Make the file executable and then:

./openerp-allinone-setup.sh

In about a minute, you should get a pop-up with prompts: Select trunk > Deselect firewall and https for apache > Select openoffice and magento > Type in your hostname > Then select your ip > Type in your admin password > Then your sudo password.

Time for a coffee...

Once the installation is complete, you need to make a small change in the

/etc/openerp-web.cfg as per the files linked to and adding your variables where needed.

Restart the webserver and enjoy:

/etc/init.d/openerp-web restart

In case you need to clear the python cache:

cd /usr/local/lib/python2.6/dist-packages/
find . -name "*.pyc" -exec rm {} \;

Add new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
8 + 9 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.