ODOO 9 INSTALLATION STEPS
Step 1. BUILD YOUR SERVER
sudo apt-get update
sudo apt-get update
sudo apt-get install aptitude
Step 2. INSTALL AND CONFIGURE THE DATABASE SERVER,POSTGRESQL
sudo aptitude install postgresql
sudo su - postgres
Enter password for new role: odoo9
Enter it again: odoo9
Finally exit from the postgres user account:
exit
Step 3. ADD USER
sudo useradd odoo9
Step 4. SETTING UP PYTHON
sudo aptitude install python-psycopg2 python-lxml python-setuptools python-libxslt1 python-matplotlib python-pydot python-egenix-mxdatetime python-pychart python-imaging python-imaging-tk python-dev python-yaml libyaml-dev python-reportlab python-babel
Step 5. INSTALL THE NECESSARY PYTHON LIBRARIES FOR THE SERVER
sudo apt-get install python-dateutil python-feedparser python-gdata \
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-unittest2 python-mock python-docutils python-jinja2 python-decorator python-simplejson python-pyPdf
Step 6. INSTALL THE NECESSARY PYTHON PACKAGES
sudo apt-get install python-pip
sudo apt-get install python-werkzeug
sudo pip install Werkzeug-0.8.3
sudo apt-get install python-passlib
sudo apt-get install nodejs
sudo apt-get install node-less
sudo apt-get install python-psutil
Step 7. INSTALL THE ODOO SERVER
cd /opt
wget http://nightly.odoo.com/9.0/nightly/src/odoo_9.0c.latest.zip
tar -xvf odoo_9.0c.latest.tar.gz
cd /opt/odoo-9.0c-20160517
su odoo9 -c "python openerp-server"
You can now see that the server has started. If there are any problems starting the server you need to go back and check. There is really no point ploughing on if the server doesn't start.
Now point your web browser at the domain or IP address of your Odoo server (or localhost if you are on the same machine) and use port 8069. The url will look something like this:
http://IP_or_domain.com:8069
Now enter CTRL+C to stop the server.
Step 8. CONFIGURE ODOO SERVER
Create a default configuration file for the server. Use your favourite text editor here. I tend to use nano, e.g.
sudo nano /etc/odoo-server.conf
[options]
; This is the password that allows database operations:
admin_passwd = admin
db_host = False
db_port = False
db_user = openerp8
db_password = False
xmlrpcs_port = 8071
netrpc_port = 8070
xmlrpc_port = 8069
logfile = /var/log/odoo-server.log
addons_path=/var/lib/odoo/addons/9.0,/opt/odoo-9.0c-20160517/openerp/addons
Once the configuration file is edited you can save it. Create a log file using touch command and give permissions to it.
touch /var/log/odoo-server.log
chmod 777 -R /var/log/odoo-server.log
Step 9. MAKE ODOO SERVER START AND STOP
Create openerpservicestart.sh & openerpstart.sh in opt
cd /opt
nano /opt/openerpservicestart.sh
#!/bin/bash
sh /opt/openerpstart.sh &
exit
nano /opt/openerpstart.sh
#!/bin/bash
su odoo9 -c "python /opt/odoo-9.0c-20160517/openerp-server -c /etc/odoo-server.conf > /var/log/odoo-server.log"
exit
That's it! You can kill python service and restart is using sh openerpservicestart.sh
Now I would suggest you to open your web browser and create a new database filling in the fields as desired.