SlideShare uma empresa Scribd logo
1 de 10
Install ODOO v8.0 from Github | Ubuntu 14.04 LTS | formerly 
OpenERP 
1. Create a user for the ODOO application 
sudo adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --gecos 
'ODOO' --group odoo 
2. Install PostgreSQL database and add odoo as a 
postgres superuser 
• sudo apt-get install postgresql –y 
3. Login to postgres database and create odoo 
user with superuser preveleges 
• sudo su postgres 
• psql template1 
• CREATE ROLE odoo WITH SUPERUSER; 
• ALTER ROLE odoo WITH PASSWORD ‘XXXXX’;
4. To check the postgres db users follow this command 
du 
5. Change the postgesql.conf file to accept connections 
on all interfaces (development use only) 
sudo vim /etc/postgresql/9.3/main/postgresql.conf 
6. Find the listen parameter and remove the # and 
listen to adress * 
listen_address = '*’ 
7. Change the pg_hba.conf file to change the way 
authentication takes place 
sudo vi /etc/postgresql/9.3/main/pg_hba.conf
8. Find the following line 
• local all all peer 
• hosts all all 127.0.0.1/32 md5 
9. Change to: 
• local all all md5 
• hosts all all 127.0.0.1/32 md5 
10. Install the required dependencies for ODOO 
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 python-passlib -y
11. Install latest gdata-python-client 
from http://code.google.com/p/gdata-python-client/ 
downloads/list 
• get 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 
12.Install github 
– sudo apt-get install git
13. Install ODOO 8.0 from Github 
• sudo su - odoo 
• git clone https://www.github.com/odoo/odoo --branch 8.0 
• chown -R odoo: * 
• exit 
14. Configure the ODOO 
sudo cp /opt/odoo/odoo/debian/openerp-server.conf /etc/odoo-server.conf 
sudo chown odoo: /etc/odoo-server.conf 
sudo chmod 640 /etc/odoo-server.conf 
In the /etc/odoo-server.conf file you need to 
following lines. 
sudo vim /etc/odoo-server.conf 
change the line: (in vim use i to start editing) 
• db_user = openerp 
• db_password = false 
with: 
• db_user = odoo db_password = XXXXXX
• (the password setup with the ALTER ROLE command) 
• addons_path = /opt/odoo/odoo/addons 
• logfile = /var/log/odoo/odoo-server.log 
Save the file (ESC :x) 
Create a dir for the log file and give the correct 
permissions 
• sudo mkdir /var/log/odoo 
• sudo chown odoo:root /var/log/odoo 
Check if the server works 
• sudo su odoo 
• cd /opt/odoo/odoo 
• ./openerp-server 
• Go to your brouser and in type http://[ip or dns name of server]:8069 
• In the linux command line press Control + C to quit
Installing a boot script (if you want a boot script) 
• sudo vim /etc/init.d/odoo-server 
• Press i to start editing 
Copy and paste the following 
#!/bin/sh 
### BEGIN INIT INFO 
# Provides: odoo-server 
# Required-Start: $remote_fs $syslog 
# Required-Stop: $remote_fs $syslog 
# Should-Start: $network 
# Should-Stop: $network 
# Default-Start: 2 3 4 5 
# Default-Stop: 0 1 6 
# Short-Description: Business Applications 
# Description: ODOO Business Applications. 
### END INIT INFO 
PATH=/bin:/sbin:/usr/bin 
DAEMON=/opt/odoo/odoo/openerp-server 
NAME=odoo-server 
DESC=odoo-server 
# Specify the user name (Default: openerp). 
USER=odoo 
# Specify an alternate config file (Default: /etc/odoo-server.conf). 
CONFIGFILE="/etc/odoo-server.conf" 
# pidfile 
PIDFILE=/var/run/$NAME.pid 
# Additional options that are passed to the Daemon. 
DAEMON_OPTS="-c $CONFIGFILE" 
[ -x $DAEMON ] || exit 0 
[ -f $CONFIGFILE ] || exit 0 
checkpid() {
[ -f $PIDFILE ] || return 1 
pid=`cat $PIDFILE` 
[ -d /proc/$pid ] && return 0 
return 1 
} 
case "${1}" in 
start) 
echo -n "Starting ${DESC}: " 
start-stop-daemon --start --quiet --pidfile ${PIDFILE}  
--chuid ${USER} --background --make-pidfile  
--exec ${DAEMON} -- ${DAEMON_OPTS} 
echo "${NAME}." 
;; 
stop) 
echo -n "Stopping ${DESC}: " 
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}  
--oknodo 
echo "${NAME}." 
;; 
restart|force-reload) 
echo -n "Restarting ${DESC}: " 
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}  
--oknodo 
sleep 1 
start-stop-daemon --start --quiet --pidfile ${PIDFILE}  
--chuid ${USER} --background --make-pidfile  
--exec ${DAEMON} -- ${DAEMON_OPTS} 
echo "${NAME}." 
;; 
*) 
N=/etc/init.d/${NAME} 
echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2 
exit 1 
;; 
esac 
exit 0
• Save the file (ESC :x) 
Check if the server works 
• sudo chmod 755 /etc/init.d/odoo-server 
• sudo chown root: /etc/init.d/odoo-server 
• sudo /etc/init.d/odoo-server start 
You should now be able to view the logfile and see that 
the server has started 
• less /var/log/odoo/odoo-server.log
and check it using your brwoser and go to: http://[ip or dns name of 
server]:8069 You should see the login screen or database creation of 
OpenERP Change the (super)admin password of openerp. Click on Manage 
Databases (perhaps you’re already here). Change the password. It adds the 
password in plain text in the /etc/odoo-server.conf file, that’s why we changed the 
permissions on this file! 
Stop the server 
• sudo /etc/init.d/odoo-server stop 
Automatic Startup and Shutdown 
• sudo update-rc.d odoo-server defaults 
If you reboot the server everything should be working. 
• If you are searching for an easier way of provisioning your server you could use 
my ODOO v8 Install Script.

