SlideShare a Scribd company logo
1 of 3
http://aitmlouk-addi.blogspot.com/ http://aitmlouk.esy.es/ aitmlouk@gmail.com
Guide to Install Odoo 8.x on ubuntu (12, 14 ..)LTS, step by step from source (available for all
versions of ubuntu) and starting server up automatically
Update apt source list
sudo apt-get update
Install required packages for openerp
sudo apt-get install graphviz ghostscript postgresql-client 
python-dateutil python-feedparser python-matplotlib 
python-ldap python-libxslt1 python-lxml python-mako 
python-openid python-psycopg2 python-pybabel python-pychart 
python-pydot python-pyparsing python-reportlab python-simplejson 
python-tz python-vatnumber python-vobject python-webdav 
python-werkzeug python-xlwt python-yaml python-imaging
Install some other packages that we will probably need in future
sudo apt-get install gcc python-dev mc bzr python-setuptools python-babel 
python-feedparser python-reportlab-accel python-zsi python-openssl 
python-egenix-mxdatetime python-jinja2 python-unittest2 python-mock 
python-docutils lptools make python-psutil python-paramiko poppler-utils 
python-pdftools antiword postgresql
and
sudo apt-get install python-dateutil python-feedparser python-ldap python-libxslt1 python-lxml python-mako
python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-
reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug
python-xlwt python-yaml python-zsi python-docutils python-psutil python-mock python-unittest2 python-jinja2
python-pypdf python-decorator python-requests git-core python-passlib
Install gdata client (since ubuntu package is old we download and install from source)
wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz
tar zxvf gdata-2.0.17.tar.gz
cd gdata-2.0.17/
sudo python setup.py install
Create a new openerp system user for odoo and other related processes
sudo adduser odoo --home /opt/odoo
log as postgres user and create database user for odoo
createuser --createdb --username postgres --no-createrole --pwprompt odoo
Move to the install directory
sudo su odoo
mkdir /opt/odoo/v8
cd /opt/odoo/v8
http://aitmlouk-addi.blogspot.com/ http://aitmlouk.esy.es/ aitmlouk@gmail.com
Download the latest revision from nightly.odoo.com (with the choice of version)
cd /opt/odoo
wget https://nightly.odoo.com/8.0/nightly/src/odoo_8.0.latest.tar.gz
tar zxvf odoo_8.0.latest.tar.gz
sudo cp -R odoo-8.0-latest/* /opt/odoo/v8
Copy OpenERP configuration file to /etc
sudo cp /opt/odoo/v8/install/openerp-server.conf /etc/openerp-server.conf
Edit the configuration file
sudo nano /etc/openerp-server.conf
Write your database operation password and remove the semicolon of that line. Also add the
addons_path to the end of file, my file looks like below.
[options]
; This is the password that allows database operations:
;admin_passwd = admin
db_host = False
db_port = False
db_user = openerp
db_password = False
addons_path = /opt/odoo/v8/addons,/opt/odoo/v8/openerp/addons
Change the file permissions and file ownership to the openerp user.
sudo chown odoo: /etc/openerp-server.conf
sudo chmod 640 /etc/openerp-server.conf
Run the server
sudo su odoo
cd /opt/odoo/v8/
./openerp-server
Starting Server Up Automatically
You can download the original script from: 
https://github.com/aitmlouk/scripts/blob/develop/startup.sh
you just need to change the location of the daemon. below is the init script you can copy 
paste this to the file.
You can edit this scipt with the following command
sudo nano /etc/init.d/startup.sh
Make the init script executable.
sudo chmod +x /etc/init.d/startup.sh
Add startup.sh to system startup
sudo update-rc.d startup.sh defaults
http://aitmlouk-addi.blogspot.com/ http://aitmlouk.esy.es/ aitmlouk@gmail.com
Restart the server to check if init script works
sudo shutdown -r now
After restart you should be able to connect to the server via http://yourip:8069 Or 
http://localhost:8069
Automatic Backup
• Create script for backup and create directory that will contain databases
• Create crontab for user odoo
• listing all crontab for user
crontab -l
• If there is no one you must create it by this commande
crontab -e
• you will have your crontab with this parameters
# m h dom mon dow command
*/30 * * * * sh /opt/backup.sh
Vidéos :
https://www.youtube.com/watch?v=RD14oz7ZSDM&list=UUixrGqgzF8GXs8y6eCRlBAw
https://www.youtube.com/watch?v=-_MeueQFCRU&list=UUixrGqgzF8GXs8y6eCRlBAw
For more informations visite :
http://aitmlouk-addi.blogspot.com/
http://aitmlouk.esy.es/
aitmlouk@gmail.com

