«

»

Setting up m-Power on Linux

Installing m-Power on a Linux Server

In the following example, we will be installing m-Power on Ubuntu, a popular “flavor” of Linux.

 

    1. Install JDK and JRE through Synaptic Package Manager
      1. System -> Administration -> Synaptic Package Manager
      2. Once in the Synaptic Package Manager, go to Settings -> Repositories
      3. Under the Ubuntu Tab, check the “Software restricted by copyright or legal issues (multiverse)”
      4. Click Close
      5. You should now be back to the Synaptic Package Manager
      6. Click the Search Icon
        1. Type JDK
        2. Select the sun-java5-jre and the sun-java5-jdk and select the “Mark for Installation”
        3. Other components will also be selected — this is OK
      7. Click the Apply green check button
      8. A summary pop up box will appear, click the “Apply” button
      9. The appropriate Java tools will now be installed onto your system properly.
      10. Once finished, you can verify they have been installed successfully by going to a command line and entering the command “java” and “javac”. If many argument options appear for these commands, you have succeed in Step 1.


  • Next we need to tell Ubuntu where your new JDK can be found

 

      1. Hit ALT+F2 to bring up the “Run Application” window, and enter “gksudo nautilus” (allows you “windows explorer” view and full authority on all files and folders)
      2. Navigate to /etc, and edit the file profile
      3. Enter the following text

#Arguments for Tomcat for m-Power

export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.08

export CATALINA_HOME=/usr/local/tomcat

export PATH=$JAVA_HOME/bin:$PATH

      1. Click Save.


  • Configure mrc Tool Properties File

 

      1. Rename \m-power\proddata\conf\mrctool.properties to mrctoolWIN.properties
      2. Rename \m-power\proddata\conf\mrctool400.properties to mrctool.properties
      3. Modify mrctool.properties to verify that the location of the target and classpath are correct.
      4. Be sure to change the “;” in the classpath to “:”, as this is the proper syntax needs on all Linux or Mac setups.


  • Getting Tomcat

 

      1. Download and extract m-Power. It can be found at this link: Download m-Power here .
      2. Now that you have extracted the .zip file, there should now be an m-Power folder. Within that there is a Tomcat folder. Copy and Paste this directory on your Linux server in the /usr/local directory
        1. The easiest way to do this is to hit ALT+F2 and type gksudo nautilus (allows you “windows explorer” view and full authority on all files and folders)
        2. Simply navigate to /usr/local and paste the Tomcat directory there.
      3. Within the /usr/local/tomcat/conf directory, edit the server.xml file with text editor. Scroll to the bottom of the document. Notice where it says:

<Host name="localhost" appBase="webapps">

      1. Modify the following section to look like this:

<Host name="localhost" appBase="webapps">

<!-- m-power for windows/NT

<Context path="/webapp/mrc" docBase="C:/m-power/mrcwebgui" debug="0" reloadable="true">

<Logger className="org.apache.catalina.logger.FileLogger"

prefix="mrcps_log" suffix=".txt" timestamp="true"/>

</Context>

-->

<Context path="/webapp/mrc" docBase="/m-power/mrcwebgui" debug="0" reloadable="true" >

<Logger className="org.apache.catalina.logger.FileLogger"

prefix="mrcps_log" suffix=".txt" timestamp="true"/>

</Context>

<Context path="/mrcjava" docBase="/m-power/mrcjava" debug="0" reloadable="true">

<Logger className="org.apache.catalina.logger.FileLogger"

prefix="mrcjava_log" suffix=".txt" timestamp="true"/>

</Context>

</Host>

      1. Click Save.


  • Starting Tomcat

 

      1. Once at a command line, run a cd\
      2. CD $CATALINA_HOME/bin
      3. Sh Catalina.sh start


  • Accessing m-Power

 

      1. http://999.999.999.999:8011/webapp/mrc/servlet/MRCPS.MRC001 (where 999.999.999.999 is the IP address of your Linux Server).


  • Stopping Tomcat

 

    1. At a command line, run a cd\
    2. CD $CATALINA_HOME/bin
    3. Sh Catalina.sh stop

Related Posts:

Leave a Reply

Your email address will not be published.

* Copy this password:

* Type or paste password here:

297 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>