Mais conteúdo relacionado

Mais procurados

Node.js basics
Node.js basicsNode.js basics
Node.js basics
Ben Lin
 
PyCon AU 2010 - Getting Started With Apache/mod_wsgi.
PyCon AU 2010 - Getting Started With Apache/mod_wsgi.PyCon AU 2010 - Getting Started With Apache/mod_wsgi.
PyCon AU 2010 - Getting Started With Apache/mod_wsgi.
Graham Dumpleton
 
Gazelle - Plack Handler for performance freaks #yokohamapm
Gazelle - Plack Handler for performance freaks #yokohamapmGazelle - Plack Handler for performance freaks #yokohamapm
Gazelle - Plack Handler for performance freaks #yokohamapm
Masahiro Nagano
 

Mais procurados (20)

agri inventory - nouka data collector / yaoya data convertor
agri inventory - nouka data collector / yaoya data convertoragri inventory - nouka data collector / yaoya data convertor
agri inventory - nouka data collector / yaoya data convertor
 
#OktoCampus - Workshop : An introduction to Ansible
#OktoCampus - Workshop : An introduction to Ansible#OktoCampus - Workshop : An introduction to Ansible
#OktoCampus - Workshop : An introduction to Ansible
 
Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기
 
Node.js basics
Node.js basicsNode.js basics
Node.js basics
 
Odoo development workflow with pip and virtualenv
Odoo development workflow with pip and virtualenvOdoo development workflow with pip and virtualenv
Odoo development workflow with pip and virtualenv
 
Ansible - Introduction
Ansible - IntroductionAnsible - Introduction
Ansible - Introduction
 
PyCon AU 2010 - Getting Started With Apache/mod_wsgi.
PyCon AU 2010 - Getting Started With Apache/mod_wsgi.PyCon AU 2010 - Getting Started With Apache/mod_wsgi.
PyCon AU 2010 - Getting Started With Apache/mod_wsgi.
 
Ansible is the simplest way to automate. MoldCamp, 2015
Ansible is the simplest way to automate. MoldCamp, 2015Ansible is the simplest way to automate. MoldCamp, 2015
Ansible is the simplest way to automate. MoldCamp, 2015
 
Ansible loves Python, Python Philadelphia meetup
Ansible loves Python, Python Philadelphia meetupAnsible loves Python, Python Philadelphia meetup
Ansible loves Python, Python Philadelphia meetup
 
A Brief Introduction to Writing and Understanding Puppet Modules
A Brief Introduction to Writing and Understanding Puppet ModulesA Brief Introduction to Writing and Understanding Puppet Modules
A Brief Introduction to Writing and Understanding Puppet Modules
 