More Related Content

Viewers also liked

Odoo 8 tutorial HR Module part 1
Odoo 8 tutorial   HR Module part 1Odoo 8 tutorial   HR Module part 1
Odoo 8 tutorial HR Module part 1Md Omar Bare
 
OpenERP - How to sell OpenERP
OpenERP - How to sell OpenERPOpenERP - How to sell OpenERP
OpenERP - How to sell OpenERPOdoo
 
How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...Odoo
 
Modul Odoo ERP
Modul Odoo ERPModul Odoo ERP
Modul Odoo ERPryan28_sp
 
Development Odoo Basic
Development Odoo BasicDevelopment Odoo Basic
Development Odoo BasicMario IC
 
Odoo introduction
Odoo introductionOdoo introduction
Odoo introductionhdarabi
 
Odoo - Presentation documentation v8
Odoo - Presentation documentation v8Odoo - Presentation documentation v8
Odoo - Presentation documentation v8Odoo
 
ait_mlouk_addi_presentation_pfe
ait_mlouk_addi_presentation_pfeait_mlouk_addi_presentation_pfe
ait_mlouk_addi_presentation_pfeAddi Ait-Mlouk
 
Odoo (OpenERP) - Creating a module
Odoo (OpenERP) - Creating a moduleOdoo (OpenERP) - Creating a module
Odoo (OpenERP) - Creating a moduleTarun Behal
 
Conception et réalisation d'une application de gestion intégrée au sein de la...
Conception et réalisation d'une application de gestion intégrée au sein de la...Conception et réalisation d'une application de gestion intégrée au sein de la...
Conception et réalisation d'une application de gestion intégrée au sein de la...Addi Ait-Mlouk
 

Viewers also liked (11)

Odoo 8 tutorial HR Module part 1
Odoo 8 tutorial   HR Module part 1Odoo 8 tutorial   HR Module part 1
Odoo 8 tutorial HR Module part 1
 
Introduction to Open ERP
Introduction to Open ERPIntroduction to Open ERP
Introduction to Open ERP
 
OpenERP - How to sell OpenERP
OpenERP - How to sell OpenERPOpenERP - How to sell OpenERP
OpenERP - How to sell OpenERP
 
How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...How to customize views & menues of OpenERP online in a sustainable way. Frede...
How to customize views & menues of OpenERP online in a sustainable way. Frede...
 
Modul Odoo ERP
Modul Odoo ERPModul Odoo ERP
Modul Odoo ERP
 
Development Odoo Basic
Development Odoo BasicDevelopment Odoo Basic
Development Odoo Basic
 
Odoo introduction
Odoo introductionOdoo introduction
Odoo introduction
 
Odoo - Presentation documentation v8
Odoo - Presentation documentation v8Odoo - Presentation documentation v8
Odoo - Presentation documentation v8
 
ait_mlouk_addi_presentation_pfe
ait_mlouk_addi_presentation_pfeait_mlouk_addi_presentation_pfe
ait_mlouk_addi_presentation_pfe
 
Odoo (OpenERP) - Creating a module
Odoo (OpenERP) - Creating a moduleOdoo (OpenERP) - Creating a module
Odoo (OpenERP) - Creating a module
 
Conception et réalisation d'une application de gestion intégrée au sein de la...
Conception et réalisation d'une application de gestion intégrée au sein de la...Conception et réalisation d'une application de gestion intégrée au sein de la...
Conception et réalisation d'une application de gestion intégrée au sein de la...
 

Recently uploaded

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 

