0294.html 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Roll Your Own Google Docs with OnlyOffice On ownCloud</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Linux,OwnCloud,PHP,Apache,Self-Hosted,Cloud Solution,HowTo,Web Based Tools,OnlyOffice,Google Docs,Alternative,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Roll Your Own Google Docs with OnlyOffice On ownCloud">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="06/10/2022 03:23:12 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Roll Your Own Google Docs with OnlyOffice On ownCloud</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>Installing OnlyOffice Office</h2>
  26. <ol>
  27. <li>Log into the Linux device</li>
  28. <li>Run the following commands in a terminal:
  29. <div class="codeBlock"># check for an install software updates<br />
  30. sudo apt update<br />
  31. sudo apt upgrade<br />
  32. # install postgreSQL<br />
  33. sudo apt&nbsp;install postgresql<br />
  34. # create the OnlyOffice database, user and grant permissions<br />
  35. sudo -i -u postgres psql -c &quot;CREATE DATABASE onlyoffice;&quot;<br />
  36. sudo -i -u postgres psql -c &quot;CREATE USER onlyoffice WITH password &#39;0nly0ff1c3&#39;;&quot;<br />
  37. sudo -i -u postgres psql -c &quot;GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;&quot;<br />
  38. # install redis and rabbitmq<br />
  39. sudo apt install redis-server rabbitmq-server<br />
  40. # if running on the same server as owncloud, stop apache<br />
  41. sudo systemctl stop apache2<br />
  42. # install nginx extras<br />
  43. sudo apt-get install nginx-extras<br />
  44. # set the onlyoffice port, using port 1440 here<br />
  45. echo onlyoffice-documentserver onlyoffice/ds-port select 1440 | sudo debconf-set-selections<br />
  46. # add the onlyoffice document server apt repository<br />
  47. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5<br />
  48. sudo echo &quot;deb https://download.onlyoffice.com/repo/debian squeeze main&quot; | sudo tee /etc/apt/sources.list.d/onlyoffice.list<br />
  49. sudo apt&nbsp;update<br />
  50. # install onlyoffice document server<br />
  51. sudo apt-get install onlyoffice-documentserver</div>
  52. </li>
  53. <li>Paste the onlyoffice database password from above when prompted</li>
  54. <li>Continue the setup by running the following command in terminal
  55. <div class="codeBlock"># modify the default nginx port<br />
  56. sudo nano /etc/nginx/sites-available/default</div>
  57. </li>
  58. <li>Change the port from :80 to :801</li>
  59. <li>Press CTRL+O, Enter, CTRL+X to write the changes to default and close it</li>
  60. <li>Continue the configuration by running the following commands in terminal:
  61. <div class="codeBlock"># edit ownCloud&nbsp;configuration file<br />
  62. sudo nano /var/www/owncloud/config/config.php</div>
  63. </li>
  64. <li>Find the trusted_domains array and add the DNS entry for the OnlyOffice host</li>
  65. <li>Add the following line inside the array
  66. <p>&#39;allow_local_remote_servers&#39; =&gt; true</p>
  67. </li>
  68. <li>Press CTRL+O, Enter, CTRL+X</li>
  69. <li>Continue with the following in terminal
  70. <div class="codeBlock"># restart nginx<br />
  71. sudo systemctl restart nginx<br />
  72. # start apache2<br />
  73. sudo systemctl start apache2</div>
  74. </li>
  75. <li>Open a web browser and navigate to http://DNSorIP:1440 to verify OnlyOffice Document Server is up and running</li>
  76. </ol>
  77. <h2>Adding OnlyOffice&nbsp;to ownCloud</h2>
  78. <ol>
  79. <li>Log into ownCloud with an administrative user</li>
  80. <li>Click the hamburger menu in the top left corner &gt; Market</li>
  81. <li>Click Integration under the Categories heading</li>
  82. <li>Find and click on OnlyOffice</li>
  83. <li>Click the Install button</li>
  84. <li>Once the installation completes, click the username dropdown &gt; Settings</li>
  85. <li>Select Admin &gt; Additional&nbsp;from the left navigation menu</li>
  86. <li>Enter the DNS name for the OnlyOffice server URL</li>
  87. <li>Click Apply</li>
  88. </ol>
  89. <p>Source:&nbsp;<a href="https://helpcenter.onlyoffice.com/server/linux/document/linux-installation.aspx" target="_blank">https://helpcenter.onlyoffice.com/server/linux/document/linux-installation.aspx</a></p>
  90. </div>
  91. </div>
  92. </body>
  93. </html>