How to Install OpenMAINT on Ubuntu 20.04

How to Install OpenMAINT on Ubuntu 20.04


OpenMAINT is open-source software that helps you manage industrial facilities, infrastructures, property and maintenance activities.

It is a useful tool for companies, banks, institutions, medical services… It can be customized according to user requirements.

OpenMAINT is a web-based software. This article is the guide on how to install OpenMAINT on Ubuntu 20.04 as we go through below.

Updating the package

Run apt command to update the packages:

$ sudo apt update

Then run the command:

$ sudo apt upgrade

Installing the Java Development Kit

Run apt command to install:

$ sudo apt install default-jdk

You can check the version by the command:

$ java -version

Installing PostgreSQL

We recommend using PostgreSQL 10 because PostgreSQL 11 and newer causes OpenMAINT to fail.

Run the following commands:

$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
$ RELEASE=$(lsb_release -cs)
$ echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ ${RELEASE}"-pgdg main | sudo tee /etc/apt/sources.list.d/pgdg.list

Next, run the following commands to verify and update:

$ cat /etc/apt/sources.list.d/pgdg.list deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main
$ sudo apt update

And now, we will install PostgreSQL:

$ sudo apt install postgresql-10 postgresql-contrib


Press Enter.

This will create a user named “postgres”. And next, let’s set your password:

$ sudo passwd postgres

Installing PostGis

Run apt command to install:

$ sudo apt install postgis postgresql-10-postgis-3 libpostgis-java

Setting up PostgreSQL Database Server

Switch to the user “postgres”:

$ sudo su - postgres

Set the password:

$ psql -d template1 -c "ALTER USER postgres WITH PASSWORD 'linux123';"

Replace “linux123” with a password you want to set. Type “exit” to logout.

Installing OpenMAINT

You can check the latest version at the Latest version — openMAINT. After checking, we see the latest version is 2.1.

Run the wget command to download:

$ wget https://downloads.sourceforge.net/project/openmaint/2.1/Core%20updates/openmaint-2.1-3.3.1/openmaint-2.1-3.3.1.war

After successful download, start installing OpenMAINT:

$ java -jar ./openmaint-2.1-3.3.1.war install

Press Enter to next.

Starting Tomcat server and OpenMAINT

Run the command:

$ cd cmdbuild_30/bin/

then type:

$ ./startup.sh

When the terminal display “Tomcat started.” you are done.


The above article is a detailed guide on how to install OpenMAINT on Ubuntu 20.04.

Thanks for reading.

Similar Posts