OpenMAINT is a web-based 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.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Open Source Installation queries.
In this context, we shall look into how to install OpenMAINT on Ubuntu 20.04.
1. Update the system apt package manager
To begin, you need to run apt command to update the packages:
$ sudo apt update
Also execute the below command:
$ sudo apt upgrade
2. Install the Java Development Kit
To install JDK (Java Development Kit), simply Run apt command to install:
$ sudo apt install default-jdk
You can check the installed version by executing the below command:
$ java -version
3. Install PostgreSQL
We recommend using PostgreSQL 10 because PostgreSQL 11 and newer causes OpenMAINT to fail.
i. 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
ii. 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
iii. 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
4. Install PostGis
Run the below apt command to install PostGis:
$ sudo apt install postgis postgresql-10-postgis-3 libpostgis-java
5. Set up PostgreSQL Database Server
Switch to the user "postgres" by running the command:
$ sudo su - postgres
Next, Set the password:
$ psql -d template1 -c "ALTER USER postgres WITH PASSWORD 'linux123';"
Here, Replace "linux123" with a password you want to set. Type "exit" to logout.
6. Install OpenMAINT
You can check the latest version at the Latest version — openMAINT https://www.openmaint.org/en/download/latest-version. After checking, we see the latest version is 2.1.
Then, Run the wget command to download openMAINT:
$ 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
Then, Press Enter to go to the next page.
7. Start Tomcat server and OpenMAINT
Now to start the Tomcat server and OpenMAINT, simpky execute the below commands:
$ cd cmdbuild_30/bin/
$ ./startup.sh
Once you see "Tomcat started." on your terminal, then everything is alright.
This article covers and easy step by step guide on how to install OpenMAINT on Ubuntu 20.04. In fact, OpenMAINT helps in management of mobile assets (buildings, infrastructure, etc.), plants and technical devices (electric panels, heating and cooling, light fixture, fire extinguishers, etc.), furniture, etc., and the related logistical, economical and maintenance activities (scheduled and corrective ones).