Docker command
Docker commandDocker command
Docker command
 
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
 
Ansible : what's ansible & use case by REX
Ansible :  what's ansible & use case by REXAnsible :  what's ansible & use case by REX
Ansible : what's ansible & use case by REX
 
Databases and MySQL
Databases and MySQLDatabases and MySQL
Databases and MySQL
 
Sahu
SahuSahu
Sahu
 
Configuration Management in Ansible
Configuration Management in Ansible Configuration Management in Ansible
Configuration Management in Ansible
 
Ansible tips & tricks
Ansible tips & tricksAnsible tips & tricks
Ansible tips & tricks
 
Creating beautiful puppet modules with puppet-lint
Creating beautiful puppet modules with puppet-lintCreating beautiful puppet modules with puppet-lint
Creating beautiful puppet modules with puppet-lint
 
Gazelle - Plack Handler for performance freaks #yokohamapm
Gazelle - Plack Handler for performance freaks #yokohamapmGazelle - Plack Handler for performance freaks #yokohamapm
Gazelle - Plack Handler for performance freaks #yokohamapm
 
IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with Ansible
 

Semelhante a Installing odoo v8 from github

Virtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetVirtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + Puppet
Omar Reygaert
 

Semelhante a Installing odoo v8 from github (20)

Odoo 13 installation on ubuntu 19.04
Odoo 13 installation on ubuntu 19.04Odoo 13 installation on ubuntu 19.04
Odoo 13 installation on ubuntu 19.04
 
Hands-On Session Docker
Hands-On Session DockerHands-On Session Docker
Hands-On Session Docker
 
Installation Of Odoo 12 On Ubuntu 18.4
Installation Of Odoo 12 On Ubuntu 18.4Installation Of Odoo 12 On Ubuntu 18.4
Installation Of Odoo 12 On Ubuntu 18.4
 
How to install odoo 15 steps on a ubuntu 20.04 lts system installation
How to install odoo 15 steps on a ubuntu 20.04 lts system installation How to install odoo 15 steps on a ubuntu 20.04 lts system installation
How to install odoo 15 steps on a ubuntu 20.04 lts system installation
 
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
 
Virtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetVirtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + Puppet
 
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
 
Hadoop single cluster installation
Hadoop single cluster installationHadoop single cluster installation
Hadoop single cluster installation
 
How to install Odoo 13 in Ubuntu ?
How to install Odoo 13 in Ubuntu ?How to install Odoo 13 in Ubuntu ?
How to install Odoo 13 in Ubuntu ?
 
Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows
 
Continuous delivery with docker
Continuous delivery with dockerContinuous delivery with docker
Continuous delivery with docker
 
linux_Commads
linux_Commadslinux_Commads
linux_Commads
 
Really useful linux commands
Really useful linux commandsReally useful linux commands
Really useful linux commands
 
Towards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineTowards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev Machine
 
Dev ops
Dev opsDev ops
Dev ops
 
Intro django
Intro djangoIntro django
Intro django
 
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
 
How to manage Azure with open source
How to manage Azure with open sourceHow to manage Azure with open source
How to manage Azure with open source
 
How to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceHow to manage Microsoft Azure with open source
How to manage Microsoft Azure with open source
 
How to Install Odoo 17 on Ubuntu.pdf
How to Install Odoo 17 on Ubuntu.pdfHow to Install Odoo 17 on Ubuntu.pdf
How to Install Odoo 17 on Ubuntu.pdf
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 

