{"id":911,"date":"2011-10-28T18:22:54","date_gmt":"2011-10-28T18:22:54","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/techblog\/?p=911"},"modified":"2023-08-07T12:50:05","modified_gmt":"2023-08-07T18:50:05","slug":"setting-up-m-power-on-linux","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=setting-up-m-power-on-linux","title":{"rendered":"Installing m-Power on Ubuntu Server"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this techblog, I wanted to share with you the steps I used to set up m-Power on Ubuntu Server, a popular &#8220;flavor&#8221; of Linux.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note: <\/strong>This documentation assumes that you only have command line access. If you have a GUI installed, please enter your terminal window to conduct the following instructions.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong>Note:<\/strong> This documentation assumes that you have sudo authority. If you do not, please add sudo in front of each command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download m-Power by typing the following command:<br><code>wget https:\/\/www.mrc-productivity.com\/products\/mpower\/m-power_linux.zip<\/code><\/li>\n\n\n\n<li>Download and install JDK 11: <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.aws.amazon.com\/corretto\/latest\/corretto-11-ug\/downloads-list.html\" target=\"_blank\">https:\/\/docs.aws.amazon.com\/corretto\/latest\/corretto-11-ug\/downloads-list.html<\/a><\/li>\n\n\n\n<li>Verify that the JDK installed correctly by typing <code>java -version<\/code> <em>and<\/em><code> <\/code><code>javac -version<\/code><\/li>\n\n\n\n<li>Move the m-Power installation from its current directory into the root, using the MV command.<\/li>\n\n\n\n<li>In root, type<code> jar -xf m-power.zip<\/code> to extract m-Power<\/li>\n\n\n\n<li>Transfer the mrclicense.txt file that was sent to you from mrc into the \/m-power\/proddata\/conf folder, using FTP.<\/li>\n\n\n\n<li>Modify the \/m-power\/tomcat\/conf\/server.xml file. Near the end of the file, correct the docBase of each context to point to the correct folder structure on your Ubuntu server. [Usually, this means removing &#8220;C:&#8221;]<\/li>\n\n\n\n<li>Edit the bash_profile, by keying in:<br><code>vi ~\/.bash_profile<\/code><\/li>\n\n\n\n<li>Add the following text to the file:<br><code>export JAVA_HOME=PATH_TO_JDK11_GOES_HERE<\/code><\/li>\n\n\n\n<li>Set all script files in \/m-power\/tomcat\/bin to be executable by typing the following command:<br><code>chmod +x *.sh<\/code><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Testing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To start Tomcat, type:<br><code>\/m-power\/tomcat\/bin\/catalina.sh start<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To stop Tomcat, type:<br><code>\/m-power\/tomcat\/bin\/catalina.sh stop<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can access m-Power by using the following URL: http:\/\/Linux_IP_Address:8011\/webapp\/mrc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview In this techblog, I wanted to share with you the steps I used to set up m-Power on Ubuntu Server, a popular &#8220;flavor&#8221; of Linux. Steps Testing To start Tomcat, type:\/m-power\/tomcat\/bin\/catalina.sh start To stop Tomcat, type:\/m-power\/tomcat\/bin\/catalina.sh stop You can access m-Power by using the following URL: http:\/\/Linux_IP_Address:8011\/webapp\/mrc<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[152],"ht-kb-tag":[],"class_list":["post-911","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-administration"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=911"}],"version-history":[{"count":11,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/911\/revisions"}],"predecessor-version":[{"id":12061,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/911\/revisions\/12061"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=911"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=911"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}