Skip to content

Scada LTS Linux installation tutorial

Radosław Jajko edited this page Aug 18, 2021 · 9 revisions

Preparation of the runtime environment

Before you start you have to install all required components like MySQL database server, Java Virtual Machine, and Tomcat web application server. More advanced installation was described in Development - Getting Started page.

Java installation

Scada-LTS require Java 11 version at least. To install Java on Ubuntu we can use apt package manager:

sudo apt install openjdk-11-jre

Then we can check if OpenJDK JRE was installed properly. Just type:

java -version

Database installation

Scada-LTS support only MySQL version 5.7.x. If you will try to run it on other version of MySQL database you will probably see many errors. More detailed instruction for MySQL is available in Getting-Started tutorial.

sudo apt update
sudo apt install mysql-server-5.7
sudo mysql_secure_installation
mysqld --initialize
sudo systemctl start mysql

Then create a new database with name: scadalts

Tomcat installation

Tomcat is a web server that will host the Scada-LTS application. It requires Java to be installed.

sudo apt update
sudo apt install tomcat9 tomcat9-admin

After installation it should start up automatically. You can verify that is working on the 8080 port.

ss -ltn | grep 8080

And you can open the browser on that address:

http://localhost:8080

Installation of Scada-LTS

We have to prepare tomcat server for handling the connection with database. So we have to add MySQL-Connector to server libraries and configure the context.xml file with resource definition.

  • Add that file to /usr/share/tomcat9/lib/ directory.
  • Change also the /etc/tomcat9/context.xml with following configuration.
    (Note: Make sure that resource url parameter is navigating to 'localhost' not to 'database')

Now we can download the latest Scada-LTS version from release section. It will be file with extension *.war

Move that file to Tomcat web application server directory.

mv <filename.war> /usr/share/tomcat9/webapps/

Run application

Restart Tomcat service to load the configuration from files and to unpack the application

sudo systemctl restart tomcat9

If everything is ready open your browser on:

http://localhost:8080/<filename>