Installation Instructions for Coreflux hubless (no user interface)
This document provides comprehensive and precise instructions for installing Coreflux on Linux systems and Windows. It includes three methods: standard installation, installation through the broker in live mode, and a manual daemon setup in case the standard installation fails.
Linux
For 64-bit Systems (x64)
Coreflux MQTT Broker in X64 Linux is compatible with various Linux distributions:
- Ubuntu
- Debian
- Fedora
- CentOS
- Red Hat Enterprise Linux (RHEL)
- openSUSE
- Arch Linux
sudo apt-get update
sudo apt-get install wget unzip
sudo mkdir /opt/coreflux
sudo wget https://downloads.coreflux.org/cfclinuxx64.zip
sudo unzip cfclinuxx64.zip -d /opt/coreflux
sudo chmod +x /opt/coreflux/CorefluxCentral
For ARM Systems
wget https://downloads.coreflux.org/cfclinuxarm.zip
unzip cfclinuxarm.zip -d Coreflux
sudo mv Coreflux /opt/coreflux
chmod +x /opt/coreflux/CorefluxCentral
sudo /opt/coreflux/CorefluxCentral -I
For ARM 64 Systems
Coreflux MQTT Broker in ARM64 Linux is compatible with various Linux distributions:
- Ubuntu for ARM
- Debian ARM64
- Fedora ARM
- Arch Linux ARM
- openSUSE ARM
- Raspberry Pi OS (formerly Raspbian)
- CentOS ARM64
wget https://downloads.coreflux.org/cfclinuxarm64.zip
unzip cfclinuxarm64.zip -d Coreflux
sudo mv Coreflux /opt/coreflux
chmod +x /opt/coreflux/CorefluxCentral
sudo /opt/coreflux/CorefluxCentral -I
Installing Through the MQTT Broker Live
-
Run CorefluxCentral with Administrative Rights:
-
Connect to the Broker:
-
Use your MQTT client to connect to the broker where Coreflux is active.
-
Publish the Installation Command:
- Publish the
-I
command to the appropriate topic based on your OS and architecture. For example, for a 64-bit Linux machine: or
Manual Daemon Setup
-
Create a Systemd Service File:
-
Add Service Configuration:
-
Insert the following content into the file:
-
Enable and Start the Service:
- Reload systemd, enable, and start the CorefluxCentral service.
Windows
Accessing the Command Line
- Press
Win
+S
to open the search dialog. - Type
cmd
and choose Run as administrator
Installing Coreflux
- Place the downloaded file from coreflux.org in your desired location.
- Open a command line as an administrator.
- Navigate to the directory where the file was placed:
- To install Coreflux as a Windows service:
Check
Make sure to replace \path\to\downloaded
with the actual path where the CorefluxCentral file is located on your system.
Installing Through the Broker
- Ensure CorefluxCentral is running with administrative rights.
- Open your MQTT client and connect to the broker where Coreflux is active.
- Publish the
-I
command to the appropriate topic based on your OS and architecture. For example, for a 64-bit Windows machine, the topic would be$SYS/Win-x64/Shell
or$SYS/Win-x64/Command
.
Manual Service Installation
- Open the Command Prompt as an administrator.
- Navigate to the directory where CorefluxCentral is located.
- Use the
sc
command to create a new service: - Start the service:
- Configure the service to automatically restart on failure: ```bash