Install AndyMOTE Qt Server

Install Library liblirc as described below:

$ sudo apt-get update
$ sudo apt-get install liblirc-dev qt5-default

Next, install git, goto your home directory & clone the andymoteserver repository

$ sudo apt -y install git
$ cd ~
$ git clone https://github.com/orangereaper/qtAndymoteServer

then compile the source

$ cd qtAndymoteServer
$ qmake -o Makefile qtAndymoteServer.pro
$ make

Move the resulting file to a convenient location; eg:

$ sudo mkdir -p /opt/andymoteserver
$ sudo mv qtAndymoteServer /opt/andymoteserver/andymote

Tidy up

$ cd ~
$ rm -Rf qtAndymoteServer

Finally, to run AndyMOTE Server as a service,
create the file /lib/systemd/system/andymote.service with content as shown below:

[Unit]
Description=run AndyMOTE Server as a service

[Service]
Type=simple
RemainAfterExit=false
Restart=always
RestartSec=30
ExecStop=/bin/true
ExecStart=/opt/andymoteserver/andymote

[Install]
WantedBy=multi-user.target

Enable and start the service

$ sudo systemctl enable andymote
$ sudo systemctl start andymote