If ubuntu server is used you have to install ubuntu-desktop first
apt-get install ubuntu-desktop
http://doc.openerp.com/book/1/1_1_Inst_Config/1_1_Inst_Config_install.html#technical-procedure-initial-installation-and-configuration
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install openerp-server openerp-client pgadmin3
To avoid having some of the labels untranslated in the GTK client, install the language-pack-gnome-YOURLANG-base package. The following command installs the spanish language pack:
$ sudo apt-get install language-pack-gnome-es-basePostgres Database configuration:
$ sudo vi /etc/postgresql/8.3/main/pg_hba.confReplace the following line:
# “local” is for Unix domain socket connections only
local all all ident sameuserwith:
#”local” is for Unix domain socket connections only
local all all md5Restart Postgres:
$ sudo /etc/init.d/postgresql-8.3 restart
* Restarting PostgreSQL 8.3 database server [ OK ]The following two commands will avoid problems with /etc/init.d/openerp-web INIT script:
$ sudo mkdir /home/openerp
$ sudo chown openerp.nogroup /home/openerpCreate a user account called openerp with password “openerp” and with privileges to create Postgres databases:
$ sudo su postgres
$ createuser openerp -P
Enter password for new role: (openerp)
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) nQuit from user postgres:
$ exit
exitEdit OpenERP configuration file:
$ sudo vi /etc/openerp-server.confReplace the following two lines (we don’t force to use a specific database and we add the required password to gain access to postgres):
db_name =
db_user = openerp
db_password = openerpTroubles with Python releases: Python 2.6 is not yet supported by OpenERP 5.0, but it is the default Python release on Ubuntu 9.0.4. We need to launch OpenERP 5.0 with Python 2.5 or earlier. There’s also a problem with python-xml package in Ubuntu so we will reinstall it.
Python 2.5 setting up:
$ sudo apt-get install python2.5 python2.5-dev python-profilerReinstall python-xml:
$ wget http://freefr.dl.sourceforge.net/sourceforge/pyxml/PyXML-0.8.4.tar.gz
$ tar xvzf PyXML-0.8.4.tar.gz
$ cd PyXML-0.8.4/
$ sudo python2.5 setup.py installMake the following symbolic link:
$ sudo ln -s /usr/lib/python2.6/dist-packages/oldxml/_xmlplus/utils/boolean.so /usr/lib/python2.5/site-packages/oldxml/_xmlplus/utils/Force openerp-server to be launched with Python2.5:
$ cd /usr/bin/
$ sudo cp openerp-server openerp-server.ORIG
$ sudo vi openerp-serverReplace the following line:
exec /usr/bin/python ./openerp-server.py $@with
exec /usr/bin/python2.5 ./openerp-server.py $@We can now restart openerp-server:
$ sudo /etc/init.d/openerp-server restart
Restarting openerp-server: openerp-server.Check out the logs:
$ sudo cat /var/log/openerp.log
[2009-06-14 21:06:39,314] INFO:server:version – 5.0.0
[2009-06-14 21:06:39,314] INFO:server:addons_path – /usr/lib/openerp-server/addons
[2009-06-14 21:06:39,314] INFO:server:database hostname – localhost
[2009-06-14 21:06:39,315] INFO:server:database port – 5432
[2009-06-14 21:06:39,315] INFO:server:database user – openerp
[2009-06-14 21:06:39,315] INFO:objects:initialising distributed objects services
[2009-06-14 21:06:39,502] INFO:web-services:starting XML-RPC services, port 8069
[2009-06-14 21:06:39,502] INFO:web-services:starting NET-RPC service, port 8070
[2009-06-14 21:06:39,502] INFO:web-services:the server is running, waiting for connections…OpenERP is now up and running, connected to Postgres database on port 5432 and listening on ports 8069 and 8070
$ ps uaxww
grep -i openerp
root 2276 0.0 2.3 185576 23708 begin_of_the_skype_highlighting 185576 23708 end_of_the_skype_highlighting ? Sl 13:09 0:00 /usr/bin/python2.5 ./openerp-server.py –config=/etc/openerp-server.conf$ sudo lsof -i :8069
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
python2.5 2276 openerp 3u IPv4 6515 TCP localhost:8069 (LISTEN)$ sudo lsof -i :8070
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
python2.5 2276 openerp 5u IPv4 6520 TCP *:8070 (LISTEN)Start the Open ERP GTK client by clicking its icon in the Applications menu, or by opening a terminal window and typing tinyerp-client . The Open ERP login dialog box should open and show the message No database found you must create one!.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น