In the section, the process of installation in Linux Ubuntu 16.04 x64 is described. To install in the operating system Linux, here and further on the commands in the terminal will be used.
Please note that Monokot Server Administrator is available for Windows operating systems only, but you can deploy Monokot Server on the target Linux device and manage it remotely using Windows PC.
If you use Linux ARM (or ARM64) based, put ‘mos-linux-arm-latest’ (or ‘mos-linux-arm64-latest’) instead of ‘mos-linux-x64-latest’ in the commands
# Get the latest stable version of the server
wget https://monokot.io/download/mos-linux-x64-latest
# After the downloading is complete, create a folder where we extract the archived binaries
mkdir -p /home/user/mos && tar -xvf mos-linux-x64-latest -C /home/user/mos
# Set up the rights to execute the program
chmod u+x /home/user/mos/mosconsole
# Run server
sudo /home/user/mos/mosconsole
Run Server as Daemon
Create a configuration file for daemon (mos.service).
sudo nano /etc/systemd/system/mos.service
Fill in the created file with the following information.
[Unit]
Description=Monokot
[Service]
WorkingDirectory=/home/user/mos/
ExecStart=/home/user/mos/mosconsole
Restart=always
[Install]
WantedBy=multi-user.target
Save the changes in the file.
# Renew the list of configurations for daemons
systemctl daemon-reload
# Add the daemon to the autostart:
systemctl enable mos.service
# Reboot the computer to start the daemon
sudo reboot
If you use firewall you must add the incoming connections rule for administrator (default port 9881) and for OPC UA clients (default port 43043).
sudo iptables -I INPUT -p tcp --dport 9881 -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 43043 -j ACCEPT
If for some reasons server doesn’t start use logs from PATH_TO_SERVER/logs folder to get detailed information about errors