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
[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