STEP 1. Build server
1. sudo apt-get update
sudo apt-get upgrade
STEP 2. Install and configure the database server, PostgreSQL
1. sudo apt-get install postgresql
2. sudo su postgres
3. createuser –createdb –username postgres –no-createrole –no-superuser –pwprompt user_linux

ex. user=lilo-ubuntu pass=admin
4. exit
STEP 3. Install the necessary Python libraries for the server
1. sudo apt-get install python-dateutil python-feedparser python-gdata  python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2  python-pybabel python-pychart python-pydot python-pyparsing python-reportlab  python-simplejson python-tz python-vatnumber python-vobject python-webdav  python-werkzeug python-xlwt python-yaml python-zsi python-setuptools
2. sudo easy_install werkzeug
STEP 4. Install the OpenERP server
1. Download openerp-6.1-1
2. Extract ke /opt
STEP 5. Configuring the OpenERP application
1. Copy file Config : opener-server.cfg

sudo cp /opt/openerp-6.1-1/install/openerp-server.conf /etc
sudo chown user_linux: /etc/openerp-server.conf
sudo chmod 640 /etc/openerp-server.conf
2. Edit Configurasi (/etc/openerp-server.conf)

admin_passwd = admin
db_host = localhost
db_port = False
db_user = user_linux (User yang didaftar di postgresql)
db_password = admin
logfile = /var/log/openerp/openerp-server.log
3. TEST OPENERP

sudo su – user_linux -s /bin/bash (ENTER)
/opt/openerp/server/openerp-server (ENTER)
STEP 6. Installing the boot script
1. Copy script : openerp-server ke /etc/init.d/ (Download)

Note : Script dapat menggunakan yang di (Hasil download) /opt/openerp/server/install/openerp-server.init

2. Edit : sudo pico /etc/init.d/openerp-server

DAEMON=/opt/openerp-6.1-1/openerp-server
USER=user_linux
CONFIGFILE=”/etc/openerp-server.conf”
3. sudo chmod 755 /etc/init.d/openerp-server
sudo chown root: /etc/init.d/openerp-server
4. Buat Folder untuk menampung Log

sudo mkdir /var/log/openerp
sudo chown user_linux:root /var/log/openerp
STEP 7. Testing the server
1. sudo /etc/init.d/openerp-server start

Lihat Log : less /var/log/openerp/openerp-server.log

Tes di Client : http://IP_or_domain.com:8069

TIPS & TRIK

  • unable to execute /etc/init.d/openerp-server: No such file or directory
    Hal ini dikarenakan script “openerp-server” tidak dapat di eksekusi karena merupakan file document. Pada linux update terbaru (awal 2013), bootscript tidak dapat dibuat executable walaupun sudah dilakukan (STEP 6, Point 3).
    Solusinya :
    1. Copy bootscript networking dari “/etc/init.d/networking” ke lokasi lain (misal: Desktop)
    2. Buka dengan text editor (nano), dan copy semua script dari openerp-server ke networking (yang dicopy).
    3. Ubah nama file “networking” (yang dicopy) menjadi “openerp-server” dan pindahkan ke /etc/init.d

Sumber :
http://www.theopensourcerer.com/2012/02/how-to-install-openerp-6-1-on-ubuntu-10-04-lts/
– Aryo Swastiko (ERP Maxindo)