SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

En vedette

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
 

En vedette (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...
 

Dernier

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Dernier (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

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