-
Notifications
You must be signed in to change notification settings - Fork 10
Installation on Linux
Microsoft provides detailed documentation explaining how to install the .Net Core runtime on various Linux platforms. If you are not planning on doing any development with the CxAnalytix code, installing the SDK is not required.
It is not recommended to attempt to follow the "Manual Installation" instructions for the .Net Core install. Please use your chosen Linux distribution's package manager to install .Net Core.
sudo yum update -y ; sudo yum install -y dotnet-runtime-3.1
Due to Linux not requiring a file extension to indicate dotnet
is executable, the name of the configuration file is a bit different. Use the following command to make a symbolic link to the dotnet.exe.config
file:
ln -s dotnet.exe.config dotnet.config
Execution of the command line can be performed with the following command:
dotnet CxAnalytixCLI.dll
There is not a platform-specific installer for CxAnalytix at the time this documentation was written. The following steps can be used to install the CxAnalytix Daemon on a Linux system that uses systemd.
Perform the following steps as root
-
Configure the system to have the same time zone as the SAST Manager.
-
Make directory
/var/log/cxanalytix
-
Execute
chown root:nobody /var/log/cxanalytix
-
Execute
chmod g+w /var/log/cxanalytix
-
Make directory
/etc/cxanalytix
-
Execute:
chown root:nobody /etc/cxanalytix
-
Execute
chmod g+w /etc/cxanalytix
-
Make the directory
/opt/cxanalytix
and copy the installation artifacts there. -
Execute:
chown root:nobody /opt/cxanalytix
-
Execute:
chmod g+w /opt/cxanalytix
-
Modify the
CxAnalytixDaemon.log4net
file to output logs into/var/log/cxanalytix
-
Make a symbolic link to the
/opt/cxanalytix/dotnet.exe.config
file be executing:ln -s /opt/cxanalytix/dotnet.exe.config /opt/cxanalytix/dotnet.config
-
Modify
/opt/cxanalytix/dotnet.exe.config
file to have the appropriate connection parameters:-
CxConnection
for the SAST and M&O connection -
CxCredentials
for the login credentials -
CxAnalyticsService
for:-
ProcessPeriodMinutes
- suggest minimum 120 -
ConcurrentThreads
- suggest maximum 2*CPUs -
StateDataStoragePath
- Use/etc/cxanalytix
-
-
CxLogOutput
for:- Point it to
/var/log/cxanalytix
so that old log files can be periodically purged
- Point it to
-
-
Copy the file
cxanalytix.service
to/etc/systemd/system/
-
Enable the daemon by executing:
systemctl enable cxanalytix
-
Start the daemon by executing:
systemctl start cxanalytix