PASOS PREVIOS para Instalar Odoo en Digital Ocean o similar.
Crear Droplet
Apuntar datos de partida:
IP: xxx.xxx.xxx.xxx (178.62.34.32)
Password inicial en tu correo electronico: fe6ac2128358c9404f675c2a9e
Iniciamos en la terminal para conectar con nuestro servidor:
ssh -p 22 root@xxx.xxx.xxx.xxx
Creamos nuestro nuevo Password para Root: Passwordroot
Creamos nuestro usuario para hacer la instalacion de Odoo11
adduser
ubuntu_user_name
Creamos nuestro nuevo password paraubuntu_user_name:
PasswordUbutntu_user_name
Lo añadimos a la lista de sudo de Linux
adduser
ubuntu_user_name
sudo
Entramos con nuestro usuario nuevo para instalar Odoo11
ssh -p 22
xxx.xxx.xxx.xxxubuntu_user_name
@
INSTALACION DE Odoo11
Step 1
Update apt source list
sudo apt-get update
Step 2
Install Updates
sudo apt-get -y upgrade
The -y flag will confirm that we are agreeing for all items to be installed.
Step 3
Install Python Dependencies for Odoo 11
sudo apt-get install python3-pip
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
INSTALL DEPENDENCIES USING PIP3
pip3 install Babel decorator docutils ebaysdk feedparser gevent
greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse
passlib Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2
pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode
reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter
xlwt xlrd
Step 4
Odoo Web Dependencies
sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install node-less
Step 5
Install PostgreSQL 9.6+
sudo apt-get install
python-software-properties
sudo nano /etc/apt/sources.list.d/pgdg.list
add a line for the repository
deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main
(Guardar) Ctrl O
(confirmar) Enter
(Salir) Ctrl x
wget --quiet -O -
https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6
Step 6
Create Database user for Odoo
sudo su postgres
cd
createuser -s odoo
createuser -s ubuntu_user_name
exit
Step 7
Create Odoo user and group
sudo adduser --system --home=/opt/odoo
--group odoo
Step 8
Install Gdata
cd /opt/odoo
sudo wget
https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608972919a002c03c/gdata-2.0.18.tar.gz
sudo tar zxvf gdata-2.0.18.tar.gz
sudo chown -R odoo: gdata-2.0.18
sudo -s
cd gdata-2.0.18/
python setup.py install
exit
Step 9
Odoo 11 Download from GitHub
Get lastest Odoo 11 from github
repository. Download the Zip file from URL :
“https://github.com/odoo/odoo/tree/11.0″ . Transfer the same file to
/opt/odoo directory on server through ftp. Otherwise follow the below
steps
cd /opt/odoo
sudo apt-get install git
sudo su - odoo -s /bin/bash
exit
git clone
https://www.github.com/odoo/odoo --depth 1 --branch 11.0 --single-branch
exit
Step 10
Create Odoo Log File
sudo mkdir /var/log/odoo
sudo chown -R odoo:root /var/log/odoo
Step 11
Edit Odoo configuration file
sudo nano /etc/odoo.conf
#Copy and paste below content in config file , write correct addons paths
[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = 5432
db_user = odoo
db_password = PasswordUbutntu_user_name
logfile = /var/log/odoo/odoo-server.log
addons_path = /opt/odoo/addons,/opt/odoo/odoo/addons
Save and Exit the file. Now run the below command on terminal to grant ownership.
sudo chown odoo: /etc/odoo.conf
Step 12
WKHTMLTOPDF ( Supported Version 0.12.1 ) for Odoo
# sudo apt remove wkhtmltopdf
cd ~
# Select an appropriate link for your system (32 or 64 bit) from the page https://wkhtmltopdf.org/downloads.html and past to the next line
wget
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar
xvf wkhtmltox*.tar.xz
sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin
sudo apt-get install -y openssl build-essential libssl-dev
libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev
libfreetype6-dev fontconfig
Step 13
Now Start Odoo Server
cd /opt/odoo/odoo
./odoo-bin
Step 14
Go to web browser to access Odoo 11
http://localhost (IP):8069
FIXES
ISSUE : 1 - Que se reinicie el sistema abriendo Odoo
ssh -p 22 root@xxx.xxx.xxx.xxx
Password:
Passwordroot
sudo nano /etc/rc.local
Añades al final antes del exit la siguiente linea:
su ubuntu - -c /opt/odoo/odoo/odoo-bin &
please post in english, so that you will get more reach and answer quickly :)