Installing OpenERP (aka TinyERP) Stack on Ubuntu Intrepid 8.10
OpenERP, previously called TinyERP, but renamed due to the mismatch between its name and its size, is an open-source ERP system written (mostly) in Python and initiated in Belgium.
On Ubuntu Intrepid, the available openERP package from APT is still the old version 4.2.2 while the current one is 5.0.0.3 and the name of the package is still tinyerp-server and tinyerp-client. In Ubuntu Jaunty Jackalope, the default packages available from APT are current and have their name changed to openerp.
So, if your want to get the latest release of OpenERP on Intrepid , continue reading.
Installing The Pre requisites
You will need python, postgresql and some other necessary packages. So go ahead and open your terminal and type :
sudo apt-get install python python-setuptools python-psycopg2 python-reportlab python-egenix-mxdatetime python-xml python-tz python-pychart python-pydot python-lxml python-libxslt1 python-vobject python-gtk2 python-glade2 python-matplotlib python-hippocanvas evince xpdf flashplugin-nonfree postgresql
Installing Open ERP Server
Now, we need to download the tar file, extract it , then install it. Open your terminal and run each of the following line commands at a time.
wget http://www.openerp.com/download/stable/source/openerp-server-5.0.0-3.tar.gz
tar -xzf openerp-server-5.0.0-3.tar.gz
cd openerp-server-5.0.0-3
sudo python setup.py install
If your PostgreSQL server is up and running, login as the default superuser for PostgreSQL which is called postgres :
sudo su - postgres
you can now run the server using the following command:
openerp-server
Installing Open ERP Client
Open your terminal and type :
wget http://www.openerp.com/download/stable/source/openerp-client-5.0.0-3.tar.gz
tar -xzf openerp-client-5.0.0-3.tar.gz
cd openerp-client-5.0.0-3
sudo python setup.py install
You can now run the client using the following command:
openerp-client
You will be presented with some survey, you can fill the fields or cancel.
Then you need to create a database for the application. Through the menu, navigate to File → Databases → New Database
On the interface you can customize your server address and connection, database name and create an administration account for the application. Fill in the fields and click ok.
Follow the wizard to set up your basic application.
Installing Open ERP Web Client
We need to install TurboGears first. Open your terminal and type :
sudo easy_install TurboGears==1.0.8
Check whether it’s properly installed by typing :
tg-admin info
You should see the version information of TurboGears and related packages.
Now install the web client by typing :
sudo easy_install -U openerp-web
The configuration file is located at :
/usr/lib/python2.5/site-packages/openerp_web-5.0.0_3.1-py2.5.egg/config/default.cfg
Now start the web server with start-openerp-web command:
start-openerp-web
If you see message showing cherrypy._cperror.NotReady: Port not free, then make sure no other application is running on the specified port (8080 is default).
You can change port for by changing server.socket_port value in config/default.cfg.
If everything is fine, open your favorite web browser and type http://localhost:8080, and your can see the welcome page with the login screen.
Please make sure cookies are enabled in your browser.
Of course, OpenERP Server must be running at that time. If you have not previously created a database , you should create a database from the DBAdmin interface by clicking on Manage button that you can see besides the Database selection box. After creating a new database login with the admin/admin or demo/demo to see OpenERP in action…
Run Open ERP Web Client as service (daemon)
Open your terminal and type :
sudo cp /usr/lib/python2.5/site-packages/openerp_web-5.0.0_3.1-py2.5.egg/scripts/openerp-web /etc/init.d
sudo cp /usr/lib/python2.5/site-packages/openerp_web-5.0.0_3.1-py2.5.egg/config/default.cfg /etc/openerp-web.cfg
sudo chmod +x /etc/init.d/openerp-web
Make sure the user is terp in /etc/init.d/openerp-web :
sudo gedit /etc/init.d/openerp-web
Make sure you have : USER=”terp”
Now let’s edit /etc/openerp-web.cfg :
sudo gedit /etc/openerp-web.cfg
find :
args="('server.log',)"
and change it to :
args="('/var/log/openerp-web.log',)"
Create /var/log/openerp-web.log with proper ownership :
sudo touch /var/log/openerp-web.log
sudo chown terp /var/log/openerp-web.log
Now, run following command to start the OpenERP Web automatically on system startup :
sudo update-rc.d openerp-web defaults
Start the deamon :
sudo /etc/init.d/openerp-web start


