{"id":165,"date":"2015-04-27T13:17:40","date_gmt":"2015-04-27T13:17:40","guid":{"rendered":"http:\/\/betakb.veeble.org\/?p=165"},"modified":"2025-04-22T15:10:55","modified_gmt":"2025-04-22T09:40:55","slug":"openerp","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/openerp\/","title":{"rendered":"Installing OpenERP 7.0 on Ubuntu\u00a012.04\u00a0LTS"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"openerp-installation-in-ubuntu-1204lts\"><span id=\"OpenERP_Installation_in_Ubuntu_12.04LTS\" class=\"mw-headline\">OpenERP Installation in Ubuntu 12.04LTS<\/span><\/h2>\n\n\n<p>Update the packages in the service before starting the installation. To update the VPS&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get update\nsudo apt-get dist-upgrade\n<\/pre>\n\n\n\n<p>Add an openerp user to own and run the application.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo adduser --system --home=\/opt\/openerp --group openerp\n<\/pre>\n\n\n\n<p>Note that a \u201chome\u201d of \/opt\/openerp has been specified, this is where the OpenERP server code will reside and is created automatically by the command above.<\/p>\n\n\n\n<p>Install PostgreSQL<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install postgresql\n<\/pre>\n\n\n\n<p>Switch to postgres user to create the database<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo su - postgres\n<\/pre>\n\n\n\n<p>Now create database<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp\n<\/pre>\n\n\n\n<p>Provide a <b>password<\/b> when prompted.<\/p>\n\n\n\n<p>Type exit to switch user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">exit\n<\/pre>\n\n\n\n<p>Install required Python dependencies<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi\n<\/pre>\n\n\n\n<p><b>Download openerp 7.0<\/b><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget <a class=\"external free\" href=\"http:\/\/nightly.openerp.com\/7.0\/nightly\/src\/openerp-7.0-latest.tar.gz\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/nightly.openerp.com\/7.0\/nightly\/src\/openerp-7.0-latest.tar.gz<\/a>\n<\/pre>\n\n\n\n<p>Now extract the tarball<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/opt\/openerp\nsudo tar xvf ~\/openerp-7.0-latest.tar.gz\n<\/pre>\n\n\n\n<p>Change the ownership of the files to the Openerp user we created earlier.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chown -R openerp: *\n<\/pre>\n\n\n\n<p>Rename the directory to the server for later use<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo cp -a openerp-7.0 server\n<\/pre>\n\n\n\n<p>Copy the conf file to \/etc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo cp \/opt\/openerp\/server\/install\/openerp-server.conf \/etc\/\n<\/pre>\n\n\n\n<p>Now change the ownership<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chown openerp: \/etc\/openerp-server.conf\nsudo chmod 640 \/etc\/openerp-server.conf\n<\/pre>\n\n\n\n<p>Edit openerp-server.conf and edit the line <i>db_password = False<\/i>. Replace <i>False<\/i> with the password you provided for postgres user and <i>db_user=admin<\/i> with your postgres user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo nano \/etc\/openerp-server.conf\n<\/pre>\n\n\n\n<p>Also, add the line below to specify the log file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">logfile = \/var\/log\/openerp\/openerp-server.log\n<\/pre>\n\n\n\n<p>Switch to openerp user<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo su - openerp -s \/bin\/bash\n<\/pre>\n\n\n\n<p>You will see a message saying openerp is running and you have completed your installation successfully.<\/p>\n\n\n\n<p>In your browser type <i><a class=\"external free\" href=\"http:\" rel=\"nofollow\">http:\/\/<\/a>&lt;IPaddress&gt;:8069<\/i> to verify<\/p>\n\n\n\n<p>Replace the contents of the file <i>\/opt\/openerp\/server\/install\/openerp-server.init<\/i> with the file below<\/p>\n\n\n\n<p>Copy that file to <i>\/etc\/init.d<\/i> and rename it as<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">openerp-server\n<\/pre>\n\n\n\n<p>Make the script executable and owned by the root<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chmod 755 \/etc\/init.d\/openerp-server\nsudo chown root: \/etc\/init.d\/openerp-server\n<\/pre>\n\n\n\n<p>Set the location of openerp log file and make it writable by openerp.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mkdir \/var\/log\/openerp\nsudo chown openerp:root \/var\/log\/openerp\n<\/pre>\n\n\n\n<p>To make openerp start at boot<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo update-rc.d openerp-server defaults\n<\/pre>\n\n\n\n<p>Now openerp will start at boot.<\/p>\n\n\n\n<p>That&#8217;s it!!<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-3b5da30c wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Hosting Freedom for Creatives &amp; Agencies<\/h3><p class=\"uagb-cta__desc\">Ditch restrictive platforms. Customize plans, set your prices, and grow your brand with fully white-labeled hosting infrastructure.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/reseller-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Explore Plans<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenERP Installation in Ubuntu 12.04LTS Update the packages in the service before starting the installation. To update the VPS&nbsp;: sudo apt-get update sudo apt-get [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":8648,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[],"class_list":["post-165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-installation"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/OpenERP-Installation-in-Ubuntu-12.04-LTS.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/OpenERP-Installation-in-Ubuntu-12.04-LTS-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/OpenERP-Installation-in-Ubuntu-12.04-LTS-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/OpenERP-Installation-in-Ubuntu-12.04-LTS-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/OpenERP-Installation-in-Ubuntu-12.04-LTS-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/OpenERP-Installation-in-Ubuntu-12.04-LTS.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/OpenERP-Installation-in-Ubuntu-12.04-LTS.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Vipin Raj","author_link":"https:\/\/www.veeble.com\/kb\/author\/vipin\/"},"uagb_comment_info":1,"uagb_excerpt":"OpenERP Installation in Ubuntu 12.04LTS Update the packages in the service before starting the installation. To update the VPS&nbsp;: sudo apt-get update sudo apt-get [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":6,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":8676,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/165\/revisions\/8676"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8648"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}