Linux Installation
This guide is for installing Workplace AI on a Linux single server. It also covers setting up the Elastic Cluster architecture. There are some prerequisites before you begin.
Prerequisites
Upload Aiimi Workplace AI Software
To install Workplace AI you need root level access. Open Bash and enter the following script to go to the root level.
sudo bashEnter the following script to change the directory to where it should be stored.
cd \data\softwareUpload the Workplace AI software to the server's software directory.

Configuring JAVA_HOME Environment Variable
You need to set the permanent environment variable for JAVA_HOME.
Within Bash run the following script to change your directory to access the variable.
Run the following script to open the profile file in nano, the bash text editor.
Add the following values to the bottom of the file.
Press Ctrl+x to exit the text editor.
This will prompt you to save your changes.
Type Y and use the Enter key to save your changes.
Enter the following script to change directory to the elasticsearch jdk folder.
Run the following scripts one after the other to ensure the folders are accessible.
Restart your server.
Log back in to your sever and open Bash.
Run the following script to check the JAVA_HOME has been set correctly.
This will return the path entered into the profile using the nano text editor.
Run the following script to check the JAVA_HOME is running the correct version.
Enabling Firewalls and Allowing HTTP/HTTPS
Open Red Hat.
Run the following script to check if the firewall is active.
If it's listed as inactive use the following script to turn it on.
When prompted, enter Y and use the Enter key to save this change.
Run the following script to check if the firewall is now active.
Run the following script to open the firewall ports for http, https, Elastic and Kibana.
These allow you to connect to Workplace AI Web Apps and Elasticsearch APIs.
Run the following script to reload the firewall service.
Run the following script and check the output to verify the updates are correct.
Install Apache Web Server
If the server is hosting the APPs and APIs, Apache Web Server must be deployed.
Open Bash.
Run the following script to install the httpd package.
Comment out the welcome site.
Run the following script to enable the Apache webserver to start after reboot.
Run the following script to start the Apache Web service.
Run the following script to view the Apache version details.
If the default Red Hat firewall is enabled, run the following script to allow inbound HTTP and HTTPS traffic.
The Workplace AI httpd configuration will redirect all HTTP traffic to HTTPS.
Go to /etc/httpd/modules and see if mod_ssl.so is installed.
If it is not installed, run the following script.
Install .Net6
Open Red Hat.
Run the following script to install .Net and it's dependencies.
Once that has finished, run the following script to test the install.
Deploying Workplace AI Files
If you prefer to use a GUI, you can use WinSCP to transfer files onto the Linux machine.
The following steps assume:
you are using /data as a temporary working area,
you have downloaded the Workplace AI zip files to /data/download,
you are using the search-aiimi.zip.
Check if utility has been unzipped and installed before you continue.
Once the Utility installation is complete the files and folders in /data can be removed.
Open Bash.
All installation scripts must be executed from a root shell. You can login as root or run the following script from a non-root user.
You will need the root password and appropriate permissions.
Workplace AI Install
Open Bash.
Run the following script to start the installation.
Edit the insightmaker.rc file manually with nano or using a sed command.
The file /etc/insightmaker/insightmaker.rc contains the installation and runtime settings for Workplace AI. This should be edited to match the environment. Each setting has a description in the file.
Run the following script to edit the insightmaker.rc with nano.
Run the following script to use the sed commands. Some values need to be amended before you run this.
Do not comment out any settings.
Managing Workplace AI
Reconfiguring
Open Bash.
Run the following script to update the runtime settings in /etc/insightmaker/insightmaker.rc. This can be changed after install.
This will prompt to restart the services. If this is not done the settings will be take immediate effect.
Process Management
Individual components can be managed via systemctl.
Admin API
im-admin-api.service
Content Agent
im-content-agent.service
Data Science API
im-ds-api.service
Enrichment Agent
im-enrichment-agent.service
Job Agent
im-job-agent.service
Migration Agent
im-migration-agent.service
OCR Agent
im-ocr-agent.service
Search API
im-search-api.service
Security Agent
im-security-agent.service
Source Agent
im-source-agent.service
Tika
im-tika-agent.service
Apache Web Server
httpd or apache2
The im-manage.sh script can be used to bulk manage services. This script goes through the installed services and executes the equivalent systemd command.
Checking Search App is Working
Navigate to the host to check the Workplace AI Search app is loading. http://<ip address>/#/login.
If it's working correctly it will open a login screen asking for user credentials.
Checking Control Hub is Working
Navigate to the host to check the Workplace AI Control Hub is loading. http://<ip address>/admin/#/login.
If it's working correctly it will open a login screen asking for user credentials.
Login using the Elastic username and password you setup.
Last updated