Preparing a Headless Linux Server for Web Widgets

This article explains how to prepare a headless (console-only) Linux server for running Iotellect Server that operates web widgets, i.e. widgets that run in a web browser without Java support.

To enable web widget operation, first install Xvfb. Xvfb is X virtual framebuffer, it acts like an in-memory X server (no output is produced to the screen).

Installing XVFB

Follow the below steps to setup Xvfb as a service.

First you should install Xvfb and necessary libraries:

Ubuntu/Debian:

sudo apt-get install xvfb

sudo apt-get install libxrender-dev

sudo apt-get install libxtst-dev

RedHat/Fedora/CentOS:

yum install xorg-x11-server-Xvfb

yum install libXrender.x86_64

yum install libXtst.x86_64

You can use search option of package manager to define correct name of package you need: yum search xvfb

Enabling XVFB Usage

Find a startup configuration file of your Iotellect Server service (%LS_BINARY%.conf or %LS_BINARY%.service -- see Service Mode) and uncomment the line that starts iot_server via xvfb-run. Comment an adjacent line that starts iot_server directly.

Restart the server after completing configuration.

Was this page helpful?