thanks! It works. Could you show the next steps to get ssl working so you can log in from a separate website?
that would be really helpful.
Thanks. Helpful and accurate.
On the Postgresql installation, there are a bit more details that can be found here http://doc.openerp.com/install/linux/postgres/index.html#postgresql-server-installation
On Ubuntu 9.04 some issues pop up – see Dukai’s excellent comments on :
http://exploringopenerp.blogspot.com/2009/04/running-openerp-on-ubuntu-904.html?showComment=1244927127869#c3692231557828796398
@ed
Ya thanks for the link
Have anyone been able to get OpenERP running on Ubuntu 9.04? I got to running the client and server but now experience database crashes when trying to create a new db.
Seems like code is still executed via Python 2.6
Any ideas where to look?
[2009-06-15 03:52:17,026] INFO:dbpool:Connecting to template1
[2009-06-15 03:52:18,353] INFO:dbpool:Closing all connections to template1
Closing connection
[2009-06-15 03:52:18,386] INFO:dbpool:Connecting to template1
[2009-06-15 03:52:21,297] INFO:dbpool:Closing all connections to template1
Closing connection
[2009-06-15 03:52:21,379] INFO:web-services:CREATE DATABASE: testdb
[2009-06-15 03:52:21,380] INFO:dbpool:Connecting to testdb
[2009-06-15 03:52:21,473] ERROR:web-services:[01]: CREATE DATABASE
[2009-06-15 03:52:21,473] ERROR:web-services:[02]: Traceback (most recent call last):
[2009-06-15 03:52:21,473] ERROR:web-services:[03]: File “/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py”, line 87, in __call__
[2009-06-15 03:52:21,473] ERROR:web-services:[04]: tools.init_db(cr)
[2009-06-15 03:52:21,473] ERROR:web-services:[05]: File “/usr/local/lib/python2.6/dist-packages/openerp-server/tools/misc.py”, line 47, in init_db
[2009-06-15 03:52:21,473] ERROR:web-services:[06]: for line in file_open(f).read().split(‘;’):
[2009-06-15 03:52:21,473] ERROR:web-services:[07]: File “/usr/local/lib/python2.6/dist-packages/openerp-server/tools/misc.py”, line 248, in file_open
[2009-06-15 03:52:21,474] ERROR:web-services:[08]: raise IOError, ‘File not found : ‘+str(name)
[2009-06-15 03:52:21,474] ERROR:web-services:[09]: IOError: File not found : /usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/base.sql
/usr/local/lib/python2.6/dist-packages/openerp-server/tools/misc.py:714: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
if hasattr(e, ‘message’):
/usr/local/lib/python2.6/dist-packages/openerp-server/tools/misc.py:715: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
return ustr(e.message)
Sorry, meant to say server crashes on previous post.
@ed
here is a link for you t install openerp on Jaunty Jackalope
http://www.howtoforge.com/installation-of-openerp-server-5.0-openerp-gtk-client-5.0-and-openerp-web-client-5.0.1-on-ubuntu-server-9.04
Thanks
i tried to do
“sudo apt-get install python python-setuptools python-psycopg2 python-reportlab python-egenix-mxdatetime python-xml python-tz python-pychart python-pydot python-lxml python-libxslt1 python-vobject python-gtk2 python-glade2 python-matplotlib python-hippocanvas evince xpdf flashplugin-nonfree postgresql”
but cant seem to get around this problem, ubuntu intrepid spits out the following errors
“Preconfiguring packages …
supported_versions: WARNING: Unknown Ubuntu release: 8.10
dpkg: considering deconfiguration of libc6, which would be broken by installation of libc-bin …
dpkg: yes, will deconfigure libc6 (broken by libc-bin).
(Reading database … 214518 files and directories currently installed.)
Unpacking libc-bin (from …/libc-bin_2.10.1-2_i386.deb) …
De-configuring libc6 …
Replacing files in old package libc6 …
dpkg: error processing /var/cache/apt/archives/libc-bin_2.10.1-2_i386.deb (–unpack):
trying to overwrite `/usr/share/man/man1/localedef.1.gz’, which is also in package belocs-locales-bin
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for man-db …
Errors were encountered while processing:
/var/cache/apt/archives/libc-bin_2.10.1-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)”
Help