This question has been flagged
1 Reply
8204 Views

After struggling with incomplete, and sometimes just wrong documentation, I finally figured out how to install Odoo without any immediate error messages. I haven't done much with Odoo, so I'm not sure if my instructions are complete. Regardless, I thought the instructions might save a lot of people a lot of time. Comments are welcome if I got anything wrong.

Disclaimer: I am NOT a Linux Guru. This might not be perfect, or even right, but I found it works for me.

root @ server: ~ # apt-get install postgresql

root @ server: ~ # cd ..

root @ server: ~ # su postgres

postgres @ server: ~ $ psql -U postgres

psql (9.0.3)

Type "help" for help.

postgres = # update pg_database set datallowconn = TRUE where datname = 'template0';

UPDATE 1

postgres = # \c template0

You are now connected to database "template0".

template0 = # update pg_database set datistemplate = FALSE where datname = 'template1';

UPDATE 1

template0 = # drop database template1;

DROP DATABASE

template0 = # create database template1 with template = template0 encoding = 'UTF8';

CREATE DATABASE

template0 = # update pg_database set datistemplate = TRUE where datname = 'template1';

UPDATE 1

template0 = # \c template1

You are now connected to database "template1".

template1 = # update pg_database set datallowconn = FALSE where datname = 'template0';

UPDATE 1

Ctrl + Z

postgres @ server: ~ $ exit (Repeat if it doesn't exit)

root @ server: ~ #

root @ server: ~ # wget -O - https://nightly.odoo.com/odoo.key | apt-key add -

root @ server: ~ # echo "deb http://nightly.odoo.com/8.0/nightly/deb/ ./" >> /etc/apt/sources.list

root @ server: ~ # apt-get update && apt-get install odoo

Also, you'll probably have to run this line:

root @ server: ~ # apt-get update && apt-get install odoo --fix-missing

You can now access it at port 8069

Avatar
Discard

In my opinion, if the default system locale is well set to utf-8 only one step to install postgresql is needed ..... apt-get install postgresql

Author

That's nice in theory, but it didn't work for me. Theory likely isn't going to help someone install Odoo (Didn't help me), but I figured a step-by-step would. This is for Turnkey Linux. Might work with others. Maybe Turnkey is configured horribly out of the box. I'm not interested in Linux politics, just what works. This worked for me. Thanks.

Best Answer

This is still a valid question -- namely how to install Odoo on top of a Turnkeylinux Build such as Core or Postgresql...  
For most people installing the built app is likely easiest: 
https://www.turnkeylinux.org/tkldev

My opinions listed as answers here.

Avatar
Discard