IoT Open Tech
Home
  • Platform
  • Modules
  • Devices
Guides
Changelog
Home
  • Platform
  • Modules
  • Devices
Guides
Changelog
  • Platform

    • IoT Open Lynx Platform
    • Lynx Architecture
    • Main objects
    • DeviceX / FunctionX
      • Function types and metadata
    • Metadata
      • Known meta-keys
    • Icons
    • Schedules
    • Edge Apps
      • The app.json file
      • Package edge.lynx
      • Package edge.timer
      • Package json
      • Package mq
      • Package log
      • Package edge
    • Edge Client
      • Docker Edge Client
      • Linux Edge Client
    • Notifications
      • Templating language
      • Executors
    • Events
    • Permissions
    • API Reference and Libraries

Linux Edge Client

The edge client can be installed natively on Debian. This installation has been done on Debian 12 (Bookworm). It also works on Debian 13 (Trixie) with some effort, but Trixie is not officially supported yet. The Docker Edge Client is easier to set up.

Please observe that this installation overwrites your mosquitto settings, if any.

Install the packages

Install curl and gpg:

sudo apt-get install curl gpg

Add the IoT Open package key and repository:

curl https://pkg.iotopen.se/conf/iotopen.gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/iotopen-apt-keyring.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/iotopen-apt-keyring.gpg] https://pkg.iotopen.se/apt/ bookworm main" | sudo tee /etc/apt/sources.list.d/iotopen.list

Install the packages:

sudo apt-get update
sudo apt-get install iotopen-verify mosquitto iotopen-edge

Create directories

Create the configuration directory and the directories used for the apps:

sudo mkdir -p /etc/iot-open
sudo mkdir -p /var/lib/iot-open/edge/apps
sudo mkdir -p /var/lib/iot-open/edge/configs

edged must be able to write to /var/lib/iot-open/edge/configs. If apps fail to start with Unable to read appfile, check the permissions of the directory.

Configure

Get the template for the MQTT bridge from the Docker Edge Client repository:

curl https://raw.githubusercontent.com/IoTOpen/docker-edge-client/master/etc/iot-open/mosquitto.tpl | sudo tee /etc/iot-open/mosquitto.tpl

Create credentials for the installation and save the file as /etc/iot-open/iotopen.json.

Register

Register the edge client:

sudo iotopen-verify

It should look like this:

iotopen-verify[1581]: Git hash:2076315 and tag:
iotopen-verify[1581]: verified

iotopen-verify creates /etc/iot-open/mosquitto.conf. Copy it to mosquitto and restart mosquitto:

sudo cp /etc/iot-open/mosquitto.conf /etc/mosquitto/
sudo systemctl restart mosquitto

There should now be a green "Edge Client" box on the overview page of the installation.

Start edged

Start the edge daemon:

sudo edged

When an Edge App is added to the installation in Lynx it is automatically downloaded and started on the edge client. Apps that are already configured are downloaded and started when edged starts.

Apps can also be test run with the edge-app command.

Last updated:
Prev
Docker Edge Client