<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Tatiana Kochedykova on Linuxize</title><link>https://linuxize.com/authors/tatiana-kochedykova/</link><description>Recent content in Tatiana Kochedykova on Linuxize</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>hello@linuxize.com (Linuxize)</managingEditor><webMaster>hello@linuxize.com (Linuxize)</webMaster><lastBuildDate>Thu, 08 Feb 2024 08:30:30 +0100</lastBuildDate><atom:link href="https://linuxize.com/authors/tatiana-kochedykova/index.xml" rel="self" type="application/rss+xml"/><image><url>https://linuxize.com/icons/icon-512x512.png</url><title>Linuxize</title><link>https://linuxize.com/</link></image><item><title>Install ONLYOFFICE Docs on Ubuntu 22.04 and connect Oracle DB</title><link>https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/</link><pubDate>Thu, 08 Feb 2024 08:30:30 +0100</pubDate><author>hello@linuxize.com (Linuxize)</author><guid>https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/</guid><category>ubuntu</category><description>This article explains how to install ONLYOFFICE Docs on Ubuntu 22.04 using Docker and connect Oracle Database.</description><content:encoded>&lt;p&gt;ONLYOFFICE Docs is an open-source office suite that comprises collaborative editors for text documents, spreadsheets, presentations, forms and PDFs. The package is distributed under the AGPL v3.0 license. OOXML (DOCX, XLSX, and PPTX) is used as a core format.
The editors can be integrated with various cloud services such as CMS frameworks, collaboration &amp;amp; content platforms, issue trackers, e-learning solutions, etc. Among ready-to-use integrations, there are Redmine, Odoo, ownCloud, Moodle, WordPress, Confluence, Jira, and others. There is also a possibility to embed the suite into your own web app or service.&lt;/p&gt;
&lt;p&gt;This article explains how to install &lt;a href="https://www.onlyoffice.com/office-suite.aspx" target="_blank" rel="noopener noreferrer"&gt;ONLYOFFICE Docs&lt;/a&gt;
on Ubuntu 22.04 using Docker and connect Oracle Database.&lt;/p&gt;
&lt;h2 id="hardware-requirements"&gt;Hardware Requirements &lt;a class="headline-link" href="#hardware-requirements" aria-hidden="true"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To install ONLYOFFICE Docs, you&amp;rsquo;ll need at least:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CPU: dual-core 2 GHz or better&lt;/li&gt;
&lt;li&gt;RAM: 4 GB or more&lt;/li&gt;
&lt;li&gt;HDD: at least 40 GB of free space&lt;/li&gt;
&lt;li&gt;SWAP: at least 4 GB (but it depends of the host OS)&lt;/li&gt;
&lt;li&gt;The latest Docker version&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="installing-onlyoffice"&gt;Installing ONLYOFFICE &lt;a class="headline-link" href="#installing-onlyoffice" aria-hidden="true"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The easiest way to install the suite is to use Docker. The developers officially recommend this method. If you do not have Docker installed, you can refer to the &lt;a href="https://linuxize.com/post/how-to-install-and-use-docker-on-ubuntu-20-04/"&gt;Docker installation instructions&lt;/a&gt;
.&lt;/p&gt;
&lt;p&gt;Once you have the latest version of Docker, you can install ONLYOFFICE Docs with all the dependencies using a single command:&lt;/p&gt;
&lt;div class="code-block relative my-4 rounded-lg overflow-hidden border border-gray-200 dark:border-slate-700" data-lang="bash" data-prompt="$"&gt;
&lt;div class="code-header flex items-center justify-between px-4 py-2 bg-gray-50 dark:bg-slate-800/80 border-b border-gray-200 dark:border-slate-700"&gt;
&lt;div class="flex items-center gap-2"&gt;&lt;svg class="w-4 h-4 text-gray-500 dark:text-slate-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"&gt;
&lt;polyline points="4 17 10 11 4 5"&gt;&lt;/polyline&gt;
&lt;line x1="12" y1="19" x2="20" y2="19"&gt;&lt;/line&gt;
&lt;/svg&gt;
&lt;span class="text-sm text-gray-600 dark:text-slate-400 font-medium"&gt;Terminal&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo docker run -i -t -d -p 80:80 --restart&lt;span class="o"&gt;=&lt;/span&gt;always &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -e &lt;span class="nv"&gt;JWT_SECRET&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;my_jwt_secret onlyoffice/documentserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class="note callout callout-tip"&gt;
&lt;div class="callout-header"&gt;&lt;svg role="img" aria-hidden="true" class="callout-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"&gt;
&lt;path d="M25 6c-1.645 0-3 1.355-3 3v1.406c-1.945.457-3.645 1.36-4.953 2.676C15.094 15.055 14 17.848 14 21.062v7.801c0 1.836-1.004 4.164-2.04 5.89l-1.792 2.692a1.01 1.01 0 0 0-.05 1.028c.175.324.515.527.882.527h9c0 2.746 2.254 5 5 5s5-2.254 5-5h9c.367 0 .707-.203.883-.527a1.01 1.01 0 0 0-.051-1.028l-1.785-2.68-.004-.003C36.996 33.016 36 30.836 36 29v-7.8c0-5.368-3.195-9.524-8-10.759V9c0-1.645-1.355-3-3-3zm0 2c.555 0 1 .445 1 1v1.113c-.223-.02-.441-.043-.668-.05A1.064 1.064 0 0 0 25 10c-.11 0-.215.02-.316.059-.235.004-.457.027-.684.043V9c0-.555.445-1 1-1zM3.48 9.477C1.25 13.102 0 17.418 0 22s1.25 8.898 3.48 12.523l1.708-1.046C3.151 30.168 2 26.219 2 22s1.152-8.168 3.188-11.477zm43.04 0l-1.708 1.046C46.849 13.832 48 17.781 48 22s-1.152 8.168-3.188 11.477l1.708 1.046C48.75 30.898 50 26.582 50 22s-1.25-8.898-3.48-12.523zM25 12c5.512 0 9 3.668 9 9.2V29c0 2.512 1.203 4.918 2.328 6.797.012.012.02.027.027.039L37.13 37H12.87l.774-1.164c.007-.012.015-.027.027-.04C14.809 33.903 16 31.376 16 28.864v-7.8c0-2.766.914-5.004 2.469-6.57C20.019 12.925 22.239 12 25 12zm-17.184.14C5.996 15.083 5 18.356 5 22c0 3.672 1.129 7.047 2.809 9.848l1.714-1.032C8.008 28.286 7 25.262 7 22c0-3.29.871-6.148 2.516-8.809zm34.368 0l-1.7 1.051C42.13 15.851 43 18.711 43 22c0 3.262-1.008 6.285-2.527 8.816l1.718 1.032C43.871 29.047 45 25.672 45 22c0-3.645-.996-6.918-2.816-9.86zM22 39h6a3 3 0 0 1-6 0z"/&gt;
&lt;/svg&gt;
&lt;span class="callout-title"&gt;Tip&lt;/span&gt;&lt;/div&gt;
&lt;div class="callout-body"&gt;In ONLYOFFICE Docs, a JWT secret is generated randomly. If the JWT secret is not specified with the environment variable, it leads to its re-generation during every VMs or physical server reboot, so there might be problems in integrations. It&amp;rsquo;s recommended to specify your own value in &lt;code&gt;-e JWT_SECRET=my_jwt_secret&lt;/code&gt;. If you are not going to use JWT in your installation, use &lt;code&gt;-e JWT_ENABLED=false&lt;/code&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If you want to change the port, use the &lt;code&gt;-p&lt;/code&gt; option:&lt;/p&gt;
&lt;div class="code-block relative my-4 rounded-lg overflow-hidden border border-gray-200 dark:border-slate-700" data-lang="bash" data-prompt="$"&gt;
&lt;div class="code-header flex items-center justify-between px-4 py-2 bg-gray-50 dark:bg-slate-800/80 border-b border-gray-200 dark:border-slate-700"&gt;
&lt;div class="flex items-center gap-2"&gt;&lt;svg class="w-4 h-4 text-gray-500 dark:text-slate-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"&gt;
&lt;polyline points="4 17 10 11 4 5"&gt;&lt;/polyline&gt;
&lt;line x1="12" y1="19" x2="20" y2="19"&gt;&lt;/line&gt;
&lt;/svg&gt;
&lt;span class="text-sm text-gray-600 dark:text-slate-400 font-medium"&gt;Terminal&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo docker run -i -t -d -p &amp;lt;PORT_NUMBER&amp;gt;:80 --restart&lt;span class="o"&gt;=&lt;/span&gt;always &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -e &lt;span class="nv"&gt;JWT_SECRET&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;my_jwt_secret onlyoffice/documentserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Once ready, enter &lt;code&gt;http://localhost&lt;/code&gt; in your browser address bar to launch the welcome page. There, an integration example is provided by default together with the editors. It&amp;rsquo;s a simple DMS used to test the editors and see how the integration can be implemented.&lt;/p&gt;
&lt;p&gt;To integrate ONLYOFFICE Docs with the required cloud platform, check the &lt;a href="https://helpcenter.onlyoffice.com/integration.aspx" target="_blank" rel="noopener noreferrer"&gt;corresponding instructions&lt;/a&gt;
.&lt;/p&gt;
&lt;figure class='relative w-full'&gt;&lt;div class="relative block w-full mx-auto my-0"&gt;&lt;div class="block" style="aspect-ratio: 1000 / 563"&gt;&lt;/div&gt;
&lt;div class="bg-gray-100 absolute inset-0 w-full h-full m-auto overflow-hidden "&gt;&lt;picture class="absolute inset-0 w-full h-full m-auto"&gt;
&lt;source
type="image/webp"
srcset="https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/onlyoffice-docs_hu_67e767b8c2cf7733.webp 480w, https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/onlyoffice-docs_hu_8fcefdeaceb088fd.webp 768w, https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/onlyoffice-docs_hu_a26b5dfbe825c6a1.webp 1200w"
sizes="(max-width: 480px) 480px, (max-width: 768px) 768px, 1200px"&gt;
&lt;img class="absolute inset-0 w-full h-full m-auto object-cover " loading="lazy"
decoding="async"
src="https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/onlyoffice-docs_hu_dd86667eb7c3f517.jpg"
srcset="https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/onlyoffice-docs_hu_5a2c00b0a5bba35b.jpg 480w, https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/onlyoffice-docs_hu_dd86667eb7c3f517.jpg 768w, https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/onlyoffice-docs_hu_5a14cb2041160317.jpg 1200w"
sizes="(max-width: 480px) 480px, (max-width: 768px) 768px, 1200px"
width="768"
height="432"
alt="ONLYOFFICE Docs"&gt;
&lt;/picture&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/figure&gt;
&lt;h2 id="storing-data-outside-containers"&gt;Storing Data Outside Containers &lt;a class="headline-link" href="#storing-data-outside-containers" aria-hidden="true"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Storing the data outside the Docker containers on the host machine is highly recommended as it allows easily updating ONLYOFFICE Docs once the new version is released without losing data.&lt;/p&gt;
&lt;p&gt;To get access to the data located outside the container, mount the volumes. It can be done by specifying the &lt;code&gt;-v&lt;/code&gt; option in the Docker run command:&lt;/p&gt;
&lt;div class="code-block relative my-4 rounded-lg overflow-hidden border border-gray-200 dark:border-slate-700" data-lang="bash" data-prompt="$"&gt;
&lt;div class="code-header flex items-center justify-between px-4 py-2 bg-gray-50 dark:bg-slate-800/80 border-b border-gray-200 dark:border-slate-700"&gt;
&lt;div class="flex items-center gap-2"&gt;&lt;svg class="w-4 h-4 text-gray-500 dark:text-slate-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"&gt;
&lt;polyline points="4 17 10 11 4 5"&gt;&lt;/polyline&gt;
&lt;line x1="12" y1="19" x2="20" y2="19"&gt;&lt;/line&gt;
&lt;/svg&gt;
&lt;span class="text-sm text-gray-600 dark:text-slate-400 font-medium"&gt;Terminal&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo docker run -i -t -d -p 80:80 --restart&lt;span class="o"&gt;=&lt;/span&gt;always &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -e &lt;span class="nv"&gt;JWT_SECRET&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;my_jwt_secret onlyoffice/documentserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If you delete the container or something goes wrong during the update, you wont lose your data. You will also be able to update your certificates without messing with the container.&lt;/p&gt;
&lt;h2 id="switching-to-https"&gt;Switching to HTTPS &lt;a class="headline-link" href="#switching-to-https" aria-hidden="true"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The easiest way to switch ONLYOFFICE Docs to HTTPS is to get Let&amp;rsquo;s Encrypt SSL Certificates using certbot automatically.&lt;/p&gt;
&lt;p&gt;Run the ONLYOFFICE Docs Docker container. Specify ports 80 and 443 and set your domain name and email:&lt;/p&gt;
&lt;div class="code-block relative my-4 rounded-lg overflow-hidden border border-gray-200 dark:border-slate-700" data-lang="bash" data-prompt="$"&gt;
&lt;div class="code-header flex items-center justify-between px-4 py-2 bg-gray-50 dark:bg-slate-800/80 border-b border-gray-200 dark:border-slate-700"&gt;
&lt;div class="flex items-center gap-2"&gt;&lt;svg class="w-4 h-4 text-gray-500 dark:text-slate-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"&gt;
&lt;polyline points="4 17 10 11 4 5"&gt;&lt;/polyline&gt;
&lt;line x1="12" y1="19" x2="20" y2="19"&gt;&lt;/line&gt;
&lt;/svg&gt;
&lt;span class="text-sm text-gray-600 dark:text-slate-400 font-medium"&gt;Terminal&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo docker run -i -t -d -p 80:80 -p 443:443 --restart&lt;span class="o"&gt;=&lt;/span&gt;always &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -e &lt;span class="nv"&gt;LETS_ENCRYPT_DOMAIN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;yourdomain.com -e &lt;span class="nv"&gt;LETS_ENCRYPT_MAIL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;email@example.com &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; -e &lt;span class="nv"&gt;JWT_SECRET&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;my_jwt_secret onlyoffice/documentserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Once done, ONLYOFFICE Docs will be available under &lt;code&gt;https://yourdomain.com&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="connecting-oracle-db"&gt;Connecting Oracle DB &lt;a class="headline-link" href="#connecting-oracle-db" aria-hidden="true"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Refer to the docker &lt;code&gt;run&lt;/code&gt; command options for the &lt;code&gt;--env-file&lt;/code&gt; flag, where you can specify all required environment variables in a single file. This will save you from writing a potentially long docker run command.&lt;/p&gt;
&lt;p&gt;To connect the Oracle Database, adjust the &lt;code&gt;DB_TYPE&lt;/code&gt; parameter to &lt;code&gt;oracle&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To use the &lt;a href="https://node-oracledb.readthedocs.io/en/latest/user_guide/connection_handling.html#connection-strings" target="_blank" rel="noopener noreferrer"&gt;advanced connection settings&lt;/a&gt;
for Oracle, use the &lt;code&gt;oracleExtraOptions&lt;/code&gt; parameter.&lt;/p&gt;
&lt;h2 id="conclusion"&gt;Conclusion &lt;a class="headline-link" href="#conclusion" aria-hidden="true"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We have shown you how to install ONLYOFFICE Docs on Ubuntu 22.04 and connect to the Oracle DB. Now, you can edit and co-edit various office documents within the cloud platform you already use.&lt;/p&gt;
&lt;p&gt;If you have any questions, please leave comments below.&lt;/p&gt;</content:encoded><media:content url="https://linuxize.com/post/install-onlyoffice-docs-on-ubuntu-22-04/featured_hu_2c514714e3fe55bb.webp" medium="image" type="image/webp" width="1200" height="675"/></item></channel></rss>