SlideShare a Scribd company logo
Copyright@Mohamed-Bouhamed 
First Of all open your terminal ( ALT + CTR + T) and copy paste given bellow command in order 
Step 1. Build your server first 
• sudo apt-get install openssh-server denyhosts 
Now make sure your server has all the latest versions & patches by doing an update: 
• sudo apt-get update 
• sudo apt-get dist-upgrade 
Now we’re ready to start the OpenERP install. 
Step 2. Create the OpenERP user that will own and run the application 
• sudo adduser –system –home=/opt/openerp –group openerp(Here you can change your 
folder name instead of OPT -> Ur folder name ) 
• sudo su – openerp -s /bin/bash 
• exit. 
Step 3. Install and configure the database server, PostgreSQL 
• sudo apt-get install postgresql 
(Then configure the OpenERP user on postgres: First change to the postgres user so we have the 
necessary privileges to configure the database. ) 
• sudo su – postgres 
(Now create a new database user. This is so OpenERP has access rights to connect to PostgreSQL 
and to create and drop databases. Remember what your choice of password is here; you will need it 
later on:) 
• createuser –createdb –username postgres –no-createrole –no-superuser –pwprompt 
openerp 
Enter password for new role: ******* ( recommended password : openepgpwd or as ur wish ) 
Enter it again: *******
Copyright@Mohamed-Bouhamed 
Finally exit from the postgres user account: 
• exit 
Step 4. Install the necessary Python libraries for the server 
• 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 
( Please install one by one python package like –>>> sudo apt-get install python-dateutil-docutils 
) 
Step 5. Install the OpenERP server 
• sudowget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz 
Now install the code where we need it: cd to the /opt/openerp/ directory and extract the tarball there. 
• cd /opt/openerp 
• sudo tar xvf ~/openerp-7.0-latest.tar.gz( if any error comes type below command) 
• sudo tar zxvf~/openerp-7.0-latest.tar.gz 
• sudo chown -R openerp: * 
• sudo cp -a openerp-7.0 server 
Step 6. Configuring the OpenERP application 
(The default configuration file for the server (in /opt/openerp/server/install/) is actually very 
minimal and will, with only one small change work fine so we’ll simply copy that file to where we 
need it and change it’s ownership and permissions:) 
• sudo cp /opt/openerp/server/install/openerp-server.conf /etc/ 
• sudo chown openerp: /etc/openerp-server.conf 
• sudo chmod 640 /etc/openerp-server.conf
Copyright@Mohamed-Bouhamed 
• sudo nano /etc/openerp-server.conf 
(we might as well add to the configuration file now, is to tell OpenERP where to write its log file. 
To complement my suggested location below add the following line to the openerp-server.conf file: 
logfile = /var/log/openerp/openerp-server.log 
and remove the semicolon in db_password only 
Once the configuration file is edited and saved, you can start the server just to check if it actually 
runs. 
• sudo su – openerp -s /bin/bash 
• /opt/openerp/server/openerp-server 
** if any comes here trace the error like package not installed whatever just install those package 
like 
sudo apt-get install ……Package name …….. (i faced these error while installing python package 
not installed 
(sudo apt-get install python-werkzeug like this u can resolve the error) 
or type this command 
• sudo apt-get install python-pip 
• sudo pip install gdata –upgrade 
if everything is ok then once again start the service 
• sudo su – openerp -s /bin/bash 
• /opt/openerp/server/openerp-server 
simply enter CTL+C to stop the server and then exit to leave the openerp user account and go back 
to your own shell.
Copyright@Mohamed-Bouhamed 
Step 7. Installing the boot script ( to start the server automatically ) 
There is a script you can use in /opt/openerp/server/install/openerp-server.init ( you need to either 
copy it or paste the contents of this script (openerp-server.init )to a file in /etc/init.d/ 
Or copy and paste below script and save as file .init put into—> /etc/init.d/ 
#!/bin/sh 
### BEGIN INIT INFO 
# Provides: openerp-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: Enterprise Resource Management software 
# Description: Open ERP is a complete ERP and CRM software. 
### END INIT INFO 
PATH=/bin:/sbin:/usr/bin 
DAEMON=/opt/openerp/server/openerp-server 
NAME=openerp-server 
DESC=openerp-server 
# Specify the user name (Default: openerp). 
USER=openerp 
# Specify an alternate config file (Default: /etc/openerp-server.conf). 
CONFIGFILE="/etc/openerp-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 
}
Copyright@Mohamed-Bouhamed 
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 
Once it is in the right place you will need to make it executable and owned by root: 
• sudo chmod 755 /etc/init.d/openerp-server.init 
• sudo chown root: /etc/init.d/openerp-server.init 
In the configuration file there’s an entry for the server’s log file. We need to create that directory 
first so that the server has somewhere to log to and also we must make it writeable by the openerp 
user: 
• sudo mkdir /var/log/openerp
Copyright@Mohamed-Bouhamed 
• sudo chown openerp:root /var/log/openerp 
Step 8. Testing the server 
• sudo /etc/init.d/openerp-server.init start 
it will look like this

More Related Content

More from TECOS

Analytics certified
Analytics certifiedAnalytics certified
Analytics certifiedTECOS
 
Ad words certified
Ad words certifiedAd words certified
Ad words certifiedTECOS
 
Télémétrie d’openstack
Télémétrie d’openstackTélémétrie d’openstack
Télémétrie d’openstackTECOS
 
cloudu certification
cloudu certificationcloudu certification
cloudu certificationTECOS
 
Internship report
Internship reportInternship report
Internship reportTECOS
 
Gsm presntation
Gsm presntationGsm presntation
Gsm presntationTECOS
 
Td gsm iit
Td gsm iitTd gsm iit
Td gsm iitTECOS
 
Complément réseaux informatiques
Complément réseaux informatiquesComplément réseaux informatiques
Complément réseaux informatiquesTECOS
 
Cours réseauxs gsm
Cours réseauxs gsmCours réseauxs gsm
Cours réseauxs gsmTECOS
 
Cours sécurité 2_asr
Cours sécurité 2_asrCours sécurité 2_asr
Cours sécurité 2_asrTECOS
 
chapitre 1
chapitre 1chapitre 1
chapitre 1TECOS
 
Serveur web iit_asr_p2i
Serveur web iit_asr_p2iServeur web iit_asr_p2i
Serveur web iit_asr_p2iTECOS
 
Examen
Examen Examen
Examen TECOS
 
04 programmation mobile - android - (db, receivers, services...)
04 programmation mobile - android - (db, receivers, services...)04 programmation mobile - android - (db, receivers, services...)
04 programmation mobile - android - (db, receivers, services...)TECOS
 
03 programmation mobile - android - (stockage, multithreads, web services)
03 programmation mobile - android - (stockage, multithreads, web services)03 programmation mobile - android - (stockage, multithreads, web services)
03 programmation mobile - android - (stockage, multithreads, web services)TECOS
 
02 programmation mobile - android - (activity, view, fragment)
02 programmation mobile - android - (activity, view, fragment)02 programmation mobile - android - (activity, view, fragment)
02 programmation mobile - android - (activity, view, fragment)TECOS
 
01 programmation mobile - android - (introduction)
01 programmation mobile - android - (introduction)01 programmation mobile - android - (introduction)
01 programmation mobile - android - (introduction)TECOS
 
Gsm presntation
Gsm presntationGsm presntation
Gsm presntationTECOS
 
Mohamed bouhamed
Mohamed bouhamedMohamed bouhamed
Mohamed bouhamedTECOS
 

More from TECOS (20)

Analytics certified
Analytics certifiedAnalytics certified
Analytics certified
 
Ad words certified
Ad words certifiedAd words certified
Ad words certified
 
Télémétrie d’openstack
Télémétrie d’openstackTélémétrie d’openstack
Télémétrie d’openstack
 
cloudu certification
cloudu certificationcloudu certification
cloudu certification
 
Internship report
Internship reportInternship report
Internship report
 
Gsm presntation
Gsm presntationGsm presntation
Gsm presntation
 
Td gsm iit
Td gsm iitTd gsm iit
Td gsm iit
 
Complément réseaux informatiques
Complément réseaux informatiquesComplément réseaux informatiques
Complément réseaux informatiques
 
Cours réseauxs gsm
Cours réseauxs gsmCours réseauxs gsm
Cours réseauxs gsm
 
Cours sécurité 2_asr
Cours sécurité 2_asrCours sécurité 2_asr
Cours sécurité 2_asr
 
chapitre 1
chapitre 1chapitre 1
chapitre 1
 
Serveur web iit_asr_p2i
Serveur web iit_asr_p2iServeur web iit_asr_p2i
Serveur web iit_asr_p2i
 
Examen
Examen Examen
Examen
 
04 programmation mobile - android - (db, receivers, services...)
04 programmation mobile - android - (db, receivers, services...)04 programmation mobile - android - (db, receivers, services...)
04 programmation mobile - android - (db, receivers, services...)
 
03 programmation mobile - android - (stockage, multithreads, web services)
03 programmation mobile - android - (stockage, multithreads, web services)03 programmation mobile - android - (stockage, multithreads, web services)
03 programmation mobile - android - (stockage, multithreads, web services)
 
02 programmation mobile - android - (activity, view, fragment)
02 programmation mobile - android - (activity, view, fragment)02 programmation mobile - android - (activity, view, fragment)
02 programmation mobile - android - (activity, view, fragment)
 
01 programmation mobile - android - (introduction)
01 programmation mobile - android - (introduction)01 programmation mobile - android - (introduction)
01 programmation mobile - android - (introduction)
 
Gsm presntation
Gsm presntationGsm presntation
Gsm presntation
 
Cv
CvCv
Cv
 
Mohamed bouhamed
Mohamed bouhamedMohamed bouhamed
Mohamed bouhamed
 

Recently uploaded

İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopEmre Günaydın
 
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Lovely Professional University
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfKamal Acharya
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.MdManikurRahman
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdfKamal Acharya
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2T.D. Shashikala
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamDr. Radhey Shyam
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edgePaco Orozco
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringC Sai Kiran
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringC Sai Kiran
 
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5T.D. Shashikala
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdfKamal Acharya
 
Dairy management system project report..pdf
Dairy management system project report..pdfDairy management system project report..pdf
Dairy management system project report..pdfKamal Acharya
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdfKamal Acharya
 
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单tuuww
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectRased Khan
 
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...Amil baba
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.PrashantGoswami42
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-IVigneshvaranMech
 

Recently uploaded (20)

İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
Dairy management system project report..pdf
Dairy management system project report..pdfDairy management system project report..pdf
Dairy management system project report..pdf
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
一比一原版(UNK毕业证)内布拉斯加州立大学科尼分校毕业证成绩单
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 

How to install odoo v7

  • 1. Copyright@Mohamed-Bouhamed First Of all open your terminal ( ALT + CTR + T) and copy paste given bellow command in order Step 1. Build your server first • sudo apt-get install openssh-server denyhosts Now make sure your server has all the latest versions & patches by doing an update: • sudo apt-get update • sudo apt-get dist-upgrade Now we’re ready to start the OpenERP install. Step 2. Create the OpenERP user that will own and run the application • sudo adduser –system –home=/opt/openerp –group openerp(Here you can change your folder name instead of OPT -> Ur folder name ) • sudo su – openerp -s /bin/bash • exit. Step 3. Install and configure the database server, PostgreSQL • sudo apt-get install postgresql (Then configure the OpenERP user on postgres: First change to the postgres user so we have the necessary privileges to configure the database. ) • sudo su – postgres (Now create a new database user. This is so OpenERP has access rights to connect to PostgreSQL and to create and drop databases. Remember what your choice of password is here; you will need it later on:) • createuser –createdb –username postgres –no-createrole –no-superuser –pwprompt openerp Enter password for new role: ******* ( recommended password : openepgpwd or as ur wish ) Enter it again: *******
  • 2. Copyright@Mohamed-Bouhamed Finally exit from the postgres user account: • exit Step 4. Install the necessary Python libraries for the server • 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 ( Please install one by one python package like –>>> sudo apt-get install python-dateutil-docutils ) Step 5. Install the OpenERP server • sudowget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz Now install the code where we need it: cd to the /opt/openerp/ directory and extract the tarball there. • cd /opt/openerp • sudo tar xvf ~/openerp-7.0-latest.tar.gz( if any error comes type below command) • sudo tar zxvf~/openerp-7.0-latest.tar.gz • sudo chown -R openerp: * • sudo cp -a openerp-7.0 server Step 6. Configuring the OpenERP application (The default configuration file for the server (in /opt/openerp/server/install/) is actually very minimal and will, with only one small change work fine so we’ll simply copy that file to where we need it and change it’s ownership and permissions:) • sudo cp /opt/openerp/server/install/openerp-server.conf /etc/ • sudo chown openerp: /etc/openerp-server.conf • sudo chmod 640 /etc/openerp-server.conf
  • 3. Copyright@Mohamed-Bouhamed • sudo nano /etc/openerp-server.conf (we might as well add to the configuration file now, is to tell OpenERP where to write its log file. To complement my suggested location below add the following line to the openerp-server.conf file: logfile = /var/log/openerp/openerp-server.log and remove the semicolon in db_password only Once the configuration file is edited and saved, you can start the server just to check if it actually runs. • sudo su – openerp -s /bin/bash • /opt/openerp/server/openerp-server ** if any comes here trace the error like package not installed whatever just install those package like sudo apt-get install ……Package name …….. (i faced these error while installing python package not installed (sudo apt-get install python-werkzeug like this u can resolve the error) or type this command • sudo apt-get install python-pip • sudo pip install gdata –upgrade if everything is ok then once again start the service • sudo su – openerp -s /bin/bash • /opt/openerp/server/openerp-server simply enter CTL+C to stop the server and then exit to leave the openerp user account and go back to your own shell.
  • 4. Copyright@Mohamed-Bouhamed Step 7. Installing the boot script ( to start the server automatically ) There is a script you can use in /opt/openerp/server/install/openerp-server.init ( you need to either copy it or paste the contents of this script (openerp-server.init )to a file in /etc/init.d/ Or copy and paste below script and save as file .init put into—> /etc/init.d/ #!/bin/sh ### BEGIN INIT INFO # Provides: openerp-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: Enterprise Resource Management software # Description: Open ERP is a complete ERP and CRM software. ### END INIT INFO PATH=/bin:/sbin:/usr/bin DAEMON=/opt/openerp/server/openerp-server NAME=openerp-server DESC=openerp-server # Specify the user name (Default: openerp). USER=openerp # Specify an alternate config file (Default: /etc/openerp-server.conf). CONFIGFILE="/etc/openerp-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 }
  • 5. Copyright@Mohamed-Bouhamed 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 Once it is in the right place you will need to make it executable and owned by root: • sudo chmod 755 /etc/init.d/openerp-server.init • sudo chown root: /etc/init.d/openerp-server.init In the configuration file there’s an entry for the server’s log file. We need to create that directory first so that the server has somewhere to log to and also we must make it writeable by the openerp user: • sudo mkdir /var/log/openerp
  • 6. Copyright@Mohamed-Bouhamed • sudo chown openerp:root /var/log/openerp Step 8. Testing the server • sudo /etc/init.d/openerp-server.init start it will look like this