~openerp-vietnam/openobject-doc/technical-tutorial

« back to all changes in this revision

Viewing changes to source/install/linux/client/index.rst

  • Committer: Najlaâ EL KHAYAT
  • Date: 2009-04-07 12:47:35 UTC
  • Revision ID: nel@tinyerp.com-20090407124735-fvnl6acj42fhff34
doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.. index::
 
3
   single: Installation; Open ERP Client (Linux)
 
4
   single: Open ERP Client; Installation (Linux)
 
5
.. 
 
6
 
 
7
.. _installation-linux-client-link:
 
8
 
 
9
OpenERP Client Installation
 
10
===========================
 
11
 
 
12
Installing the required packages
 
13
--------------------------------
 
14
 
 
15
You need to install **python** (at least version 2.4).
 
16
 
 
17
You also need to install the following python libraries:
 
18
 
 
19
  * **gtk** and **glade** (at least version 2.10)
 
20
  * **matplotlib**
 
21
  * **mxdatetime**
 
22
  * **xml**
 
23
  * **tz** (timezone library)
 
24
  * **hippocanvas** (Python bindings to hippo-canvas. Hippocanvas is a canvas library based on GTK+2.0, Cairo and Pango)
 
25
 
 
26
.. note::
 
27
 
 
28
    You'll also need a pdf viewer (eg. xpdf, acroread, kpdf).
 
29
 
 
30
    See the :ref:`configure-pdf-viewer-link` Section.
 
31
 
 
32
Example on Ubuntu
 
33
+++++++++++++++++
 
34
 
 
35
On Ubuntu, these libraries are available in the following packages:
 
36
 
 
37
  * python
 
38
  * python-gtk2
 
39
  * python-glade2
 
40
  * python-matplotlib
 
41
  * python-egenix-mxdatetime
 
42
  * python-xml
 
43
  * python-tz
 
44
  * python-hippocanvas
 
45
 
 
46
To install the required libraries, you can do the following in your favorite shell: ::
 
47
 
 
48
  sudo apt-get install python python-gtk2 python-glade2 \
 
49
      python-matplotlib python-egenix-mxdatetime python-xml python-hippocanvas
 
50
 
 
51
Downloading the Open ERP Client
 
52
-------------------------------
 
53
 
 
54
The OpenERP client can be downloaded from
 
55
the `OpenERP website's download page <http://www.openerp.com/index.php?option=com_content&view=article&id=18&Itemid=28>`_
 
56
 
 
57
Testing the Open ERP Client
 
58
---------------------------
 
59
 
 
60
.. note::
 
61
 
 
62
    If you only want to test the client, you do not need to install it. Just unpack the
 
63
    archive and start the openerp-client executable: ::
 
64
 
 
65
        tar -xzf openerp-client-5.0.0.tar.gz
 
66
        cd openerp-client-5.0.0/bin
 
67
        python openerp-client.py
 
68
 
 
69
Installing the Open ERP Client
 
70
------------------------------
 
71
 
 
72
The client can be installed very easily using the *setup.py* file: ::
 
73
 
 
74
  tar -xzf openerp-client-5.0.0.tar.gz
 
75
  cd openerp-client-5.0.0
 
76
  sudo python setup.py install
 
77
 
 
78
You can now run the client using the following command: ::
 
79
 
 
80
  openerp-client
 
81
 
 
82
.. index::
 
83
   single: Open ERP Client; Configuring a pdf viewer
 
84
   single: pdf viewer
 
85
.. 
 
86
 
 
87
.. _configure-pdf-viewer-link:
 
88
 
 
89
Configuring a pdf viewer
 
90
------------------------
 
91
 
 
92
Open ERP client by default supports:
 
93
 
 
94
 #. evince
 
95
 #. xpdf
 
96
 #. gpdf
 
97
 #. kpdf
 
98
 #. epdfview
 
99
 #. acroread
 
100
 
 
101
for previewing PDF. The client will try to find one of these executables (in this order) in
 
102
  your system and open the pdf document with it.
 
103
 
 
104
.. note::
 
105
 
 
106
    For example, if *xpdf*, *kpdf* and *acroread* are the only pdf viewers installed
 
107
    on your system, the Open ERP client will use *xpdf* for previewing pdf document
 
108
 
 
109
If you  want to use another pdf viewer or if you don't want to use the first
 
110
one the client will find. You can edit the Open ERP configuration file normally
 
111
located in ``~/.terprc``. Find the ``[printer]`` section and edit the
 
112
``softpath`` parameter. For example: ::
 
113
 
 
114
    [printer]
 
115
    softpath = kpdf
 
116