Installing odoo v8 from github

  • 1. Install ODOO v8.0 from Github | Ubuntu 14.04 LTS | formerly OpenERP 1. Create a user for the ODOO application sudo adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --gecos 'ODOO' --group odoo 2. Install PostgreSQL database and add odoo as a postgres superuser • sudo apt-get install postgresql –y 3. Login to postgres database and create odoo user with superuser preveleges • sudo su postgres • psql template1 • CREATE ROLE odoo WITH SUPERUSER; • ALTER ROLE odoo WITH PASSWORD ‘XXXXX’;
  • 2. 4. To check the postgres db users follow this command du 5. Change the postgesql.conf file to accept connections on all interfaces (development use only) sudo vim /etc/postgresql/9.3/main/postgresql.conf 6. Find the listen parameter and remove the # and listen to adress * listen_address = '*’ 7. Change the pg_hba.conf file to change the way authentication takes place sudo vi /etc/postgresql/9.3/main/pg_hba.conf
  • 3. 8. Find the following line • local all all peer • hosts all all 127.0.0.1/32 md5 9. Change to: • local all all md5 • hosts all all 127.0.0.1/32 md5 10. Install the required dependencies for ODOO 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 python-passlib -y
  • 4. 11. Install latest gdata-python-client from http://code.google.com/p/gdata-python-client/ downloads/list • get 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 12.Install github – sudo apt-get install git
  • 5. 13. Install ODOO 8.0 from Github • sudo su - odoo • git clone https://www.github.com/odoo/odoo --branch 8.0 • chown -R odoo: * • exit 14. Configure the ODOO sudo cp /opt/odoo/odoo/debian/openerp-server.conf /etc/odoo-server.conf sudo chown odoo: /etc/odoo-server.conf sudo chmod 640 /etc/odoo-server.conf In the /etc/odoo-server.conf file you need to following lines. sudo vim /etc/odoo-server.conf change the line: (in vim use i to start editing) • db_user = openerp • db_password = false with: • db_user = odoo db_password = XXXXXX
  • 6. • (the password setup with the ALTER ROLE command) • addons_path = /opt/odoo/odoo/addons • logfile = /var/log/odoo/odoo-server.log Save the file (ESC :x) Create a dir for the log file and give the correct permissions • sudo mkdir /var/log/odoo • sudo chown odoo:root /var/log/odoo Check if the server works • sudo su odoo • cd /opt/odoo/odoo • ./openerp-server • Go to your brouser and in type http://[ip or dns name of server]:8069 • In the linux command line press Control + C to quit
  • 7. Installing a boot script (if you want a boot script) • sudo vim /etc/init.d/odoo-server • Press i to start editing Copy and paste the following #!/bin/sh ### BEGIN INIT INFO # Provides: odoo-server # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Should-Start: $network # Should-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Business Applications # Description: ODOO Business Applications. ### END INIT INFO PATH=/bin:/sbin:/usr/bin DAEMON=/opt/odoo/odoo/openerp-server NAME=odoo-server DESC=odoo-server # Specify the user name (Default: openerp). USER=odoo # Specify an alternate config file (Default: /etc/odoo-server.conf). CONFIGFILE="/etc/odoo-server.conf" # pidfile PIDFILE=/var/run/$NAME.pid # Additional options that are passed to the Daemon. DAEMON_OPTS="-c $CONFIGFILE" [ -x $DAEMON ] || exit 0 [ -f $CONFIGFILE ] || exit 0 checkpid() {
  • 8. [ -f $PIDFILE ] || return 1 pid=`cat $PIDFILE` [ -d /proc/$pid ] && return 0 return 1 } case "${1}" in start) echo -n "Starting ${DESC}: " start-stop-daemon --start --quiet --pidfile ${PIDFILE} --chuid ${USER} --background --make-pidfile --exec ${DAEMON} -- ${DAEMON_OPTS} echo "${NAME}." ;; stop) echo -n "Stopping ${DESC}: " start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --oknodo echo "${NAME}." ;; restart|force-reload) echo -n "Restarting ${DESC}: " start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --oknodo sleep 1 start-stop-daemon --start --quiet --pidfile ${PIDFILE} --chuid ${USER} --background --make-pidfile --exec ${DAEMON} -- ${DAEMON_OPTS} echo "${NAME}." ;; *) N=/etc/init.d/${NAME} echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0
  • 9. • Save the file (ESC :x) Check if the server works • sudo chmod 755 /etc/init.d/odoo-server • sudo chown root: /etc/init.d/odoo-server • sudo /etc/init.d/odoo-server start You should now be able to view the logfile and see that the server has started • less /var/log/odoo/odoo-server.log
  • 10. and check it using your brwoser and go to: http://[ip or dns name of server]:8069 You should see the login screen or database creation of OpenERP Change the (super)admin password of openerp. Click on Manage Databases (perhaps you’re already here). Change the password. It adds the password in plain text in the /etc/odoo-server.conf file, that’s why we changed the permissions on this file! Stop the server • sudo /etc/init.d/odoo-server stop Automatic Startup and Shutdown • sudo update-rc.d odoo-server defaults If you reboot the server everything should be working. • If you are searching for an easier way of provisioning your server you could use my ODOO v8 Install Script.