Install AndyMOTE Legacy Server

Install Libraries liblirc and libboost as described below:

$ sudo apt-get update
$ sudo apt-get install liblirc-dev libboost-all-dev

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

$ sudo apt install git
$ cd ~
$ git clone https://github.com/orangereaper/andymoteserver

then compile the source

$ cd andymoteserver
$ make

Move the resulting file to a convenient location; eg:

$ sudo mkdir -p /opt/andymoteserver
$ sudo mv dist/Debug/GNU-Linux/andymote /opt/andymoteserver/

Tidy up

$ cd ~
$ rm -Rf andymoteserver

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