Recently uploaded (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Install Odoo 8.x on ubuntu (12, 14 ..) and starting server up automatically

  • 1. http://aitmlouk-addi.blogspot.com/ http://aitmlouk.esy.es/ aitmlouk@gmail.com Guide to Install Odoo 8.x on ubuntu (12, 14 ..)LTS, step by step from source (available for all versions of ubuntu) and starting server up automatically Update apt source list sudo apt-get update Install required packages for openerp sudo apt-get install graphviz ghostscript postgresql-client python-dateutil python-feedparser python-matplotlib python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-imaging Install some other packages that we will probably need in future sudo apt-get install gcc python-dev mc bzr python-setuptools python-babel python-feedparser python-reportlab-accel python-zsi python-openssl python-egenix-mxdatetime python-jinja2 python-unittest2 python-mock python-docutils lptools make python-psutil python-paramiko poppler-utils python-pdftools antiword postgresql and sudo apt-get install python-dateutil python-feedparser python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python- reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-docutils python-psutil python-mock python-unittest2 python-jinja2 python-pypdf python-decorator python-requests git-core python-passlib Install gdata client (since ubuntu package is old we download and install from source) wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz tar zxvf gdata-2.0.17.tar.gz cd gdata-2.0.17/ sudo python setup.py install Create a new openerp system user for odoo and other related processes sudo adduser odoo --home /opt/odoo log as postgres user and create database user for odoo createuser --createdb --username postgres --no-createrole --pwprompt odoo Move to the install directory sudo su odoo mkdir /opt/odoo/v8 cd /opt/odoo/v8
  • 2. http://aitmlouk-addi.blogspot.com/ http://aitmlouk.esy.es/ aitmlouk@gmail.com Download the latest revision from nightly.odoo.com (with the choice of version) cd /opt/odoo wget https://nightly.odoo.com/8.0/nightly/src/odoo_8.0.latest.tar.gz tar zxvf odoo_8.0.latest.tar.gz sudo cp -R odoo-8.0-latest/* /opt/odoo/v8 Copy OpenERP configuration file to /etc sudo cp /opt/odoo/v8/install/openerp-server.conf /etc/openerp-server.conf Edit the configuration file sudo nano /etc/openerp-server.conf Write your database operation password and remove the semicolon of that line. Also add the addons_path to the end of file, my file looks like below. [options] ; This is the password that allows database operations: ;admin_passwd = admin db_host = False db_port = False db_user = openerp db_password = False addons_path = /opt/odoo/v8/addons,/opt/odoo/v8/openerp/addons Change the file permissions and file ownership to the openerp user. sudo chown odoo: /etc/openerp-server.conf sudo chmod 640 /etc/openerp-server.conf Run the server sudo su odoo cd /opt/odoo/v8/ ./openerp-server Starting Server Up Automatically You can download the original script from:  https://github.com/aitmlouk/scripts/blob/develop/startup.sh you just need to change the location of the daemon. below is the init script you can copy  paste this to the file. You can edit this scipt with the following command sudo nano /etc/init.d/startup.sh Make the init script executable. sudo chmod +x /etc/init.d/startup.sh Add startup.sh to system startup sudo update-rc.d startup.sh defaults
  • 3. http://aitmlouk-addi.blogspot.com/ http://aitmlouk.esy.es/ aitmlouk@gmail.com Restart the server to check if init script works sudo shutdown -r now After restart you should be able to connect to the server via http://yourip:8069 Or  http://localhost:8069 Automatic Backup • Create script for backup and create directory that will contain databases • Create crontab for user odoo • listing all crontab for user crontab -l • If there is no one you must create it by this commande crontab -e • you will have your crontab with this parameters # m h dom mon dow command */30 * * * * sh /opt/backup.sh Vidéos : https://www.youtube.com/watch?v=RD14oz7ZSDM&list=UUixrGqgzF8GXs8y6eCRlBAw https://www.youtube.com/watch?v=-_MeueQFCRU&list=UUixrGqgzF8GXs8y6eCRlBAw For more informations visite : http://aitmlouk-addi.blogspot.com/ http://aitmlouk.esy.es/ aitmlouk@gmail.com