Вы находитесь на странице: 1из 2

$sudo apt-get install bzr postgresql-9.

1 pgadmin3 python-psycopg2 python-reportl ab python-egenix-mxdatetime python-tz python-pychart python-mako python-pydot py thon-lxml python-vobject python-yaml python-dateutil python-pychart python-pydot python-webdav python-cherrypy3 python-formencode python-pybabel python-simplejs on python-pyparsing python-werkzeug python-mako wkhtmltopdf python-xlwt python-s etuptools python-glade2 python-matplotlib python-openid sudo su postgres -c psql template1 postgres=#ALTER USER postgres WITH PASSWORD 'admin'; postgres=#\q $sudo nano /etc/postgresql/9.1/main/postgresql.conf Ganti baris berikut # Listen_addresses = 'localhost' ====>>> listen_addresses = '*' # Password_encryption = on ====>>> Password_encryption = on sudo nano /etc/postgresql/9.1/main/pg_hba.conf ========================================================================= # Database administrative login by Unix domain socket local all postgres trust # TYPE DATABASE USER ADDRESS METHOD trust trust md5 the peer md5 md5

# "local" is for Unix domain socket connections only local all all # IPv4 local connections: host all all 127.0.0.1/32 # IPv6 local connections: host all all ::1/128 # Allow replication connections from localhost, by a user with # replication privilege. #local replication postgres #host replication postgres 127.0.0.1/32 #host replication postgres ::1/128 $sudo /etc/init.d/postgresql restart

$createuser --createdb --username postgres --no-createrole --pwprompt openerp Enter password for new role: Enter it again: Shall the new role be a superuser? (y/n) y ### masukin password openerp agar mudah mengingatnya ###INSTALASI SERVER $cd ~ $mkdir OpenERP $cd ~/OpenERP #download openerp-server dari http://nightly.openerp.com/6.1/nightly/src/openerp -6.1-latest.tar.gz $wget http://nightly.openerp.com/6.1/nightly/src/openerp-6.1-latest.tar.gz #download openerp-client $wget http://nightly.openerp.com/6.1/nightly/src/openerp-client-6.1-latest.tar.g z

#extract kedua file tersebut di dalam directory OpenERP yang tadi dibuat $tar -xzvf openerp-6.1-latest.tar.gz $tar -xzvf openerp-client-6.1-latest.tar.gz #copy file configurasi (terlampir di email) ke /etc $sudo mv openerp-server61.conf /etc #create launcher server di /usr/local/bin $sudo nano /usr/local/bin/openerp-server61 #isikan script dibawah ke dalam launcher #! /bin/sh cd ~/OpenERP/openerp-6.1-latest exec /usr/bin/python ./openerp-server $@ #save filenya dengan ctrl+o > yes > ctrl+x #create launcher client di /usr/local/bin $sudo nano /usr/local/bin/openerp-client61 #! /bin/sh cd ~/OpenERP/openerp-client-6.1-latest/bin exec /usr/bin/python ./openerp-client.py $@ #save filenya dengan cara yang sama #ubah permission kedua file tadi $sudo chmod +x /usr/local/bin/openerp-client61 $sudo chmod +x /usr/local/bin/openerp-server61 #coba jalankan server di terminal $openerp-server61 -c /etc/openerp-server61.conf #jalankan client di terminal satu lagi $openerp-client61 #jika tidak berhasil atau kurang dimengerti, tanyakan kembali