Morbit Hub for Linux Installation Guide

Created by Tim Kefford, Modified on Fri, 20 Nov at 3:47 PM by Tim Kefford

Overview

Morbit Hub for Linux lets you deploy a Morbit Hub on a Linux server or device, including Raspberry Pi. The Hub is installed with a single command, runs as a systemd service, and starts automatically whenever the computer restarts.

At a glance

  • Installs with one command, run as root or with sudo
  • No .NET or other prerequisites to install first
  • Runs as the morbithub systemd service and starts on boot
  • Displays your Hub Key at the end, ready to pair in the portal
  • Upgrading and uninstalling keep your Hub Key, so the Hub stays paired

Before you start

You will need:

  • A supported Linux distribution using systemd – Ubuntu 20.04+, Debian 11+ or Raspberry Pi OS (Bullseye or later)
  • An x86_64, ARM64 or ARM 32-bit computer
  • Root access, or an account with sudo rights
  • An internet connection, with outbound HTTPS access to the Morbit cloud

Full details are in Morbit Hub System Requirements.

No .NET installation is needed. The Hub now includes everything it needs. If you have followed an earlier version of this guide, you no longer need to install the .NET runtime or PowerShell beforehand. PowerShell remains optional, and is only used if you want the Hub to query Windows devices over WMI.

Installing the Hub

Open a terminal on the computer that will run the Hub, and run:

curl -fsSL https://studio.morbit.co.uk/hub/install.sh | sudo bash

The installer will:

  • Detect your system architecture
  • Check that the computer can reach the Morbit cloud
  • Check for the operating system packages the Hub needs, and offer to install any that are missing
  • Download and install the Hub
  • Create and start the morbithub systemd service
  • Display your Hub Key
You can also copy the command from the portal. In the portal, open the Install & Info screen for the Hub and choose the Linux tab. It shows the correct command with a copy button, which saves typing it by hand.

Pairing your Hub

When the installation finishes, your Hub Key is displayed on screen. To connect this Hub to your Morbit network:

  • Log in to the portal
  • Go to System > Configuration, then open your Organisation and the relevant Network
  • Choose New Hub and enter the Hub Key shown by the installer
  • The Hub appears in your network once it has paired

Checking an existing installation

To check the version, Hub Key, service status and connectivity of a Hub that is already installed, run:

curl -fsSL https://studio.morbit.co.uk/hub/info.sh | sudo bash

This only reads information and makes no changes. It is the quickest way to confirm whether a Hub is installed and healthy, and it is usually the first thing our support team will ask you to run.

Useful commands

CommandDescription
sudo systemctl status morbithubCheck the service status
sudo journalctl -u morbithub -fView live logs
sudo systemctl stop morbithubStop the service
sudo systemctl restart morbithubRestart the service

Retrieving your Hub Key

If you need your Hub Key again after installation, run:

sudo journalctl -u morbithub | grep 'Hub Key'

The Hub Key is also shown by the Checking an existing installation command above.

Upgrading

To upgrade an existing installation, run the install command again. Your Hub Key and configuration are preserved, so the Hub stays paired with your network.

curl -fsSL https://studio.morbit.co.uk/hub/install.sh | sudo bash

The installer detects the existing Hub, asks you to confirm, then stops the service, replaces it and starts it again.

Uninstalling

To remove the Hub from the computer:

curl -fsSL https://studio.morbit.co.uk/hub/uninstall.sh | sudo bash

You are asked to confirm before anything is removed.

Your Hub Key is kept. Uninstalling removes the Hub software and its service, but deliberately leaves the configuration in place. If you reinstall on the same computer, the Hub keeps the same Hub Key and stays paired with your network.

Remote Connections for Linux

Remote Connections allows Morbit support to access your Hub remotely when you need assistance. To install it on Linux, follow the steps in this guide.

Troubleshooting

The service will not start

Check the logs for details:

sudo journalctl -u morbithub -n 50

The Hub Key was not displayed

The Hub Key is generated the first time the Hub runs. If it did not appear during installation, give the service a few moments to start and then retrieve it with the command in Retrieving your Hub Key above. If it is still not shown, check that the service is running.

The installer reports that it cannot reach the Morbit cloud

The Hub needs outbound HTTPS access to the Morbit cloud. The installation continues, but the Hub will not connect until the computer can reach it. Check whether a firewall or proxy on your network is blocking the connection, then run the install command again.

Operating system packages could not be installed

If the installer could not install a missing package automatically, it prints the exact command to run for your distribution. Run that command yourself, then run the install command again. On Ubuntu, Debian and Raspberry Pi OS this is usually:

sudo apt-get update && sudo apt-get install -y iputils-ping traceroute bind9-dnsutils iproute2

The computer is not using systemd

The Hub is installed and supervised as a systemd service, and cannot be installed on a system that does not use systemd. Please use one of the supported distributions listed in Morbit Hub System Requirements.

Still stuck? Contact us at help@morbit.co.uk and include the output of the Checking an existing installation command above.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article