{"id":9910,"date":"2021-09-20T10:06:28","date_gmt":"2021-09-20T10:06:28","guid":{"rendered":"https:\/\/linuxways.net\/?p=9910"},"modified":"2021-09-20T10:06:28","modified_gmt":"2021-09-20T10:06:28","slug":"how-to-install-openmaint-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-openmaint-on-ubuntu-20-04\/","title":{"rendered":"How to Install OpenMAINT on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>OpenMAINT is open-source software that helps you manage industrial facilities, infrastructures, property and maintenance activities.<\/p>\n<p>It is a useful tool for companies, banks, institutions, medical services\u2026 It can be customized according to user requirements.<\/p>\n<p>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.<\/p>\n<h2>Updating the package<\/h2>\n<p>Run apt command to update the packages:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>Then run the command:<\/p>\n<pre>$ sudo apt upgrade<\/pre>\n<h2>Installing the Java Development Kit<\/h2>\n<p>Run apt command to install:<\/p>\n<pre>$ sudo apt install default-jdk<\/pre>\n<p>You can check the version by the command:<\/p>\n<pre>$ java -version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1058\" height=\"107\" class=\"wp-image-9911\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-121.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-121.png 1058w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-121-300x30.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-121-1024x104.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-121-768x78.png 768w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<h2>Installing PostgreSQL<\/h2>\n<p>We recommend using PostgreSQL 10 because PostgreSQL 11 and newer causes OpenMAINT to fail.<\/p>\n<p>Run the following commands:<\/p>\n<pre>$ wget --quiet -O - https:\/\/www.postgresql.org\/media\/keys\/ACCC4CF8.asc | sudo apt-key add -<\/pre>\n<pre>$ RELEASE=$(lsb_release -cs)<\/pre>\n<pre>$ echo \"deb [arch=amd64] <a href=\"http:\/\/apt.postgresql.org\/pub\/repos\/apt\/\">http:\/\/apt.postgresql.org\/pub\/repos\/apt\/<\/a> ${RELEASE}\"-pgdg main | sudo tee \/etc\/apt\/sources.list.d\/pgdg.list<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1058\" height=\"186\" class=\"wp-image-9912\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-122.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-122.png 1058w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-122-300x53.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-122-1024x180.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-122-768x135.png 768w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<p>Next, run the following commands to verify and update:<\/p>\n<pre>$ cat \/etc\/apt\/sources.list.d\/pgdg.list deb [arch=amd64] http:\/\/apt.postgresql.org\/pub\/repos\/apt\/ focal-pgdg main<\/pre>\n<pre>$ sudo apt update<\/pre>\n<p>And now, we will install PostgreSQL:<\/p>\n<pre>$ sudo apt install postgresql-10 postgresql-contrib<\/pre>\n<p>Output: <img loading=\"lazy\" decoding=\"async\" width=\"1059\" height=\"574\" class=\"wp-image-9913\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-123.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-123.png 1059w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-123-300x163.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-123-1024x555.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-123-768x416.png 768w\" sizes=\"auto, (max-width: 1059px) 100vw, 1059px\" \/><\/p>\n<p>Press Enter.<\/p>\n<p>This will create a user named \u201cpostgres\u201d. And next, let\u2019s set your password:<\/p>\n<pre>$ sudo passwd postgres<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1059\" height=\"128\" class=\"wp-image-9914\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-124.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-124.png 1059w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-124-300x36.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-124-1024x124.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-124-768x93.png 768w\" sizes=\"auto, (max-width: 1059px) 100vw, 1059px\" \/><\/p>\n<h2>Installing PostGis<\/h2>\n<p>Run apt command to install:<\/p>\n<pre>$ sudo apt install postgis postgresql-10-postgis-3 libpostgis-java<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1058\" height=\"184\" class=\"wp-image-9915\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-125.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-125.png 1058w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-125-300x52.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-125-1024x178.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-125-768x134.png 768w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/p>\n<h2>Setting up PostgreSQL Database Server<\/h2>\n<p>Switch to the user \u201cpostgres\u201d:<\/p>\n<pre>$ sudo su - postgres<\/pre>\n<p>Set the password:<\/p>\n<pre>$ psql -d template1 -c \"ALTER USER postgres WITH PASSWORD 'linux123';\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1059\" height=\"126\" class=\"wp-image-9916\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-126.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-126.png 1059w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-126-300x36.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-126-1024x122.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-126-768x91.png 768w\" sizes=\"auto, (max-width: 1059px) 100vw, 1059px\" \/><\/p>\n<p>Replace \u201clinux123\u201d with a password you want to set. Type \u201cexit\u201d to logout.<\/p>\n<h2>Installing OpenMAINT<\/h2>\n<p>You can check the latest version at <a href=\"https:\/\/www.openmaint.org\/en\/download\/latest-version\">the Latest version \u2014 openMAINT<\/a>. After checking, we see the latest version is 2.1.<\/p>\n<p>Run the wget command to download:<\/p>\n<pre>$ wget <a href=\"https:\/\/downloads.sourceforge.net\/project\/openmaint\/2.1\/Core%20updates\/openmaint-2.1-3.3.1\/openmaint-2.1-3.3.1.war*\">https:\/\/downloads.sourceforge.net\/project\/openmaint\/2.1\/Core%20updates\/openmaint-2.1-3.3.1\/openmaint-2.1-3.3.1.war<\/a><\/pre>\n<p><a href=\"https:\/\/downloads.sourceforge.net\/project\/openmaint\/2.1\/Core%20updates\/openmaint-2.1-3.3.1\/openmaint-2.1-3.3.1.war*\"><img loading=\"lazy\" decoding=\"async\" width=\"1058\" height=\"464\" class=\"wp-image-9917\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-127.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-127.png 1058w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-127-300x132.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-127-1024x449.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-127-768x337.png 768w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/a><\/p>\n<p>After successful download, start installing OpenMAINT:<\/p>\n<pre>$ java -jar .\/openmaint-2.1-3.3.1.war install<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1060\" height=\"309\" class=\"wp-image-9918\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-4.jpeg\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-4.jpeg 1060w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-4-300x87.jpeg 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-4-1024x299.jpeg 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-4-768x224.jpeg 768w\" sizes=\"auto, (max-width: 1060px) 100vw, 1060px\" \/><\/p>\n<p>Press Enter to next.<\/p>\n<h2>Starting Tomcat server and OpenMAINT<\/h2>\n<p>Run the command:<\/p>\n<pre>$ cd cmdbuild_30\/bin\/<\/pre>\n<p>then type:<\/p>\n<pre>$ .\/startup.sh<\/pre>\n<p>When the terminal display &#8220;Tomcat started.&#8221; you are done.<\/p>\n<h2>Conclusion<\/h2>\n<p>The above article is a detailed guide on how to install OpenMAINT on Ubuntu 20.04.<\/p>\n<p>Thanks for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction 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\u2026 It&hellip;<\/p>","protected":false},"author":1,"featured_media":10288,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[528,100],"class_list":["post-9910","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-openmaint","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=9910"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9910\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/10288"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=9910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=9910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=9910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}