DH2i DxEnterprise 20.0 Software: Ubuntu Installation Quick Start Guide

Download the PDF

Ubuntu Installation

This quick start guide describes how to install DxEnterprise on an Ubuntu Linux server. Using this guide, the user will install DxEnterprise dependencies and software, then join a second server (node) into a cluster.

Prerequisites

The following requirements must be met before continuing with this guide:

  • A physical or virtual machine running Ubuntu 16.04, 18.04, or 20.04. A second machine is required for joining two nodes into a cluster.

Configure Server and Install Dependencies

  1. Update the Ubuntu package list by using the command sudo apt-get update.
  2. Update system packages using the command sudo apt-get dist-upgrade. If prompted to confirm, enter Y.
  3. Ensure that the hostname is set and unique using the hostname command.
    • To rename the server, run sudo hostnamectl set-hostname <name>. The server must be restarted for the change to take effect.
  4. Install Microsoft .NET 3.1 Runtime using Microsoft’s installation instructions.
  5. Install remaining DxEnterprise dependencies by running sudo apt-get install zip udisks2.
  6. OPTIONAL: Set host resolution for all servers (nodes) that will be participating in the cluster using sudo nano /etc/hosts. Write the IP address and hostname of the servers to the file and save.

Install DxEnterprise

  1. Download the DxEnterprise package signing key by running the command:
    wget -qO- https://repos.dh2i.com/public.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/dh2i.gpg
  2. Register the DxEnterprise Ubuntu repository by running the command
    sudo sh -c 'echo deb [arch=amd64] https://repos.dh2i.com/ bionic retail >/etc/apt/sources.list.d/dh2i.list'

    NOTE: The architecture parameter [arch=amd64] can be changed to arm64 or armhf to install DxEnterprise on those platforms.

  3. Update the Ubuntu package list by using the command sudo apt-get update.
  4. Install DxEnterprise from the repository by running the command sudo apt-get install -y dxenterprise.

Configure DxEnterprise

  1. Activate the server using the command sudo dxcli activate-server.

    Syntax

    dxcli activate-server <key> [node]

    Parameters

    Name Description Required
    key The license key. True
    node The name of the node (comma-separated list of multiples). False

    Example

    dxcli activate-server AAAA-BBBB-CCCC-DDDD

  2. Set the cluster passkey using the command sudo dxcli cluster-set-secret.

    Syntax

    dxcli cluster-set-secret

    Parameters

    Interactive only.

    Example

    dxcli cluster-set-secret

  3. OPTIONAL: DxEnterprise can utilize NAT matchmaking to easily connect servers across the internet. Use the command sudo dxcli set-otpk to set a One-Time PassKey for the cluster. The passkey expires one hour after creation by default.

    NOTE: To use this feature, the license must have NAT enabled. To inquire about license status, visit DH2i’s Client Portal or run the command sudo dxcli get-producttype and look for NAT listed among the features.

    Syntax

    dxcli set-otpk [ttl] [otpk]

    Parameters

    Name Description Required
    ttl The time the key will expire. False
    otpk The One-Time PassKey in base64. False

    Example

    dxcli set-otpk

Setup Second Node and Join to Cluster

  1. Complete all the steps in the Configure Server and Install Dependencies section for the second node.
  2. Complete the Install DxEnterprise section and step one of the Configure DxEnterprise section for the second node.
  3. Join the second node to the cluster using sudo dxcli join-cluster and follow the prompts.
    • If an OTPK was not set for the cluster, select N when prompted to join via NAT proxy. Enter the IP address and cluster passkey of the first server to join the cluster.
    • If an OTPK was set for the cluster, select Y when prompted to join via NAT proxy. Enter the OTPK to join the cluster.

    Syntax

    dxcli join-cluster

    Parameters

    Interactive only.

    Example

    dxcli join-cluster

References

Download the PDF