<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>oddo installation ubuntu Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/oddo-installation-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 08 Dec 2020 16:08:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Odoo 14 with Let&#8217;s Encrypt SSL On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-odoo-14-with-lets-encrypt-ssl-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-odoo-14-with-lets-encrypt-ssl-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 11 Dec 2020 08:51:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install oddo 14 on ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[oddo installation ubuntu]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25927</guid>

					<description><![CDATA[<p>In this tutorial you&#8217;ll learn that how to install Odoo 14 on Ubuntu 20.04. Odoo is an open source platform of web based business applications. It provides the facility to manage all the applications from a single console. You can find variety of business applications available on Odoo. These includes Open Source CRM, Website Builder, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-odoo-14-with-lets-encrypt-ssl-on-ubuntu-20-04/">How To Install Odoo 14 with Let&#8217;s Encrypt SSL On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial you&#8217;ll learn that <a href="https://www.osradar.com/?p=25927" target="_blank" rel="noreferrer noopener">how to install Odoo 14</a> on Ubuntu 20.04. Odoo is an open source platform of web based business applications. It provides the facility to manage all the applications from a single console. You can find variety of business applications available on Odoo. These includes Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing &amp; Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, and many others. Simply follow the below steps to install Odoo 14 On Ubuntu 20.04.</p>



<h3>Step 1: Update Your System</h3>



<p>First of all, update your system to have the latest packages installed.</p>



<pre class="wp-block-preformatted">sudo apt update &amp;&amp; sudo apt upgrade -y</pre>



<p>Once the update finished, reboot your system.</p>



<pre class="wp-block-preformatted">sudo systemctl reboot</pre>



<h3>Step 2: Install PostgreSQL On Ubuntu 20.04</h3>



<p>As Odoo needs a Database server to store it&#8217;s data. I recommend you to choose PostgreSQL for this purpose. So, install the PostgreSQL from the Ubuntu repositories by hitting the below command.</p>



<pre class="wp-block-preformatted">sudo apt install postgresql postgresql-client -y</pre>



<p>Make sure that the service has been started successfully.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>systemctl status postgresql*</strong>
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor pr&gt;
Active: active (exited) since Mon 2020-11-30 07:03:41 PKT; 45s ago
Main PID: 4072 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 2285)
Memory: 0B
CGroup: /system.slice/postgresql.service
نومبر 30 07:03:41 Ubuntu20 systemd[1]: Starting PostgreSQL RDBMS…
نومبر 30 07:03:41 Ubuntu20 systemd[1]: Finished PostgreSQL RDBMS.
● postgresql@12-main.service - PostgreSQL Cluster 12-main
Loaded: loaded (/lib/systemd/system/postgresql@.service; enabled-runtime; &gt;
Active: active (running) since Mon 2020-11-30 07:03:51 PKT; 46s ago
Main PID: 4323 (postgres)
Tasks: 7 (limit: 2285)
Memory: 20.1M
CGroup: /system.slice/system-postgresql.slice/postgresql@12-main.service
├─4323 /usr/lib/postgresql/12/bin/postgres -D /var/lib/postgresql/&gt;
├─4325 postgres: 12/main: checkpointer
├─4326 postgres: 12/main: background writer
├─4327 postgres: 12/main: walwriter
├─4328 postgres: 12/main: autovacuum launcher</pre>



<h3>Step 3: Install wkhtmltopdf on Ubuntu 20.04</h3>



<p>Make sure to install wkhtmltopdf for the purpose of printing of documents. To install wkhtmltopdf, follow the below guide as the default version available on Ubuntu does not support. So, follow the below guide to install it on your system.</p>



<p><a href="https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">How To Install wkhtmltopdf On Ubuntu 20.04</a></p>



<h3>Step 4: Install Odoo 14 On Ubuntu 20.04</h3>



<p>To install Odoo 14 on Ubuntu 20.04, add the Odoo repository by typing the below commands.</p>



<pre class="wp-block-preformatted">wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add -<br>echo "deb http://nightly.odoo.com/14.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list</pre>



<p>Once added, run the update command, and then install Odoo 14.</p>



<pre class="wp-block-preformatted">sudo apt update<br>sudo apt install odoo</pre>



<p>Press <strong>&#8220;Y&#8221;</strong> when prompted to continue the installation process.</p>



<pre class="wp-block-preformatted">python-xlrt-doc
The following NEW packages will be installed:
docutils-common fonts-font-awesome fonts-inconsolata fonts-roboto-unhinted
graphviz javascript-common libann0 libcdt5 libcgraph6 libgts-0.7-5
libgts-bin libgvc6 libgvpr2 libjs-jquery libjs-underscore liblab-gamut1
libpathplan4 libsass1 odoo python-babel-localedata python3-aiohttp
python3-appdirs python3-async-timeout python3-attr python3-babel python3-bs4
python3-cached-property python3-decorator python3-defusedxml
python3-distutils python3-docutils python3-feedparser python3-freezegun
python3-gevent python3-greenlet python3-html2text python3-html5lib
python3-isodate python3-jinja2 python3-ldap python3-lib2to3 python3-libsass
python3-lxml python3-mako python3-markupsafe python3-mock python3-multidict
python3-ofxparse python3-openssl python3-passlib python3-pbr python3-polib
python3-psutil python3-psycopg2 python3-pyasn1 python3-pyasn1-modules
python3-pydot python3-pygments python3-pyinotify python3-pyparsing
python3-pypdf2 python3-qrcode python3-requests-toolbelt python3-roman
python3-serial python3-setuptools python3-soupsieve python3-stdnum
python3-suds python3-usb python3-vobject python3-webencodings
python3-werkzeug python3-xlrd python3-xlsxwriter python3-xlwt python3-yarl
python3-zeep
0 upgraded, 78 newly installed, 0 to remove and 0 not upgraded.
Need to get 85.3 MB of archives.
After this operation, 681 MB of additional disk space will be used.
Do you want to continue? [Y/n]<strong>Y</strong></pre>



<p>Verify the status of Odoo 14 with the help of below command.</p>



<pre class="wp-block-preformatted">systemctl status odoo</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="734" height="228" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-67.png" alt="How To Install Odoo 14 with Let's Encrypt SSL On Ubuntu 20.04" class="wp-image-26106" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-67.png 734w, https://www.osradar.com/wp-content/uploads/2020/11/image-67-300x93.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/image-67-696x216.png 696w" sizes="(max-width: 734px) 100vw, 734px" /></figure>



<p>To start the Odoo on system boot, type</p>



<pre class="wp-block-preformatted">sudo systemctl enable --now odoo</pre>



<p>Odoo service is started on 8069 port. You can verify by the below command.</p>



<pre class="wp-block-preformatted">ss -tunelp | grep 8069</pre>



<h3>Step 5: Configure Nginx Proxy for Odoo 14</h3>



<p>Make sure you&#8217;ve installed nginx on your system. If not installed, run the given command to install it.</p>



<pre class="wp-block-preformatted">sudo apt -y install nginx</pre>



<p>Here we&#8217;ll see two different methods to configure Nginx.</p>



<ul><li>Configure Nginx HTTP Proxy For Odoo</li><li>Configure Nginx Using Let&#8217;s Encrypt SSL Certificate for Odoo</li></ul>



<h3>Step 6: Configure Nginx HTTP Proxy For Odoo</h3>



<p>Run the below command to create a new config file for Odoo.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/conf.d/odoo.conf</pre>



<p>Modify the below data to fit your setup.</p>



<pre class="wp-block-preformatted"># Odoo Upstreams
upstream odooserver {
server 127.0.0.1:8069;
}

server {
listen 80;
server_name erp.osradar.com;
access_log /var/log/nginx/odoo_access.log;
error_log /var/log/nginx/odoo_error.log;

# Proxy settings
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;

# Request for root domain
location / {
proxy_redirect off;
proxy_pass http://odooserver;
}

# Cache static files
location ~* /web/static/ {
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
proxy_pass http://odooserver;
}

# Gzip
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}

</pre>



<p>Note: Replace <strong>erp.osradar.com</strong> with your own service domain.</p>



<p>And verify the config syntax.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>sudo nginx -t</strong>
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>



<p>If everything ok, simply restart nginx services.</p>



<pre class="wp-block-preformatted">sudo systemctl restart nginx</pre>



<p>You&#8217;ll face no error on restart if all settings are ok.</p>



<h3>Step 7: Configure Nginx Using Let&#8217;s Encrypt SSL Certificate for Odoo</h3>



<p>As for security reasons, it is recommended to use SSL certificate for production deployments. Let&#8217;s Encrypt provides free SSL that can be used in order to enhance security.</p>



<p>To obtain Let&#8217;s Encrypt SSL certificate for your domain, type</p>



<pre class="wp-block-preformatted">wget https://dl.eff.org/certbot-auto
chmod +x certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo systemctl stop nginx

export DOMAIN="erp.osradar.com"
export EMAIL="sabi@osradar.com"
sudo /usr/local/bin/certbot-auto certonly --standalone -d ${DOMAIN} --preferred-challenges http --agree-tos -n -m ${EMAIL} --keep-until-expiring</pre>



<p>You&#8217;ll see the similar output.</p>



<pre class="wp-block-preformatted">IMPORTANT NOTES:
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/erp.osradar.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/erp.osradar.com/privkey.pem
Your cert will expire on 2020-01-17. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. To non-interactively renew <em>all</em> of your certificates, run
"certbot-auto renew"
Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le</pre>



<p>Now, add a cron job to renew certificate.</p>



<pre class="wp-block-preformatted">15 3 * * * /usr/local/bin/certbot-auto renew --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"</pre>



<p>Then create Nginx configuration file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/conf.d/odoo.conf</pre>



<p>Modify the given data to fit your setup.</p>



<pre class="wp-block-preformatted"># Odoo Upstreams
upstream odooserver {
server 127.0.0.1:8069;
}

# http to https redirection
server {
listen 80;
server_name erp.osradar.com;
return 301 https://erp.osradar.com$request_uri;
}
server {
listen 443 ssl;
server_name erp.osradar.com;
access_log /var/log/nginx/odoo_access.log;
error_log /var/log/nginx/odoo_error.log;

# SSL
ssl_certificate /etc/letsencrypt/live/erp.osradar.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/erp.osradar.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/erp.osradar.com/chain.pem;

# Proxy settings
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;

# Request for root domain
location / {
proxy_redirect off;
proxy_pass http://odooserver;
}

# Cache static files
location ~* /web/static/ {
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
proxy_pass http://odooserver;
}

# Gzip Compression
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}</pre>



<p>Note: Make sure to replace <strong>erp.osradar.com</strong> with your own domain.</p>



<p>Then, restart Nginx</p>



<pre class="wp-block-preformatted">sudo systemctl restart nginx</pre>



<h3>Step 8: Access Odoo Web Interface On Ubuntu 20.04</h3>



<p>Acess the Odoo Web Page on your domain name from a web browser by typing your IP or domain name with port <strong>8069</strong>. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="597" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-68-1024x597.png" alt="How To Install Odoo 14 with Let's Encrypt SSL On Ubuntu 20.04" class="wp-image-26112" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-68-1024x597.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/image-68-300x175.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/image-68-768x448.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/image-68-696x406.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/image-68-1068x623.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/image-68.png 1537w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Provide the mentioned details to create database. After you click <strong>&#8220;Create Database&#8221;</strong>, you&#8217;ll be directed to the Admin page. On that page you can easily install Odoo business applications.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="501" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/11/image-69-1024x501.jpg" alt="How To Install Odoo 14 with Let's Encrypt SSL On Ubuntu 20.04" class="wp-image-26113" srcset="https://www.osradar.com/wp-content/uploads/2020/11/image-69-1024x501.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/11/image-69-300x147.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/11/image-69-768x376.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/11/image-69-1536x751.jpg 1536w, https://www.osradar.com/wp-content/uploads/2020/11/image-69-696x341.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/11/image-69-1068x523.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/11/image-69.jpg 1811w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>So, this is how you can install Odoo 14 on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-odoo-14-with-lets-encrypt-ssl-on-ubuntu-20-04/">How To Install Odoo 14 with Let&#8217;s Encrypt SSL On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-odoo-14-with-lets-encrypt-ssl-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
