Installing Digital Hive 2024.3 on Linux
Overview
The 2024.3 Digital Hive release brings a lot of new capabilities to the market. In order to deliver some of the new features, changes to the underlying technology stack that underpins the Digital Hive solution had to be made. The 2024.3 release includes modernization to both PostgreSQL (Digital Hive Content Store) and ElasticSearch (provides the search capabilities). Although a lot of effort went in to upgrading the components and to minimize the effort required to install Digital Hive, there are some additional installation steps that must be performed to successfully install Digital Hive 2024.3 on Linux.
Pre-installation Steps
- Create a non-root user to use for the Digital Hive installation
- Create user: sudo adduser 'digitalhive' (replace digitalhive with your username of choice)
- Add the user created to the superuser group: sudo
usermod -aG sudo digitalhive
- Switch to the new user: sudo su - digitalhive
Edit the limits.conf file, for example, sudo vi /etc/security/limits.conf
Add the following properties and save the file (include the * and ensure there is a space afterwards)
* soft nofile 65536
* hard nofile 65536
* soft nproc 8192
* hard nproc 8192
* soft memlock unlimited
* hard memlock unlimited
Using sudo, edit sysctl.conf
sudo vi /etc/sysctl.conf
Add the following lines and save the file
#Added for Elasticsearch
vm.max_map_count=262144
Reboot the server
sudo reboot
Postgres Installation Steps (This example uses Ubuntu, the Linux commands will be slightly different on other Linux flavours)
Here is an article that explains how to install PostgreSQL 16 on RHEL-Based Linux
- Set up PostgreSQL repositories by installing necessary tools, creating directories and downloading the PostgreSQL signing key
- Install the curl tools and ensures that the system has the necessary certificates to verify secure connections:
sudo apt install curl ca-certificates - Create a directory /usr/share/postgresql-common/pgdg , which will be used to store the signing key:
sudo install -d /usr/share/postgresql-common/pgdg - Download the PostgreSQL Apt repository signing key:
sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
- Apply the latest Linux updates: sudo apt-get update
- Install PostgreSQL 16 Repository: sudo apt -y install postgresql
- Allow other computers to connect to Postgres (replace <version> with the installed version of PostgreSQL:
sudo vi /etc/postgresql/<version>/main/postgresql.conf
- Change listen_address from localhost to *, and remove the '#' in front of listen_addresses
listen_addresses = ‘*’ - Ensure PostgreSQL is running by running: sudo systemctl status postgresql
- If it's not running, start PostgreSQL: sudo systemctl start postgresql
- Set the password for the postgres user: sudo -u postgres psql template1
- Run this SQL: alter user postgres with encrypted password ‘your_password’;
- Type: exit
- Change the authentication for the postgres user allowed for the template1 database to use md5 authentication:
sudo vi /etc/postgresql/<version>/main/pg_hba.conf - Add this line (changing <local network IP> to your private IP):
hostssl template1 all <local network IP> md5 - Restart Postgres: sudo systemctl restart postgresql.service
- Create a Postgres user for the Digital Hive content store
- Switch user to postgres
sudo su postgres - Run postgresql: psql
- At the postgres=# prompt, run this SQL (replacing your_password the password you want)
- CREATE ROLE dhadmin WITH LOGIN CREATEROLE INHERIT CONNECTION LIMIT -1 VALID UNTIL '3024-08-10T05:30:17-05:00' PASSWORD 'your_password';
- CREATE DATABASE digitalhive WITH OWNER = dhadmin TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'C' LC_CTYPE = 'C' CONNECTION LIMIT = -1;
- Give the dhadmin user access to the public schema
- grant all on schema public to dhadmin;
- Exit psql
exit
You now have a Postgres Digital Hive database that can be used for the Digital Hive content store
Digital Hive Installation Steps
Open a Linux terminal and login as the Digital Hive user
Create a directory in your Digital Hive root, called installer. For example, in my environment, the Digital Hive user home is /home/digitalhive/DigitalHive and I created a directory in there called installer: mkdir /home/digitalhive/DigitalHive/installer
- If you didn't SFTP into that folder directly, move the file to that directory: mv DigitalHive-2024.3_linux-x64.tar.gz /home/digitalhive/DigitalHive
NOTE: if you used root to SFTP the file to the server, then you will have to chown and chgrp the file to the Digital Hive user, For example:
chown digitalhive DigitalHive-2024.3_linux-x64.tar.gz
chgrp digitalhive DigitalHive-2024.3_linux-x64.tar.gz If you're not logged in as the Digital Hive user, then: su digitalhive
Untar the file: tar -xvf DigitalHive-2024.3_linux-x64.tar
Run the installer with this
command: ./setup.sh
At this prompt: Press 1
Enter Licensee name: <your license name>
- Enter License key: <your license key>
- Press 1 to continue
- Press spacebar until this prompt: Press 1 to accept, 2 to reject, 3 to
display
- Enter 1
Enter 0 (or press Enter) to Install
- Enter 1
- Enter 0 or Press Enter (for Express)
- Enter 0 or Press Enter (for full installation)
- Enter 1
- Enter the Digital Hive installation path (or
press enter to accept the default path)
- Enter O (assuming it is correct)
- Enter 1
- Press Enter or put in whatever name you want at this prompt
- Enter a password and confirm the password
- Enter 1
- Enter the hostname or IP of the server (this example uses dhserver)
- Enter the name of the database that you created
- Press Enter (if the port is correct) or enter the correct port (in this example 5433)
Enter the Digital Hive user that you created earlier, in this example dhadmin
Enter and confirm that Digital Hive user
password- Enter 1
- Enter 1 (if you want to install IQ)
- Enter 1
Press Enter for all of these ports (or enter a port that you want to use)
Enter 1
- Installation will begin and end with a message stating that it was successful
Digital Hive should be successfully installed now
Related Articles
Installing the Digital Hive Software
Question How do you install Digital Hive? Answer Digital Hive can be installed in Windows or Linux environments. Installing Digital Hive on Windows Prerequisites for installing Digital Hive on Windows Microsoft® Visual C++ 2013 runtime library ...
Upgrading Digital Hive on Linux to the 2024.3 Release
Overview The 2024.3 Digital Hive release brings a lot of new capabilities to the market. In order to deliver some of the new features, changes to the underlying technology stack that underpins the Digital Hive solution had to be made. The 2024.3 ...
Single Sign On with Digital Hive on Linux
Question Is it possible to set up Single Sign On when Digital Hive is on Linux? Answer Yes, it is possible using OAUTH2, OpenID Connect (OIDC), and OKTA with Azure. First you will need to create a Digital hive Azure App Registration, you can refer to ...
Digital Hive Architecture Overview
Overview Digital Hive is a lightweight, web-based application that is both easy to install as well as to maintain and manage. Other than the Microsoft C++ redistributable (https://www.microsoft.com/en-ca/download/details.aspx?id=40784), there are no ...
Digital Hive Installation and Configuration Overview
Overview This article serves as a collection of all the steps required to install and configure the Digital Hive solution. Prerequisites Digital Hive can be installed on either Windows or Linux based systems. From a server sizing perspective, the ...