Installing .NET Core runtime 3.1 on Linux for Proactive DLP 2.4.0+

Starting with Proactive DLP version 2.4.0, the engine will require .NET Core to be installed on all Linux machines.

Please use the following instructions to install .NET Core based on your OS:

CentOS 7
sudo rpmkeys --import "http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef"
sudo su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo'
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install -y libgdiplus
sudo yum install -y dotnet-runtime-3.1
CentOS 8
sudo rpmkeys --import "http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef"
sudo su -c 'curl https://download.mono-project.com/repo/centos8-stable.repo | tee /etc/yum.repos.d/mono-centos8-stable.repo'
sudo dnf install -y libgdiplus
sudo dnf install -y dotnet-runtime-3.1

RHEL 7
rpmkeys --import "http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef"
su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo'
subscription-manager repos --enable=rhel-7-server-dotnet-rpms
yum install libgdiplus
yum install rh-dotnet31-dotnet-runtime-3.1
scl enable rh-dotnet31 bash
scl enable libgdiplus bash

Modify ometascan-node.service

sudo nano /usr/lib/systemd/system/ometascan-node.service

Change the ExecStart value from the original /usr/sbin/ometascan-node to /usr/bin/scl enable rh-dotnet31 -- /usr/sbin/ometascan-node
Restart the services

sudo systemctl daemon-reload
sudo systemctl restart ometascan-node

In case of failure see detailed instructions here:

https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-rhel7
https://access.redhat.com/documentation/en-us/net_core/3.1/html/getting_started_guide/gs_install_dotnet

RHEL 8
rpmkeys --import "http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef"
su -c 'curl https://download.mono-project.com/repo/centos8-stable.repo | tee /etc/yum.repos.d/mono-centos8-stable.repo'
dnf install libgdiplus
dnf install dotnet-runtime-3.1

Follow the instruction in RHEL 7 to modify ometascan-node.service

In case of failure see detailed instructions here:
https://access.redhat.com/documentation/en-us/net_core/3.1/html/getting_started_guide/gs_install_dotnet


Debian 9
sudo apt update
sudo apt install -y apt-transport-https dirmngr gnupg ca-certificates wget
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
wget -O- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget https://packages.microsoft.com/config/debian/9/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get -y install dotnet-runtime-3.1 libgdiplus
Debian 10
sudo apt update
sudo apt -y install apt-transport-https dirmngr gnupg ca-certificates wget
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget https://packages.microsoft.com/config/debian/10/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get -y install dotnet-runtime-3.1 libgdiplus

Ubuntu 16.04
sudo apt update
sudo apt install -y apt-transport-https ca-certificates wget
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y dotnet-runtime-3.1 libgdiplus
Ubuntu 18.04
sudo apt update
sudo apt install -y gnupg ca-certificates apt-transport-https wget
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install -y dotnet-runtime-3.1 libgdiplus

In case you can’t find your system listed here, or you have issues during the installation, please follow this link and select your corresponding OS for detailed instructions and troubleshooting steps: Microsoft .Net Core runtime 3.1 installation guide for Linux

If you have followed all of these steps and your engines are still unusable, please see how to create a support package, login into OPSWAT Portal and open a ticket with us, having the support package attached.

This article applies to MetaDefender Core v4 Windows
This article was last updated on 2020-06-25
VM