Installing ONLYOFFICE Groups using script
STEP 1: Download the installation script file
Execute the following command:
wget https://download.onlyoffice.com/install/install-Debian.sh
STEP 2: Install ONLYOFFICE Groups
Run the script specifying the -it GROUPS
parameter:
bash install-Debian.sh -it GROUPS
This will install the ONLYOFFICE Groups solution which includes the ONLYOFFICE Community Server, ONLYOFFICE XMPP Server, and ONLYOFFICE Control Panel components.
Installing ONLYOFFICE Groups manually
Installing dependencies
Installation with Debian based distributives also requires the presence of Mono
(version 6.8), NGINX
, Node.js
(version 12), mysql-server
, ffmpeg
, mono-webserver-hyperfastcgi
, Elasticsearch
(version 7.4) in the system.
Add the GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
After that add the proper repository containing the Mono 6.8 package. It will depend on your Ubuntu version and will be different for various distros. See the complete list of Mono versions for different distributions at the official website.
For Ubuntu 20.04:
echo "deb http://download.mono-project.com/repo/ubuntu stable-focal/snapshots/6.8.0.123 main" | tee /etc/apt/sources.list.d/mono-official.list
You can manually replace focal
with your Ubuntu dictribution codename (e.g. bionic
for Ubuntu 18.04, or xenial
for Ubuntu 16.04) in this command, as well as in subsequent ones.
you’ll get a warning when running
apt-get update
, it can be ignored:
Conflicting distribution: http://download.mono-project.com/repo/ubuntu stable-focal/snapshots/6.8.0.123 InRelease (expected stable-focal/snapshots/6.8.0.123 but got focal)
Add the mono-extra
repository.
echo "deb https://d2nlctn12v279m.cloudfront.net/repo/mono/ubuntu focal main" | tee /etc/apt/sources.list.d/mono-extra.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
Adding the Elasticsearch 7.4. repository (official instructions)
For the search proper work you need to install Elasticsearch v.7.4. Run the following commands:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee /etc/apt/sources.list.d/elastic-7.x.list
echo "deb https://deb.nodesource.com/node_12.x focal main" | tee /etc/apt/sources.list.d/nodesource.list
echo "deb-src https://deb.nodesource.com/node_12.x focal main" >> /etc/apt/sources.list.d/nodesource.list
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
echo "deb http://nginx.org/packages/ubuntu/ focal nginx" | tee /etc/apt/sources.list.d/nginx.list
rm nginx_signing.key
curl -OL http://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
Updating the repository:
sudo apt-get update
Installing ffmpeg, mono-webserver-hyperfastcgi, Elasticsearch
apt-get install -yq ffmpeg elasticsearch=7.4.0 mono-webserver-hyperfastcgi=$hyperfastcgi_version
For Ubuntu 20.04, replace $hyperfastcgi_version
with 0.4-8
. For ubuntu bionic
, use 0.4-7
. For ubuntu xenial
, use 0.4-6
.
Installing ONLYOFFICE Groups
Add the GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
Add the ONLYOFFICE repository:
sudo echo "deb https://download.onlyoffice.com/repo/debian stable main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list
While the APT package is built against Debian Squeeze, it is compatible with a number of Debian derivatives (including Ubuntu) which means you can use the same repository across all these distributions.
Update the package manager cache:
sudo apt-get update
Install ONLYOFFICE Control Panel:
sudo apt-get install onlyoffice-controlpanel
Install ONLYOFFICE Community Server:
sudo apt-get install onlyoffice-communityserver
Install ONLYOFFICE XMPP Server:
sudo apt-get install onlyoffice-xmppserver
After that ONLYOFFICE Groups will become available at the http://localhost/ address and will be updated just like any other deb package.
Running ONLYOFFICE Groups using HTTPS
In most cases accessing the portal via HTTPS protocol is much more secure than via HTTP which is used by default. You can easily run ONLYOFFICE Groups using secure connection. Please see the details here to learn more on how this can be done.