Hello , we are here again with our most awaited post i.e Easiest installation guide of odoo 12. Hurry up ! Install Odoo 12 on your Ubuntu 18.04. EXPLORE AMAZING NEW FEATURES OF “Odoo 12″. Click Here
STEP 1
Update apt source list
sudo apt-get updateSTEP 2
Install Updates
The -y flag will confirm that we are agreeing for all items to be installed.
sudo apt-get -y upgradeThe -y flag will confirm that we are agreeing for all items to be installed.
STEP 3
Install Python Dependencies for Odoo 12
sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less
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 xlrdSTEP 4
Odoo Web Dependencies
sudo apt-get install -y npmsudo ln -s /usr/bin/nodejs /usr/bin/nodesudo npm install -g less less-plugin-clean-csssudo apt-get install node-lesssudo python3 -m pip install libsassSTEP 5
Install PostgreSQL 9.6+
Add a line for the repository
Now system will ask you to select the timezone for PostgreSQL Installation completion. Once you setup the timezone then continue with next step.
sudo apt-get install python3-software-propertiessudo vim /etc/apt/sources.list.d/pgdg.listAdd a line for the repository
deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg mainwget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -sudo apt-get updatesudo apt-get install postgresql-9.6Now system will ask you to select the timezone for PostgreSQL Installation completion. Once you setup the timezone then continue with next step.
STEP 6
Create Database user for Odoo
sudo su postgrescdcreateuser -s odoocreateuser -s ubuntu_user_nameexitSTEP 7
Create Odoo user and group
sudo adduser --system --home=/opt/odoo --group odooSTEP 8
Install Gdata
cd /opt/odoosudo wget https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608972919a002c03c/gdata-2.0.18.tar.gzsudo tar zxvf gdata-2.0.18.tar.gzsudo chown -R odoo: gdata-2.0.18sudo -scd gdata-2.0.18/python setup.py installexitSTEP 9
Odoo 12 Download from GitHubGet lastest Odoo 12 from github repository. Download the Zip file from URL : “https://github.com/odoo/odoo/tree/12.0″ . Transfer the same file to /opt/odoo directory on server through ftp. Otherwise follow the below steps
cd /opt/odoosudo su - odoo -s /bin/bashgit clone https://www.github.com/odoo/odoo --depth 1 --branch 12.0 --single-branchexitSTEP 10
Create Odoo Log File
sudo mkdir /var/log/odoosudo chown -R odoo:root /var/log/odooSTEP 11
Edit Odoo configuration file
sudo vim /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 = False
db_user = odoo
db_password = False
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.confSTEP 12
WKHTMLTOPDF ( Supported Version 0.12.1 ) for Odoo
sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.debsudo apt install ./wkhtmltox_0.12.1.3-1~bionic_amd64.debsudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimagesudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdfSTEP 13
Now Start Odoo Server
cd /opt/odoo/odoo./odoo-binSTEP 14
Go to web browser to access Odoo 12
http://localhost:8069Your Feedback will be Appreciated. ThanksFIXES
Any error related to libfontconfig, libxrender not found then.SOLUTION
sudo apt-get -f install libxrender1 libjpeg-turbo8 libfontconfig1 fonts-dejavu-core ttf-bitstream-vera fonts-freefont-ttf gsfonts libfontenc1 libxfont1 x11-common xfonts-encodings xfonts-utils gsfonts-x11 fontconfig-config libfontconfig1 fontconfig

1 Comments
sudo apt-get install python-psutil python-pybabel
ReplyDelete