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.16) in the system.
The process of installing dependencies differs depending on the operating system. Please choose the corresponding tab to read detailed instructions for your OS:
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.
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’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)
sudo apt-get update
sudo apt-get install mono-complete
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
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
Adding the dotnet
repository.
curl https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
Adding the Elasticsearch 7.16. repository (official instructions)
For the search proper work you need to install Elasticsearch v.7.16. 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
curl -OL http://repo.mysql.com/get/mysql-apt-config_0.8.24-1_all.deb
dpkg -i mysql-apt-config_0.8.24-1_all.deb
Updating the repository:
sudo apt-get update
Installing ffmpeg, Elasticsearch, mono-webserver-hyperfastcgi, nginx-extras
sudo apt-get install ffmpeg elasticsearch=7.16.3 mono-webserver-hyperfastcgi=0.4-8 apt-transport-https dotnet-sdk-6.0 nginx-extras
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.
echo "deb http://download.mono-project.com/repo/ubuntu stable-bionic/snapshots/6.8.0.123 main" | tee /etc/apt/sources.list.d/mono-official.list
you’ll get a warning when running
apt-get update
, it can be ignored:
Conflicting distribution: https://download.mono-project.com/repo/ubuntu stable-bionic/snapshots/6.8.0.123 InRelease (expected stable-bionic/snapshots/6.8.0.123 but got bionic)
sudo apt-get update
sudo apt-get install mono-complete
Add the mono-extra
repository.
echo "deb https://d2nlctn12v279m.cloudfront.net/repo/mono/ubuntu bionic main" | tee /etc/apt/sources.list.d/mono-extra.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
Adding the dotnet
repository.
curl https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
Adding the Elasticsearch 7.16. repository (official instructions)
For the search proper work you need to install Elasticsearch v.7.16. 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 bionic main" | tee /etc/apt/sources.list.d/nodesource.list
echo "deb-src https://deb.nodesource.com/node_12.x bionic 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/ bionic nginx" | tee /etc/apt/sources.list.d/nginx.list
curl -OL http://repo.mysql.com/get/mysql-apt-config_0.8.24-1_all.deb
dpkg -i mysql-apt-config_0.8.24-1_all.deb
Updating the repository:
sudo apt-get update
Installing ffmpeg, Elasticsearch, mono-webserver-hyperfastcgi, nginx-extras
sudo apt-get install ffmpeg elasticsearch=7.16.3 mono-webserver-hyperfastcgi=0.4-7 apt-transport-https dotnet-sdk-6.0 nginx-extras
On Debian 10, you need to install the following packages:
sudo apt-get install apt-transport-https dirmngr gnupg ca-certificates software-properties-common
Add the proper repository containing the Mono 6.8 package.
echo "deb http://download.mono-project.com/repo/debian stable-buster/snapshots/6.8.0.123 main" | tee /etc/apt/sources.list.d/mono-official.list
Add the GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
you’ll get a warning when running
apt-get update
, it can be ignored:
Conflicting distribution: https://download.mono-project.com/repo/debian stable-buster/snapshots/6.8.0.123 InRelease (expected stable-buster/snapshots/6.8.0.123 but got buster)
sudo apt-get update
sudo apt-get install mono-complete
Add the mono-extra
repository.
echo "deb https://d2nlctn12v279m.cloudfront.net/repo/mono/ubuntu bionic main" | tee /etc/apt/sources.list.d/mono-extra.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
Adding the dotnet
repository.
sudo apt-get install curl
curl https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
Adding the Elasticsearch 7.16. repository (official instructions)
For the search proper work you need to install Elasticsearch v.7.16. 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 -
apt-get update
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
curl -OL http://repo.mysql.com/get/mysql-apt-config_0.8.24-1_all.deb
dpkg -i mysql-apt-config_0.8.24-1_all.deb
Updating the repository:
sudo apt-get update
Installing ffmpeg, Elasticsearch, mono-webserver-hyperfastcgi, nginx-extras, openjdk-11-jdk
sudo apt-get install ffmpeg elasticsearch=7.16.3 mono-webserver-hyperfastcgi=0.4-7 apt-transport-https dotnet-sdk-6.0 nginx-extras openjdk-11-jdk
On Debian 11, you need to install the following packages:
sudo apt-get install apt-transport-https dirmngr gnupg ca-certificates software-properties-common
Add the proper repository containing the Mono 6.8 package.
echo "deb http://download.mono-project.com/repo/debian stable-buster/snapshots/6.8.0.123 main" | tee /etc/apt/sources.list.d/mono-official.list
Add the GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
you’ll get a warning when running
apt-get update
, it can be ignored:
Conflicting distribution: https://download.mono-project.com/repo/debian stable-buster/snapshots/6.8.0.123 InRelease (expected stable-buster/snapshots/6.8.0.123 but got buster)
sudo apt-get update
sudo apt-get install mono-complete
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
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
Adding the dotnet
repository.
sudo apt-get install curl
curl https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
Adding the Elasticsearch 7.16. repository (official instructions)
For the search proper work you need to install Elasticsearch v.7.16. 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 -
apt-get update
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
curl -OL http://repo.mysql.com/get/mysql-apt-config_0.8.24-1_all.deb
dpkg -i mysql-apt-config_0.8.24-1_all.deb
Updating the repository:
sudo apt-get update
Installing ffmpeg, Elasticsearch, mono-webserver-hyperfastcgi, nginx-extras, openjdk-11-jdk
sudo apt-get install ffmpeg elasticsearch=7.16.3 mono-webserver-hyperfastcgi=0.4-8 apt-transport-https dotnet-sdk-6.0 nginx-extras openjdk-11-jdk
Installing ONLYOFFICE Groups
Add the ONLYOFFICE repository:
echo "deb https://download.onlyoffice.com/repo/debian squeeze 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 Groups:
sudo apt-get install onlyoffice-controlpanel onlyoffice-communityserver
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. If you need to use HTTPS, install certbot:
snap install --classic certbot