Skip to content

Prepare Ubuntu VM for SteVe

Christian Samsel edited this page Feb 22, 2021 · 7 revisions

We suggest running SteVe under the latest Ubuntu LTS version as it is our default target. Following you find some basic steps to prepare a Ubuntu VM to run SteVe.

Install OS

Install Ubuntu LTS 20.04 Server in a Virtual Machine, e.g. using VirtualBox or VMware. Hypervisors like ESXi or Proxmox are fine as well. SteVe does not require any special OS configuration or installation options, but we suggest using UTC as timezone. This can be changed later via sudo timedatectl set-timezone UTC

After the Installation finishes log into the system and add the universe package repository (it contains maven):

sudo add-apt-repository universe

Afterwards completely update the system and reboot to activate the newest kernel (This will take some time)

sudo apt update && sudo apt -y upgrade && sudo reboot

Install Prerequisites

To install maven execute:

sudo apt -y install maven

Next install MariaDB, we suggested explicitly selecting version 10.3 as this is currently supported.

sudo apt install mariadb-server-10.3

(optional) Configure and set a root password for the MariaDB server:

sudo mysql_secure_installation

and enable+start MariaDB:

sudo systemctl enable mariadb && sudo systemctl start mariadb

(optional) UFW configuration

A minimal firewall configuration using would look as follows:

sudo ufw allow OpenSSH

sudo ufw allow 8080/tcp (if you changed SteVe's port, change this as well)

sudo ufw default deny

sudo ufw enable

(optional) haveged installation

If you are using SSL in an virtual enviroment the installation of haveged is suggested:

sudo apt install haveged && sudo systemctl enable haveged && sudo systemctl start haveged

VM preparation finished

You can now follow the SteVe installation guide at https://github.com/RWTH-i5-IDSG/steve

To enter the SQL commands in Ubuntu just use sudo mysql