How to install OpenERP 6.0 on Debian 6.0
OpenERP
OpenERP is an open source comprehensive suite of business applications including Sales, CRM, Project management, Warehouse management, Manufacturing, Accounting and Human Resources. OpenERP has separate client and server components. XML-RPC interfaces are available.
In this case study, we will use the XML-RPC protocol because it is based on the HTTP protocol, which includes the Host header. If you want to use this configuration for the NetRPC protocol, you will encounter a problem because this protocol does not include the Host header.
Install the dependencies
With your root access, we will install the dependencies for OpenERP v6.0.
~# useradd -m -s /bin/bash openerp
~# apt-get install postgresql
~# su postgres -c "createuser -s openerp"
~# apt-get install python-psycopg2 python-reportlab python-voject
~# apt-get install python-lxml python-pychart python-tz
~# apt-get install python-yaml python-mako
Fetch and Execute OpenERP
Using the openerp user:
~$ mkdir openerp
~$ wget http://www.openerp.com/download/stable/source/openerp-server-6.0.3.tar.gz
~$ tar xfz openerp-server-6.0.3
~$ cd openerp-server-6.0.3/server/bin
~$ ./openerp-server.py --log-level=debug
Connect to the server
- You can use the GTK client and set the appropriate information in the connection dialog box
- You can use this Python code
#!/usr/bin/env python
from xmlrpclib import ServerProxy
def get_version(hostname, port=8069):
server = ServerProxy('http://%s:%d/xmlrpc/db' % (hostname, port,))
return server.server_version()
def main():
print "Version: %r" % (get_version('localhost'),)
if __name__ == '__main__':
main()