4
<html xmlns="http://www.w3.org/1999/xhtml">
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
<title>Install OpenERP on Ubuntu or Debian Linux — OpenERP Book 8.0 documentation</title>
10
<link rel="stylesheet" href="../../_static/basic.css" type="text/css" />
11
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
12
<link rel="stylesheet" href="../../_static/bootswatch-3.1.0/flatly/bootstrap.min.css" type="text/css" />
13
<link rel="stylesheet" href="../../_static/bootstrap-sphinx.css" type="text/css" />
15
<script type="text/javascript">
16
var DOCUMENTATION_OPTIONS = {
19
COLLAPSE_INDEX: false,
24
<script type="text/javascript" src="../../_static/jquery.js"></script>
25
<script type="text/javascript" src="../../_static/underscore.js"></script>
26
<script type="text/javascript" src="../../_static/doctools.js"></script>
27
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
28
<script type="text/javascript" src="../../_static/js/jquery-1.11.0.min.js"></script>
29
<script type="text/javascript" src="../../_static/js/jquery-fix.js"></script>
30
<script type="text/javascript" src="../../_static/bootstrap-3.1.0/js/bootstrap.min.js"></script>
31
<script type="text/javascript" src="../../_static/bootstrap-sphinx.js"></script>
32
<link rel="top" title="OpenERP Book 8.0 documentation" href="../../index.html" />
33
<link rel="up" title="Installation on Windows, Linux and MacOS" href="../index.html" />
34
<link rel="next" title="Install OpenERP on Fedora, CentOS" href="../03/index.html" />
35
<link rel="prev" title="Install OpenERP on Windows 7 or 8 or Server 2008" href="../01/index.html" />
37
<meta charset='utf-8'>
38
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
39
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
40
<meta name="apple-mobile-web-app-capable" content="yes">
42
<script type="text/javascript">
43
var _gaq = _gaq || [];
44
_gaq.push(['_setAccount', 'UA-47926740-1']);
45
_gaq.push(['_trackPageview']);
48
<meta name="google-translate-customization" content="1a9f16396f329347-27b519b501ddf27d-gbee5ada102d015d0-f"></meta>
50
<!-- AddThis Smart Layers BEGIN -->
51
<!-- Go to http://www.addthis.com/get/smart-layers to customize -->
52
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-530c64087def677e"></script>
53
<script type="text/javascript">
55
'theme' : 'transparent',
58
'numPreferredServices' : 5
62
<!-- AddThis Smart Layers END -->
68
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
69
<div class="container">
70
<div class="navbar-header">
71
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
72
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
73
<span class="icon-bar"></span>
74
<span class="icon-bar"></span>
75
<span class="icon-bar"></span>
77
<a class="navbar-brand" href="../../index.html">
79
<span class="navbar-text navbar-version pull-left"><b>8.0</b></span>
82
<div class="collapse navbar-collapse nav-collapse">
83
<ul class="nav navbar-nav">
84
<li class="divider-vertical"></li>
87
<li class="dropdown globaltoc-container">
90
data-toggle="dropdown"
92
href="../../index.html">Site <b class="caret"></b></a>
93
<ul class="dropdown-menu globaltoc"
95
aria-labelledby="dLabelGlobalToc"><ul class="current">
96
<li class="toctree-l1"><a class="reference internal" href="../../about/index.html">About OpenERP Online Book !</a></li>
97
<li class="toctree-l1"><a class="reference internal" href="../../download/index.html">Looking for OpenERP Demo ?</a></li>
98
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">Installation on Windows, Linux and MacOS</a></li>
99
<li class="toctree-l1"><a class="reference internal" href="../../part01/index.html">Getting start with OpenERP</a></li>
100
<li class="toctree-l1"><a class="reference internal" href="../../install-apps/index.html">Install and configure OpenERP Apps</a></li>
101
<li class="toctree-l1"><a class="reference internal" href="../../part03/index.html">Setup your First Company in OpenERP</a></li>
102
<li class="toctree-l1"><a class="reference internal" href="../../part02/index.html">Leads to Cash Flow with OpenERP</a></li>
105
<li class="toctree-l1"><a class="reference internal" href="../../crm_sale/index.html">Boost your Sales</a></li>
108
<li class="toctree-l1"><a class="reference internal" href="../../part04/index.html">Key Features HR</a></li>
111
<li class="toctree-l1"><a class="reference internal" href="../../prod-setup/index.html">Deploy OpenERP in Production</a></li>
112
<li class="toctree-l1"><a class="reference internal" href="../../backup/index.html">OpenERP Backup and Restore</a></li>
117
<li class="dropdown">
120
data-toggle="dropdown"
122
href="#">Page <b class="caret"></b></a>
123
<ul class="dropdown-menu localtoc"
125
aria-labelledby="dLabelLocalToc"><ul>
126
<li><a class="reference internal" href="#">Install OpenERP on Ubuntu or Debian Linux</a><ul>
127
<li><a class="reference internal" href="#install-postgresql">Install PostgreSQL</a></li>
128
<li><a class="reference internal" href="#install-openerp-server">Install OpenERP Server</a></li>
129
<li><a class="reference internal" href="#setup-production-environment">Setup Production Environment</a></li>
140
<a href="../01/index.html" title="Previous Chapter: Install OpenERP on Windows 7 or 8 or Server 2008"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Install OpenERP ...</span>
144
<a href="../03/index.html" title="Next Chapter: Install OpenERP on Fedora, CentOS"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Install OpenERP ... »</span>
151
<li class="hidden-sm"></li>
157
<form class="navbar-form navbar-right" action="../../search.html" method="get">
158
<div class="form-group">
159
<input type="text" name="q" class="form-control" placeholder="Search" />
161
<input type="hidden" name="check_keywords" value="yes" />
162
<input type="hidden" name="area" value="default" />
169
<div class="container">
171
<div class="col-md-12">
176
<span class="target" id="install-ubuntu"></span><div class="section" id="install-openerp-on-ubuntu-or-debian-linux">
177
<span id="index-0"></span><h1>Install OpenERP on Ubuntu or Debian Linux<a class="headerlink" href="#install-openerp-on-ubuntu-or-debian-linux" title="Permalink to this headline">¶</a></h1>
178
<p>Once you install Ubuntu server or desktop based client, you need to install few libraries that is required to run OpenERP.</p>
179
<div class="section" id="install-postgresql">
180
<h2>Install PostgreSQL<a class="headerlink" href="#install-postgresql" title="Permalink to this headline">¶</a></h2>
181
<p>You need to install PostgreSQL database as OpenERP is using as a backend storage, you need to install and configure before you setup additional libraries and OpenERP server.</p>
182
<div class="highlight-bash"><div class="highlight"><pre>openerp@openerp-desktop:/<span class="nv">$ </span>sudo apt-get install postgresql
185
<p>Configure postgresql for OpenERP user. You need to add your current user as a postgres user which you have created under Ubuntu and you are using the same user to run OpenERP server. Inorder to add role to postgresql switch to postgres user.</p>
186
<div class="highlight-bash"><div class="highlight"><pre>openerp@openerp-desktop:/<span class="nv">$ </span>sudo su postgres
190
<p>Create a new user using following command, in my case I have created openerp as a linux user.</p>
191
<div class="highlight-bash"><div class="highlight"><pre>postgres@openerp-desktop:/<span class="nv">$ </span>createuser openerp
192
Shall the new role be a superuser? <span class="o">(</span>y/n<span class="o">)</span> y
195
<p><a class="reference internal" href="../00/index.html#pgadmin3"><em>Install and configure PgAdmin3</em></a> if you want to use graphical user interface for PostgreSQL.</p>
197
<div class="section" id="install-openerp-server">
198
<h2>Install OpenERP Server<a class="headerlink" href="#install-openerp-server" title="Permalink to this headline">¶</a></h2>
199
<p>If you plan to use OpenERP 6.1 or above you need Python 2.6 or later version, simple like OpenERP’s Versions policy its better to use the Ubuntu’s last stable or LTS version for the Production Server.
200
On a Ubuntu or and Debian based Linux distribution you can install all required dependencies with this single command:</p>
201
<div class="highlight-bash"><div class="highlight"><pre>sudo apt-get install python-dateutil python-feedparser <span class="se">\</span>
202
python-gdata python-ldap python-libxslt1 python-lxml python-mako <span class="se">\</span>
203
python-openid python-psycopg2 python-pybabel python-pychart <span class="se">\</span>
204
python-pydot python-pyparsing python-reportlab python-simplejson <span class="se">\</span>
205
python-tz python-vatnumber python-vobject python-webdav <span class="se">\</span>
206
python-werkzeug python-xlwt python-yaml python-zsi <span class="se">\</span>
207
python-docutils python-mock
210
<p>OpenERP server can be download form the OpenERP’s website, <a class="reference internal" href="../../download/03/index.html#select-version"><em>check which version you should download</em></a>. If you only want to test the server, you do not need to install it. Just unpack the archive and start the openerp-server executable:</p>
211
<div class="highlight-bash"><div class="highlight"><pre>tar -xzf openerp-7.0-latest.tar.gz
212
<span class="nb">cd </span>openerp-7.0-*
217
<p>The OpenERP Server can be installed very easily using the setup.py file:</p>
218
<div class="highlight-bash"><div class="highlight"><pre>sudo python setup.py install
221
<p>Once you install OpenERP successfully you are ready to Create your first database in OpenERP.</p>
223
<div class="section" id="setup-production-environment">
224
<h2>Setup Production Environment<a class="headerlink" href="#setup-production-environment" title="Permalink to this headline">¶</a></h2>
225
<p>After successfully setup the OpenERP Latest server, you can deploy OpenERP for production environment on Apache or gUnicorn based on your needs.</p>
232
<div id="disqus_thread"></div>
233
<script type="text/javascript">
234
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
235
var disqus_shortname = 'openerponlinebook'; // required: replace example with your forum shortname
237
/* * * DON'T EDIT BELOW THIS LINE * * */
239
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
240
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
241
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
244
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
245
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
253
<footer class="footer">
254
<div class="container">
255
<p class="pull-right">
256
<a href="#">Back to top</a>
260
© Copyright 2014, OpenERP Book.<br/>
261
Last updated on Mar 28, 2014.<br/>
265
<div class="container">You can contribute to OpenERP Book on <a href="#">Launchpade.net</a>
266
<script type="text/javascript">
268
var ga = document.createElement('script');
269
ga.src = ('https:' == document.location.protocol ?
270
'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
271
ga.setAttribute('async', 'true');
272
document.documentElement.firstChild.appendChild(ga);
b'\\ No newline at end of file'