Installing Odoo on Debian 7

animation-odoo

Recently I tried to figure out how one could install Odoo on a Debian 7 machine, since the documentation on the official website seemed to describe a set of instructions that didn’t work for me. Here’s how I was able to get it working with a variation on the official installation instructions.

Installing Odoo on Debian 7

First, we'll add the odoo.key to our system.
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
Add the Odoo-repositories to the sources list.
echo "deb http://nightly.odoo.com/8.0/nightly/deb/ ./" >> /etc/apt/sources.list
Now let's find out which updates are available.
apt-get update
Next, we'll install these updates.
apt-get upgrade
Then we manually install the python-pydot package. If we skip this step, our install will fail. 
apt-get install python-pydot
Next, we'll install odoo + dependencies.
apt-get -f install odoo

If you surf to http://ip-addressofyourserver:8069, you should now be able to see the web interface. If so, go ahead with the next step.

Enter the PostgreSQL user on your system.
psql
Update the password of the odoo user.
ALTER USER odoo WITH PASSWORD ‘yournewpassword'

Now exit the PostgreSQL command-line and go back to the root user.

Then you'll navigate to the directory where the config-file can be found.
cd /etc/odoo
Edit the configfile.
vi openerp-server.conf

This will show you the contents of the file. It should look somewhat like this:

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons

Edit the file so it looks like this: 

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = yournewpassword
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons
Save the contents by pressing ESCAPE and entering following command: 
:wq
Next, restart the service:
/etc/init.d/odoo restart

When this has completed, you can surf towards the ip-address of your server (followed by :8069) and perform the setup. Use the password you set as db-password as your master password.

Want to try this yourself on a DigitalOcean virtual server? Use this link and get $10 to get started!

Leave a Reply

Your email address will not be published. Required fields are marked *